diff --git a/bundle_b/pages/local_settled/index.vue b/bundle_b/pages/local_settled/index.vue
index d7ff891..b19eea7 100644
--- a/bundle_b/pages/local_settled/index.vue
+++ b/bundle_b/pages/local_settled/index.vue
@@ -46,6 +46,21 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
+ uni.showLoading({
+ title: '上传中...'
+ })
+ const {success,data} = await ossUpload(file.tempFilePaths[0], file.tempFiles[0].path, 'local_life_shop_logo/')
+ if(success) {
+ this.form.shopLogo = data
+ uni.hideLoading()
+ } else {
+ uni.showToast({icon:'none', title: '上传失败'})
+ uni.hideLoading()
+ }
+ }
+ })
+ },
+
// 选择账户类型
choseType(e) {
this.showLargeNumber = false
@@ -535,7 +571,7 @@
// 提交表单
async onSubmit() {
const {form, isAgree, fileList} = this
- const {bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form
+ const {shopName, shopLogo, bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address} = this.form
const latitude = this.cityInfo.gcj02_lat
const longitude = this.cityInfo.gcj02_lng
@@ -555,6 +591,14 @@
// }
// })
+ if (!shopName) return this.$toast({
+ title: '请输入商家名称'
+ })
+
+ if (!shopLogo) return this.$toast({
+ title: '请上传商家图标'
+ })
+
if (bankType == 1 && !largeNumber) return this.$toast({
title: '请输入大额卡号'
})
@@ -603,7 +647,7 @@
data,
code,
msg
- } = await addLocalStore({bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address, lstore_id, latitude, longitude})
+ } = await addLocalStore({shopName, shopLogo, bankType, largeNumber, bankName, bankCard, businessLicense, crftNo1, idCard, name, empowerPhone, address, lstore_id, latitude, longitude})
if(code == 1) {
this.$toast({
title: msg