|
|
@ -10,6 +10,19 @@ |
|
|
<input type="text" v-model="formData.shopName" placeholder="输入店铺名称" /> |
|
|
<input type="text" v-model="formData.shopName" placeholder="输入店铺名称" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
<view class="value"> |
|
|
|
|
|
<view class="name"> |
|
|
|
|
|
学生商家 |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="text" style="text-align: right;"> |
|
|
|
|
|
<label class="radio" style="padding-right: 10px;" @tap="clickRadio(1)"> |
|
|
|
|
|
<radio :checked="formData.isStudent == 1" /><text>是</text> |
|
|
|
|
|
</label> |
|
|
|
|
|
<label class="radio" @tap="clickRadio(0)"> |
|
|
|
|
|
<radio :checked="formData.isStudent == 0" /><text>否</text> |
|
|
|
|
|
</label> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
<view class="value" style="height: 200rpx;"> |
|
|
<view class="value" style="height: 200rpx;"> |
|
|
<view class="name" style="flex: 1;line-height: 200rpx;"> |
|
|
<view class="name" style="flex: 1;line-height: 200rpx;"> |
|
|
门头图 |
|
|
门头图 |
|
|
@ -186,7 +199,7 @@ |
|
|
aliAccount:'', |
|
|
aliAccount:'', |
|
|
aliName:'', |
|
|
aliName:'', |
|
|
nickname:'', |
|
|
nickname:'', |
|
|
mobile:'', |
|
|
mobile:uni.getStorageSync('mobile')?uni.getStorageSync('mobile'):'', |
|
|
code:'', |
|
|
code:'', |
|
|
password:'123456', |
|
|
password:'123456', |
|
|
zhengzhao:'', |
|
|
zhengzhao:'', |
|
|
@ -196,7 +209,9 @@ |
|
|
shopLecard:'', |
|
|
shopLecard:'', |
|
|
qita:[], |
|
|
qita:[], |
|
|
shopImages:'', |
|
|
shopImages:'', |
|
|
id:'' |
|
|
id:'', |
|
|
|
|
|
isStudent:0, //1学生商家 0不是学生 |
|
|
|
|
|
unionid:'' |
|
|
}, |
|
|
}, |
|
|
choose:false, |
|
|
choose:false, |
|
|
isChoose:false, |
|
|
isChoose:false, |
|
|
@ -304,10 +319,11 @@ |
|
|
} else { |
|
|
} else { |
|
|
url = '/auth/shopRegister' |
|
|
url = '/auth/shopRegister' |
|
|
} |
|
|
} |
|
|
|
|
|
this.formData.unionid = uni.getStorageSync('unionid') |
|
|
this.formData.shopImages = this.formData.zhengzhao + '@@' + this.formData.fanzhao + '@@' + this.formData.yingyezhizhao + '@@' + JSON.stringify(this.formData.qita) |
|
|
this.formData.shopImages = this.formData.zhengzhao + '@@' + this.formData.fanzhao + '@@' + this.formData.yingyezhizhao + '@@' + JSON.stringify(this.formData.qita) |
|
|
that.tui.request(url, "post", this.formData, false, true).then((res1) => { |
|
|
that.tui.request(url, "post", this.formData, false, true).then((res1) => { |
|
|
if (res1.code == 200) { |
|
|
if (res1.code == 200) { |
|
|
|
|
|
uni.setStorageSync('schoolShopId',res1.result.shopId) |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title: '提示', |
|
|
title: '提示', |
|
|
content: '提交成功,请等待管理员审核', |
|
|
content: '提交成功,请等待管理员审核', |
|
|
@ -324,6 +340,9 @@ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
clickRadio(type){ |
|
|
|
|
|
this.formData.isStudent = type |
|
|
|
|
|
}, |
|
|
//获取区域 |
|
|
//获取区域 |
|
|
getRegionList() { |
|
|
getRegionList() { |
|
|
let that = this; |
|
|
let that = this; |
|
|
|