pifa
fanfan 2 months ago
parent 05e2341720
commit d9d1caf3d4
  1. 11
      pages/cart/index.vue
  2. 101
      pages/index/index.vue
  3. 10
      pages/user/index.vue

@ -541,16 +541,23 @@
margin: 0rpx 0 20rpx 0; margin: 0rpx 0 20rpx 0;
.pic { .pic {
position: relative;
width: 100%; width: 100%;
align-items: center; align-items: center;
display: flex; display: flex;
height: 256rpx; overflow: hidden;
width: 100%;
height: 0;
padding-bottom: 100%;
overflow: hidden; overflow: hidden;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover;
position: absolute;
left: 0;
top: 0
} }
} }

@ -290,24 +290,24 @@
</view> </view>
</view> --> </view> -->
<view class="goodsSend"> <view class="goodsSend">
<view class="sendLeft"> <view class="sendLeft">
<view class="left_1"> <view class="left_1">
{{item.goods_source}} {{item.goods_source}}
</view> </view>
<view class="left_2"> <view class="left_2">
{{Number(item.discount)}} {{Number(item.discount)}}
</view>
</view>
<view class="sendRight">
<text v-if="item.delivery_time==0">24小时内发货</text>
<text v-if="item.delivery_time==1">48小时内发货</text>
<text v-if="item.delivery_time==2">72小时内发货</text>
<text v-if="item.delivery_time==3">7天内发货</text>
<text v-if="item.delivery_time==4">15天内发货</text>
<text v-if="item.delivery_time==5">30天内发货</text>
<text v-if="item.delivery_time==6">45天内发货</text>
</view>
</view> </view>
</view>
<view class="sendRight">
<text v-if="item.delivery_time==0">24小时内发货</text>
<text v-if="item.delivery_time==1">48小时内发货</text>
<text v-if="item.delivery_time==2">72小时内发货</text>
<text v-if="item.delivery_time==3">7天内发货</text>
<text v-if="item.delivery_time==4">15天内发货</text>
<text v-if="item.delivery_time==5">30天内发货</text>
<text v-if="item.delivery_time==6">45天内发货</text>
</view>
</view>
</view> </view>
<!-- </template> --> <!-- </template> -->
<!-- <template v-slot:right="{rightList}"> <!-- <template v-slot:right="{rightList}">
@ -673,35 +673,35 @@
} }
}, },
methods: { methods: {
// 线 // 线
handleContact() { handleContact() {
// //
const setting = this.setting const setting = this.setting
// //
if (setting.provider == 'wxqykf') { if (setting.provider == 'wxqykf') {
if (!setting.config.wxqykf.url || !setting.config.wxqykf.corpId) { if (!setting.config.wxqykf.url || !setting.config.wxqykf.corpId) {
this.$toast('客服链接和企业ID不能为空') this.$toast('客服链接和企业ID不能为空')
return return
} }
// #ifdef H5 // #ifdef H5
window.open(setting.config.wxqykf.url) window.open(setting.config.wxqykf.url)
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
wx.openCustomerServiceChat({ wx.openCustomerServiceChat({
extInfo: { extInfo: {
url: setting.config.wxqykf.url url: setting.config.wxqykf.url
},
corpId: setting.config.wxqykf.corpId,
success(res) {},
fail(res) {
console.log(res, '企业微信')
}
})
// #endif
}else{
this.$toast('暂不支持企业微信客服')
}
}, },
corpId: setting.config.wxqykf.corpId,
success(res) {},
fail(res) {
console.log(res, '企业微信')
}
})
// #endif
} else {
this.$toast('暂不支持企业微信客服')
}
},
/** /**
* 获取小程序配置 * 获取小程序配置
*/ */
@ -2048,16 +2048,23 @@
margin: 0rpx 0 20rpx 0; margin: 0rpx 0 20rpx 0;
.pic { .pic {
position: relative;
width: 100%; width: 100%;
align-items: center; align-items: center;
display: flex; display: flex;
height: 256rpx; overflow: hidden;
width: 100%;
height: 0;
padding-bottom: 100%;
overflow: hidden; overflow: hidden;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover;
position: absolute;
left: 0;
top: 0
} }
} }

@ -1418,15 +1418,23 @@
margin: 0 0 20rpx 0; margin: 0 0 20rpx 0;
.pic { .pic {
position: relative;
width: 100%; width: 100%;
align-items: center; align-items: center;
display: flex; display: flex;
height: 256rpx; overflow: hidden;
width: 100%;
height: 0;
padding-bottom: 100%;
overflow: hidden; overflow: hidden;
image { image {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover;
position: absolute;
left: 0;
top: 0
} }
} }

Loading…
Cancel
Save