diff --git a/api/api.js b/api/api.js index 243b60d..1d2782e 100644 --- a/api/api.js +++ b/api/api.js @@ -258,6 +258,9 @@ function addApiModel(model, key){ for(let k in model){ if(config[`${k}`]){ console.error(`重名api------model=${key},key=${k}`); + uni.showModal({ + title: `重名api------model=${key},key=${k}` + }) continue } config[`${k}`] = model[k] diff --git a/api/model/index-lzx.js b/api/model/index-lzx.js index 0539032..6c1784f 100644 --- a/api/model/index-lzx.js +++ b/api/model/index-lzx.js @@ -10,13 +10,13 @@ const api = { auth: true, }, //开通VIP - addVIP: { - url: '/employ/user/getUserCenterData', - method: 'POST', - auth: true, - limit : 500, - showLoading : true, - }, + // addVIP: { + // url: '/employ/user/getUserCenterData', + // method: 'POST', + // auth: true, + // limit : 500, + // showLoading : true, + // }, //个人实名认证 - 提交 addAuthenticationPerson: { url: '/employ/authentication/addAuthenticationPerson', diff --git a/config.js b/config.js index 195406f..290aa53 100644 --- a/config.js +++ b/config.js @@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'dev' +const type = 'lzx' // 环境配置 diff --git a/pages/index/center.vue b/pages/index/center.vue index b3ee182..10e9fbc 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -220,7 +220,7 @@ url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png', }, ], - numInfo:null, + numInfo : {}, } }, onShow() { diff --git a/pages_order/auth/certification.vue b/pages_order/auth/certification.vue index 8bbff32..ef892eb 100644 --- a/pages_order/auth/certification.vue +++ b/pages_order/auth/certification.vue @@ -112,7 +112,7 @@ fileList: [], } }, - onShow() { + onLoad() { this.getAuthenticationPerson(); }, methods: { @@ -120,8 +120,10 @@ getAuthenticationPerson(){ this.$api('getAuthenticationPerson',{}, res =>{ if(res.code == 200){ - this.form = res.result; - this.fileList = res.result.image ? res.result.image.split(',').map(url => {url}) : [] + this.form = res.result || {}; + this.fileList = this.form.image ? this.form.image.split(',').map(url => { + return url + }) : [] } }) }, diff --git a/store/store.js b/store/store.js index e674f2d..5c93817 100644 --- a/store/store.js +++ b/store/store.js @@ -77,12 +77,12 @@ const store = new Vuex.Store({ if(res.code == 200){ state.userInfo = res.result - if(!state.userInfo.nickName || !state.userInfo.headImage - || !state.userInfo.phone){ - uni.navigateTo({ - url: '/pages_order/auth/wxUserInfo' - }) - } + // if(!state.userInfo.nickName || !state.userInfo.headImage + // || !state.userInfo.phone){ + // uni.navigateTo({ + // url: '/pages_order/auth/wxUserInfo' + // }) + // } } }) },