|
@@ -26,8 +26,7 @@
|
|
|
联系电话
|
|
|
</view>
|
|
|
<view class="right">
|
|
|
- <input type="text" v-model="dto.phone" border="none" placeholder="请输入手机号"
|
|
|
- style="height: 48rpx;" />
|
|
|
+ <input type="text" v-model="dto.phone" border="none" placeholder="请输入手机号" style="height: 48rpx;" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="one-mobile">
|
|
@@ -84,9 +83,9 @@
|
|
|
shopSign: '', // 头像
|
|
|
idCode: '', // 证件号
|
|
|
id: '',
|
|
|
- areaDetail:''
|
|
|
+ areaDetail: ''
|
|
|
},
|
|
|
- shopImgs:[],
|
|
|
+ shopImgs: [],
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
@@ -94,18 +93,18 @@
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- getInfo(){
|
|
|
- this.$api.get('/merchant/merchantFisherman/home/'+uni.getStorageSync('merchantId'),{
|
|
|
-
|
|
|
- }).then(res=>{
|
|
|
- console.log(res)
|
|
|
- if(res.data.code==0){
|
|
|
- this.dto=res.data.data;
|
|
|
- if(!res.data.data.shopSign){
|
|
|
- this.dto.shopSign='https://i.ringzle.com/file/20240225/26feb8cc8f744123a980211ebdfb8d40.png';
|
|
|
+ getInfo() {
|
|
|
+ this.$api.get('/merchant/merchantFisherman/home/' + uni.getStorageSync('merchantId'), {
|
|
|
+
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 0) {
|
|
|
+ this.dto = res.data.data;
|
|
|
+ if (!res.data.data.shopSign) {
|
|
|
+ this.dto.shopSign =
|
|
|
+ 'https://i.ringzle.com/file/20240225/26feb8cc8f744123a980211ebdfb8d40.png';
|
|
|
}
|
|
|
- this.shopImgs=res.data.data.split(',');
|
|
|
-
|
|
|
+ this.shopImgs = res.data.data.split(',');
|
|
|
+
|
|
|
console.log(this.shopImgs)
|
|
|
}
|
|
|
})
|
|
@@ -125,7 +124,8 @@
|
|
|
},
|
|
|
success: res => {
|
|
|
let data = JSON.parse(res.data);
|
|
|
- this.dto.shopSign = data.data.url
|
|
|
+ this.dto.shopSign = data.data.url;
|
|
|
+ this.save();
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -135,11 +135,12 @@
|
|
|
});
|
|
|
|
|
|
},
|
|
|
+ save() {
|
|
|
+ this.$api.put('/merchant/merchantFisherman/home', this.dto).then(res => {
|
|
|
|
|
|
-
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -150,11 +151,13 @@
|
|
|
// padding-top: 150rpx;
|
|
|
|
|
|
}
|
|
|
- .pics{
|
|
|
+
|
|
|
+ .pics {
|
|
|
display: grid;
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
- gap:12rpx
|
|
|
+ gap: 12rpx
|
|
|
}
|
|
|
+
|
|
|
.from-content {
|
|
|
.title {
|
|
|
margin: 40rpx 0 36rpx;
|
|
@@ -173,6 +176,7 @@
|
|
|
.image {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
+
|
|
|
image {
|
|
|
width: 124rpx;
|
|
|
border-radius: 100rpx;
|