pull/4/head
parent
11f2d2845a
commit
e9c679800f
|
@ -0,0 +1,9 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
export function selectList(data){
|
||||||
|
return request({
|
||||||
|
url:"/market/product/list",
|
||||||
|
method: "POST",
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
import request from "@/utils/request";
|
||||||
|
|
||||||
|
export function gethostportList(){
|
||||||
|
return request({
|
||||||
|
url:"/market/product/hotspotlist",
|
||||||
|
method: "GET",
|
||||||
|
})
|
||||||
|
}
|
|
@ -0,0 +1,94 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24" style="border: 5px solid #ebeef5;">
|
||||||
|
<div class="grid-content bg-purple-dark">
|
||||||
|
<span>我的API</span>
|
||||||
|
<el-divider></el-divider>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="20"><div class="grid-content bg-purple">
|
||||||
|
<el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
||||||
|
<el-form-item prop="couponName">
|
||||||
|
<el-select v-model="value" placeholder="请选择状态">
|
||||||
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-input type="text" v-model="ruleForm.couponName" style="width: 200px" autocomplete="off" placeholder="关键词搜索"></el-input>
|
||||||
|
<el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div></el-col>
|
||||||
|
<el-col :span="4"><div class="grid-content bg-purple-light"><el-button type="primary">新增数据</el-button></div></el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||||
|
//例如:import 《组件名称》 from '《组件路径》,
|
||||||
|
export default {
|
||||||
|
name: 'Myapi',
|
||||||
|
//import引入的组件需要注入到对象中才能使用"
|
||||||
|
components: {},
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
//这里存放数据"
|
||||||
|
|
||||||
|
return {
|
||||||
|
ruleForm:{},
|
||||||
|
options: [{
|
||||||
|
value: '选项1',
|
||||||
|
label: '全部'
|
||||||
|
}, {
|
||||||
|
value: '选项2',
|
||||||
|
label: '申请中'
|
||||||
|
}, {
|
||||||
|
value: '选项3',
|
||||||
|
label: '申请通过'
|
||||||
|
}, {
|
||||||
|
value: '选项4',
|
||||||
|
label: '审核失败'
|
||||||
|
}],
|
||||||
|
value: ''
|
||||||
|
};
|
||||||
|
},
|
||||||
|
//计算属性 类似于data概念",
|
||||||
|
computed: {},
|
||||||
|
//监控data中的数据变化",
|
||||||
|
watch: {},
|
||||||
|
//方法集合",
|
||||||
|
methods: {},
|
||||||
|
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||||
|
created() {
|
||||||
|
},
|
||||||
|
//生命周期 - 挂载完成(可以访问DOM元素)",
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
beforeCreate() {
|
||||||
|
}, //生命周期 - 创建之前",
|
||||||
|
beforeMount() {
|
||||||
|
}, //生命周期 - 挂载之前",
|
||||||
|
beforeUpdate() {
|
||||||
|
}, //生命周期 - 更新之前",
|
||||||
|
updated() {
|
||||||
|
}, //生命周期 - 更新之后",
|
||||||
|
beforeDestroy() {
|
||||||
|
}, //生命周期 - 销毁之前",
|
||||||
|
destroyed() {
|
||||||
|
}, //生命周期 - 销毁完成",
|
||||||
|
activated() {
|
||||||
|
} //如果页面有keep-alive缓存功能,这个函数会触发",
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
|
@ -0,0 +1,111 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
||||||
|
<el-form-item prop="couponName">
|
||||||
|
<el-input type="text" v-model="ruleForm.couponName" style="width: 200px" autocomplete="off" placeholder="关键词搜索"></el-input>
|
||||||
|
<el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<span>产品名称</span>
|
||||||
|
|
||||||
|
<el-row :gutter="12">
|
||||||
|
<el-col :span="8" v-for="product in productList" :key="index" >
|
||||||
|
<el-card class="box-card" >
|
||||||
|
<div slot="header" class="clearfix">
|
||||||
|
<el-form ref="form" :model="product" label-width="120px" :rules="rules">
|
||||||
|
<el-form-item label="产品名称">
|
||||||
|
<el-input v-model="product.productName">{{product.productName}}}</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="产品价格">
|
||||||
|
<el-input v-model="product.productPrice">{{product.productPrice}}}</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="产品介绍">
|
||||||
|
<el-input v-model="product.productContent">{{product.productContent}}}</el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="6"><div class="grid-content bg-purple"><el-button type="info">测试</el-button></div></el-col>
|
||||||
|
<el-col :span="6"><div class="grid-content bg-purple-light"><el-button type="primary">立即申请</el-button></div></el-col>
|
||||||
|
</el-row>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</el-card>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||||
|
//例如:import 《组件名称》 from '《组件路径》,
|
||||||
|
|
||||||
|
|
||||||
|
import {selectList} from "@/api/market/product";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Product',
|
||||||
|
//import引入的组件需要注入到对象中才能使用"
|
||||||
|
components: {},
|
||||||
|
props: {},
|
||||||
|
|
||||||
|
data() {
|
||||||
|
//这里存放数据"
|
||||||
|
|
||||||
|
return {
|
||||||
|
//产品列表
|
||||||
|
productList:[],
|
||||||
|
product:{},
|
||||||
|
ruleForm:{}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
//计算属性 类似于data概念",
|
||||||
|
computed: {},
|
||||||
|
//监控data中的数据变化",
|
||||||
|
watch: {},
|
||||||
|
//方法集合",
|
||||||
|
methods: {
|
||||||
|
//产品列表
|
||||||
|
getList(){
|
||||||
|
selectList(this.ruleForm).then(response=>{
|
||||||
|
this.productList=response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
//查询
|
||||||
|
submitForm(){
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||||
|
created() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
//生命周期 - 挂载完成(可以访问DOM元素)",
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
beforeCreate() {
|
||||||
|
}, //生命周期 - 创建之前",
|
||||||
|
beforeMount() {
|
||||||
|
}, //生命周期 - 挂载之前",
|
||||||
|
beforeUpdate() {
|
||||||
|
}, //生命周期 - 更新之前",
|
||||||
|
updated() {
|
||||||
|
}, //生命周期 - 更新之后",
|
||||||
|
beforeDestroy() {
|
||||||
|
}, //生命周期 - 销毁之前",
|
||||||
|
destroyed() {
|
||||||
|
}, //生命周期 - 销毁完成",
|
||||||
|
activated() {
|
||||||
|
} //如果页面有keep-alive缓存功能,这个函数会触发",
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.el-header {
|
||||||
|
background-color: #B3C0D1;
|
||||||
|
color: #333;
|
||||||
|
line-height: 60px;
|
||||||
|
}
|
||||||
|
.el-aside {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -0,0 +1,204 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="16">
|
||||||
|
<div class="grid-content bg-purple" style="border: 2px solid #ebeef5;">
|
||||||
|
<span>HI,上海八维宏烨集团<br>
|
||||||
|
<el-row :gutter="20">
|
||||||
|
<el-col :span="6"><div class="grid-content bg-purple">地区:上海市 上海市</div></el-col>
|
||||||
|
<el-col :span="6"><div class="grid-content bg-purple">IP:114.85.72.211</div></el-col>
|
||||||
|
<el-col :span="6"><div class="grid-content bg-purple">时间:2021年-1月-12日</div></el-col>
|
||||||
|
<el-col :span="6"><div class="grid-content bg-purple">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12"><div class="grid-content bg-purple"><el-button type="primary">登录日志</el-button></div></el-col>
|
||||||
|
<el-col :span="12"><div class="grid-content bg-purple-light"><el-button type="primary">操作日志</el-button></div></el-col>
|
||||||
|
</el-row>
|
||||||
|
</div></el-col>
|
||||||
|
</el-row>
|
||||||
|
</span>
|
||||||
|
</div></el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<div class="grid-content bg-purple" style="border: 1px solid #ebeef5;">
|
||||||
|
<span>账户余额:<br>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="12"><div class="grid-content bg-purple">¥8544344.00</div></el-col>
|
||||||
|
<el-col :span="12"><div class="grid-content bg-purple-light"><el-button type="primary">充值</el-button></div></el-col>
|
||||||
|
</el-row>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24">
|
||||||
|
<div class="grid-content bg-purple-dark" style="border: 2px solid #ebeef5;">
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="20"><div class="grid-content bg-purple"><span>热点接口</span></div></el-col>
|
||||||
|
<el-col :span="4"><div class="grid-content bg-purple-light"><el-button type="primary">申请新的接口</el-button></div></el-col>
|
||||||
|
</el-row><br>
|
||||||
|
<el-row>
|
||||||
|
<el-col :span="24"><div class="grid-content bg-purple-dark flex-container">
|
||||||
|
<div v-for="(form,index) in hostportList" :key="index" class="flex-item">
|
||||||
|
<el-form ref="form" :model="form" label-width="80px">
|
||||||
|
<el-form-item >
|
||||||
|
<span>{{form.productName}}</span>
|
||||||
|
<el-button @click="tovalidation()">查看</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</div>
|
||||||
|
</div></el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
|
||||||
|
<!--提示需要验证--->
|
||||||
|
<el-dialog
|
||||||
|
title="提示"
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
width="30%"
|
||||||
|
:before-close="handleClose"
|
||||||
|
:close-on-click-modal="false">
|
||||||
|
<span>亲,需要认证才能使用哦!!!</span>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="validationYes()">去认证</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
<!---企业验证页面-->
|
||||||
|
<el-dialog
|
||||||
|
title="提示"
|
||||||
|
:visible.sync="dialogVisible1"
|
||||||
|
width="30%"
|
||||||
|
:before-close="handleClose1"
|
||||||
|
:close-on-click-modal="false">
|
||||||
|
<span>企业信息</span>
|
||||||
|
<el-divider></el-divider>
|
||||||
|
<el-form :model="ruleForm" status-icon :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
|
||||||
|
<el-form-item label="企业名称" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户姓名" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户职位" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="公司所在省市区" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="公司详细地址" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="统一社会信用代码" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="营业执照" prop="pass">
|
||||||
|
<el-input type="text" v-model="ruleForm.pass" autocomplete="off"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="push()">提交认证申请</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等),
|
||||||
|
//例如:import 《组件名称》 from '《组件路径》,
|
||||||
|
|
||||||
|
|
||||||
|
import {gethostportList} from "@/api/market/workbench";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Workbench',
|
||||||
|
//import引入的组件需要注入到对象中才能使用"
|
||||||
|
components: {},
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
//这里存放数据"
|
||||||
|
return {
|
||||||
|
form:{},
|
||||||
|
//热点前五的产品
|
||||||
|
hostportList:[],
|
||||||
|
dialogVisible: false,
|
||||||
|
dialogVisible1:false,
|
||||||
|
//企业信息
|
||||||
|
ruleForm:{}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
//计算属性 类似于data概念",
|
||||||
|
computed: {},
|
||||||
|
//监控data中的数据变化",
|
||||||
|
watch: {},
|
||||||
|
//方法集合",
|
||||||
|
methods: {
|
||||||
|
//热点数据列表
|
||||||
|
gethostportList(){
|
||||||
|
gethostportList().then(response=>{
|
||||||
|
this.hostportList=response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleClose(done) {
|
||||||
|
this.$confirm('确认关闭?')
|
||||||
|
.then(_ => {
|
||||||
|
done();
|
||||||
|
})
|
||||||
|
.catch(_ => {});
|
||||||
|
},
|
||||||
|
handleClose1(done) {
|
||||||
|
this.$confirm('确认关闭?')
|
||||||
|
.then(_ => {
|
||||||
|
done();
|
||||||
|
})
|
||||||
|
.catch(_ => {});
|
||||||
|
},
|
||||||
|
tovalidation(){
|
||||||
|
this.dialogVisible=true
|
||||||
|
},
|
||||||
|
validationYes(){
|
||||||
|
this.dialogVisible1=true
|
||||||
|
},
|
||||||
|
push(){
|
||||||
|
this.dialogVisible=false
|
||||||
|
this.dialogVisible1=false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
//生命周期 - 创建完成(可以访问当前this实例)",
|
||||||
|
created() {
|
||||||
|
this.gethostportList()
|
||||||
|
},
|
||||||
|
//生命周期 - 挂载完成(可以访问DOM元素)",
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
beforeCreate() {
|
||||||
|
}, //生命周期 - 创建之前",
|
||||||
|
beforeMount() {
|
||||||
|
}, //生命周期 - 挂载之前",
|
||||||
|
beforeUpdate() {
|
||||||
|
}, //生命周期 - 更新之前",
|
||||||
|
updated() {
|
||||||
|
}, //生命周期 - 更新之后",
|
||||||
|
beforeDestroy() {
|
||||||
|
}, //生命周期 - 销毁之前",
|
||||||
|
destroyed() {
|
||||||
|
}, //生命周期 - 销毁完成",
|
||||||
|
activated() {
|
||||||
|
} //如果页面有keep-alive缓存功能,这个函数会触发",
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped>
|
||||||
|
.flex-container {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap; /* 如果需要的话,允许换行 */
|
||||||
|
justify-content: space-between; /* 或者您想要的任何对齐方式 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-item {
|
||||||
|
/* 您可以根据需要添加一些内边距、外边距或宽度设置 */
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue