|
@@ -138,7 +138,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="border">
|
|
<view class="border">
|
|
|
<u-form-item label="身份证号码" prop="personIdCard">
|
|
<u-form-item label="身份证号码" prop="personIdCard">
|
|
|
- <u-input :border="false" placeholder="请输入身份证号码" v-model="form.personIdCard" ></u-input>
|
|
|
|
|
|
|
+ <u-input :border="false" placeholder="请输入身份证号码" v-model="form.personIdCard" :disabled="edit"></u-input>
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="photo border">
|
|
<view class="photo border">
|
|
@@ -314,7 +314,8 @@
|
|
|
trigger: ['change', 'blur'],
|
|
trigger: ['change', 'blur'],
|
|
|
}],
|
|
}],
|
|
|
},
|
|
},
|
|
|
- step:1
|
|
|
|
|
|
|
+ step:1,
|
|
|
|
|
+ edit:false
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onReady() {
|
|
onReady() {
|
|
@@ -352,11 +353,26 @@
|
|
|
})
|
|
})
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+ if(options.edit){
|
|
|
|
|
+ this.edit = options.edit
|
|
|
|
|
+ this.shopDetail()
|
|
|
|
|
+ }
|
|
|
this.form.personTel=options.phone
|
|
this.form.personTel=options.phone
|
|
|
this.fetchMallList()
|
|
this.fetchMallList()
|
|
|
this.getShopLabelAll()
|
|
this.getShopLabelAll()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ async shopDetail() {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ id: this.vuex_shopId
|
|
|
|
|
+ }
|
|
|
|
|
+ let data = await this.$api.shop.detail(params)
|
|
|
|
|
+ let res = data.data
|
|
|
|
|
+ Object.assign(this.form,res)
|
|
|
|
|
+ this.mallLabel=res.mallName
|
|
|
|
|
+ this.shopAddress=res.province +"-"+res.city+"-"+res.area
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
+ },
|
|
|
prevStep(){
|
|
prevStep(){
|
|
|
if(this.step>1&&this.step<4){
|
|
if(this.step>1&&this.step<4){
|
|
|
this.step--
|
|
this.step--
|
|
@@ -383,6 +399,13 @@
|
|
|
this.$api.mall.getShopLabelAll(p).then(res => {
|
|
this.$api.mall.getShopLabelAll(p).then(res => {
|
|
|
res.data.records.forEach(item => {
|
|
res.data.records.forEach(item => {
|
|
|
item.checked = false
|
|
item.checked = false
|
|
|
|
|
+ if(this.form.labelNames&&!this.$isEmpty(this.form.labelNames)){
|
|
|
|
|
+ this.form.labelNames.split(",").map((c)=>{
|
|
|
|
|
+ if(item.name==c){
|
|
|
|
|
+ item.checked = true
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
this.checkboxList = res.data.records
|
|
this.checkboxList = res.data.records
|
|
|
})
|
|
})
|
|
@@ -398,6 +421,9 @@
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
async chooseImage(name) {
|
|
async chooseImage(name) {
|
|
|
|
|
+ if((name=='idCardFront'||name=='idCardContrary')&&this.edit){
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
let res = await this.$mpi.chooseImage()
|
|
let res = await this.$mpi.chooseImage()
|
|
|
this.$api.uploadFile(res[0]).then(res => {
|
|
this.$api.uploadFile(res[0]).then(res => {
|
|
|
this.form[name] = res.data.link
|
|
this.form[name] = res.data.link
|