|
@@ -84,7 +84,7 @@
|
|
</u-form>
|
|
</u-form>
|
|
</view>
|
|
</view>
|
|
<view class="form-btn-con flex justify_center" v-if="!isRead">
|
|
<view class="form-btn-con flex justify_center" v-if="!isRead">
|
|
- <u-button class="form-btn" shape="circle" type="info" :custom-style="{ background: '#066cff', color: '#fff',width:'350rpx' }" @click="formSubmit">提交审核</u-button>
|
|
|
|
|
|
+ <u-button class="form-btn" shape="circle" type="info" :loading="loading" :custom-style="{ background: '#066cff', color: '#fff',width:'350rpx' }" @click="formSubmit">提交审核</u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -103,7 +103,7 @@
|
|
},
|
|
},
|
|
data(){
|
|
data(){
|
|
return{
|
|
return{
|
|
- theme: '',
|
|
|
|
|
|
+ loading: false,
|
|
form: {
|
|
form: {
|
|
storeImage:'',
|
|
storeImage:'',
|
|
licenseImage:'',
|
|
licenseImage:'',
|
|
@@ -164,15 +164,13 @@
|
|
storePhotoList: [],
|
|
storePhotoList: [],
|
|
yyzzPhotoList: [],
|
|
yyzzPhotoList: [],
|
|
storeApply: null,
|
|
storeApply: null,
|
|
- isRead: false,
|
|
|
|
|
|
+ isRead: true,
|
|
tipTit: ''
|
|
tipTit: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
onReady() {
|
|
onReady() {
|
|
this.$refs.uForm.setRules(this.rules);
|
|
this.$refs.uForm.setRules(this.rules);
|
|
- },
|
|
|
|
- onLoad() {
|
|
|
|
// 判断是否审核中
|
|
// 判断是否审核中
|
|
this.storeApply = this.$store.state.vuex_storeAuthInfo
|
|
this.storeApply = this.$store.state.vuex_storeAuthInfo
|
|
if(this.storeApply){
|
|
if(this.storeApply){
|
|
@@ -188,6 +186,7 @@
|
|
}else{
|
|
}else{
|
|
this.form.contactPhone = this.$store.state.vuex_userInfo.mobile
|
|
this.form.contactPhone = this.$store.state.vuex_userInfo.mobile
|
|
this.tipTit = ''
|
|
this.tipTit = ''
|
|
|
|
+ this.isRead = false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -224,7 +223,7 @@
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
this.form.inviteName = res.data&&res.data.dealerName
|
|
this.form.inviteName = res.data&&res.data.dealerName
|
|
}else{
|
|
}else{
|
|
- this.form.inviteCode = ''
|
|
|
|
|
|
+ // this.form.inviteCode = ''
|
|
}
|
|
}
|
|
uni.showToast({icon: 'none',title: res.message,duration:5000})
|
|
uni.showToast({icon: 'none',title: res.message,duration:5000})
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
@@ -242,6 +241,7 @@
|
|
});
|
|
});
|
|
},
|
|
},
|
|
submitData(){
|
|
submitData(){
|
|
|
|
+ const _this = this
|
|
let obj = this.form
|
|
let obj = this.form
|
|
obj.addrProvince = this.areaIdArr[0] // 省id
|
|
obj.addrProvince = this.areaIdArr[0] // 省id
|
|
obj.addrCity = this.areaIdArr[1] // 市id
|
|
obj.addrCity = this.areaIdArr[1] // 市id
|
|
@@ -249,14 +249,20 @@
|
|
obj.addrProvinceName = this.labelArr[0] // 省
|
|
obj.addrProvinceName = this.labelArr[0] // 省
|
|
obj.addrCityName = this.labelArr[1] // 市
|
|
obj.addrCityName = this.labelArr[1] // 市
|
|
obj.addrDistrictName = this.labelArr[2] // 区
|
|
obj.addrDistrictName = this.labelArr[2] // 区
|
|
|
|
+ _this.loading = true
|
|
// 申请试用
|
|
// 申请试用
|
|
xprhStoreApply(obj).then(res => {
|
|
xprhStoreApply(obj).then(res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
|
|
+ uni.showToast({icon: 'none',title: res.message,duration:3000})
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
- uni.navigateBack()
|
|
|
|
uni.$emit("updateAuthState")
|
|
uni.$emit("updateAuthState")
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ uni.navigateBack()
|
|
|
|
+ _this.loading = false
|
|
|
|
+ },3000)
|
|
|
|
+ }else{
|
|
|
|
+ _this.loading = false
|
|
}
|
|
}
|
|
- uni.showToast({icon: 'none',title: res.message})
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 选择省区市
|
|
// 选择省区市
|