|
|
|
@ -290,24 +290,24 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="goodsSend"> |
|
|
|
|
<view class="sendLeft"> |
|
|
|
|
<view class="left_1"> |
|
|
|
|
{{item.goods_source}} |
|
|
|
|
</view> |
|
|
|
|
<view class="left_2"> |
|
|
|
|
{{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 class="sendLeft"> |
|
|
|
|
<view class="left_1"> |
|
|
|
|
{{item.goods_source}} |
|
|
|
|
</view> |
|
|
|
|
<view class="left_2"> |
|
|
|
|
{{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> |
|
|
|
|
<!-- </template> --> |
|
|
|
|
<!-- <template v-slot:right="{rightList}"> |
|
|
|
@ -673,35 +673,35 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 在线客服 |
|
|
|
|
handleContact() { |
|
|
|
|
// 商城客服设置 |
|
|
|
|
const setting = this.setting |
|
|
|
|
// 企业微信客服 |
|
|
|
|
if (setting.provider == 'wxqykf') { |
|
|
|
|
if (!setting.config.wxqykf.url || !setting.config.wxqykf.corpId) { |
|
|
|
|
this.$toast('客服链接和企业ID不能为空') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
// #ifdef H5 |
|
|
|
|
window.open(setting.config.wxqykf.url) |
|
|
|
|
// #endif |
|
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
|
wx.openCustomerServiceChat({ |
|
|
|
|
extInfo: { |
|
|
|
|
url: setting.config.wxqykf.url |
|
|
|
|
}, |
|
|
|
|
corpId: setting.config.wxqykf.corpId, |
|
|
|
|
success(res) {}, |
|
|
|
|
fail(res) { |
|
|
|
|
console.log(res, '企业微信') |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// #endif |
|
|
|
|
}else{ |
|
|
|
|
this.$toast('暂不支持企业微信客服') |
|
|
|
|
} |
|
|
|
|
// 在线客服 |
|
|
|
|
handleContact() { |
|
|
|
|
// 商城客服设置 |
|
|
|
|
const setting = this.setting |
|
|
|
|
// 企业微信客服 |
|
|
|
|
if (setting.provider == 'wxqykf') { |
|
|
|
|
if (!setting.config.wxqykf.url || !setting.config.wxqykf.corpId) { |
|
|
|
|
this.$toast('客服链接和企业ID不能为空') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
// #ifdef H5 |
|
|
|
|
window.open(setting.config.wxqykf.url) |
|
|
|
|
// #endif |
|
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
|
wx.openCustomerServiceChat({ |
|
|
|
|
extInfo: { |
|
|
|
|
url: setting.config.wxqykf.url |
|
|
|
|
}, |
|
|
|
|
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; |
|
|
|
|
|
|
|
|
|
.pic { |
|
|
|
|
position: relative; |
|
|
|
|
width: 100%; |
|
|
|
|
align-items: center; |
|
|
|
|
display: flex; |
|
|
|
|
height: 256rpx; |
|
|
|
|
overflow: hidden; |
|
|
|
|
width: 100%; |
|
|
|
|
height: 0; |
|
|
|
|
padding-bottom: 100%; |
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
|
image { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
|
|
|
|
|
object-fit: cover; |
|
|
|
|
position: absolute; |
|
|
|
|
left: 0; |
|
|
|
|
top: 0 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|