6.9/优化

This commit is contained in:
THK3121 2023-06-09 17:04:25 +08:00
parent 015a3c6f33
commit 4ab82767f2
2 changed files with 81 additions and 59 deletions

View File

@ -144,42 +144,42 @@
<view class="head">
<view class="bgc_img" :style="{ backgroundImage: `url(${item.mer_banner})`}">
<view class="head_conent">
<view class="head_conent_l" @click="goStore(item.mer_id)">
<view class="conent_l_top">
<view class="avatar" :style="{backgroundImage:`url(${item.mer_avatar})`}">
</view>
<view class="top_text">
<p>{{item.mer_name}}</p>
<view class="text">
<image src="@/static/images/phone.png" mode=""></image>
<span>
{{item.service_phone}}
</span>
</view>
<view class="text">
<image src="@/static/images/clock.png" mode=""></image>
<span>
{{item.mer_take_time[0]}}-{{item.mer_take_time[1]}}
</span>
</view>
</view>
<view class="head_conent_l" @click="goStore(item.mer_id)">
<view class="conent_l_top">
<view class="avatar" :style="{backgroundImage:`url(${item.mer_avatar})`}">
</view>
<view class="top_text">
<p>{{item.mer_name}}</p>
<view class="text">
<image src="@/static/images/phone.png" mode=""></image>
<span>
{{item.service_phone}}
</span>
</view>
<view class="conent_l_bom">
<view class="text">
<image src="@/static/images/dingwei.png" mode=""></image>
<p>
{{item.mer_address}}
</p>
</view>
<view class="text">
<image src="@/static/images/shangpu.png"></image>
<p>
{{item.mer_info}}
</p>
</view>
<view class="text">
<image src="@/static/images/clock.png" mode=""></image>
<span>
{{item.mer_take_time[0]}}-{{item.mer_take_time[1]}}
</span>
</view>
</view>
</view>
</view>
<view class="conent_l_bom">
<view class="text">
<image src="@/static/images/dingwei.png" mode=""></image>
<p>
{{item.mer_address}}
</p>
</view>
<view class="text">
<image src="@/static/images/shangpu.png"></image>
<p>
{{item.mer_info}}
</p>
</view>
</view>
</view>
<view class="head_conent_r" @click="qctail(item)">
<image class="miniban" :src="item.mer_certificate[0]"></image>
</view>
@ -242,10 +242,10 @@
<!-- #ifndef H5 -->
<passwordPopup></passwordPopup>
<!-- #endif -->
<u-popup class="pop" :show="show" @close="close" mode="center" bgColor='transparent'>
<image :src="image"></image>
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
</u-popup>
<u-popup class="pop" :show="show" @close="close" mode="center" bgColor='transparent'>
<image :src="image"></image>
<image src="@/static/images/guanbi.png" class="guanbi" @click="close"></image>
</u-popup>
</view>
</template>
@ -419,8 +419,8 @@
merList: [], //
mTop: 0,
activeIndex: 0,
show:false, //
image:''//
show: false, //
image: '' //
};
},
onLoad: function(options) {
@ -877,23 +877,23 @@
uni.navigateTo({
url: `/pages/store/home/index?id=${id}`
})
}else if(this.storeList.type_id == 12){
} else if (this.storeList.type_id == 12) {
uni.navigateTo({
url: `/pages/nongKe/supply_chain/merchant?id=${id}`
url: `/pages/nongKe/supply_chain/merchant?id=${id}`
})
}
},
qctail(item){
qctail(item) {
console.log(item);
if(item.mer_certificate == '' ){
if (item.mer_certificate == '') {
return
}
this.show=true
this.image=item.mer_certificate[0]
this.show = true
this.image = item.mer_certificate[0]
console.log(this.show);
},
close(){
this.show=false
close() {
this.show = false
}
},
onPullDownRefresh() {
@ -1503,7 +1503,7 @@
.store-item {
margin: 20rpx auto;
// padding: 40rpx 20rpx;
background-color: #fff;
// background-color: #fff;
.head {
display: flex;
@ -1523,7 +1523,7 @@
.head_conent_l {
width: 70%;
.conent_l_top {
display: flex;
@ -1533,7 +1533,7 @@
width: 80px;
height: 180rpx;
background-size: cover;
margin: 10px 0 0 10px;
margin: 10px 0 10px 10px;
border-radius: 10px;
}
@ -1541,7 +1541,7 @@
margin: 10px 0 0 15px;
.text {
margin-top: 10rpx;
margin: 12.5rpx 0px;
display: flex;
span {
@ -1560,8 +1560,14 @@
}
p {
font-size: 24px;
font-size: 31rpx;
font-weight: 700;
width: 160px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-o-text-overflow: ellipsis;
margin-bottom: 30rpx;
}
@ -1570,13 +1576,14 @@
}
.conent_l_bom {
padding-top: 10px;
margin-top: 40rpx;
.text {
display: flex;
p {
width: 190px;
margin: 10rpx 0 10px 0;
margin: 10rpx 0 10Rpx 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -1595,6 +1602,7 @@
}
.head_conent_r {
height: 200px;
width: 30%;
.miniban {
@ -1719,12 +1727,14 @@
}
}
}
.guanbi{
width: 20px ;
.guanbi {
width: 20px;
height: 20px;
margin: 30px auto;
}
.pop{
.pop {
z-index: 1;
}
</style>

View File

@ -188,7 +188,8 @@ export default {
volume: '', //
extension_one: '', //
extension_two: '' //
}
},
a:{}
};
},
onLoad(opt) {
@ -207,6 +208,15 @@ export default {
}
},
deep: true
},
batchData:{
handler(val){
console.log(val);
// this.multiSpecificationList
// setStorage('attrValue', this.multiSpecificationList);
},
deep:true,
}
},
methods: {
@ -230,9 +240,11 @@ export default {
});
},
clk(index) {
setStorage('attrValue', this.multiSpecificationList);
let avatar = this.$refs.avatar;
this.index = index;
avatar.fChooseImg(1,{selWidth: '350upx', selHeight: '350upx', inner: true});
},
doUpload(rsp) {
console.log(rsp);