Browse Source

上传修改

master
前端-胡立永 2 months ago
parent
commit
d9406843b8
6 changed files with 23 additions and 18 deletions
  1. +3
    -0
      api/api.js
  2. +7
    -7
      api/model/index-lzx.js
  3. +1
    -1
      config.js
  4. +1
    -1
      pages/index/center.vue
  5. +5
    -3
      pages_order/auth/certification.vue
  6. +6
    -6
      store/store.js

+ 3
- 0
api/api.js View File

@ -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]


+ 7
- 7
api/model/index-lzx.js View File

@ -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',


+ 1
- 1
config.js View File

@ -7,7 +7,7 @@ import uvUI from '@/uni_modules/uv-ui-tools'
Vue.use(uvUI);
// 当前环境
const type = 'dev'
const type = 'lzx'
// 环境配置


+ 1
- 1
pages/index/center.vue View File

@ -220,7 +220,7 @@
url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
},
],
numInfo:null,
numInfo : {},
}
},
onShow() {


+ 5
- 3
pages_order/auth/certification.vue View File

@ -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
}) : []
}
})
},


+ 6
- 6
store/store.js View File

@ -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'
// })
// }
}
})
},


Loading…
Cancel
Save