Browse Source

客服、联系专家按钮链接企微客服;优惠券领取问题

home_hotList
whyneedname 2 years ago
parent
commit
7a07aadf5e
  1. 12
      pages/expert/index.vue
  2. 6
      pages/shop/ShoppingCart/index.vue
  3. 16
      pages/user/User/index.vue
  4. 5
      pages/user/coupon/GetCoupon/index.vue

12
pages/expert/index.vue

@ -26,7 +26,7 @@
<view class="line"></view>
<view class="unit">{{item.expertUnit}}</view>
<view class="info">{{item.expertInfo}}</view>
<view class="btn" :style="index%2?'':'margin-left: 192rpx;'">向ta留言咨询</view>
<view class="btn" :style="index%2?'':'margin-left: 192rpx;'" @click="contact">向ta留言咨询</view>
</view>
</view>
</view>
@ -53,7 +53,15 @@
this.dataList = res.data;
uni.hideLoading();
})
}
},
//
contact() {
wx.openCustomerServiceChat({
extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc3952c32f3d9b68c3'},
corpId: 'ww8bcef4602d97a76a',
success(res) {}
})
},
}
}
</script>

6
pages/shop/ShoppingCart/index.vue

@ -107,7 +107,7 @@
<view class="item">
<image class="add-img" src="../../../static/images/add-btn.png" mode=""></image>
<image class="img" src="" mode=""></image>
<view class="goodsName more-t">LA PRAIRIE莱珀妮鱼子眼部紧颜液眼精华 20ml参天眼药水Beauteye
<view class="goodsName more-t">LA PRAIRIE莱珀妮鱼子眼部紧颜液眼精华 20ml参天眼药水Beauteye
玫瑰滴眼液 12ml</view>
<view class="price">¥104.00</view>
</view>
@ -118,7 +118,7 @@
</view>
<!--购物车暂无商品-->
<view class="noCart" v-if="cartList.length === 0">
<view class="noCart" v-if="cartList.length === 0 && invalidProductList.length === 0">
<!-- <view class="noCart" v-if="cartList.valid.length === 0 && cartList.invalid.length === 0"> -->
<view class="">购物车竟然是空的</view>
<view class="tip">去挑选满意的商品吧</view>
@ -440,7 +440,7 @@
delInvalidGoods: function () {
let that = this,
id = [],
list = that.cartList.invalid;
list = that.invalidProductList;
list.forEach(function (val) {
id.push(val.id);
});

16
pages/user/User/index.vue

@ -193,7 +193,8 @@
<view class="cell">{{ item.name }}</view>
<view class="enName">{{ item.enName }}</view>
</view>
<button class="contact" v-if="item.name == '联系客服'" open-type="contact" hover-class="none" bindcontact="handleContact"></button>
<button class="contact" v-if="item.name == '联系客服'" hover-class="none" @click="contact"></button>
<!-- <button class="contact" v-if="item.name == '联系客服'" open-type="contact" hover-class="none" bindcontact="handleContact"></button> -->
</view>
</template>
</view>
@ -677,10 +678,17 @@ export default {
})
},
//
handleContact (e) {
// console.log(e.detail.path)
// console.log(e.detail.query)
contact() {
wx.openCustomerServiceChat({
extInfo: {url: 'https://work.weixin.qq.com/kfid/kfc3952c32f3d9b68c3'},
corpId: 'ww8bcef4602d97a76a',
success(res) {}
})
},
// handleContact (e) {
// // console.log(e.detail.path)
// // console.log(e.detail.query)
// },
},
onHide() {
console.log('离开用户中心')

5
pages/user/coupon/GetCoupon/index.vue

@ -56,8 +56,9 @@
<view class="type">{{'满减券' || '折扣券'}}</view>
<view class="tip">{{ item.useMinPrice }}可用</view>
<!-- <view v-if="item._msg == '已过期'" class="btn btn-fail">不可用</view> -->
<view v-if="item.isUse === true" class="btn btn-white">去使用</view>
<view v-else class="btn">立刻领取</view>
<view v-if="item.isUse === true" class="btn btn-white">已领取</view>
<view v-else-if="item.isUse === 2" class="btn btn-fail">已领完</view>
<view v-else class="btn" @click="getCoupon(item.id, index)">立刻领取</view>
</view>
</view>
</view>

Loading…
Cancel
Save