Fix:3010 【商城小程序】申请店铺入驻,填写资料返回或点击撤销店铺申请,再次进入,填写的资料未保留(修复为资料仍然保留)
This commit is contained in:
@@ -698,6 +698,19 @@ export default {
|
||||
onLoad(options) {
|
||||
this.partnerId = options.partnerId || ''
|
||||
const type = options.type
|
||||
const local = uni.getStorageSync(type)
|
||||
this.formSupplier = local || {
|
||||
name: '',
|
||||
avatar: '',
|
||||
contact: '',
|
||||
phone: '',
|
||||
captcha: '',
|
||||
qualification: '',
|
||||
subType: '',
|
||||
area: '',
|
||||
address: '',
|
||||
position: ''
|
||||
}
|
||||
this.formSupplier.subType = type
|
||||
if (type === 'goods_supplier') {
|
||||
this.infoTitle = '特产'
|
||||
@@ -711,6 +724,9 @@ export default {
|
||||
})
|
||||
this.init()
|
||||
},
|
||||
onUnload() {
|
||||
uni.setStorageSync(this.formSupplier.subType, this.formSupplier)
|
||||
},
|
||||
onReady() {
|
||||
this.$refs.shopForm.setRules(this.rules)
|
||||
this.$refs.supplierForm.setRules(this.rulesSupplier)
|
||||
|
||||
Reference in New Issue
Block a user