|
|
@@ -27,9 +27,9 @@
|
|
|
<image src="/static/icon/c3.png"></image>
|
|
|
<view class="cate-font">会员礼包</view>
|
|
|
</view>
|
|
|
- <view class="cate-item" @click="nav('/pages/category/articleList')">
|
|
|
+ <view class="cate-item" @click="nav('/pages/category/articleList')" v-if="iswz">
|
|
|
<image src="/static/icon/c5.png"></image>
|
|
|
- <view class="cate-font">产品百科</view>
|
|
|
+ <view class="cate-font">最新资讯</view>
|
|
|
</view>
|
|
|
<!-- <view class="cate-item" @click="showPopup()">
|
|
|
<image src="/static/icon/c7.png"></image>
|
|
|
@@ -118,16 +118,19 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<uni-popup ref="popup" type="center">
|
|
|
- <view class="popup">
|
|
|
- <view class="popup-dox">
|
|
|
- <image class="popup-logo" src="../../static/img/img009.png"></image>
|
|
|
- <view class="pop-title">已为您定制专属客服</view>
|
|
|
- <view>{{ weixin }}</view>
|
|
|
- <image class="popup-text" @longtap="bc_code" :src="erweima"></image>
|
|
|
- <view class="btn" @click="copy(weixin)">复制微信号</view>
|
|
|
- <view class="pop-tip flex">
|
|
|
- <view class="weixin"><image src="../../static/img/weixin.png" mode=""></image></view>
|
|
|
- <view>长按保存二维码</view>
|
|
|
+ <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:{{ weixin }}</view>
|
|
|
+ <view class="comfirm-box">
|
|
|
+ <view class="cancel" @click="cancel">取消</view>
|
|
|
+ <view class="comfirm" @click="comfirm(weixin)">复制微信</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -141,6 +144,8 @@ import { loadIndexs } from '@/api/index.js';
|
|
|
import { dhList } from '@/api/product.js';
|
|
|
import { mapState } from 'vuex';
|
|
|
import { saveUrl, interceptor } from '@/utils/loginUtils.js';
|
|
|
+import { article,articleList } from '@/api/user.js';
|
|
|
+import uniCopy from '@/components/js_sdk/xb-copy/uni-copy.js';
|
|
|
// import { service } from '@/api/user.js';
|
|
|
// #ifdef H5
|
|
|
import { weixindata, weixinlocation, shareLoad } from '@/utils/wxAuthorized';
|
|
|
@@ -154,8 +159,9 @@ export default {
|
|
|
dataList: [], //积分商品
|
|
|
vipList: [], //身份商品
|
|
|
erweima: '',
|
|
|
- weixin: '', //客服微信
|
|
|
- swiperLength: 1 //图片数量
|
|
|
+ weixin: 'lzmycd0408', //客服微信
|
|
|
+ swiperLength: 1,//图片数量
|
|
|
+ iswz: false,//是否显示文章
|
|
|
};
|
|
|
},
|
|
|
onLoad: function(option) {
|
|
|
@@ -218,6 +224,15 @@ export default {
|
|
|
// }
|
|
|
// });
|
|
|
// }
|
|
|
+ articleList({page:1,limit:10}).then(({data}) =>{
|
|
|
+ let list = data.filter(e => {
|
|
|
+ return (e.id !== 0)
|
|
|
+ })
|
|
|
+ if(list.length > 0) {
|
|
|
+ this.iswz = true
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
this.loadData();
|
|
|
},
|
|
|
//下拉刷新
|
|
|
@@ -328,8 +343,11 @@ export default {
|
|
|
// #endif
|
|
|
},
|
|
|
comfirm(text) {
|
|
|
- console.log(text);
|
|
|
- const result = this.uniCopy(text);
|
|
|
+ let obj = this;
|
|
|
+ let content = text; //需要复制的内容
|
|
|
+ console.log('复制的内容:', content);
|
|
|
+ // content = typeof content === 'string' ? content : content.toString(); // 复制内容,必须字符串,数字需要转换为字符串
|
|
|
+ const result = uniCopy(content);
|
|
|
if (result === false) {
|
|
|
uni.showToast({
|
|
|
title: '不支持'
|
|
|
@@ -340,7 +358,6 @@ export default {
|
|
|
icon: 'none'
|
|
|
});
|
|
|
}
|
|
|
- this.$refs.popup.close();
|
|
|
},
|
|
|
bc_code() {
|
|
|
let that = this;
|
|
|
@@ -683,57 +700,95 @@ page,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-.popup {
|
|
|
- width: 640rpx;
|
|
|
- background-color: #ffffff;
|
|
|
- border-radius: 15rpx;
|
|
|
- text-align: center;
|
|
|
- .popup-dox {
|
|
|
+.popup-box {
|
|
|
+ width: 522rpx;
|
|
|
+ height: 605rpx;
|
|
|
+ background-color: #ffffff;
|
|
|
+ border-radius: 20rpx;
|
|
|
position: relative;
|
|
|
- top: -60rpx;
|
|
|
- .popup-logo {
|
|
|
- width: 460rpx;
|
|
|
+
|
|
|
+ .img {
|
|
|
+ position: relative;
|
|
|
+ top: -56rpx;
|
|
|
+ left: 0;
|
|
|
+ width: 522rpx;
|
|
|
height: 132rpx;
|
|
|
- }
|
|
|
- .pop-title {
|
|
|
- font-size: 40rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #333333;
|
|
|
- padding: 25rpx 0rpx;
|
|
|
- margin-bottom: 50rpx;
|
|
|
- }
|
|
|
- .popup-text {
|
|
|
- width: 400rpx;
|
|
|
- height: 400rpx;
|
|
|
- margin-bottom: 50rpx;
|
|
|
- }
|
|
|
- .btn {
|
|
|
- width: 300rpx;
|
|
|
- height: 50rpx;
|
|
|
- line-height: 50rpx;
|
|
|
- background: #96e4f2;
|
|
|
- margin: 0 auto;
|
|
|
- color: #ffffff;
|
|
|
- border-radius: 25rpx;
|
|
|
- }
|
|
|
- .pop-tip {
|
|
|
- font-size: 30rpx;
|
|
|
- font-weight: 500;
|
|
|
- color: #333333;
|
|
|
+ display: flex;
|
|
|
justify-content: center;
|
|
|
- margin-top: 20rpx;
|
|
|
- .weixin {
|
|
|
- width: 48rpx;
|
|
|
- height: 40rpx;
|
|
|
- margin-right: 14rpx;
|
|
|
+
|
|
|
+ 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 {
|
|
|
- width: 48rpx;
|
|
|
- height: 40rpx;
|
|
|
+ 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;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
.close_icon {
|
|
|
width: 60rpx;
|
|
|
height: 60rpx;
|