|
|
@@ -22,11 +22,11 @@
|
|
|
</view>
|
|
|
<view class="border">
|
|
|
<u-form-item label="业务联系人" prop="personName">
|
|
|
- <u-input :border="false" placeholder="请输入业务联系人" v-model="form.personName"></u-input>
|
|
|
+ <u-input :disabled="isEdit" :border="false" placeholder="请输入业务联系人" v-model="form.personName"></u-input>
|
|
|
</u-form-item>
|
|
|
</view>
|
|
|
<view class="tips">
|
|
|
- <text>*认证通过后,姓名将不可修改</text>
|
|
|
+ <text>*认证通过后,业务联系人将不可修改</text>
|
|
|
</view>
|
|
|
<view class="border">
|
|
|
<u-form-item label="联系方式" prop="personTel">
|
|
|
@@ -109,6 +109,9 @@
|
|
|
</view>
|
|
|
</u-form-item>
|
|
|
</view>
|
|
|
+ <view class="tips">
|
|
|
+ <text>*认证通过后,营业执照将不可修改</text>
|
|
|
+ </view>
|
|
|
<view class="border">
|
|
|
<view style="padding: 30rpx 0 10rpx;">
|
|
|
<text>店铺实况</text>
|
|
|
@@ -141,9 +144,12 @@
|
|
|
</view>
|
|
|
<view class="border">
|
|
|
<u-form-item label="身份证号码" prop="personIdCard">
|
|
|
- <u-input :border="false" placeholder="请输入身份证号码" v-model="form.personIdCard"></u-input>
|
|
|
+ <u-input :disabled="isEdit" :border="false" placeholder="请输入身份证号码" v-model="form.personIdCard"></u-input>
|
|
|
</u-form-item>
|
|
|
</view>
|
|
|
+ <view class="tips">
|
|
|
+ <text>*认证通过后,身份证将不可修改</text>
|
|
|
+ </view>
|
|
|
<view class="photo border">
|
|
|
<text>请拿出本人有效二代身份证件准备拍摄</text>
|
|
|
<view class="box">
|
|
|
@@ -158,6 +164,9 @@
|
|
|
src="../../static/icon/idcard1.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="tips">
|
|
|
+ <text>*认证通过后,身份证人像面将不可修改</text>
|
|
|
+ </view>
|
|
|
<view class="box" style="margin-top: 0;">
|
|
|
<view style="position: relative;" class="uploadImg" @click="chooseImage('idCardContrary')">
|
|
|
<view v-if="$isEmpty(form.idCardContrary)">
|
|
|
@@ -170,6 +179,9 @@
|
|
|
src="../../static/icon/idcard2.png"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="tips">
|
|
|
+ <text>*认证通过后,身份证国徽面将不可修改</text>
|
|
|
+ </view>
|
|
|
<view style="margin: 30rpx 0;">
|
|
|
<text>拍摄时确保身份证边框完整,字体清晰,亮度均匀</text>
|
|
|
</view>
|
|
|
@@ -183,9 +195,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-else class="center flex-direction margin-bottom-30" style="margin-top: 100rpx;">
|
|
|
- <view class="center margin-bottom-20 text-sm ">
|
|
|
+ <view v-if="!isEdit" class=" margin-bottom-20 text-sm center " >
|
|
|
<text style="color: #949494;">确认注册即代表已阅读并同意</text>
|
|
|
- <text style="color: #104DFF;" @click="protocol">《软件服务协议》</text>
|
|
|
+ <text style="color: #104DFF;" @click="protocol">《联兑通软件服务协议》</text>
|
|
|
</view>
|
|
|
<view @click="submit" class="btn cu-btn round" style="width:90%;height: 90rpx;font-size: 34rpx;">
|
|
|
提交资料
|
|
|
@@ -216,7 +228,7 @@
|
|
|
|
|
|
<u-popup v-model="checkboxShow" mode="bottom" height="50%" border-radius="12">
|
|
|
<view class="padding-30">
|
|
|
- <u-checkbox-group>
|
|
|
+ <u-checkbox-group active-color="#D18C42">
|
|
|
<u-checkbox @change="checkboxChange" v-model="item.checked" v-for="(item, index) in checkboxList"
|
|
|
:key="index" :name="index">
|
|
|
{{ item.name }}
|
|
|
@@ -246,6 +258,7 @@
|
|
|
},
|
|
|
labelWidth: 170,
|
|
|
form: {
|
|
|
+ id:'',
|
|
|
mallId: '',
|
|
|
mallAreaId: '',
|
|
|
name: '',
|
|
|
@@ -261,6 +274,7 @@
|
|
|
businessLicense: '',
|
|
|
shopPic: '',
|
|
|
slogan: '',
|
|
|
+ email:'',
|
|
|
|
|
|
province: '',
|
|
|
city: '',
|
|
|
@@ -271,6 +285,7 @@
|
|
|
|
|
|
auditStatus: 0,
|
|
|
labelIds: '',
|
|
|
+ labelNames:'',
|
|
|
cover: '',
|
|
|
},
|
|
|
regionShow: false,
|
|
|
@@ -289,7 +304,9 @@
|
|
|
//公司总类
|
|
|
checkboxShow: false,
|
|
|
checkboxList: [],
|
|
|
- step: 1
|
|
|
+ step: 3,
|
|
|
+ //编辑还是修改
|
|
|
+ isEdit:false
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -323,8 +340,14 @@
|
|
|
return
|
|
|
}
|
|
|
this.form.personTel = options.phone
|
|
|
+
|
|
|
+ if (options.edit) {
|
|
|
+ this.isEdit=true
|
|
|
+ this.fetchShopDetail()
|
|
|
+ }else{
|
|
|
+ this.getShopLabelAll()
|
|
|
+ }
|
|
|
this.fetchMallList()
|
|
|
- this.getShopLabelAll()
|
|
|
},
|
|
|
methods: {
|
|
|
async uploadShopPics(){
|
|
|
@@ -338,6 +361,16 @@
|
|
|
this.imgList.splice(index, 1)
|
|
|
})
|
|
|
},
|
|
|
+ async fetchShopDetail() {
|
|
|
+ let params = {
|
|
|
+ id: this.vuex_shopId
|
|
|
+ }
|
|
|
+ let res = await this.$api.shop.detail(params)
|
|
|
+ this.$util.objectCoppy(this.form,res.data)
|
|
|
+ this.mallLabel=res.data.mallName
|
|
|
+ this.imgList=this.form.shopPic.split(",")
|
|
|
+ this.getShopLabelByMallId()
|
|
|
+ },
|
|
|
prevStep() {
|
|
|
if (this.step > 1 && this.step < 4) {
|
|
|
this.step--
|
|
|
@@ -357,8 +390,6 @@
|
|
|
this.form.labelIds = this.checkboxList.filter(item => item.checked == true).map(item => item.id).join(",")
|
|
|
this.form.labelNames=this.checkboxList.filter(item=>item.checked == true).map(item => item.name).join(",")
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
if (this.$isEmpty(this.form.labelIds)) {
|
|
|
this.$u.toast('请选择公司总类')
|
|
|
return
|
|
|
@@ -391,11 +422,11 @@
|
|
|
})
|
|
|
},
|
|
|
getShopLabelAll() {
|
|
|
- let p = {
|
|
|
+ let params = {
|
|
|
current: 0,
|
|
|
- size: 50
|
|
|
+ size: 500
|
|
|
}
|
|
|
- this.$api.mall.getShopLabelAll(p).then(res => {
|
|
|
+ this.$api.mall.getShopLabelAll(params).then(res => {
|
|
|
res.data.records.forEach(item => {
|
|
|
item.checked = false
|
|
|
})
|
|
|
@@ -413,6 +444,10 @@
|
|
|
|
|
|
},
|
|
|
async chooseImage(name) {
|
|
|
+ if (this.isEdit && (name=='businessLicense' || name=='idCardFront'|| name=='idCardContrary')) {
|
|
|
+ this.$u.toast('不可修改')
|
|
|
+ return
|
|
|
+ }
|
|
|
let res = await this.$mpi.chooseImage()
|
|
|
this.$api.uploadFile(res[0]).then(res => {
|
|
|
this.form[name] = res.data.link
|
|
|
@@ -454,13 +489,20 @@
|
|
|
this.form.mallAreaId = e[0].value
|
|
|
},
|
|
|
//获取多选的标签
|
|
|
- getShopLabelByMallId() {
|
|
|
- this.$api.mall.getShopLabelByMallId(this.form.mallId).then(res => {
|
|
|
- res.data.forEach(item => {
|
|
|
+ async getShopLabelByMallId() {
|
|
|
+ let res=await this.$api.mall.getShopLabelByMallId(this.form.mallId)
|
|
|
+ res.data.forEach(item => {
|
|
|
+ if (this.$isEmpty(this.form.id)) {
|
|
|
item.checked = false
|
|
|
- })
|
|
|
- this.checkboxList = res.data
|
|
|
+ }else{
|
|
|
+ if (this.form.labelIds.indexOf(item.id)!=-1) {
|
|
|
+ item.checked=true
|
|
|
+ }else{
|
|
|
+ item.checked=false
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
+ this.checkboxList = res.data
|
|
|
},
|
|
|
//多选确认
|
|
|
checkboxChange(e) {
|
|
|
@@ -480,28 +522,33 @@
|
|
|
this.$u.toast('请上传身份证反面照')
|
|
|
return
|
|
|
}
|
|
|
- let content=''
|
|
|
- if (this.$isEmpty(this.form.mallId)) {
|
|
|
- content='提交成功,请耐心等待平台审核'
|
|
|
+
|
|
|
+
|
|
|
+ let content='提交成功,请耐心等待商场管理员审核'
|
|
|
+ let url='/pages/login/account-login'
|
|
|
+ if (this.isEdit) {
|
|
|
+ content='修改成功'
|
|
|
+ url='/pages/index/index'
|
|
|
}else{
|
|
|
- content='提交成功,请耐心等待商场管理员审核'
|
|
|
+ if (this.$isEmpty(this.form.mallId)) {
|
|
|
+ content='提交成功,请耐心等待平台审核'
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
this.$api.shop.submit(this.form).then(res => {
|
|
|
if (res.success == true) {
|
|
|
this.$dialog.showModal(content, false).then(() => {
|
|
|
uni.reLaunch({
|
|
|
- url: "../login/account-login"
|
|
|
+ url
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- protocol() {
|
|
|
+ protocol(){
|
|
|
uni.navigateTo({
|
|
|
- url: "../webView/webView?url=" + this.$global.protocol
|
|
|
+ url: "/pages/webView/webView?url=" + this.$global.shopRegister
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|