Commit e1ffa92a authored by zhanglw's avatar zhanglw

前台我要供应权限

parent 53f94f4b
ENV = 'development'
# 接口地址
VUE_APP_BASE_API = 'http://192.168.3.23:7001'
VUE_APP_WS_API = 'ws://192.168.3.23:7001'
#VUE_APP_BASE_API = 'http://192.168.3.23:7001'
#VUE_APP_WS_API = 'ws://192.168.3.23:7001'
VUE_APP_BASE_API = 'http://60.217.78.224:7001'
VUE_APP_WS_API = 'ws://60.217.78.224:7001'
# 是否启用 babel-plugin-dynamic-import-node插件
VUE_CLI_BABEL_TRANSPILE_MODULES = true
......@@ -72,6 +72,7 @@ export const constantRouterMap = [
},
{
path: '/supplier',
name: 'supplier',
meta: { title: '优质供应商', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/supplier/index'], resolve)
......
......@@ -192,7 +192,7 @@
</el-form>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button @click="cancelView">取消</el-button>
<el-button type="success" @click="submitForm()">保存</el-button>
<!-- <el-button type="success" @click="submitForm()">保存</el-button>-->
<el-button type="primary" @click="submitForm()">提交</el-button>
</div>
</el-dialog>
......
......@@ -304,7 +304,12 @@ export default {
},
// 点击地区top
areaTopClick(text) {
console.log(text)
this.$router.push({
name: 'supplier',
params: {
areaText: text
}
})
},
// 点击更多
moreTo(type) {
......
......@@ -218,7 +218,7 @@
</el-form>
<div style="width: 100%;text-align: center">
<el-button @click="cancelView">返回</el-button>
<el-button type="success" @click="submitForm()">保存</el-button>
<!-- <el-button type="success" @click="submitForm()">保存</el-button>-->
<el-button type="primary" @click="submitForm()">提交</el-button>
</div>
</div>
......@@ -329,7 +329,19 @@ export default {
},
mounted() {
this.$nextTick(() => {
HttpReq.webClientApi.personalCenterInfo().then((res) => {
if (res.data.supplierStatus > 1) {
this.$confirm(`您的供应商信息暂未审核,请待审核完成后再操作。`, '提示', {
confirmButtonText: '去完善信息',
cancelButtonText: '返回',
type: 'warning'
}).then(() => {
this.$router.push({ path: `/console/userInfo` })
}).catch(() => {
this.$router.go(-1)
})
}
})
})
},
methods: {
......
......@@ -189,7 +189,6 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.query = Object.assign(this.query, this.$route.params)
HttpReq.webClientApi.homePageGetSearch({
preview: false
}).then((res) => {
......@@ -200,6 +199,11 @@ export default {
methods: {
onDictReady(dict) {
this.areaOpts = [{ value: undefined, label: '全部' }, ...dict.area_province]
if (this.$route.params.areaText) {
this.query.area = this.areaOpts.filter(item => {
return item.label === this.$route.params.areaText
})[0].value
}
this.search()
},
search() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment