Commit 928d2dffd32d25d418b115ea5806d0e7a5a73f35
1 parent
d896e39f
1.分享的会员的user_id,分销的上下级关系的bug优化。 打开相册,分享,预览图片,照相扫描,聊天,打电话,获取微信地址的时候。
2.自定义模板时候,首页分享空白页的OA单优化 3. 测肤的分享和生成海报的bug优化
Showing
116 changed files
with
335 additions
and
590 deletions
components/diy_scan/diy_scan.js
@@ -26,6 +26,7 @@ Component({ | @@ -26,6 +26,7 @@ Component({ | ||
26 | //-- 扫描成功之后 -- | 26 | //-- 扫描成功之后 -- |
27 | getScancode:function(){ | 27 | getScancode:function(){ |
28 | var _this = this; | 28 | var _this = this; |
29 | + getApp().globalData.no_clear=1; | ||
29 | //-- 允许从相机和相册扫码 -- | 30 | //-- 允许从相机和相册扫码 -- |
30 | wx.scanCode({ | 31 | wx.scanCode({ |
31 | success: (res) => { | 32 | success: (res) => { |
components/diy_service/diy_service.js
@@ -38,35 +38,16 @@ Component({ | @@ -38,35 +38,16 @@ Component({ | ||
38 | 38 | ||
39 | //---------联系客服------------ | 39 | //---------联系客服------------ |
40 | contactService: function() { | 40 | contactService: function() { |
41 | - getApp().getConfig(function(t) { | ||
42 | - if (t.store_tel == undefined) { | ||
43 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
44 | - isShowLoading: 1, | ||
45 | - data: {}, | ||
46 | - success: function(rs) { | ||
47 | - getApp().globalData.config = rs.data.data; | ||
48 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
49 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
50 | - return false; | ||
51 | - } | ||
52 | - wx.makePhoneCall({ phoneNumber: rs.data.data.store_tel, }) | ||
53 | - } | ||
54 | - }) | ||
55 | - } else { | ||
56 | - wx.makePhoneCall({ phoneNumber: t.store_tel, }) | ||
57 | - } | ||
58 | - }); | ||
59 | - }, | 41 | + getApp().con_Service(); |
42 | + }, | ||
60 | 43 | ||
61 | //---------联系微信客服------------ | 44 | //---------联系微信客服------------ |
62 | con_weixin:function () { | 45 | con_weixin:function () { |
63 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
64 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
65 | - wx.openCustomerServiceChat({ | ||
66 | - extInfo: {url: url}, | ||
67 | - corpId: id, | ||
68 | - success(res) {} | ||
69 | - }) | 46 | + getApp().con_wx(this); |
47 | + }, | ||
48 | + | ||
49 | + click_contact:function () { | ||
50 | + getApp().globalData.no_clear=1; | ||
70 | } | 51 | } |
71 | } | 52 | } |
72 | }) | 53 | }) |
components/diy_service/diy_service.wxml
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </view> | 8 | </view> |
9 | </view> | 9 | </view> |
10 | 10 | ||
11 | - <button wx:else class="custom-service" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 11 | + <button wx:else class="custom-service" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
12 | <view style="text-align: center;"> | 12 | <view style="text-align: center;"> |
13 | <image class="cs-img" src="{{object.img}}"></image> | 13 | <image class="cs-img" src="{{object.img}}"></image> |
14 | <view class="s_title" wx:if="{{object.title!=''}}">{{object.title}}</view> | 14 | <view class="s_title" wx:if="{{object.title!=''}}">{{object.title}}</view> |
components/nav_b/nav_b.wxss
packageA/pages/activity_share/activity_share.js
@@ -141,9 +141,10 @@ Page({ | @@ -141,9 +141,10 @@ Page({ | ||
141 | /** | 141 | /** |
142 | * 用户点击右上角分享 | 142 | * 用户点击右上角分享 |
143 | */ | 143 | */ |
144 | - onShareAppMessage: function () { | ||
145 | - console.log('abc'); | ||
146 | - var th = this; | 144 | + onShareAppMessage: function () { |
145 | + getApp().globalData.no_clear=1; | ||
146 | + | ||
147 | + var th = this; | ||
147 | //礼包的转发 | 148 | //礼包的转发 |
148 | if(th.data.currentIndex==3) { | 149 | if(th.data.currentIndex==3) { |
149 | var lbid=th.data.hui_active.lbId; | 150 | var lbid=th.data.hui_active.lbId; |
@@ -1054,10 +1055,8 @@ Page({ | @@ -1054,10 +1055,8 @@ Page({ | ||
1054 | }) | 1055 | }) |
1055 | return false; | 1056 | return false; |
1056 | } | 1057 | } |
1057 | - wx.previewImage({ | ||
1058 | - //将图片预览出来 | ||
1059 | - urls: [that.data.shareImgPath] | ||
1060 | - }); | 1058 | + getApp().pre_img(that.data.shareImgPath); |
1059 | + | ||
1061 | //-- 将商品清空 -- | 1060 | //-- 将商品清空 -- |
1062 | th.setData({share_good:null}); | 1061 | th.setData({share_good:null}); |
1063 | 1062 |
packageA/pages/addCustomer/addCustomer.js
@@ -60,7 +60,7 @@ Page({ | @@ -60,7 +60,7 @@ Page({ | ||
60 | /** | 60 | /** |
61 | * 用户点击右上角分享 | 61 | * 用户点击右上角分享 |
62 | */ | 62 | */ |
63 | - onShareAppMessage: function () { | ||
64 | - | ||
65 | - } | 63 | + onShareAppMessage: function () { |
64 | + getApp().globalData.no_clear=1 | ||
65 | + } | ||
66 | }) | 66 | }) |
67 | \ No newline at end of file | 67 | \ No newline at end of file |
packageA/pages/cardDetails/cardDetails.js
@@ -92,7 +92,7 @@ Page({ | @@ -92,7 +92,7 @@ Page({ | ||
92 | /** | 92 | /** |
93 | * 用户点击右上角分享 | 93 | * 用户点击右上角分享 |
94 | */ | 94 | */ |
95 | - onShareAppMessage: function () { | 95 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
96 | 96 | ||
97 | } | 97 | } |
98 | }) | 98 | }) |
99 | \ No newline at end of file | 99 | \ No newline at end of file |
packageA/pages/cardList/cardList.js
packageA/pages/chongzhi/chongzhi.js
packageA/pages/chongzhiDetails/chongzhiDetails.js
packageA/pages/choujiang/choujiang.js
@@ -60,7 +60,7 @@ Page({ | @@ -60,7 +60,7 @@ Page({ | ||
60 | /** | 60 | /** |
61 | * 用户点击右上角分享 | 61 | * 用户点击右上角分享 |
62 | */ | 62 | */ |
63 | - onShareAppMessage: function () { | 63 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
64 | 64 | ||
65 | } | 65 | } |
66 | }) | 66 | }) |
67 | \ No newline at end of file | 67 | \ No newline at end of file |
packageA/pages/details_serviceCard/details_serviceCard.js
@@ -112,7 +112,7 @@ Page({ | @@ -112,7 +112,7 @@ Page({ | ||
112 | * 用户点击右上角分享 | 112 | * 用户点击右上角分享 |
113 | */ | 113 | */ |
114 | onShareAppMessage: function() { | 114 | onShareAppMessage: function() { |
115 | - | 115 | + getApp().globalData.no_clear=1 |
116 | }, | 116 | }, |
117 | 117 | ||
118 | 118 | ||
@@ -163,6 +163,7 @@ Page({ | @@ -163,6 +163,7 @@ Page({ | ||
163 | 163 | ||
164 | // 联系微信客服 | 164 | // 联系微信客服 |
165 | contact_wx() { | 165 | contact_wx() { |
166 | + getApp().globalData.no_clear=1; | ||
166 | var url = this.data.sys_switch.weapp_customertype_url; | 167 | var url = this.data.sys_switch.weapp_customertype_url; |
167 | var id = this.data.sys_switch.weapp_customertype_appid; | 168 | var id = this.data.sys_switch.weapp_customertype_appid; |
168 | wx.openCustomerServiceChat({ | 169 | wx.openCustomerServiceChat({ |
@@ -177,24 +178,7 @@ Page({ | @@ -177,24 +178,7 @@ Page({ | ||
177 | 178 | ||
178 | // 联系电话客服 | 179 | // 联系电话客服 |
179 | contactService() { | 180 | contactService() { |
180 | - app.getConfig(function(t) { | ||
181 | - if (t.store_tel == undefined) { | ||
182 | - app.request.get('/api/weshop/store/get/' + os.stoid, { | ||
183 | - isShowLoading: 1, | ||
184 | - data: {}, | ||
185 | - success: function(rs) { | ||
186 | - app.globalData.config = rs.data.data; | ||
187 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
188 | - app.my_warnning('商家未设置电话', 0, self); | ||
189 | - return false; | ||
190 | - } | ||
191 | - app.confirmBox('请联系客服:' + rs.data.data.store_tel); | ||
192 | - } | ||
193 | - }) | ||
194 | - } else { | ||
195 | - app.confirmBox('请联系客服:' + t.store_tel); | ||
196 | - } | ||
197 | - }); | 181 | + getApp().con_Service(); |
198 | }, | 182 | }, |
199 | 183 | ||
200 | 184 | ||
@@ -478,9 +462,9 @@ Page({ | @@ -478,9 +462,9 @@ Page({ | ||
478 | }); | 462 | }); |
479 | }, | 463 | }, |
480 | 464 | ||
481 | - | ||
482 | - | ||
483 | - | 465 | + click_contact:function () { |
466 | + getApp().globalData.no_clear=1; | ||
467 | + } | ||
484 | 468 | ||
485 | 469 | ||
486 | 470 |
packageA/pages/details_serviceCard/details_serviceCard.wxml
@@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
57 | <view class="flex t-c bdt"> | 57 | <view class="flex t-c bdt"> |
58 | <!-- 客服 --> | 58 | <!-- 客服 --> |
59 | <block> | 59 | <block> |
60 | - <button class="f1" wx:if="{{sys_switch.weapp_customertype == 1}}" hover-class="none" open-type="contact" | 60 | + <button class="f1" wx:if="{{sys_switch.weapp_customertype == 1}}" hover-class="none" open-type="contact" bindtap="click_contact" |
61 | session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"><text class="iconfont icon-kefu c29f pdr10 fs36"></text>联系客服</button> | 61 | session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"><text class="iconfont icon-kefu c29f pdr10 fs36"></text>联系客服</button> |
62 | <view class="f1 pd20" wx:elif="{{sys_switch.weapp_customertype== 2}}" bindtap="contact_wx"><text class="iconfont icon-kefu c29f pdr10 fs36"></text>联系客服</view> | 62 | <view class="f1 pd20" wx:elif="{{sys_switch.weapp_customertype== 2}}" bindtap="contact_wx"><text class="iconfont icon-kefu c29f pdr10 fs36"></text>联系客服</view> |
63 | <view class="f1 pd20" wx:else bindtap="contactService"><text class="iconfont icon-kefu c29f pdr10 fs36"></text>联系客服</view> | 63 | <view class="f1 pd20" wx:else bindtap="contactService"><text class="iconfont icon-kefu c29f pdr10 fs36"></text>联系客服</view> |
packageA/pages/distribution/card/card.js
packageA/pages/distribution/commision/commision.js
packageA/pages/distribution/goods/goods.js
packageA/pages/distribution/myteam/myteam.js
packageA/pages/distribution/order/order.js
packageA/pages/distribution/rank/rank.js
packageA/pages/distribution/rookie/rookie.js
packageA/pages/distribution/shop/shop.js
@@ -316,7 +316,7 @@ Page({ | @@ -316,7 +316,7 @@ Page({ | ||
316 | * 用户点击右上角分享 | 316 | * 用户点击右上角分享 |
317 | *--点击分享事件--分享我的小店 | 317 | *--点击分享事件--分享我的小店 |
318 | *--*/ | 318 | *--*/ |
319 | - onShareAppMessage: function (t) { | 319 | + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; |
320 | 320 | ||
321 | var th = this; | 321 | var th = this; |
322 | var title = "我的小店"; | 322 | var title = "我的小店"; |
packageA/pages/goodsInfo/goodsInfo.js
@@ -1049,24 +1049,7 @@ Page({ | @@ -1049,24 +1049,7 @@ Page({ | ||
1049 | 1049 | ||
1050 | //---------联系客服------------ | 1050 | //---------联系客服------------ |
1051 | contactService: function() { | 1051 | contactService: function() { |
1052 | - s.getConfig(function(t) { | ||
1053 | - if (t.store_tel == undefined) { | ||
1054 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
1055 | - isShowLoading: 1, | ||
1056 | - data: {}, | ||
1057 | - success: function(rs) { | ||
1058 | - getApp().globalData.config = rs.data.data; | ||
1059 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
1060 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
1061 | - return false; | ||
1062 | - } | ||
1063 | - s.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
1064 | - } | ||
1065 | - }) | ||
1066 | - } else { | ||
1067 | - s.confirmBox("请联系客服:" + t.store_tel); | ||
1068 | - } | ||
1069 | - }); | 1052 | + getApp().con_Service(); |
1070 | }, | 1053 | }, |
1071 | //-------获取购物车数量---------- | 1054 | //-------获取购物车数量---------- |
1072 | requestCardNum: function() { | 1055 | requestCardNum: function() { |
@@ -1109,6 +1092,7 @@ Page({ | @@ -1109,6 +1092,7 @@ Page({ | ||
1109 | 1092 | ||
1110 | //--点击分享事件--- | 1093 | //--点击分享事件--- |
1111 | onShareAppMessage: function(t) { | 1094 | onShareAppMessage: function(t) { |
1095 | + getApp().globalData.no_clear=1; | ||
1112 | 1096 | ||
1113 | var th = this; | 1097 | var th = this; |
1114 | var price = th.data.data.shop_price; | 1098 | var price = th.data.data.shop_price; |
@@ -2562,10 +2546,7 @@ Page({ | @@ -2562,10 +2546,7 @@ Page({ | ||
2562 | }, | 2546 | }, |
2563 | 2547 | ||
2564 | previewImage() { | 2548 | previewImage() { |
2565 | - wx.previewImage({ | ||
2566 | - //将图片预览出来 | ||
2567 | - urls: [this.data.shareImgPath] | ||
2568 | - }); | 2549 | + getApp().pre_img(this.data.shareImgPath); |
2569 | }, | 2550 | }, |
2570 | 2551 | ||
2571 | onShareTimeline() { | 2552 | onShareTimeline() { |
@@ -2589,13 +2570,7 @@ Page({ | @@ -2589,13 +2570,7 @@ Page({ | ||
2589 | 2570 | ||
2590 | //---------联系微信客服------------ | 2571 | //---------联系微信客服------------ |
2591 | con_weixin:function () { | 2572 | con_weixin:function () { |
2592 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
2593 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
2594 | - wx.openCustomerServiceChat({ | ||
2595 | - extInfo: {url: url}, | ||
2596 | - corpId: id, | ||
2597 | - success(res) {} | ||
2598 | - }) | 2573 | + getApp().con_wx(this) |
2599 | }, | 2574 | }, |
2600 | 2575 | ||
2601 | //评论的调用 | 2576 | //评论的调用 |
@@ -2792,10 +2767,9 @@ Page({ | @@ -2792,10 +2767,9 @@ Page({ | ||
2792 | // b[i] = this.data.iurl + e[i]; | 2767 | // b[i] = this.data.iurl + e[i]; |
2793 | // } | 2768 | // } |
2794 | this.data.show_prew_img = 1; | 2769 | this.data.show_prew_img = 1; |
2795 | - wx.previewImage({ | ||
2796 | - current: b[t.currentTarget.dataset.id], | ||
2797 | - urls: b | ||
2798 | - }); | 2770 | + //调用预览图片 |
2771 | + getApp().pre_img2(b,t); | ||
2772 | + | ||
2799 | }, | 2773 | }, |
2800 | 2774 | ||
2801 | 2775 | ||
@@ -2934,9 +2908,9 @@ Page({ | @@ -2934,9 +2908,9 @@ Page({ | ||
2934 | // }); | 2908 | // }); |
2935 | // return false; | 2909 | // return false; |
2936 | // } | 2910 | // } |
2937 | - | ||
2938 | 2911 | ||
2939 | - | 2912 | + |
2913 | + | ||
2940 | // if (prom_type == 1 && prom_id == 0) { | 2914 | // if (prom_type == 1 && prom_id == 0) { |
2941 | // this.setData({ | 2915 | // this.setData({ |
2942 | // prom_type: 0, isshow: 1, | 2916 | // prom_type: 0, isshow: 1, |
@@ -2950,7 +2924,7 @@ Page({ | @@ -2950,7 +2924,7 @@ Page({ | ||
2950 | // this.check_is_youhui(gid, 1); | 2924 | // this.check_is_youhui(gid, 1); |
2951 | // return false; | 2925 | // return false; |
2952 | // } | 2926 | // } |
2953 | - | 2927 | + |
2954 | //if (prom_type != 3 && prom_type!=0){ | 2928 | //if (prom_type != 3 && prom_type!=0){ |
2955 | //---判断秒杀---- | 2929 | //---判断秒杀---- |
2956 | if (prom_type == 1 && prom_id > 0) { | 2930 | if (prom_type == 1 && prom_id > 0) { |
@@ -3030,7 +3004,7 @@ Page({ | @@ -3030,7 +3004,7 @@ Page({ | ||
3030 | // //-- 获取秒杀活动的多少规格 -- | 3004 | // //-- 获取秒杀活动的多少规格 -- |
3031 | // ee.get_more_flahs(function (list) { | 3005 | // ee.get_more_flahs(function (list) { |
3032 | // if (list && list.length > 1) { | 3006 | // if (list && list.length > 1) { |
3033 | - | 3007 | + |
3034 | // var n_item = list[0]; | 3008 | // var n_item = list[0]; |
3035 | // var ind = list.findIndex(function (ele) { | 3009 | // var ind = list.findIndex(function (ele) { |
3036 | // return ele.goods_id == ee.data.data.goods_id; | 3010 | // return ele.goods_id == ee.data.data.goods_id; |
@@ -3041,10 +3015,10 @@ Page({ | @@ -3041,10 +3015,10 @@ Page({ | ||
3041 | // list.splice(ind, 1); | 3015 | // list.splice(ind, 1); |
3042 | // list.unshift(n_item); | 3016 | // list.unshift(n_item); |
3043 | // } | 3017 | // } |
3044 | - | 3018 | + |
3045 | // ee.data.sele_g.viplimited = n_item.viplimited; | 3019 | // ee.data.sele_g.viplimited = n_item.viplimited; |
3046 | // ee.data.data.viplimited = n_item.viplimited; | 3020 | // ee.data.data.viplimited = n_item.viplimited; |
3047 | - | 3021 | + |
3048 | // var gb = 1; | 3022 | // var gb = 1; |
3049 | // //-- 显示多规格 -- | 3023 | // //-- 显示多规格 -- |
3050 | // for (let i in list) { | 3024 | // for (let i in list) { |
@@ -3052,7 +3026,7 @@ Page({ | @@ -3052,7 +3026,7 @@ Page({ | ||
3052 | // var gg = ""; | 3026 | // var gg = ""; |
3053 | // if (item.goods_spec == "null" || item.goods_spec == null) item.goods_spec = ""; | 3027 | // if (item.goods_spec == "null" || item.goods_spec == null) item.goods_spec = ""; |
3054 | // if (item.goods_color == "null" || item.goods_color == null) item.goods_color = ""; | 3028 | // if (item.goods_color == "null" || item.goods_color == null) item.goods_color = ""; |
3055 | - | 3029 | + |
3056 | // if (item.goods_spec != "" && item.goods_color != "") { | 3030 | // if (item.goods_spec != "" && item.goods_color != "") { |
3057 | // gg = item.goods_spec + "/" + item.goods_color; | 3031 | // gg = item.goods_spec + "/" + item.goods_color; |
3058 | // } else if (item.goods_spec != "" || item.goods_color != "") { | 3032 | // } else if (item.goods_spec != "" || item.goods_color != "") { |
@@ -3065,11 +3039,11 @@ Page({ | @@ -3065,11 +3039,11 @@ Page({ | ||
3065 | // item.prom_id = item.prom_id; | 3039 | // item.prom_id = item.prom_id; |
3066 | // item.prom_type = 1; | 3040 | // item.prom_type = 1; |
3067 | // } | 3041 | // } |
3068 | - | 3042 | + |
3069 | // ee.setData({ | 3043 | // ee.setData({ |
3070 | // sku_g: list, | 3044 | // sku_g: list, |
3071 | // }); | 3045 | // }); |
3072 | - | 3046 | + |
3073 | // } | 3047 | // } |
3074 | // }) | 3048 | // }) |
3075 | // } | 3049 | // } |
@@ -3132,22 +3106,14 @@ Page({ | @@ -3132,22 +3106,14 @@ Page({ | ||
3132 | } | 3106 | } |
3133 | }); | 3107 | }); |
3134 | }, | 3108 | }, |
3135 | - | ||
3136 | - | ||
3137 | - | ||
3138 | - | ||
3139 | 3109 | ||
3110 | + click_contact:function () { | ||
3111 | + getApp().globalData.no_clear=1; | ||
3112 | + } | ||
3140 | 3113 | ||
3141 | 3114 | ||
3142 | 3115 | ||
3143 | - | ||
3144 | - | ||
3145 | - | ||
3146 | - | ||
3147 | - | ||
3148 | - | ||
3149 | 3116 | ||
3150 | - | ||
3151 | }); | 3117 | }); |
3152 | 3118 | ||
3153 | 3119 |
packageA/pages/goodsInfo/goodsInfo.wxml
@@ -506,7 +506,7 @@ | @@ -506,7 +506,7 @@ | ||
506 | <view class="join-cart jc_sb ai_c"> | 506 | <view class="join-cart jc_sb ai_c"> |
507 | 507 | ||
508 | <view class="flex"> | 508 | <view class="flex"> |
509 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split pdh20" open-type="contact" | 509 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split pdh20" open-type="contact" bindtap="click_contact" |
510 | session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 510 | session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
511 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | 511 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> |
512 | <view>客服</view> | 512 | <view>客服</view> |
packageA/pages/goods_share/goods_share.js
@@ -177,7 +177,8 @@ Page({ | @@ -177,7 +177,8 @@ Page({ | ||
177 | /**e | 177 | /**e |
178 | * 用户点击右上角分享 | 178 | * 用户点击右上角分享 |
179 | */ | 179 | */ |
180 | - onShareAppMessage: function () { | 180 | + onShareAppMessage: function () { |
181 | + getApp().globalData.no_clear=1; | ||
181 | var th = this; | 182 | var th = this; |
182 | var item=this.data.share_good; | 183 | var item=this.data.share_good; |
183 | var price = item.shop_price; | 184 | var price = item.shop_price; |
@@ -732,10 +733,7 @@ Page({ | @@ -732,10 +733,7 @@ Page({ | ||
732 | }) | 733 | }) |
733 | return false; | 734 | return false; |
734 | } | 735 | } |
735 | - wx.previewImage({ | ||
736 | - //将图片预览出来 | ||
737 | - urls: [that.data.shareImgPath] | ||
738 | - }); | 736 | + getApp().pre_img(that.data.shareImgPath); |
739 | wx.hideLoading(); | 737 | wx.hideLoading(); |
740 | } | 738 | } |
741 | }) | 739 | }) |
packageA/pages/hongBao/hongBao.js
packageA/pages/hongBaoDetails/hongBaoDetails.js
packageA/pages/jfbuy/jfbuy.js
@@ -187,8 +187,8 @@ Page({ | @@ -187,8 +187,8 @@ Page({ | ||
187 | /** | 187 | /** |
188 | * 用户点击右上角分享 | 188 | * 用户点击右上角分享 |
189 | */ | 189 | */ |
190 | - onShareAppMessage: function () { | ||
191 | - | 190 | + onShareAppMessage: function () { |
191 | + getApp().globalData.no_clear=1; | ||
192 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:''; | 192 | var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:''; |
193 | 193 | ||
194 | var pagePath = this.route; //当前页面url | 194 | var pagePath = this.route; //当前页面url |
packageA/pages/liveStream/liveStream.js
@@ -348,7 +348,7 @@ Page({ | @@ -348,7 +348,7 @@ Page({ | ||
348 | /** | 348 | /** |
349 | * 用户点击右上角分享 | 349 | * 用户点击右上角分享 |
350 | */ | 350 | */ |
351 | - onShareAppMessage: function () { | 351 | + onShareAppMessage: function () { getApp().globalData.no_clear=1; |
352 | if (res.from === 'button') { | 352 | if (res.from === 'button') { |
353 | // 来自页面内转发按钮 | 353 | // 来自页面内转发按钮 |
354 | // console.log(res.target) | 354 | // console.log(res.target) |
packageA/pages/liveStreamDetails/liveStreamDetails.js
@@ -605,6 +605,7 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | @@ -605,6 +605,7 @@ drawText: function(ctx, str, leftWidth, initHeight, titleHeight, canvasWidth, un | ||
605 | * 用户点击右上角分享 | 605 | * 用户点击右上角分享 |
606 | */ | 606 | */ |
607 | onShareAppMessage: function (res) { | 607 | onShareAppMessage: function (res) { |
608 | + getApp().globalData.clear=1; | ||
608 | this.setData({ | 609 | this.setData({ |
609 | showActionSheet: 'false' | 610 | showActionSheet: 'false' |
610 | }) | 611 | }) |
packageA/pages/live_share/live_share.js
@@ -71,7 +71,7 @@ Page({ | @@ -71,7 +71,7 @@ Page({ | ||
71 | /** | 71 | /** |
72 | * 用户点击右上角分享 | 72 | * 用户点击右上角分享 |
73 | */ | 73 | */ |
74 | - onShareAppMessage: function () { | 74 | + onShareAppMessage: function () { getApp().globalData.no_clear=1; |
75 | var th=this; | 75 | var th=this; |
76 | var id=th.data.hui_active.id; | 76 | var id=th.data.hui_active.id; |
77 | var url='/packageA/pages/liveStreamDetails/liveStreamDetails?id=' + id + '&live=ing'; | 77 | var url='/packageA/pages/liveStreamDetails/liveStreamDetails?id=' + id + '&live=ing'; |
packageA/pages/myGift/myGift.js
packageA/pages/myGiftDetails/myGiftDetails.js
packageA/pages/my_service/beauty_deta.js
@@ -394,6 +394,7 @@ Page({ | @@ -394,6 +394,7 @@ Page({ | ||
394 | previewImage: function(e) { | 394 | previewImage: function(e) { |
395 | var th = this; | 395 | var th = this; |
396 | var current = e.currentTarget.dataset.src; | 396 | var current = e.currentTarget.dataset.src; |
397 | + getApp().globalData.no_clear=1; | ||
397 | wx.previewImage({ | 398 | wx.previewImage({ |
398 | current: current, // 当前显示图片的http链接 | 399 | current: current, // 当前显示图片的http链接 |
399 | urls: [th.data.head_img] // 需要预览的图片http链接列表 | 400 | urls: [th.data.head_img] // 需要预览的图片http链接列表 |
packageA/pages/my_service2/beauty_deta.js
@@ -394,6 +394,7 @@ Page({ | @@ -394,6 +394,7 @@ Page({ | ||
394 | previewImage: function(e) { | 394 | previewImage: function(e) { |
395 | var th = this; | 395 | var th = this; |
396 | var current = e.currentTarget.dataset.src; | 396 | var current = e.currentTarget.dataset.src; |
397 | + getApp().globalData.no_clear=1; | ||
397 | wx.previewImage({ | 398 | wx.previewImage({ |
398 | current: current, // 当前显示图片的http链接 | 399 | current: current, // 当前显示图片的http链接 |
399 | urls: [th.data.head_img] // 需要预览的图片http链接列表 | 400 | urls: [th.data.head_img] // 需要预览的图片http链接列表 |
packageA/pages/parseHtml/parseHtml.js
packageA/pages/profile/profile.js
packageA/pages/prom_list/prom_list.js
@@ -711,6 +711,7 @@ Page({ | @@ -711,6 +711,7 @@ Page({ | ||
711 | 711 | ||
712 | //--点击分享事件--- | 712 | //--点击分享事件--- |
713 | onShareAppMessage: function(t) { | 713 | onShareAppMessage: function(t) { |
714 | + getApp().globalData.no_clear=1 | ||
714 | var curPage=this; | 715 | var curPage=this; |
715 | var pagePath = curPage.route; //当前页面url | 716 | var pagePath = curPage.route; //当前页面url |
716 | if (pagePath.indexOf('/') != 0) { | 717 | if (pagePath.indexOf('/') != 0) { |
packageA/pages/quan/quan.js
@@ -73,7 +73,7 @@ Page({ | @@ -73,7 +73,7 @@ Page({ | ||
73 | /** | 73 | /** |
74 | * 用户点击右上角分享 | 74 | * 用户点击右上角分享 |
75 | */ | 75 | */ |
76 | - onShareAppMessage: function () { | 76 | + onShareAppMessage: function () { getApp().globalData.no_clear=1; |
77 | var th=this; | 77 | var th=this; |
78 | var id=th.data.hui_active.id; | 78 | var id=th.data.hui_active.id; |
79 | var url="/packageA/pages/quan_pro/quan_pro?id="+id; | 79 | var url="/packageA/pages/quan_pro/quan_pro?id="+id; |
packageA/pages/service_share/service_share.js
@@ -141,7 +141,7 @@ Page({ | @@ -141,7 +141,7 @@ Page({ | ||
141 | /**e | 141 | /**e |
142 | * 用户点击右上角分享 | 142 | * 用户点击右上角分享 |
143 | */ | 143 | */ |
144 | - onShareAppMessage: function () { | 144 | + onShareAppMessage: function () { getApp().globalData.no_clear=1; |
145 | var th = this; | 145 | var th = this; |
146 | var item=this.data.share_good; | 146 | var item=this.data.share_good; |
147 | var price = item.money; | 147 | var price = item.money; |
@@ -709,10 +709,7 @@ Page({ | @@ -709,10 +709,7 @@ Page({ | ||
709 | }) | 709 | }) |
710 | return false; | 710 | return false; |
711 | } | 711 | } |
712 | - wx.previewImage({ | ||
713 | - //将图片预览出来 | ||
714 | - urls: [that.data.shareImgPath] | ||
715 | - }); | 712 | + getApp().pre_img(that.data.shareImgPath); |
716 | wx.hideLoading(); | 713 | wx.hideLoading(); |
717 | } | 714 | } |
718 | }) | 715 | }) |
packageA/pages/text/text.js deleted
1 | -// packageA//pages/text/text.js | ||
2 | -Page({ | ||
3 | - | ||
4 | - /** | ||
5 | - * 页面的初始数据 | ||
6 | - */ | ||
7 | - data: { | ||
8 | - | ||
9 | - }, | ||
10 | - | ||
11 | - /** | ||
12 | - * 生命周期函数--监听页面加载 | ||
13 | - */ | ||
14 | - onLoad: function (options) { | ||
15 | - | ||
16 | - }, | ||
17 | - | ||
18 | - /** | ||
19 | - * 生命周期函数--监听页面初次渲染完成 | ||
20 | - */ | ||
21 | - onReady: function () { | ||
22 | - | ||
23 | - }, | ||
24 | - | ||
25 | - /** | ||
26 | - * 生命周期函数--监听页面显示 | ||
27 | - */ | ||
28 | - onShow: function () { | ||
29 | - | ||
30 | - }, | ||
31 | - | ||
32 | - /** | ||
33 | - * 生命周期函数--监听页面隐藏 | ||
34 | - */ | ||
35 | - onHide: function () { | ||
36 | - | ||
37 | - }, | ||
38 | - | ||
39 | - /** | ||
40 | - * 生命周期函数--监听页面卸载 | ||
41 | - */ | ||
42 | - onUnload: function () { | ||
43 | - | ||
44 | - }, | ||
45 | - | ||
46 | - /** | ||
47 | - * 页面相关事件处理函数--监听用户下拉动作 | ||
48 | - */ | ||
49 | - onPullDownRefresh: function () { | ||
50 | - | ||
51 | - }, | ||
52 | - | ||
53 | - /** | ||
54 | - * 页面上拉触底事件的处理函数 | ||
55 | - */ | ||
56 | - onReachBottom: function () { | ||
57 | - | ||
58 | - }, | ||
59 | - | ||
60 | - /** | ||
61 | - * 用户点击右上角分享 | ||
62 | - */ | ||
63 | - onShareAppMessage: function () { | ||
64 | - | ||
65 | - } | ||
66 | -}) | ||
67 | \ No newline at end of file | 0 | \ No newline at end of file |
packageA/pages/text/text.json deleted
packageA/pages/text/text.wxml deleted
packageA/pages/text/text.wxss deleted
packageA/pages/user/my_service2/appment_main.js
@@ -60,7 +60,7 @@ Page({ | @@ -60,7 +60,7 @@ Page({ | ||
60 | /** | 60 | /** |
61 | * 用户点击右上角分享 | 61 | * 用户点击右上角分享 |
62 | */ | 62 | */ |
63 | - onShareAppMessage: function () { | 63 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
64 | 64 | ||
65 | } | 65 | } |
66 | }) | 66 | }) |
67 | \ No newline at end of file | 67 | \ No newline at end of file |
packageB/pages/boxes-details/boxes-details.js
packageB/pages/luckactivity/index/index.js
packageB/pages/user/Change_phone/Change_phone.js
packageB/pages/user/add_comment/add_comment.js
@@ -220,6 +220,7 @@ Page({ | @@ -220,6 +220,7 @@ Page({ | ||
220 | 220 | ||
221 | var imgs = this.data.imgs; | 221 | var imgs = this.data.imgs; |
222 | 222 | ||
223 | + getApp().globalData.no_clear=1; | ||
223 | wx.chooseImage({ | 224 | wx.chooseImage({ |
224 | count: 1, // 默认9 | 225 | count: 1, // 默认9 |
225 | sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 | 226 | sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 |
@@ -259,6 +260,7 @@ Page({ | @@ -259,6 +260,7 @@ Page({ | ||
259 | var index = e.currentTarget.dataset.index; | 260 | var index = e.currentTarget.dataset.index; |
260 | //所有图片 | 261 | //所有图片 |
261 | var imgs = this.data.imgs; | 262 | var imgs = this.data.imgs; |
263 | + getApp().globalData.no_clear=1; | ||
262 | wx.previewImage({ | 264 | wx.previewImage({ |
263 | //当前显示图片 | 265 | //当前显示图片 |
264 | current: imgs[index], | 266 | current: imgs[index], |
packageB/pages/user/binding_info/binding_info.js
@@ -60,7 +60,7 @@ Page({ | @@ -60,7 +60,7 @@ Page({ | ||
60 | /** | 60 | /** |
61 | * 用户点击右上角分享 | 61 | * 用户点击右上角分享 |
62 | */ | 62 | */ |
63 | - onShareAppMessage: function () { | 63 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
64 | 64 | ||
65 | } | 65 | } |
66 | }) | 66 | }) |
67 | \ No newline at end of file | 67 | \ No newline at end of file |
packageB/pages/user/buyDetails/buyDetails.js
packageB/pages/user/choice_guide/choice_guide.js
packageB/pages/user/comment/comment.js
@@ -161,6 +161,7 @@ Page({ | @@ -161,6 +161,7 @@ Page({ | ||
161 | } else { | 161 | } else { |
162 | image = imgArr[index].weapp_img[sindex]; | 162 | image = imgArr[index].weapp_img[sindex]; |
163 | } | 163 | } |
164 | + getApp().globalData.no_clear=1; | ||
164 | wx.previewImage({ | 165 | wx.previewImage({ |
165 | current: image, | 166 | current: image, |
166 | //当前图片地址 | 167 | //当前图片地址 |
packageB/pages/user/view_comment/view_comment.js
@@ -112,6 +112,7 @@ Page({ | @@ -112,6 +112,7 @@ Page({ | ||
112 | var iurl = th.data.iurl; | 112 | var iurl = th.data.iurl; |
113 | if (image != "") { | 113 | if (image != "") { |
114 | image = imgArr[0].weapp_img[index]; | 114 | image = imgArr[0].weapp_img[index]; |
115 | + getApp().globalData.no_clear=1; | ||
115 | wx.previewImage({ | 116 | wx.previewImage({ |
116 | current: image, | 117 | current: image, |
117 | //当前图片地址 | 118 | //当前图片地址 |
@@ -119,6 +120,7 @@ Page({ | @@ -119,6 +120,7 @@ Page({ | ||
119 | }) | 120 | }) |
120 | } else { | 121 | } else { |
121 | image = imgArr[0].img[index]; | 122 | image = imgArr[0].img[index]; |
123 | + getApp().globalData.no_clear=1; | ||
122 | wx.previewImage({ | 124 | wx.previewImage({ |
123 | current: iurl + image, | 125 | current: iurl + image, |
124 | //当前图片地址 | 126 | //当前图片地址 |
packageB/pages/video/index.js
@@ -7,6 +7,7 @@ Page({ | @@ -7,6 +7,7 @@ Page({ | ||
7 | }, | 7 | }, |
8 | bindButtonTap: function() { | 8 | bindButtonTap: function() { |
9 | var that = this | 9 | var that = this |
10 | + getApp().globalData.no_clear=1; | ||
10 | wx.chooseVideo({ | 11 | wx.chooseVideo({ |
11 | sourceType: ['album', 'camera'], | 12 | sourceType: ['album', 'camera'], |
12 | maxDuration: 60, | 13 | maxDuration: 60, |
@@ -34,6 +35,7 @@ Page({ | @@ -34,6 +35,7 @@ Page({ | ||
34 | 35 | ||
35 | //---------分享配置-------- | 36 | //---------分享配置-------- |
36 | onShareAppMessage: function (e) { | 37 | onShareAppMessage: function (e) { |
38 | + getApp().globalData.no_clear=1 | ||
37 | return { | 39 | return { |
38 | title: "直播视频回放", | 40 | title: "直播视频回放", |
39 | } | 41 | } |
packageB/pages/zuhegou/index/index.js
@@ -446,7 +446,7 @@ Page({ | @@ -446,7 +446,7 @@ Page({ | ||
446 | /** | 446 | /** |
447 | * 用户点击右上角分享 | 447 | * 用户点击右上角分享 |
448 | */ | 448 | */ |
449 | - onShareAppMessage: function () { | 449 | + onShareAppMessage: function () { getApp().globalData.no_clear=1; |
450 | var title = this.data.act.name; | 450 | var title = this.data.act.name; |
451 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; | 451 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; |
452 | if (getApp().globalData.user_id) { | 452 | if (getApp().globalData.user_id) { |
packageB/pages/zuhegou/list/list.js
@@ -198,6 +198,7 @@ Page({ | @@ -198,6 +198,7 @@ Page({ | ||
198 | 198 | ||
199 | //---------分享配置-------- | 199 | //---------分享配置-------- |
200 | onShareAppMessage: function (e) { | 200 | onShareAppMessage: function (e) { |
201 | + getApp().globalData.no_clear=1 | ||
201 | var curPage=this; | 202 | var curPage=this; |
202 | var pagePath = curPage.route; //当前页面url | 203 | var pagePath = curPage.route; //当前页面url |
203 | if (pagePath.indexOf('/') != 0) { | 204 | if (pagePath.indexOf('/') != 0) { |
packageB/pages/zuhegou/preindex/index.js
@@ -447,7 +447,7 @@ Page({ | @@ -447,7 +447,7 @@ Page({ | ||
447 | /** | 447 | /** |
448 | * 用户点击右上角分享 | 448 | * 用户点击右上角分享 |
449 | */ | 449 | */ |
450 | - onShareAppMessage: function () { | 450 | + onShareAppMessage: function () { getApp().globalData.no_clear=1; |
451 | var title = this.data.act.name; | 451 | var title = this.data.act.name; |
452 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; | 452 | var url = "/packageB/pages/zuhegou/index/index?id=" + this.data.act.id; |
453 | if (getApp().globalData.user_id) { | 453 | if (getApp().globalData.user_id) { |
packageC/pages/goods/distributionCategoryList/index.js
@@ -404,6 +404,7 @@ Page({ | @@ -404,6 +404,7 @@ Page({ | ||
404 | }, | 404 | }, |
405 | //---------分享配置-------- | 405 | //---------分享配置-------- |
406 | onShareAppMessage: function (e) { | 406 | onShareAppMessage: function (e) { |
407 | + getApp().globalData.no_clear=1 | ||
407 | 408 | ||
408 | var url = "pages/goods/categoryList/categoryList"; | 409 | var url = "pages/goods/categoryList/categoryList"; |
409 | var userInfo = getApp().globalData.userInfo; | 410 | var userInfo = getApp().globalData.userInfo; |
@@ -639,9 +640,9 @@ Page({ | @@ -639,9 +640,9 @@ Page({ | ||
639 | //扫一扫 | 640 | //扫一扫 |
640 | getScancode: function () { | 641 | getScancode: function () { |
641 | // 允许从相机和相册扫码 | 642 | // 允许从相机和相册扫码 |
643 | + getApp().globalData.no_clear=1; | ||
642 | wx.scanCode({ | 644 | wx.scanCode({ |
643 | success: (res) => { | 645 | success: (res) => { |
644 | - console.log(res); | ||
645 | var key_word = res.result; | 646 | var key_word = res.result; |
646 | wx.navigateBack({ | 647 | wx.navigateBack({ |
647 | delta: 1 | 648 | delta: 1 |
packageC/pages/goods/goodsList/goodsList.js
@@ -240,6 +240,7 @@ Page({ | @@ -240,6 +240,7 @@ Page({ | ||
240 | }, | 240 | }, |
241 | //---------分享配置-------- | 241 | //---------分享配置-------- |
242 | onShareAppMessage: function (e) { | 242 | onShareAppMessage: function (e) { |
243 | + getApp().globalData.no_clear=1 | ||
243 | var curPage = this; | 244 | var curPage = this; |
244 | var pagePath = curPage.route; //当前页面url | 245 | var pagePath = curPage.route; //当前页面url |
245 | if (pagePath.indexOf('/') != 0) { | 246 | if (pagePath.indexOf('/') != 0) { |
packageC/pages/goods/search/search.js
@@ -235,6 +235,7 @@ Page({ | @@ -235,6 +235,7 @@ Page({ | ||
235 | 235 | ||
236 | //---------分享配置-------- | 236 | //---------分享配置-------- |
237 | onShareAppMessage: function (e) { | 237 | onShareAppMessage: function (e) { |
238 | + getApp().globalData.no_clear=1 | ||
238 | var curPage = this; | 239 | var curPage = this; |
239 | var pagePath = curPage.route; //当前页面url | 240 | var pagePath = curPage.route; //当前页面url |
240 | if (pagePath.indexOf('/') != 0) { | 241 | if (pagePath.indexOf('/') != 0) { |
packageC/pages/group_list/group_list.js
packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js
@@ -191,6 +191,7 @@ Page({ | @@ -191,6 +191,7 @@ Page({ | ||
191 | * 用户点击右上角分享 | 191 | * 用户点击右上角分享 |
192 | */ | 192 | */ |
193 | onShareAppMessage: function (e) { | 193 | onShareAppMessage: function (e) { |
194 | + getApp().globalData.no_clear=1 | ||
194 | var pagePath = this.route; //当前页面url | 195 | var pagePath = this.route; //当前页面url |
195 | if (pagePath.indexOf('/') != 0) { | 196 | if (pagePath.indexOf('/') != 0) { |
196 | pagePath = '/' + pagePath; | 197 | pagePath = '/' + pagePath; |
packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
@@ -972,6 +972,7 @@ Page({ | @@ -972,6 +972,7 @@ Page({ | ||
972 | 972 | ||
973 | //------ 分享配置 -------- | 973 | //------ 分享配置 -------- |
974 | onShareAppMessage: function (e) { | 974 | onShareAppMessage: function (e) { |
975 | + getApp().globalData.no_clear=1 | ||
975 | var pagePath = `packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=${this.data.param.goods_id}&prom_type=9&group_id=${this.data.param.group_id}`; //当前页面url | 976 | var pagePath = `packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=${this.data.param.goods_id}&prom_type=9&group_id=${this.data.param.group_id}`; //当前页面url |
976 | // console.log('pagePath=====xxxxxx>', pagePath); | 977 | // console.log('pagePath=====xxxxxx>', pagePath); |
977 | var imgPath = this.data.iurl + this.data.luckyGoInfo.original_img; | 978 | var imgPath = this.data.iurl + this.data.luckyGoInfo.original_img; |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
@@ -2248,24 +2248,7 @@ Page({ | @@ -2248,24 +2248,7 @@ Page({ | ||
2248 | 2248 | ||
2249 | //---------联系客服------------ | 2249 | //---------联系客服------------ |
2250 | contactService: function () { | 2250 | contactService: function () { |
2251 | - s.getConfig(function (t) { | ||
2252 | - if (t.store_tel == undefined) { | ||
2253 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
2254 | - isShowLoading: 1, | ||
2255 | - data: {}, | ||
2256 | - success: function (rs) { | ||
2257 | - getApp().globalData.config = rs.data.data; | ||
2258 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
2259 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
2260 | - return false; | ||
2261 | - } | ||
2262 | - s.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
2263 | - } | ||
2264 | - }) | ||
2265 | - } else { | ||
2266 | - s.confirmBox("请联系客服:" + t.store_tel); | ||
2267 | - } | ||
2268 | - }); | 2251 | + getApp().con_Service(); |
2269 | }, | 2252 | }, |
2270 | //-------获取购物车数量---------- | 2253 | //-------获取购物车数量---------- |
2271 | requestCardNum: function () { | 2254 | requestCardNum: function () { |
@@ -2306,11 +2289,7 @@ Page({ | @@ -2306,11 +2289,7 @@ Page({ | ||
2306 | b[i] = this.data.iurl + e[i]; | 2289 | b[i] = this.data.iurl + e[i]; |
2307 | } | 2290 | } |
2308 | this.data.show_prew_img = 1; | 2291 | this.data.show_prew_img = 1; |
2309 | - | ||
2310 | - wx.previewImage({ | ||
2311 | - current: b[t.currentTarget.dataset.id], | ||
2312 | - urls: b | ||
2313 | - }); | 2292 | + getApp().pre_img2(b,t); |
2314 | }, | 2293 | }, |
2315 | 2294 | ||
2316 | previewCommentImgs_w: function (t) { | 2295 | previewCommentImgs_w: function (t) { |
@@ -2320,21 +2299,16 @@ Page({ | @@ -2320,21 +2299,16 @@ Page({ | ||
2320 | b[i] = this.data.iurl + e[i]; | 2299 | b[i] = this.data.iurl + e[i]; |
2321 | } | 2300 | } |
2322 | this.data.show_prew_img = 1; | 2301 | this.data.show_prew_img = 1; |
2323 | - wx.previewImage({ | ||
2324 | - current: b[t.currentTarget.dataset.id], | ||
2325 | - urls: b | ||
2326 | - }); | 2302 | + getApp().pre_img2(b,t); |
2327 | }, | 2303 | }, |
2328 | 2304 | ||
2329 | previewGoodsCommentImgs: function (t) { | 2305 | previewGoodsCommentImgs: function (t) { |
2330 | var e = this, | 2306 | var e = this, |
2331 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; | 2307 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; |
2308 | + getApp().globalData.no_clear=1; | ||
2332 | a = a.map(function (t) { | 2309 | a = a.map(function (t) { |
2333 | return e.data.url + t; | 2310 | return e.data.url + t; |
2334 | - }), wx.previewImage({ | ||
2335 | - current: a[t.currentTarget.dataset.id], | ||
2336 | - urls: a | ||
2337 | - }); | 2311 | + }), getApp().pre_img2(a,t); |
2338 | this.data.show_prew_img = 1; | 2312 | this.data.show_prew_img = 1; |
2339 | }, | 2313 | }, |
2340 | closePromModal: function () { | 2314 | closePromModal: function () { |
@@ -2349,7 +2323,7 @@ Page({ | @@ -2349,7 +2323,7 @@ Page({ | ||
2349 | }, | 2323 | }, |
2350 | 2324 | ||
2351 | //--点击分享事件--- | 2325 | //--点击分享事件--- |
2352 | - onShareAppMessage: function (t) { | 2326 | + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; |
2353 | 2327 | ||
2354 | // var th = this; | 2328 | // var th = this; |
2355 | // var price = th.data.sele_g.shop_price; | 2329 | // var price = th.data.sele_g.shop_price; |
@@ -6095,11 +6069,8 @@ Page({ | @@ -6095,11 +6069,8 @@ Page({ | ||
6095 | }, | 6069 | }, |
6096 | 6070 | ||
6097 | previewImage() { | 6071 | previewImage() { |
6098 | - this.data.show_prew_img = 1; | ||
6099 | - wx.previewImage({ | ||
6100 | - //将图片预览出来 | ||
6101 | - urls: [this.data.sele_g.original_img] | ||
6102 | - }); | 6072 | + this.data.show_prew_img = 1; |
6073 | + getApp().pre_img(this.data.sele_g.original_img); | ||
6103 | }, | 6074 | }, |
6104 | 6075 | ||
6105 | is_show_more_buy: function () { | 6076 | is_show_more_buy: function () { |
@@ -6327,13 +6298,7 @@ Page({ | @@ -6327,13 +6298,7 @@ Page({ | ||
6327 | }, | 6298 | }, |
6328 | 6299 | ||
6329 | con_weixin: function () { | 6300 | con_weixin: function () { |
6330 | - var url = this.data.sys_switch.weapp_customertype_url; | ||
6331 | - var id = this.data.sys_switch.weapp_customertype_appid; | ||
6332 | - wx.openCustomerServiceChat({ | ||
6333 | - extInfo: { url: url }, | ||
6334 | - corpId: id, | ||
6335 | - success(res) { } | ||
6336 | - }) | 6301 | + getApp().con_wx(this); |
6337 | }, | 6302 | }, |
6338 | 6303 | ||
6339 | 6304 | ||
@@ -6486,6 +6451,7 @@ Page({ | @@ -6486,6 +6451,7 @@ Page({ | ||
6486 | 6451 | ||
6487 | // 预览海报 | 6452 | // 预览海报 |
6488 | previewPoster() { | 6453 | previewPoster() { |
6454 | + getApp().globalData.no_clear=1; | ||
6489 | wx.previewImage({ | 6455 | wx.previewImage({ |
6490 | current: this.data.shareImgPath, // 当前显示图片的http链接 | 6456 | current: this.data.shareImgPath, // 当前显示图片的http链接 |
6491 | urls: [this.data.shareImgPath],// 需要预览的图片http链接列表 | 6457 | urls: [this.data.shareImgPath],// 需要预览的图片http链接列表 |
@@ -6493,4 +6459,9 @@ Page({ | @@ -6493,4 +6459,9 @@ Page({ | ||
6493 | }, | 6459 | }, |
6494 | 6460 | ||
6495 | 6461 | ||
6462 | + click_contact:function () { | ||
6463 | + getApp().globalData.no_clear=1; | ||
6464 | + } | ||
6465 | + | ||
6466 | + | ||
6496 | }); | 6467 | }); |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
@@ -871,7 +871,7 @@ | @@ -871,7 +871,7 @@ | ||
871 | <!-- -----------------底部按钮------------------ --> | 871 | <!-- -----------------底部按钮------------------ --> |
872 | <view class="join-cart"> | 872 | <view class="join-cart"> |
873 | <!-- bindtap="contactService" --> | 873 | <!-- bindtap="contactService" --> |
874 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 874 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
875 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | 875 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> |
876 | <view>客服</view> | 876 | <view>客服</view> |
877 | </button> | 877 | </button> |
packageC/pages/luckyGo/luckyGo_members/luckyGo_members.js
packageC/pages/luckyGo/luckyGo_order/luckyGo_order.js
@@ -237,24 +237,7 @@ Page({ | @@ -237,24 +237,7 @@ Page({ | ||
237 | }, | 237 | }, |
238 | /*-----联系客户------*/ | 238 | /*-----联系客户------*/ |
239 | contactService: function() { | 239 | contactService: function() { |
240 | - e.getConfig(function(t) { | ||
241 | - if (t.store_tel == undefined) { | ||
242 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
243 | - isShowLoading: 1, | ||
244 | - data: {}, | ||
245 | - success: function (rs) { | ||
246 | - getApp().globalData.config = rs.data.data; | ||
247 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
248 | - getApp().showWarning("商家未设置电话"); | ||
249 | - return false; | ||
250 | - } | ||
251 | - e.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
252 | - } | ||
253 | - }) | ||
254 | - } else { | ||
255 | - e.confirmBox("请联系客服:" + t.store_tel); | ||
256 | - } | ||
257 | - }); | 240 | + getApp().con_Service(); |
258 | }, | 241 | }, |
259 | 242 | ||
260 | //--------取消订单--------- | 243 | //--------取消订单--------- |
@@ -1074,13 +1057,7 @@ Page({ | @@ -1074,13 +1057,7 @@ Page({ | ||
1074 | }, | 1057 | }, |
1075 | 1058 | ||
1076 | con_weixin:function () { | 1059 | con_weixin:function () { |
1077 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
1078 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
1079 | - wx.openCustomerServiceChat({ | ||
1080 | - extInfo: {url: url}, | ||
1081 | - corpId: id, | ||
1082 | - success(res) {} | ||
1083 | - }) | 1060 | + getApp().con_wx(this); |
1084 | }, | 1061 | }, |
1085 | 1062 | ||
1086 | //跳转到商品 | 1063 | //跳转到商品 |
@@ -1115,6 +1092,11 @@ Page({ | @@ -1115,6 +1092,11 @@ Page({ | ||
1115 | // } | 1092 | // } |
1116 | // }) | 1093 | // }) |
1117 | }, | 1094 | }, |
1095 | + | ||
1096 | + | ||
1097 | + click_contact:function () { | ||
1098 | + getApp().globalData.no_clear=1; | ||
1099 | + } | ||
1118 | 1100 | ||
1119 | 1101 | ||
1120 | 1102 |
packageC/pages/luckyGo/luckyGo_order/luckyGo_order.wxml
@@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
61 | <view bindtap="checkTeam" class="contact-us check-btn" wx:if="{{optionIsGoup}}">查看拼团详情</view> | 61 | <view bindtap="checkTeam" class="contact-us check-btn" wx:if="{{optionIsGoup}}">查看拼团详情</view> |
62 | <view> | 62 | <view> |
63 | 63 | ||
64 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="contact-us goods-btn" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">联系客服</button> | 64 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="contact-us goods-btn" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">联系客服</button> |
65 | 65 | ||
66 | <view wx:elif="{{sys_switch.weapp_customertype==2}}" bindtap="con_weixin" class="contact-us goods-btn">联系客服</view> | 66 | <view wx:elif="{{sys_switch.weapp_customertype==2}}" bindtap="con_weixin" class="contact-us goods-btn">联系客服</view> |
67 | <view wx:else bindtap="contactService" class="contact-us goods-btn">联系客服</view> | 67 | <view wx:else bindtap="contactService" class="contact-us goods-btn">联系客服</view> |
packageC/pages/luckyGo/luckyGo_winners/luckyGo_winners.js
packageC/pages/presell/cart/cart.js
@@ -2601,35 +2601,12 @@ Page({ | @@ -2601,35 +2601,12 @@ Page({ | ||
2601 | 2601 | ||
2602 | //---------联系客服------------ | 2602 | //---------联系客服------------ |
2603 | contactService: function () { | 2603 | contactService: function () { |
2604 | - getApp().getConfig(function (t) { | ||
2605 | - if (t.store_tel == undefined) { | ||
2606 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
2607 | - isShowLoading: 1, | ||
2608 | - data: {}, | ||
2609 | - success: function (rs) { | ||
2610 | - getApp().globalData.config = rs.data.data; | ||
2611 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
2612 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
2613 | - return false; | ||
2614 | - } | ||
2615 | - wx.makePhoneCall({ phoneNumber: rs.data.data.store_tel, }) | ||
2616 | - } | ||
2617 | - }) | ||
2618 | - } else { | ||
2619 | - wx.makePhoneCall({ phoneNumber: t.store_tel, }) | ||
2620 | - } | ||
2621 | - }); | 2604 | + getApp().con_Service(); |
2622 | }, | 2605 | }, |
2623 | 2606 | ||
2624 | //---------联系微信客服------------ | 2607 | //---------联系微信客服------------ |
2625 | con_weixin: function () { | 2608 | con_weixin: function () { |
2626 | - var url = this.data.sys_switch.weapp_customertype_url; | ||
2627 | - var id = this.data.sys_switch.weapp_customertype_appid; | ||
2628 | - wx.openCustomerServiceChat({ | ||
2629 | - extInfo: { url: url }, | ||
2630 | - corpId: id, | ||
2631 | - success(res) { } | ||
2632 | - }) | 2609 | + getApp().con_wx(this); |
2633 | } | 2610 | } |
2634 | 2611 | ||
2635 | 2612 |
packageC/pages/presell/goodsInfo/goodsInfo.js
@@ -1430,24 +1430,7 @@ Page({ | @@ -1430,24 +1430,7 @@ Page({ | ||
1430 | 1430 | ||
1431 | //---------联系客服------------ | 1431 | //---------联系客服------------ |
1432 | contactService: function () { | 1432 | contactService: function () { |
1433 | - s.getConfig(function (t) { | ||
1434 | - if (t.store_tel == undefined) { | ||
1435 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
1436 | - isShowLoading: 1, | ||
1437 | - data: {}, | ||
1438 | - success: function (rs) { | ||
1439 | - getApp().globalData.config = rs.data.data; | ||
1440 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
1441 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
1442 | - return false; | ||
1443 | - } | ||
1444 | - s.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
1445 | - } | ||
1446 | - }) | ||
1447 | - } else { | ||
1448 | - s.confirmBox("请联系客服:" + t.store_tel); | ||
1449 | - } | ||
1450 | - }); | 1433 | + getApp().con_Service(); |
1451 | }, | 1434 | }, |
1452 | //-------获取购物车数量---------- | 1435 | //-------获取购物车数量---------- |
1453 | requestCardNum: function () { | 1436 | requestCardNum: function () { |
@@ -1488,11 +1471,8 @@ Page({ | @@ -1488,11 +1471,8 @@ Page({ | ||
1488 | b[i] = this.data.iurl + e[i]; | 1471 | b[i] = this.data.iurl + e[i]; |
1489 | } | 1472 | } |
1490 | this.data.show_prew_img = 1; | 1473 | this.data.show_prew_img = 1; |
1474 | + getApp().pre_img2(b,t) | ||
1491 | 1475 | ||
1492 | - wx.previewImage({ | ||
1493 | - current: b[t.currentTarget.dataset.id], | ||
1494 | - urls: b | ||
1495 | - }); | ||
1496 | }, | 1476 | }, |
1497 | 1477 | ||
1498 | previewCommentImgs_w: function (t) { | 1478 | previewCommentImgs_w: function (t) { |
@@ -1502,21 +1482,16 @@ Page({ | @@ -1502,21 +1482,16 @@ Page({ | ||
1502 | b[i] = this.data.iurl + e[i]; | 1482 | b[i] = this.data.iurl + e[i]; |
1503 | } | 1483 | } |
1504 | this.data.show_prew_img = 1; | 1484 | this.data.show_prew_img = 1; |
1505 | - wx.previewImage({ | ||
1506 | - current: b[t.currentTarget.dataset.id], | ||
1507 | - urls: b | ||
1508 | - }); | 1485 | + getApp().pre_img2(b,t) |
1509 | }, | 1486 | }, |
1510 | 1487 | ||
1511 | previewGoodsCommentImgs: function (t) { | 1488 | previewGoodsCommentImgs: function (t) { |
1512 | var e = this, | 1489 | var e = this, |
1513 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; | 1490 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; |
1491 | + getApp().globalData.no_clear=1; | ||
1514 | a = a.map(function (t) { | 1492 | a = a.map(function (t) { |
1515 | return e.data.url + t; | 1493 | return e.data.url + t; |
1516 | - }), wx.previewImage({ | ||
1517 | - current: a[t.currentTarget.dataset.id], | ||
1518 | - urls: a | ||
1519 | - }); | 1494 | + }), getApp().pre_img2(a,t); |
1520 | this.data.show_prew_img = 1; | 1495 | this.data.show_prew_img = 1; |
1521 | }, | 1496 | }, |
1522 | closePromModal: function () { | 1497 | closePromModal: function () { |
@@ -1531,7 +1506,7 @@ Page({ | @@ -1531,7 +1506,7 @@ Page({ | ||
1531 | }, | 1506 | }, |
1532 | 1507 | ||
1533 | //--点击分享事件--- | 1508 | //--点击分享事件--- |
1534 | - onShareAppMessage: function (t) { | 1509 | + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; |
1535 | 1510 | ||
1536 | var th = this; | 1511 | var th = this; |
1537 | var price = th.data.pre_arr.presell_price; | 1512 | var price = th.data.pre_arr.presell_price; |
@@ -3813,10 +3788,7 @@ Page({ | @@ -3813,10 +3788,7 @@ Page({ | ||
3813 | 3788 | ||
3814 | previewImage() { | 3789 | previewImage() { |
3815 | this.data.show_prew_img = 1; | 3790 | this.data.show_prew_img = 1; |
3816 | - wx.previewImage({ | ||
3817 | - //将图片预览出来 | ||
3818 | - urls: [this.data.shareImgPath] | ||
3819 | - }); | 3791 | + getApp().pre_img(this.data.shareImgPath); |
3820 | }, | 3792 | }, |
3821 | 3793 | ||
3822 | 3794 | ||
@@ -4012,21 +3984,21 @@ Page({ | @@ -4012,21 +3984,21 @@ Page({ | ||
4012 | }, | 3984 | }, |
4013 | 3985 | ||
4014 | con_weixin:function () { | 3986 | con_weixin:function () { |
4015 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
4016 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
4017 | - wx.openCustomerServiceChat({ | ||
4018 | - extInfo: {url: url}, | ||
4019 | - corpId: id, | ||
4020 | - success(res) {} | ||
4021 | - }) | 3987 | + getApp().con_wx(this); |
4022 | }, | 3988 | }, |
4023 | 3989 | ||
4024 | // 预览海报 | 3990 | // 预览海报 |
4025 | previewPoster() { | 3991 | previewPoster() { |
3992 | + getApp().globalData.no_clear=1; | ||
4026 | wx.previewImage({ | 3993 | wx.previewImage({ |
4027 | current: this.data.shareImgPath, // 当前显示图片的http链接 | 3994 | current: this.data.shareImgPath, // 当前显示图片的http链接 |
4028 | urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 | 3995 | urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 |
4029 | }); | 3996 | }); |
4030 | }, | 3997 | }, |
4031 | 3998 | ||
3999 | + | ||
4000 | + click_contact:function () { | ||
4001 | + getApp().globalData.no_clear=1; | ||
4002 | + } | ||
4003 | + | ||
4032 | }); | 4004 | }); |
packageC/pages/presell/goodsInfo/goodsInfo.wxml
@@ -495,7 +495,7 @@ | @@ -495,7 +495,7 @@ | ||
495 | <!-- -----------------底部按钮------------------ --> | 495 | <!-- -----------------底部按钮------------------ --> |
496 | <view class="join-cart"> | 496 | <view class="join-cart"> |
497 | <!-- bindtap="contactService" --> | 497 | <!-- bindtap="contactService" --> |
498 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 498 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
499 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | 499 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> |
500 | <view>客服</view> | 500 | <view>客服</view> |
501 | </button> | 501 | </button> |
packageC/pages/presell/pregoodsInfo/goodsInfo.js
@@ -1431,24 +1431,7 @@ Page({ | @@ -1431,24 +1431,7 @@ Page({ | ||
1431 | 1431 | ||
1432 | //---------联系客服------------ | 1432 | //---------联系客服------------ |
1433 | contactService: function () { | 1433 | contactService: function () { |
1434 | - s.getConfig(function (t) { | ||
1435 | - if (t.store_tel == undefined) { | ||
1436 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
1437 | - isShowLoading: 1, | ||
1438 | - data: {}, | ||
1439 | - success: function (rs) { | ||
1440 | - getApp().globalData.config = rs.data.data; | ||
1441 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
1442 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
1443 | - return false; | ||
1444 | - } | ||
1445 | - s.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
1446 | - } | ||
1447 | - }) | ||
1448 | - } else { | ||
1449 | - s.confirmBox("请联系客服:" + t.store_tel); | ||
1450 | - } | ||
1451 | - }); | 1434 | + getApp().con_Service(); |
1452 | }, | 1435 | }, |
1453 | //-------获取购物车数量---------- | 1436 | //-------获取购物车数量---------- |
1454 | requestCardNum: function () { | 1437 | requestCardNum: function () { |
@@ -1489,11 +1472,7 @@ Page({ | @@ -1489,11 +1472,7 @@ Page({ | ||
1489 | b[i] = this.data.iurl + e[i]; | 1472 | b[i] = this.data.iurl + e[i]; |
1490 | } | 1473 | } |
1491 | this.data.show_prew_img = 1; | 1474 | this.data.show_prew_img = 1; |
1492 | - | ||
1493 | - wx.previewImage({ | ||
1494 | - current: b[t.currentTarget.dataset.id], | ||
1495 | - urls: b | ||
1496 | - }); | 1475 | + getApp().pre_img2(b,t) |
1497 | }, | 1476 | }, |
1498 | 1477 | ||
1499 | previewCommentImgs_w: function (t) { | 1478 | previewCommentImgs_w: function (t) { |
@@ -1503,21 +1482,16 @@ Page({ | @@ -1503,21 +1482,16 @@ Page({ | ||
1503 | b[i] = this.data.iurl + e[i]; | 1482 | b[i] = this.data.iurl + e[i]; |
1504 | } | 1483 | } |
1505 | this.data.show_prew_img = 1; | 1484 | this.data.show_prew_img = 1; |
1506 | - wx.previewImage({ | ||
1507 | - current: b[t.currentTarget.dataset.id], | ||
1508 | - urls: b | ||
1509 | - }); | 1485 | + getApp().pre_img2(b,t) |
1510 | }, | 1486 | }, |
1511 | 1487 | ||
1512 | previewGoodsCommentImgs: function (t) { | 1488 | previewGoodsCommentImgs: function (t) { |
1513 | var e = this, | 1489 | var e = this, |
1514 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; | 1490 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; |
1491 | + getApp().globalData.no_clear=1; | ||
1515 | a = a.map(function (t) { | 1492 | a = a.map(function (t) { |
1516 | return e.data.url + t; | 1493 | return e.data.url + t; |
1517 | - }), wx.previewImage({ | ||
1518 | - current: a[t.currentTarget.dataset.id], | ||
1519 | - urls: a | ||
1520 | - }); | 1494 | + }), getApp().pre_img2(a,t); |
1521 | this.data.show_prew_img = 1; | 1495 | this.data.show_prew_img = 1; |
1522 | }, | 1496 | }, |
1523 | closePromModal: function () { | 1497 | closePromModal: function () { |
@@ -1532,7 +1506,7 @@ Page({ | @@ -1532,7 +1506,7 @@ Page({ | ||
1532 | }, | 1506 | }, |
1533 | 1507 | ||
1534 | //--点击分享事件--- | 1508 | //--点击分享事件--- |
1535 | - onShareAppMessage: function (t) { | 1509 | + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; |
1536 | 1510 | ||
1537 | var th = this; | 1511 | var th = this; |
1538 | var price = th.data.pre_arr.presell_price; | 1512 | var price = th.data.pre_arr.presell_price; |
@@ -3814,10 +3788,7 @@ Page({ | @@ -3814,10 +3788,7 @@ Page({ | ||
3814 | 3788 | ||
3815 | previewImage() { | 3789 | previewImage() { |
3816 | this.data.show_prew_img = 1; | 3790 | this.data.show_prew_img = 1; |
3817 | - wx.previewImage({ | ||
3818 | - //将图片预览出来 | ||
3819 | - urls: [this.data.shareImgPath] | ||
3820 | - }); | 3791 | + getApp().pre_img(this.data.shareImgPath); |
3821 | }, | 3792 | }, |
3822 | 3793 | ||
3823 | 3794 | ||
@@ -4014,13 +3985,12 @@ Page({ | @@ -4014,13 +3985,12 @@ Page({ | ||
4014 | }, | 3985 | }, |
4015 | 3986 | ||
4016 | con_weixin:function () { | 3987 | con_weixin:function () { |
4017 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
4018 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
4019 | - wx.openCustomerServiceChat({ | ||
4020 | - extInfo: {url: url}, | ||
4021 | - corpId: id, | ||
4022 | - success(res) {} | ||
4023 | - }) | 3988 | + getApp().con_wx(this); |
3989 | + }, | ||
3990 | + | ||
3991 | + | ||
3992 | + click_contact:function () { | ||
3993 | + getApp().globalData.no_clear=1; | ||
4024 | } | 3994 | } |
4025 | 3995 | ||
4026 | }); | 3996 | }); |
packageC/pages/presell/pregoodsInfo/goodsInfo.wxml
@@ -495,7 +495,7 @@ | @@ -495,7 +495,7 @@ | ||
495 | <!-- -----------------底部按钮------------------ --> | 495 | <!-- -----------------底部按钮------------------ --> |
496 | <view class="join-cart"> | 496 | <view class="join-cart"> |
497 | <!-- bindtap="contactService" --> | 497 | <!-- bindtap="contactService" --> |
498 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 498 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
499 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | 499 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> |
500 | <view>客服</view> | 500 | <view>客服</view> |
501 | </button> | 501 | </button> |
packageD/pages/AI-test-skin/history_record/history_record.js
@@ -344,7 +344,7 @@ Page({ | @@ -344,7 +344,7 @@ Page({ | ||
344 | /** | 344 | /** |
345 | * 用户点击右上角分享 | 345 | * 用户点击右上角分享 |
346 | */ | 346 | */ |
347 | - onShareAppMessage: function () { | 347 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
348 | 348 | ||
349 | } | 349 | } |
350 | }) | 350 | }) |
351 | \ No newline at end of file | 351 | \ No newline at end of file |
packageD/pages/AI-test-skin/index/aiskin.js
packageD/pages/AI-test-skin/select_photo/select_photo.js
@@ -52,6 +52,7 @@ Page({ | @@ -52,6 +52,7 @@ Page({ | ||
52 | //-- 重新从相册中选择图片 -- | 52 | //-- 重新从相册中选择图片 -- |
53 | show_pai_pop: function () { | 53 | show_pai_pop: function () { |
54 | var th = this; | 54 | var th = this; |
55 | + getApp().globalData.no_clear=1; | ||
55 | //选择和拍照一张图片 | 56 | //选择和拍照一张图片 |
56 | wx.chooseImage({ | 57 | wx.chooseImage({ |
57 | count: 1, | 58 | count: 1, |
@@ -70,6 +71,7 @@ Page({ | @@ -70,6 +71,7 @@ Page({ | ||
70 | //选择图片 | 71 | //选择图片 |
71 | takePhoto() { | 72 | takePhoto() { |
72 | var that = this; | 73 | var that = this; |
74 | + getApp().globalData.no_clear=1; | ||
73 | wx.chooseImage({ | 75 | wx.chooseImage({ |
74 | count: 1, | 76 | count: 1, |
75 | sizeType: ['compressed'], | 77 | sizeType: ['compressed'], |
packageD/pages/AI-test-skin/shoot_notice/shoot_notice.js
@@ -68,13 +68,14 @@ Page({ | @@ -68,13 +68,14 @@ Page({ | ||
68 | /** | 68 | /** |
69 | * 用户点击右上角分享 | 69 | * 用户点击右上角分享 |
70 | */ | 70 | */ |
71 | - onShareAppMessage: function () { | 71 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
72 | 72 | ||
73 | }, | 73 | }, |
74 | 74 | ||
75 | //从相册中选择图片 | 75 | //从相册中选择图片 |
76 | show_pai_pop: function () { | 76 | show_pai_pop: function () { |
77 | let th = this; | 77 | let th = this; |
78 | + getApp().globalData.no_clear=1; | ||
78 | //选择和拍照一张图片 | 79 | //选择和拍照一张图片 |
79 | wx.chooseImage({ | 80 | wx.chooseImage({ |
80 | count: 1, | 81 | count: 1, |
@@ -98,7 +99,7 @@ Page({ | @@ -98,7 +99,7 @@ Page({ | ||
98 | //选择图片 | 99 | //选择图片 |
99 | takePhoto() { | 100 | takePhoto() { |
100 | var that = this; | 101 | var that = this; |
101 | - | 102 | + getApp().globalData.no_clear=1; |
102 | wx.chooseImage({ | 103 | wx.chooseImage({ |
103 | count: 1, | 104 | count: 1, |
104 | sizeType: ['compressed'], | 105 | sizeType: ['compressed'], |
packageD/pages/AI-test-skin/success_result/success_result.js
@@ -83,7 +83,29 @@ Page({ | @@ -83,7 +83,29 @@ Page({ | ||
83 | this.init(); | 83 | this.init(); |
84 | //var face_result=getApp().globalData.face_result; | 84 | //var face_result=getApp().globalData.face_result; |
85 | //var face_data=face_result.face_list[0]; | 85 | //var face_data=face_result.face_list[0]; |
86 | - this.data.id = options.id; | 86 | + var id=options.id; |
87 | + var first_leader = options.first_leader; | ||
88 | + | ||
89 | + if (id == undefined || id == null || id == "") { | ||
90 | + var gid_str = decodeURIComponent(options.scene); | ||
91 | + gid_str = gid_str.split("_"); | ||
92 | + id=gid_str[0]; | ||
93 | + if (gid_str.length > 1) { | ||
94 | + first_leader = gid_str[1]; | ||
95 | + } | ||
96 | + } | ||
97 | + | ||
98 | + this.data.id=id; | ||
99 | + if (first_leader) { | ||
100 | + console.log("log---".first_leader); | ||
101 | + getApp().globalData.first_leader = first_leader; | ||
102 | + //调用接口判断是不是会员 | ||
103 | + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { | ||
104 | + if (res.data.code == 0) { | ||
105 | + getApp().globalData.guide_id = res.data.data.id; | ||
106 | + } | ||
107 | + }) | ||
108 | + } | ||
87 | 109 | ||
88 | //用异步的获取比较准一点 | 110 | //用异步的获取比较准一点 |
89 | wx.getSystemInfo({ | 111 | wx.getSystemInfo({ |
@@ -590,7 +612,15 @@ Page({ | @@ -590,7 +612,15 @@ Page({ | ||
590 | * 用户点击右上角分享 | 612 | * 用户点击右上角分享 |
591 | */ | 613 | */ |
592 | onShareAppMessage: function () { | 614 | onShareAppMessage: function () { |
615 | + getApp().globalData.no_clear=1; | ||
616 | + var url="packageD/pages/AI-test-skin/success_result/success_result?id="+this.data.id+"&first_leader="+getApp().globalData.user_id; | ||
617 | + | ||
618 | + var ob = { | ||
619 | + title: "测肤报告", | ||
620 | + path: url, | ||
621 | + }; | ||
593 | 622 | ||
623 | + return ob; | ||
594 | }, | 624 | }, |
595 | 625 | ||
596 | //商品页面跳转 | 626 | //商品页面跳转 |
@@ -748,7 +778,7 @@ Page({ | @@ -748,7 +778,7 @@ Page({ | ||
748 | } | 778 | } |
749 | ///二微码 | 779 | ///二微码 |
750 | var path3 = setting.url + "/api/wx/open/app/user/getWeAppEwm/" + | 780 | var path3 = setting.url + "/api/wx/open/app/user/getWeAppEwm/" + |
751 | - setting.stoid + "?sceneValue=" + scene + "&pageValue=pages/goods/goodsInfo/goodsInfo"; | 781 | + setting.stoid + "?sceneValue=" + scene + "&pageValue=packageD/pages/AI-test-skin/success_result/success_result"; |
752 | 782 | ||
753 | // 读取文件成功则OK-- | 783 | // 读取文件成功则OK-- |
754 | wx.getImageInfo({ | 784 | wx.getImageInfo({ |
pages/activity/pind_list/pind_list.js
@@ -195,6 +195,7 @@ Page({ | @@ -195,6 +195,7 @@ Page({ | ||
195 | 195 | ||
196 | //---------分享配置-------- | 196 | //---------分享配置-------- |
197 | onShareAppMessage: function (e) { | 197 | onShareAppMessage: function (e) { |
198 | + getApp().globalData.no_clear=1; | ||
198 | var curPage = this; | 199 | var curPage = this; |
199 | var pagePath = curPage.route; //当前页面url | 200 | var pagePath = curPage.route; //当前页面url |
200 | if (pagePath.indexOf('/') != 0) { | 201 | if (pagePath.indexOf('/') != 0) { |
pages/activity/seckill_list/seckill_list.js
@@ -233,6 +233,7 @@ Page({ | @@ -233,6 +233,7 @@ Page({ | ||
233 | 233 | ||
234 | //---------分享配置-------- | 234 | //---------分享配置-------- |
235 | onShareAppMessage: function (e) { | 235 | onShareAppMessage: function (e) { |
236 | + getApp().globalData.no_clear=1; | ||
236 | var curPage = this; | 237 | var curPage = this; |
237 | var pagePath = curPage.route; //当前页面url | 238 | var pagePath = curPage.route; //当前页面url |
238 | if (pagePath.indexOf('/') != 0) { | 239 | if (pagePath.indexOf('/') != 0) { |
pages/cart/cart_wk/cart_wk.js
@@ -94,7 +94,7 @@ Page({ | @@ -94,7 +94,7 @@ Page({ | ||
94 | /** | 94 | /** |
95 | * 用户点击右上角分享 | 95 | * 用户点击右上角分享 |
96 | */ | 96 | */ |
97 | - onShareAppMessage: function () { }, | 97 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, |
98 | //---------------获取物流--------------- | 98 | //---------------获取物流--------------- |
99 | get_wuliu(func) { | 99 | get_wuliu(func) { |
100 | var th = this, | 100 | var th = this, |
pages/distribution/distribution.js
pages/giftpack/mygiftpack/mygiftpack.js
@@ -163,6 +163,7 @@ Page({ | @@ -163,6 +163,7 @@ Page({ | ||
163 | 163 | ||
164 | //--- 分享设置 -- | 164 | //--- 分享设置 -- |
165 | onShareAppMessage: function (e) { | 165 | onShareAppMessage: function (e) { |
166 | + getApp().globalData.no_clear=1; | ||
166 | var curPage = this; | 167 | var curPage = this; |
167 | var pagePath = curPage.route; //当前页面url | 168 | var pagePath = curPage.route; //当前页面url |
168 | if (pagePath.indexOf('/') != 0) { | 169 | if (pagePath.indexOf('/') != 0) { |
pages/goods/categoryList/categoryList.js
@@ -627,7 +627,7 @@ Page({ | @@ -627,7 +627,7 @@ Page({ | ||
627 | 627 | ||
628 | //---------分享配置-------- | 628 | //---------分享配置-------- |
629 | onShareAppMessage: function (e) { | 629 | onShareAppMessage: function (e) { |
630 | - | 630 | + getApp().globalData.no_clear=1; |
631 | var url="pages/goods/categoryList/categoryList"; | 631 | var url="pages/goods/categoryList/categoryList"; |
632 | var userInfo=getApp().globalData.userInfo; | 632 | var userInfo=getApp().globalData.userInfo; |
633 | //是分销商才带 | 633 | //是分销商才带 |
@@ -799,6 +799,7 @@ Page({ | @@ -799,6 +799,7 @@ Page({ | ||
799 | //扫一扫 | 799 | //扫一扫 |
800 | getScancode:function(){ | 800 | getScancode:function(){ |
801 | var _this = this; | 801 | var _this = this; |
802 | + getApp().globalData.no_clear=1; | ||
802 | // 允许从相机和相册扫码 | 803 | // 允许从相机和相册扫码 |
803 | wx.scanCode({ | 804 | wx.scanCode({ |
804 | success: (res) => { | 805 | success: (res) => { |
pages/goods/goodsInfo/goodsInfo.js
@@ -752,6 +752,9 @@ Page({ | @@ -752,6 +752,9 @@ Page({ | ||
752 | 752 | ||
753 | //---展示--- | 753 | //---展示--- |
754 | onShow: function () { | 754 | onShow: function () { |
755 | + | ||
756 | + | ||
757 | + | ||
755 | var goods_list = null, th = this, that = this; | 758 | var goods_list = null, th = this, that = this; |
756 | var show_prew_img = this.data.show_prew_img | 759 | var show_prew_img = this.data.show_prew_img |
757 | if (show_prew_img) { | 760 | if (show_prew_img) { |
@@ -759,6 +762,11 @@ Page({ | @@ -759,6 +762,11 @@ Page({ | ||
759 | return false; | 762 | return false; |
760 | } | 763 | } |
761 | 764 | ||
765 | + if(this.data.show_video) { | ||
766 | + this.data.show_video=0; | ||
767 | + return false; | ||
768 | + } | ||
769 | + | ||
762 | //优惠券要实时更新 | 770 | //优惠券要实时更新 |
763 | getApp().getConfig2(function (e) { | 771 | getApp().getConfig2(function (e) { |
764 | var json_d = JSON.parse(e.switch_list); | 772 | var json_d = JSON.parse(e.switch_list); |
@@ -2280,24 +2288,7 @@ Page({ | @@ -2280,24 +2288,7 @@ Page({ | ||
2280 | 2288 | ||
2281 | //---------联系客服------------ | 2289 | //---------联系客服------------ |
2282 | contactService: function () { | 2290 | contactService: function () { |
2283 | - s.getConfig(function (t) { | ||
2284 | - if (t.store_tel == undefined) { | ||
2285 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
2286 | - isShowLoading: 1, | ||
2287 | - data: {}, | ||
2288 | - success: function (rs) { | ||
2289 | - getApp().globalData.config = rs.data.data; | ||
2290 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
2291 | - getApp().my_warnning("商家未设置电话", 0, th); | ||
2292 | - return false; | ||
2293 | - } | ||
2294 | - s.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
2295 | - } | ||
2296 | - }) | ||
2297 | - } else { | ||
2298 | - s.confirmBox("请联系客服:" + t.store_tel); | ||
2299 | - } | ||
2300 | - }); | 2291 | + getApp().con_Service(); |
2301 | }, | 2292 | }, |
2302 | //-------获取购物车数量---------- | 2293 | //-------获取购物车数量---------- |
2303 | requestCardNum: function () { | 2294 | requestCardNum: function () { |
@@ -2338,11 +2329,7 @@ Page({ | @@ -2338,11 +2329,7 @@ Page({ | ||
2338 | b[i] = this.data.iurl + e[i]; | 2329 | b[i] = this.data.iurl + e[i]; |
2339 | } | 2330 | } |
2340 | this.data.show_prew_img = 1; | 2331 | this.data.show_prew_img = 1; |
2341 | - | ||
2342 | - wx.previewImage({ | ||
2343 | - current: b[t.currentTarget.dataset.id], | ||
2344 | - urls: b | ||
2345 | - }); | 2332 | + getApp().pre_img2(b,t) |
2346 | }, | 2333 | }, |
2347 | 2334 | ||
2348 | previewCommentImgs_w: function (t) { | 2335 | previewCommentImgs_w: function (t) { |
@@ -2352,10 +2339,7 @@ Page({ | @@ -2352,10 +2339,7 @@ Page({ | ||
2352 | b[i] = this.data.iurl + e[i]; | 2339 | b[i] = this.data.iurl + e[i]; |
2353 | } | 2340 | } |
2354 | this.data.show_prew_img = 1; | 2341 | this.data.show_prew_img = 1; |
2355 | - wx.previewImage({ | ||
2356 | - current: b[t.currentTarget.dataset.id], | ||
2357 | - urls: b | ||
2358 | - }); | 2342 | + getApp().pre_img2(b,t) |
2359 | }, | 2343 | }, |
2360 | 2344 | ||
2361 | previewGoodsCommentImgs: function (t) { | 2345 | previewGoodsCommentImgs: function (t) { |
@@ -2363,10 +2347,7 @@ Page({ | @@ -2363,10 +2347,7 @@ Page({ | ||
2363 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; | 2347 | a = this.data.data.comment[t.currentTarget.dataset.cidx].img; |
2364 | a = a.map(function (t) { | 2348 | a = a.map(function (t) { |
2365 | return e.data.url + t; | 2349 | return e.data.url + t; |
2366 | - }), wx.previewImage({ | ||
2367 | - current: a[t.currentTarget.dataset.id], | ||
2368 | - urls: a | ||
2369 | - }); | 2350 | + }), getApp().pre_img2(a,t); |
2370 | this.data.show_prew_img = 1; | 2351 | this.data.show_prew_img = 1; |
2371 | }, | 2352 | }, |
2372 | closePromModal: function () { | 2353 | closePromModal: function () { |
@@ -2381,7 +2362,7 @@ Page({ | @@ -2381,7 +2362,7 @@ Page({ | ||
2381 | }, | 2362 | }, |
2382 | 2363 | ||
2383 | //--点击分享事件--- | 2364 | //--点击分享事件--- |
2384 | - onShareAppMessage: function (t) { | 2365 | + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; |
2385 | 2366 | ||
2386 | var th = this; | 2367 | var th = this; |
2387 | var price = th.data.sele_g.shop_price; | 2368 | var price = th.data.sele_g.shop_price; |
@@ -5911,6 +5892,12 @@ Page({ | @@ -5911,6 +5892,12 @@ Page({ | ||
5911 | 5892 | ||
5912 | wait_for_store_config: function () { | 5893 | wait_for_store_config: function () { |
5913 | var th = this; | 5894 | var th = this; |
5895 | + //----获取系统参数----- | ||
5896 | + getApp().getConfig2(function (e) { | ||
5897 | + th.setData({ | ||
5898 | + bconfig: e, | ||
5899 | + }); | ||
5900 | + }) | ||
5914 | var t_time = setInterval(function () { | 5901 | var t_time = setInterval(function () { |
5915 | if (th.data.bconfig == null) false; | 5902 | if (th.data.bconfig == null) false; |
5916 | var e = th.data.bconfig; | 5903 | var e = th.data.bconfig; |
@@ -6246,10 +6233,7 @@ Page({ | @@ -6246,10 +6233,7 @@ Page({ | ||
6246 | 6233 | ||
6247 | previewImage(e) { | 6234 | previewImage(e) { |
6248 | this.data.show_prew_img = 1; | 6235 | this.data.show_prew_img = 1; |
6249 | - wx.previewImage({ | ||
6250 | - //将图片预览出来 | ||
6251 | - urls: [this.data.sele_g.original_img] | ||
6252 | - }); | 6236 | + getApp().pre_img(this.data.sele_g.original_img); |
6253 | }, | 6237 | }, |
6254 | 6238 | ||
6255 | is_show_more_buy: function () { | 6239 | is_show_more_buy: function () { |
@@ -6499,14 +6483,7 @@ Page({ | @@ -6499,14 +6483,7 @@ Page({ | ||
6499 | }, | 6483 | }, |
6500 | 6484 | ||
6501 | con_weixin: function () { | 6485 | con_weixin: function () { |
6502 | - var url = this.data.sys_switch.weapp_customertype_url; | ||
6503 | - var id = this.data.sys_switch.weapp_customertype_appid; | ||
6504 | - wx.openCustomerServiceChat({ | ||
6505 | - extInfo: {url: url}, | ||
6506 | - corpId: id, | ||
6507 | - success(res) { | ||
6508 | - } | ||
6509 | - }) | 6486 | + getApp().con_wx(this); |
6510 | }, | 6487 | }, |
6511 | get_normal(gid){ | 6488 | get_normal(gid){ |
6512 | this.setData({ | 6489 | this.setData({ |
@@ -6616,11 +6593,24 @@ Page({ | @@ -6616,11 +6593,24 @@ Page({ | ||
6616 | 6593 | ||
6617 | // 预览海报 | 6594 | // 预览海报 |
6618 | previewPoster() { | 6595 | previewPoster() { |
6596 | + getApp().globalData.no_clear=1; | ||
6619 | wx.previewImage({ | 6597 | wx.previewImage({ |
6620 | current: this.data.shareImgPath, // 当前显示图片的http链接 | 6598 | current: this.data.shareImgPath, // 当前显示图片的http链接 |
6621 | urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 | 6599 | urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 |
6622 | }); | 6600 | }); |
6623 | }, | 6601 | }, |
6602 | + | ||
6603 | + screenChange:function (e) { | ||
6604 | + let fullScreen = e.detail.fullScreen //值true为进入全屏,false为退出全屏 | ||
6605 | + if (fullScreen ){ //退出全屏 | ||
6606 | + getApp().globalData.no_clear=1; | ||
6607 | + this.data.show_video=1; | ||
6608 | + } | ||
6609 | + }, | ||
6610 | + | ||
6611 | + click_contact:function () { | ||
6612 | + getApp().globalData.no_clear=1; | ||
6613 | + } | ||
6624 | 6614 | ||
6625 | 6615 | ||
6626 | 6616 |
pages/goods/goodsInfo/goodsInfo.wxml
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | </image> | 42 | </image> |
43 | </view> | 43 | </view> |
44 | <view wx:else> | 44 | <view wx:else> |
45 | - <video class="xc-videos" src="{{iurl+mapurl}}" id="{{index}}" wx:if="{{_index == index}}"></video> | 45 | + <video bindfullscreenchange="screenChange" class="xc-videos" src="{{iurl+mapurl}}" id="{{index}}" wx:if="{{_index == index}}"></video> |
46 | </view> | 46 | </view> |
47 | </swiper-item> | 47 | </swiper-item> |
48 | <swiper-item wx:for="{{gallery}}" wx:key="gallery"> | 48 | <swiper-item wx:for="{{gallery}}" wx:key="gallery"> |
@@ -1011,7 +1011,7 @@ | @@ -1011,7 +1011,7 @@ | ||
1011 | <!-- -----------------底部按钮------------------ --> | 1011 | <!-- -----------------底部按钮------------------ --> |
1012 | <view class="join-cart"> | 1012 | <view class="join-cart"> |
1013 | <!-- bindtap="contactService" --> | 1013 | <!-- bindtap="contactService" --> |
1014 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 1014 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="custom-service cart-ico new_split" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
1015 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> | 1015 | <image class="cs-img" src="{{iurl}}/miniapp/images/custom-service.png"></image> |
1016 | <view>客服</view> | 1016 | <view>客服</view> |
1017 | </button> | 1017 | </button> |
pages/goods/goodsInfo/goodsInfo.wxss
pages/goods/goodsList/goodsList.js
@@ -380,6 +380,7 @@ Page({ | @@ -380,6 +380,7 @@ Page({ | ||
380 | }, | 380 | }, |
381 | //---------分享配置-------- | 381 | //---------分享配置-------- |
382 | onShareAppMessage: function (e) { | 382 | onShareAppMessage: function (e) { |
383 | + getApp().globalData.no_clear=1; | ||
383 | var curPage=this; | 384 | var curPage=this; |
384 | var pagePath = curPage.route; //当前页面url | 385 | var pagePath = curPage.route; //当前页面url |
385 | if (pagePath.indexOf('/') != 0) { | 386 | if (pagePath.indexOf('/') != 0) { |
pages/goods/search/search.js
@@ -389,6 +389,7 @@ Page({ | @@ -389,6 +389,7 @@ Page({ | ||
389 | 389 | ||
390 | //---------分享配置-------- | 390 | //---------分享配置-------- |
391 | onShareAppMessage: function (e) { | 391 | onShareAppMessage: function (e) { |
392 | + getApp().globalData.no_clear=1; | ||
392 | var curPage=this; | 393 | var curPage=this; |
393 | var pagePath = curPage.route; //当前页面url | 394 | var pagePath = curPage.route; //当前页面url |
394 | if (pagePath.indexOf('/') != 0) { | 395 | if (pagePath.indexOf('/') != 0) { |
pages/index/index/index.js
@@ -84,7 +84,6 @@ Page({ | @@ -84,7 +84,6 @@ Page({ | ||
84 | full_ad: null, //全屏广告 | 84 | full_ad: null, //全屏广告 |
85 | full_screen: 0, //全屏广告 | 85 | full_screen: 0, //全屏广告 |
86 | is_ok_h5:0, //判断要不要显示关注二维码 | 86 | is_ok_h5:0, //判断要不要显示关注二维码 |
87 | - | ||
88 | }, | 87 | }, |
89 | 88 | ||
90 | onLoad: async function (tt) { | 89 | onLoad: async function (tt) { |
@@ -223,18 +222,20 @@ Page({ | @@ -223,18 +222,20 @@ Page({ | ||
223 | //如果是自定义模板 | 222 | //如果是自定义模板 |
224 | if (this.data.isTemplate) { | 223 | if (this.data.isTemplate) { |
225 | //---先获取会员--- | 224 | //---先获取会员--- |
226 | - t.getUserFir(function () { | ||
227 | - th.is_festival(); | ||
228 | - var new_nav = th.data.new_nav; | ||
229 | - if (new_nav == "") { | ||
230 | - th.is_new(); | ||
231 | - } | ||
232 | - // sty | ||
233 | - setTimeout(function () { | ||
234 | - if (getApp().globalData.user_id) getApp().requestCardNum(th); | ||
235 | - }, 500) | 225 | + //t.getUserFir(function () { |
226 | + if(getApp().globalData.user_id) { | ||
227 | + th.is_festival(); | ||
228 | + var new_nav = th.data.new_nav; | ||
229 | + if (new_nav == "") { | ||
230 | + th.is_new(); | ||
231 | + } | ||
232 | + // sty | ||
233 | + setTimeout(function () { | ||
234 | + if (getApp().globalData.user_id) getApp().requestCardNum(th); | ||
235 | + }, 500) | ||
236 | + } | ||
236 | 237 | ||
237 | - }); | 238 | + //}); |
238 | } else { | 239 | } else { |
239 | await this.init_fir(); | 240 | await this.init_fir(); |
240 | wx.setNavigationBarColor({ | 241 | wx.setNavigationBarColor({ |
@@ -428,29 +429,18 @@ Page({ | @@ -428,29 +429,18 @@ Page({ | ||
428 | var th = this; | 429 | var th = this; |
429 | 430 | ||
430 | var show = getApp().globalData.isLoad_ad; | 431 | var show = getApp().globalData.isLoad_ad; |
431 | - setTimeout(function () { | ||
432 | - //user没有及时更新 | ||
433 | - var userInfo = getApp().globalData.userInfo; | ||
434 | - if (!userInfo || !userInfo.user_id) userInfo = null; | ||
435 | - //有加载过一次首页,就显示 | ||
436 | - if (show || userInfo || getApp().globalData.user_id) { | 432 | + if(!show){ |
437 | setTimeout(function () { | 433 | setTimeout(function () { |
438 | - full_screen.get_the_full_screen(th); | ||
439 | - }, 800) | ||
440 | - //动画效果 | 434 | + full_screen.get_the_full_screen(th); |
435 | + }, 800); | ||
436 | + getApp().globalData.isLoad_ad=1; | ||
441 | if (!th.data.f_hidden) { | 437 | if (!th.data.f_hidden) { |
442 | - wx.showLoading({ | ||
443 | - title: '加载中..' | ||
444 | - }); | ||
445 | - setTimeout(function () { | ||
446 | - th.setData({ f_hidden: 1 }) | ||
447 | - wx.hideLoading(); | ||
448 | - }, 960) | 438 | + setTimeout(function () { |
439 | + th.setData({ f_hidden: 1 }) | ||
440 | + wx.hideLoading(); | ||
441 | + }, 960) | ||
449 | } | 442 | } |
450 | - } else { | ||
451 | - getApp().globalData.isLoad_ad = 1; | ||
452 | - } | ||
453 | - }, 1500) | 443 | + } |
454 | 444 | ||
455 | setTimeout(function () { | 445 | setTimeout(function () { |
456 | const query = wx.createSelectorQuery(); | 446 | const query = wx.createSelectorQuery(); |
@@ -649,19 +639,20 @@ Page({ | @@ -649,19 +639,20 @@ Page({ | ||
649 | }); | 639 | }); |
650 | 640 | ||
651 | //---先获取会员--- | 641 | //---先获取会员--- |
652 | - t.getUserFir(function () { | ||
653 | - th.is_festival(); | ||
654 | - var new_nav = th.data.new_nav; | ||
655 | - if (new_nav == "") { | ||
656 | - th.is_new(); | ||
657 | - } | ||
658 | - | ||
659 | - // sty | ||
660 | - setTimeout(function () { | ||
661 | - if (getApp().globalData.user_id) getApp().requestCardNum(th); | ||
662 | - }, 500) | 642 | + //t.getUserFir(function () { |
643 | + if(getApp().globalData.user_id) { | ||
644 | + th.is_festival(); | ||
645 | + var new_nav = th.data.new_nav; | ||
646 | + if (new_nav == "") { | ||
647 | + th.is_new(); | ||
648 | + } | ||
663 | 649 | ||
664 | - }); | 650 | + // sty |
651 | + setTimeout(function () { | ||
652 | + if (getApp().globalData.user_id) getApp().requestCardNum(th); | ||
653 | + }, 500) | ||
654 | + } | ||
655 | + //}); | ||
665 | 656 | ||
666 | setTimeout(function () { | 657 | setTimeout(function () { |
667 | var goods_list = th.selectComponent("#goods_list"); //组件的id | 658 | var goods_list = th.selectComponent("#goods_list"); //组件的id |
@@ -743,6 +734,7 @@ Page({ | @@ -743,6 +734,7 @@ Page({ | ||
743 | }); | 734 | }); |
744 | }, | 735 | }, |
745 | onShareAppMessage: function (e) { | 736 | onShareAppMessage: function (e) { |
737 | + getApp().globalData.no_clear=1; | ||
746 | var url = "/pages/index/index/index"; | 738 | var url = "/pages/index/index/index"; |
747 | var userInfo = getApp().globalData.userInfo; | 739 | var userInfo = getApp().globalData.userInfo; |
748 | //是分销商才带 | 740 | //是分销商才带 |
@@ -938,6 +930,7 @@ Page({ | @@ -938,6 +930,7 @@ Page({ | ||
938 | //---扫一扫的函数--- | 930 | //---扫一扫的函数--- |
939 | getScancode: function () { | 931 | getScancode: function () { |
940 | var _this = this; | 932 | var _this = this; |
933 | + getApp().globalData.no_clear=1; | ||
941 | // 允许从相机和相册扫码 | 934 | // 允许从相机和相册扫码 |
942 | wx.scanCode({ | 935 | wx.scanCode({ |
943 | success: (res) => { | 936 | success: (res) => { |
pages/team/team_show/team_show.js
@@ -959,6 +959,7 @@ Page({ | @@ -959,6 +959,7 @@ Page({ | ||
959 | 959 | ||
960 | //------ 分享配置 -------- | 960 | //------ 分享配置 -------- |
961 | onShareAppMessage: function (e) { | 961 | onShareAppMessage: function (e) { |
962 | + getApp().globalData.no_clear=1; | ||
962 | var curPage=this; | 963 | var curPage=this; |
963 | var pagePath = curPage.route; //当前页面url | 964 | var pagePath = curPage.route; //当前页面url |
964 | if (pagePath.indexOf('/') != 0) { | 965 | if (pagePath.indexOf('/') != 0) { |
pages/team/team_success/team_success.js
@@ -817,6 +817,7 @@ Page({ | @@ -817,6 +817,7 @@ Page({ | ||
817 | 817 | ||
818 | //------ 分享配置 -------- | 818 | //------ 分享配置 -------- |
819 | onShareAppMessage: function (e) { | 819 | onShareAppMessage: function (e) { |
820 | + getApp().globalData.no_clear=1; | ||
820 | var th=this; | 821 | var th=this; |
821 | var scene=this.data.teamgroup.id; | 822 | var scene=this.data.teamgroup.id; |
822 | var goods_id=this.data.teamlist.goods_id; | 823 | var goods_id=this.data.teamlist.goods_id; |
pages/template/index.js
pages/user/Detailed/Detailed.js
@@ -184,7 +184,7 @@ Page({ | @@ -184,7 +184,7 @@ Page({ | ||
184 | 184 | ||
185 | saveImageToPhotosAlbum: function () { | 185 | saveImageToPhotosAlbum: function () { |
186 | if (this.data.imagePath != "") { | 186 | if (this.data.imagePath != "") { |
187 | - wx.previewImage({ urls: [this.data.imagePath], }) | 187 | + getApp().pre_img(this.data.imagePath); |
188 | return; | 188 | return; |
189 | } | 189 | } |
190 | 190 | ||
@@ -372,9 +372,8 @@ Page({ | @@ -372,9 +372,8 @@ Page({ | ||
372 | maskHidden: false, | 372 | maskHidden: false, |
373 | canvasHidden: true | 373 | canvasHidden: true |
374 | }); | 374 | }); |
375 | - wx.previewImage({ | ||
376 | - urls: [res.tempFilePath], | ||
377 | - }) | 375 | + |
376 | + getApp().pre_img(res.tempFilePath); | ||
378 | if (!res.tempFilePath) { | 377 | if (!res.tempFilePath) { |
379 | wx.showModal({ | 378 | wx.showModal({ |
380 | title: '提示', | 379 | title: '提示', |
pages/user/assistance/assistance.js
@@ -229,6 +229,7 @@ Page({ | @@ -229,6 +229,7 @@ Page({ | ||
229 | }, | 229 | }, |
230 | 230 | ||
231 | onShareAppMessage(res) { | 231 | onShareAppMessage(res) { |
232 | + getApp().globalData.no_clear=1; | ||
232 | if (res.from === 'button') { | 233 | if (res.from === 'button') { |
233 | // 来自页面内转发按钮 | 234 | // 来自页面内转发按钮 |
234 | console.log(res.target) | 235 | console.log(res.target) |
pages/user/assistance/friend_assistance.js
pages/user/assistance/task_assistance.js
@@ -671,13 +671,14 @@ Page({ | @@ -671,13 +671,14 @@ Page({ | ||
671 | /** | 671 | /** |
672 | * 用户点击右上角分享 | 672 | * 用户点击右上角分享 |
673 | */ | 673 | */ |
674 | - onShareAppMessage: function () { | 674 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
675 | 675 | ||
676 | }, | 676 | }, |
677 | 677 | ||
678 | preview: function () { | 678 | preview: function () { |
679 | var th = this; | 679 | var th = this; |
680 | var shareImgPath = th.data.shareImgPath; | 680 | var shareImgPath = th.data.shareImgPath; |
681 | + getApp().globalData.no_clear=1; | ||
681 | wx.previewImage({ | 682 | wx.previewImage({ |
682 | url: shareImgPath[0], | 683 | url: shareImgPath[0], |
683 | urls: shareImgPath | 684 | urls: shareImgPath |
@@ -920,6 +921,7 @@ Page({ | @@ -920,6 +921,7 @@ Page({ | ||
920 | preview: function () { | 921 | preview: function () { |
921 | var th = this; | 922 | var th = this; |
922 | var shareImgPath = th.data.shareImgPath; | 923 | var shareImgPath = th.data.shareImgPath; |
924 | + getApp().globalData.no_clear=1; | ||
923 | wx.previewImage({ | 925 | wx.previewImage({ |
924 | url: shareImgPath[0], | 926 | url: shareImgPath[0], |
925 | urls: shareImgPath | 927 | urls: shareImgPath |
pages/user/cardinfo/cardinfo.js
@@ -324,12 +324,11 @@ Page({ | @@ -324,12 +324,11 @@ Page({ | ||
324 | */ | 324 | */ |
325 | saveImageToPhotosAlbum: function () { | 325 | saveImageToPhotosAlbum: function () { |
326 | if (this.data.imagePath != "") { | 326 | if (this.data.imagePath != "") { |
327 | - wx.previewImage({ | ||
328 | - urls: [this.data.imagePath], | ||
329 | - }) | 327 | + getApp().pre_img(this.data.imagePath); |
330 | return; | 328 | return; |
331 | } | 329 | } |
332 | - // if(this.data.is_loading) return false ; | 330 | + |
331 | + //if(this.data.is_loading) return false ; | ||
333 | this.data.is_loading=1; | 332 | this.data.is_loading=1; |
334 | 333 | ||
335 | wx.showLoading({ | 334 | wx.showLoading({ |
@@ -607,9 +606,7 @@ Page({ | @@ -607,9 +606,7 @@ Page({ | ||
607 | maskHidden: false, | 606 | maskHidden: false, |
608 | canvasHidden: true | 607 | canvasHidden: true |
609 | }); | 608 | }); |
610 | - wx.previewImage({ | ||
611 | - urls: [res.tempFilePath], | ||
612 | - }) | 609 | + getApp().pre_img(res.tempFilePath); |
613 | if (!res.tempFilePath) { | 610 | if (!res.tempFilePath) { |
614 | wx.showModal({ | 611 | wx.showModal({ |
615 | title: '提示', | 612 | title: '提示', |
pages/user/deposit/prepaid/msg/msg.js
@@ -105,7 +105,7 @@ Page({ | @@ -105,7 +105,7 @@ Page({ | ||
105 | /** | 105 | /** |
106 | * 用户点击右上角分享 | 106 | * 用户点击右上角分享 |
107 | */ | 107 | */ |
108 | - onShareAppMessage: function () { | 108 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
109 | 109 | ||
110 | } | 110 | } |
111 | }) | 111 | }) |
112 | \ No newline at end of file | 112 | \ No newline at end of file |
pages/user/index/index.js
@@ -502,7 +502,7 @@ Page({ | @@ -502,7 +502,7 @@ Page({ | ||
502 | /** | 502 | /** |
503 | * 用户点击右上角分享 | 503 | * 用户点击右上角分享 |
504 | */ | 504 | */ |
505 | - onShareAppMessage: function() {}, | 505 | + onShareAppMessage: function() { getApp().globalData.no_clear=1; }, |
506 | 506 | ||
507 | //------卡片的显示和关闭-------- | 507 | //------卡片的显示和关闭-------- |
508 | show_tc: function() { | 508 | show_tc: function() { |
@@ -703,25 +703,7 @@ Page({ | @@ -703,25 +703,7 @@ Page({ | ||
703 | 703 | ||
704 | //---------联系客服------------ | 704 | //---------联系客服------------ |
705 | contactService: function() { | 705 | contactService: function() { |
706 | - var s = getApp(); | ||
707 | - s.getConfig(function(t) { | ||
708 | - if (t.store_tel == undefined) { | ||
709 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
710 | - isShowLoading: 1, | ||
711 | - data: {}, | ||
712 | - success: function(rs) { | ||
713 | - getApp().globalData.config = rs.data.data; | ||
714 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
715 | - getApp().showWarning("商家未设置电话"); | ||
716 | - return false; | ||
717 | - } | ||
718 | - s.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
719 | - } | ||
720 | - }) | ||
721 | - } else { | ||
722 | - s.confirmBox("请联系客服:" + t.store_tel); | ||
723 | - } | ||
724 | - }); | 706 | + getApp().con_Service(); |
725 | }, | 707 | }, |
726 | 708 | ||
727 | go_info: function() { | 709 | go_info: function() { |
@@ -859,13 +841,7 @@ Page({ | @@ -859,13 +841,7 @@ Page({ | ||
859 | }, | 841 | }, |
860 | 842 | ||
861 | con_weixin:function () { | 843 | con_weixin:function () { |
862 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
863 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
864 | - wx.openCustomerServiceChat({ | ||
865 | - extInfo: {url: url}, | ||
866 | - corpId: id, | ||
867 | - success(res) {} | ||
868 | - }) | 844 | + getApp().con_wx(this); |
869 | }, | 845 | }, |
870 | 846 | ||
871 | //初始话按钮图标 | 847 | //初始话按钮图标 |
@@ -902,6 +878,11 @@ Page({ | @@ -902,6 +878,11 @@ Page({ | ||
902 | } | 878 | } |
903 | }) | 879 | }) |
904 | this.setData({user_tool:d_list}); | 880 | this.setData({user_tool:d_list}); |
881 | + }, | ||
882 | + | ||
883 | + | ||
884 | + click_contact:function () { | ||
885 | + getApp().globalData.no_clear=1; | ||
905 | } | 886 | } |
906 | 887 | ||
907 | 888 |
pages/user/index/index.wxml
@@ -261,7 +261,7 @@ | @@ -261,7 +261,7 @@ | ||
261 | <!-- 没有链接地址的时候 --> | 261 | <!-- 没有链接地址的时候 --> |
262 | <block wx:else> | 262 | <block wx:else> |
263 | <block wx:if="{{item.name=='联系客服'}}"> | 263 | <block wx:if="{{item.name=='联系客服'}}"> |
264 | - <button class="item t-c" wx:if="{{sys_switch.weapp_customertype==1}}" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> | 264 | + <button class="item t-c" wx:if="{{sys_switch.weapp_customertype==1}}" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}"> |
265 | <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> | 265 | <image class="xc-center-img " src="{{iurl+item.icoimg}}"></image> |
266 | <view class="fs26">联系客服</view> | 266 | <view class="fs26">联系客服</view> |
267 | </button> | 267 | </button> |
pages/user/integral/integral.js
pages/user/integral/msg/msg.js
@@ -104,7 +104,7 @@ Page({ | @@ -104,7 +104,7 @@ Page({ | ||
104 | /** | 104 | /** |
105 | * 用户点击右上角分享 | 105 | * 用户点击右上角分享 |
106 | */ | 106 | */ |
107 | - onShareAppMessage: function () { | 107 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
108 | 108 | ||
109 | } | 109 | } |
110 | }) | 110 | }) |
111 | \ No newline at end of file | 111 | \ No newline at end of file |
pages/user/member/bring/bring.js
@@ -407,6 +407,6 @@ Page({ | @@ -407,6 +407,6 @@ Page({ | ||
407 | * 用户点击右上角分享 | 407 | * 用户点击右上角分享 |
408 | */ | 408 | */ |
409 | onShareAppMessage: function() { | 409 | onShareAppMessage: function() { |
410 | - | 410 | + getApp().globalData.no_clear=1; |
411 | } | 411 | } |
412 | }) | 412 | }) |
413 | \ No newline at end of file | 413 | \ No newline at end of file |
pages/user/member/bring/msg/msg.js
@@ -99,7 +99,7 @@ Page({ | @@ -99,7 +99,7 @@ Page({ | ||
99 | /** | 99 | /** |
100 | * 用户点击右上角分享 | 100 | * 用户点击右上角分享 |
101 | */ | 101 | */ |
102 | - onShareAppMessage: function () { | 102 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
103 | 103 | ||
104 | } | 104 | } |
105 | }) | 105 | }) |
106 | \ No newline at end of file | 106 | \ No newline at end of file |
pages/user/member/menber.js
@@ -154,7 +154,7 @@ Page({ | @@ -154,7 +154,7 @@ Page({ | ||
154 | /** | 154 | /** |
155 | * 用户点击右上角分享 | 155 | * 用户点击右上角分享 |
156 | */ | 156 | */ |
157 | - onShareAppMessage: function () { | 157 | + onShareAppMessage: function () { getApp().globalData.no_clear=1 |
158 | 158 | ||
159 | } | 159 | } |
160 | }) | 160 | }) |
161 | \ No newline at end of file | 161 | \ No newline at end of file |
pages/user/my_service/beauty_deta.js
@@ -393,6 +393,7 @@ Page({ | @@ -393,6 +393,7 @@ Page({ | ||
393 | previewImage: function (e) { | 393 | previewImage: function (e) { |
394 | var th = this; | 394 | var th = this; |
395 | var current = e.currentTarget.dataset.src; | 395 | var current = e.currentTarget.dataset.src; |
396 | + getApp().globalData.no_clear=1; | ||
396 | wx.previewImage({ | 397 | wx.previewImage({ |
397 | current: current, // 当前显示图片的http链接 | 398 | current: current, // 当前显示图片的http链接 |
398 | urls: [th.data.head_img] // 需要预览的图片http链接列表 | 399 | urls: [th.data.head_img] // 需要预览的图片http链接列表 |
pages/user/order_detail/order_detail.js
@@ -253,24 +253,7 @@ Page({ | @@ -253,24 +253,7 @@ Page({ | ||
253 | }, | 253 | }, |
254 | /*-----联系客户------*/ | 254 | /*-----联系客户------*/ |
255 | contactService: function() { | 255 | contactService: function() { |
256 | - e.getConfig(function(t) { | ||
257 | - if (t.store_tel == undefined) { | ||
258 | - getApp().request.get("/api/weshop/store/get/" + os.stoid, { | ||
259 | - isShowLoading: 1, | ||
260 | - data: {}, | ||
261 | - success: function (rs) { | ||
262 | - getApp().globalData.config = rs.data.data; | ||
263 | - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { | ||
264 | - getApp().showWarning("商家未设置电话"); | ||
265 | - return false; | ||
266 | - } | ||
267 | - e.confirmBox("请联系客服:" + rs.data.data.store_tel); | ||
268 | - } | ||
269 | - }) | ||
270 | - } else { | ||
271 | - e.confirmBox("请联系客服:" + t.store_tel); | ||
272 | - } | ||
273 | - }); | 256 | + getApp().con_Service(); |
274 | }, | 257 | }, |
275 | 258 | ||
276 | //--------取消订单--------- | 259 | //--------取消订单--------- |
@@ -1632,13 +1615,7 @@ Page({ | @@ -1632,13 +1615,7 @@ Page({ | ||
1632 | }, | 1615 | }, |
1633 | 1616 | ||
1634 | con_weixin:function () { | 1617 | con_weixin:function () { |
1635 | - var url=this.data.sys_switch.weapp_customertype_url; | ||
1636 | - var id=this.data.sys_switch.weapp_customertype_appid; | ||
1637 | - wx.openCustomerServiceChat({ | ||
1638 | - extInfo: {url: url}, | ||
1639 | - corpId: id, | ||
1640 | - success(res) {} | ||
1641 | - }) | 1618 | + getApp().con_wx(this); |
1642 | }, | 1619 | }, |
1643 | 1620 | ||
1644 | //跳转到商品 | 1621 | //跳转到商品 |
@@ -1675,6 +1652,12 @@ Page({ | @@ -1675,6 +1652,12 @@ Page({ | ||
1675 | getApp().goto(good_url); | 1652 | getApp().goto(good_url); |
1676 | } | 1653 | } |
1677 | }) | 1654 | }) |
1655 | + }, | ||
1656 | + | ||
1657 | + | ||
1658 | + | ||
1659 | + click_contact:function () { | ||
1660 | + getApp().globalData.no_clear=1; | ||
1678 | } | 1661 | } |
1679 | 1662 | ||
1680 | 1663 |
pages/user/order_detail/order_detail.wxml
@@ -54,7 +54,7 @@ | @@ -54,7 +54,7 @@ | ||
54 | <view bindtap="checkTeam" class="contact-us check-btn" wx:if="{{optionIsGoup}}">查看拼团详情</view> | 54 | <view bindtap="checkTeam" class="contact-us check-btn" wx:if="{{optionIsGoup}}">查看拼团详情</view> |
55 | <view> | 55 | <view> |
56 | 56 | ||
57 | - <button wx:if="{{sys_switch.weapp_customertype==1}}" class="contact-us goods-btn" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">联系客服</button> | 57 | + <button wx:if="{{sys_switch.weapp_customertype==1}}" class="contact-us goods-btn" bindtap="click_contact" open-type="contact" session-from="wechat|{{userInfo.user_id}}|{{userInfo.nickname}}|{{userInfo.head_pic}}">联系客服</button> |
58 | 58 | ||
59 | <view wx:elif="{{sys_switch.weapp_customertype==2}}" bindtap="con_weixin" class="contact-us goods-btn">联系客服</view> | 59 | <view wx:elif="{{sys_switch.weapp_customertype==2}}" bindtap="con_weixin" class="contact-us goods-btn">联系客服</view> |
60 | <view wx:else bindtap="contactService" class="contact-us goods-btn">联系客服</view> | 60 | <view wx:else bindtap="contactService" class="contact-us goods-btn">联系客服</view> |
@@ -77,7 +77,10 @@ | @@ -77,7 +77,10 @@ | ||
77 | 77 | ||
78 | <view class="item" wx:if="{{order.order_prom_type!=5}}"> | 78 | <view class="item" wx:if="{{order.order_prom_type!=5}}"> |
79 | <view>配送方式</view> | 79 | <view>配送方式</view> |
80 | - <view>{{(order.shipping_name!=''&& order.shipping_name!=null) ?order.shipping_name:'自提'}}</view> | 80 | + <view wx:if="{{order.pt_status<4 && order.is_zsorder==4}}"> |
81 | + -- | ||
82 | + </view> | ||
83 | + <view wx:else>{{(order.shipping_name!=''&& order.shipping_name!=null) ?order.shipping_name:'自提'}}</view> | ||
81 | </view> | 84 | </view> |
82 | <view class="item"> | 85 | <view class="item"> |
83 | <view>买家留言</view> | 86 | <view>买家留言</view> |
pages/user/return_goods_info/return_goods_info.js
@@ -158,6 +158,7 @@ Page({ | @@ -158,6 +158,7 @@ Page({ | ||
158 | }, | 158 | }, |
159 | previewImgs: function(e) { | 159 | previewImgs: function(e) { |
160 | var t = this, r = this.data.return_goods.imgs; | 160 | var t = this, r = this.data.return_goods.imgs; |
161 | + getApp().globalData.no_clear=1; | ||
161 | r = r.map(function(e) { | 162 | r = r.map(function(e) { |
162 | return t.data.url + e; | 163 | return t.data.url + e; |
163 | }), wx.previewImage({ | 164 | }), wx.previewImage({ |
pages/user/user_spsy/user_spsy.js
pages/user/userinfo/userinfo.js
@@ -834,6 +834,7 @@ Page({ | @@ -834,6 +834,7 @@ Page({ | ||
834 | changeAvatar: function() { | 834 | changeAvatar: function() { |
835 | return false; | 835 | return false; |
836 | var r = this; | 836 | var r = this; |
837 | + getApp().globalData.no_clear=1; | ||
837 | wx.chooseImage({ | 838 | wx.chooseImage({ |
838 | count: 1, | 839 | count: 1, |
839 | sizeType: ["compressed", "original"], | 840 | sizeType: ["compressed", "original"], |
@@ -996,6 +997,7 @@ Page({ | @@ -996,6 +997,7 @@ Page({ | ||
996 | 997 | ||
997 | //--点击分享事件--- | 998 | //--点击分享事件--- |
998 | onShareAppMessage: function(t) { | 999 | onShareAppMessage: function(t) { |
1000 | + getApp().globalData.no_clear=1; | ||
999 | return o.share; | 1001 | return o.share; |
1000 | }, | 1002 | }, |
1001 | 1003 |
pages/user/userqy/userqy.js
utils/selectFiles.js
1 | module.exports = { | 1 | module.exports = { |
2 | selectPhotos: function(e, s, o) { | 2 | selectPhotos: function(e, s, o) { |
3 | + getApp().globalData.no_clear=1; | ||
3 | if (void 0 === e[s]) { | 4 | if (void 0 === e[s]) { |
4 | var c = 5 - e.length; | 5 | var c = 5 - e.length; |
5 | c > 0 && wx.chooseImage({ | 6 | c > 0 && wx.chooseImage({ |
utils/wxParse/wxParse.js
@@ -16,6 +16,7 @@ function t(e, t, a) { | @@ -16,6 +16,7 @@ function t(e, t, a) { | ||
16 | function a(e) { | 16 | function a(e) { |
17 | var t = this, a = e.target.dataset.src, i = e.target.dataset.from; | 17 | var t = this, a = e.target.dataset.src, i = e.target.dataset.from; |
18 | t.data.show_prew_img=1; | 18 | t.data.show_prew_img=1; |
19 | + getApp().globalData.no_clear=1; | ||
19 | void 0 !== i && i.length > 0 && wx.previewImage({ | 20 | void 0 !== i && i.length > 0 && wx.previewImage({ |
20 | current: a, | 21 | current: a, |
21 | urls: t.data[i].imageUrls, | 22 | urls: t.data[i].imageUrls, |