diff --git a/src/project/tianfuxing/AppHome/AddMerchants.vue b/src/project/tianfuxing/AppHome/AddMerchants.vue index 7daf55d..cf643fd 100644 --- a/src/project/tianfuxing/AppHome/AddMerchants.vue +++ b/src/project/tianfuxing/AppHome/AddMerchants.vue @@ -5,7 +5,7 @@

商家名称

- +
@@ -20,13 +20,13 @@

门店照片

-
-
- 添加照片 -
- + +
+
+
+ 添加照片
@@ -81,10 +81,6 @@ ...mapActions(['autoLogin', 'getUserInfo']), chooseLocation () { - if (this.isAdd) { - return false - } - uni.chooseLocation({ success: res => { this.address = res.name @@ -128,6 +124,10 @@ }) }, + remove (index) { + this.logoFiles.splice(index, 1) + }, + uploadFile (img) { uni.uploadFile({ url: this.$instance.defaults.baseURL + (process.env.NODE_ENV == 'production' ? '/api' : '') + '/file/add', @@ -310,7 +310,7 @@ justify-content: center; width: 200px; height: 200px; - margin: 0 10px 10px 0; + margin: 0 0px 10px 0; background: #EFF5FA; border-radius: 8px;