|
|
@@ -106,7 +106,7 @@
|
|
|
<view class="">收货地址</view>
|
|
|
<image src="../../static/icon/goto.png" mode="widthFix" class="right-img"></image>
|
|
|
</view>
|
|
|
- <view class="btm-box flex">
|
|
|
+ <view class="btm-box flex" @click="kfOpen">
|
|
|
<image src="../../static/icon/kf.png" mode="widthFix" class="left-img"></image>
|
|
|
<view class="">客服</view>
|
|
|
<image src="../../static/icon/goto.png" mode="widthFix" class="right-img"></image>
|
|
|
@@ -117,6 +117,25 @@
|
|
|
<image src="../../static/icon/goto.png" mode="widthFix" class="right-img"></image>
|
|
|
</view>
|
|
|
<view class="btm" style="height: 44px;"></view>
|
|
|
+ <!-- 客服 -->
|
|
|
+ <uni-popup ref="popupkf" type="center">
|
|
|
+ <view class="popup-box">
|
|
|
+ <view class="img">
|
|
|
+ <image src="../../static/img/img009.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="mian">
|
|
|
+ <view class="delivery">
|
|
|
+ <view class="title">已经为您定制专属客服</view>
|
|
|
+ <image src="../../static/img/img010.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="nocancel">客服VX:{{ text }}</view>
|
|
|
+ <view class="comfirm-box">
|
|
|
+ <view class="cancel" @click="kfClose()">取消</view>
|
|
|
+ <view class="comfirm" @click="comfirm(text)">复制微信</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
<u-tabbar activeColor="#EE0979" v-model="current" :list="tabbar" :mid-button="true"></u-tabbar>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -127,6 +146,7 @@ import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
|
|
|
import { orderData, userinfo } from '@/api/user.js';
|
|
|
import { saveUrl, interceptor } from '@/utils/loginUtils.js';
|
|
|
import { tabbar } from '@/utils/tabbar.js';
|
|
|
+import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
|
|
|
let startY = 0,
|
|
|
moveY = 0,
|
|
|
pageAtTop = true;
|
|
|
@@ -137,6 +157,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ text: '',
|
|
|
tabbar: tabbar,
|
|
|
current: 4,
|
|
|
coverTransform: 'translateY(0px)',
|
|
|
@@ -283,7 +304,28 @@ export default {
|
|
|
this.moving = false;
|
|
|
this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
|
|
|
this.coverTransform = 'translateY(0px)';
|
|
|
- }
|
|
|
+ },
|
|
|
+ kfOpen() {
|
|
|
+ this.$refs.popupkf.open()
|
|
|
+ },
|
|
|
+ kfClose() {
|
|
|
+ this.$refs.popupkf.close()
|
|
|
+ },
|
|
|
+ comfirm(text) {
|
|
|
+ console.log(text);
|
|
|
+ const result = uniCopy(text);
|
|
|
+ if (result === false) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '不支持'
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ uni.showToast({
|
|
|
+ title: '复制成功',
|
|
|
+ icon: 'none'
|
|
|
+ });
|
|
|
+ }
|
|
|
+ this.$refs.popup.close();
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
@@ -666,4 +708,93 @@ page {
|
|
|
padding-left: 12rpx;
|
|
|
}
|
|
|
}
|
|
|
+.popup-box {
|
|
|
+ width: 522rpx;
|
|
|
+ height: 605rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .img {
|
|
|
+ position: relative;
|
|
|
+ top: -56rpx;
|
|
|
+ left: 0;
|
|
|
+ width: 522rpx;
|
|
|
+ height: 132rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ image {
|
|
|
+ border-radius: 20rpx 20rpx 0 0;
|
|
|
+ width: 450rpx;
|
|
|
+ height: 132rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .mian {
|
|
|
+ margin-top: -44rpx;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ // padding: 32rpx 32rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 0 0 20rpx 20rpx;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ .delivery {
|
|
|
+ font-size: 40rpx;
|
|
|
+ color: #333333;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex-direction: column;
|
|
|
+
|
|
|
+ .title {}
|
|
|
+
|
|
|
+ image {
|
|
|
+ margin-top: 48rpx;
|
|
|
+ width: 172rpx;
|
|
|
+ height: 160rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .nocancel {
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #333333;
|
|
|
+ margin-top: 14rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .comfirm-box {
|
|
|
+ margin-top: 52rpx;
|
|
|
+ display: flex;
|
|
|
+ // margin-bottom: 32rpx;
|
|
|
+
|
|
|
+ // justify-content: space-around;
|
|
|
+ .cancel {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 197rpx;
|
|
|
+ height: 74rpx;
|
|
|
+ border: 1px solid #dcc786;
|
|
|
+ border-radius: 38rpx;
|
|
|
+
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #605128;
|
|
|
+ }
|
|
|
+
|
|
|
+ .comfirm {
|
|
|
+ margin-left: 32rpx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 197rpx;
|
|
|
+ height: 74rpx;
|
|
|
+ background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
|
|
|
+ border-radius: 38px;
|
|
|
+ font-size: 32rpx;
|
|
|
+ color: #605128;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|