diff --git a/components/diy_scan/diy_scan.js b/components/diy_scan/diy_scan.js index 8abf39e..5072315 100644 --- a/components/diy_scan/diy_scan.js +++ b/components/diy_scan/diy_scan.js @@ -26,6 +26,7 @@ Component({ //-- 扫描成功之后 -- getScancode:function(){ var _this = this; + getApp().globalData.no_clear=1; //-- 允许从相机和相册扫码 -- wx.scanCode({ success: (res) => { diff --git a/components/diy_service/diy_service.js b/components/diy_service/diy_service.js index adc1c34..7d42364 100644 --- a/components/diy_service/diy_service.js +++ b/components/diy_service/diy_service.js @@ -38,35 +38,16 @@ Component({ //---------联系客服------------ contactService: function() { - getApp().getConfig(function(t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function(rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().my_warnning("商家未设置电话", 0, th); - return false; - } - wx.makePhoneCall({ phoneNumber: rs.data.data.store_tel, }) - } - }) - } else { - wx.makePhoneCall({ phoneNumber: t.store_tel, }) - } - }); - }, + getApp().con_Service(); + }, //---------联系微信客服------------ con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this); + }, + + click_contact:function () { + getApp().globalData.no_clear=1; } } }) diff --git a/components/diy_service/diy_service.wxml b/components/diy_service/diy_service.wxml index b35487c..ee3983f 100644 --- a/components/diy_service/diy_service.wxml +++ b/components/diy_service/diy_service.wxml @@ -8,7 +8,7 @@ - 联系客服 联系客服 diff --git a/packageA/pages/distribution/card/card.js b/packageA/pages/distribution/card/card.js index b78cbd1..0a8e23a 100644 --- a/packageA/pages/distribution/card/card.js +++ b/packageA/pages/distribution/card/card.js @@ -92,7 +92,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/commision/commision.js b/packageA/pages/distribution/commision/commision.js index 210ee15..cbfac7a 100644 --- a/packageA/pages/distribution/commision/commision.js +++ b/packageA/pages/distribution/commision/commision.js @@ -149,7 +149,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/goods/goods.js b/packageA/pages/distribution/goods/goods.js index f6d3451..ea0a47e 100644 --- a/packageA/pages/distribution/goods/goods.js +++ b/packageA/pages/distribution/goods/goods.js @@ -264,7 +264,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/myteam/myteam.js b/packageA/pages/distribution/myteam/myteam.js index 582a165..d7690a5 100644 --- a/packageA/pages/distribution/myteam/myteam.js +++ b/packageA/pages/distribution/myteam/myteam.js @@ -157,7 +157,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/order/order.js b/packageA/pages/distribution/order/order.js index 45b8fd4..1b5c28d 100644 --- a/packageA/pages/distribution/order/order.js +++ b/packageA/pages/distribution/order/order.js @@ -141,7 +141,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/rank/rank.js b/packageA/pages/distribution/rank/rank.js index dd29d33..fa5e954 100644 --- a/packageA/pages/distribution/rank/rank.js +++ b/packageA/pages/distribution/rank/rank.js @@ -151,7 +151,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/rookie/rookie.js b/packageA/pages/distribution/rookie/rookie.js index b7defcc..200b6ba 100644 --- a/packageA/pages/distribution/rookie/rookie.js +++ b/packageA/pages/distribution/rookie/rookie.js @@ -112,7 +112,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageA/pages/distribution/shop/shop.js b/packageA/pages/distribution/shop/shop.js index 20860ff..8a6c936 100644 --- a/packageA/pages/distribution/shop/shop.js +++ b/packageA/pages/distribution/shop/shop.js @@ -316,7 +316,7 @@ Page({ * 用户点击右上角分享 *--点击分享事件--分享我的小店 *--*/ - onShareAppMessage: function (t) { + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; var th = this; var title = "我的小店"; diff --git a/packageA/pages/goodsInfo/goodsInfo.js b/packageA/pages/goodsInfo/goodsInfo.js index 34fb2fe..055cacc 100644 --- a/packageA/pages/goodsInfo/goodsInfo.js +++ b/packageA/pages/goodsInfo/goodsInfo.js @@ -1049,24 +1049,7 @@ Page({ //---------联系客服------------ contactService: function() { - s.getConfig(function(t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function(rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().my_warnning("商家未设置电话", 0, th); - return false; - } - s.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - s.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, //-------获取购物车数量---------- requestCardNum: function() { @@ -1109,6 +1092,7 @@ Page({ //--点击分享事件--- onShareAppMessage: function(t) { + getApp().globalData.no_clear=1; var th = this; var price = th.data.data.shop_price; @@ -2562,10 +2546,7 @@ Page({ }, previewImage() { - wx.previewImage({ - //将图片预览出来 - urls: [this.data.shareImgPath] - }); + getApp().pre_img(this.data.shareImgPath); }, onShareTimeline() { @@ -2589,13 +2570,7 @@ Page({ //---------联系微信客服------------ con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this) }, //评论的调用 @@ -2792,10 +2767,9 @@ Page({ // b[i] = this.data.iurl + e[i]; // } this.data.show_prew_img = 1; - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); + //调用预览图片 + getApp().pre_img2(b,t); + }, @@ -2934,9 +2908,9 @@ Page({ // }); // return false; // } - - + + // if (prom_type == 1 && prom_id == 0) { // this.setData({ // prom_type: 0, isshow: 1, @@ -2950,7 +2924,7 @@ Page({ // this.check_is_youhui(gid, 1); // return false; // } - + //if (prom_type != 3 && prom_type!=0){ //---判断秒杀---- if (prom_type == 1 && prom_id > 0) { @@ -3030,7 +3004,7 @@ Page({ // //-- 获取秒杀活动的多少规格 -- // ee.get_more_flahs(function (list) { // if (list && list.length > 1) { - + // var n_item = list[0]; // var ind = list.findIndex(function (ele) { // return ele.goods_id == ee.data.data.goods_id; @@ -3041,10 +3015,10 @@ Page({ // list.splice(ind, 1); // list.unshift(n_item); // } - + // ee.data.sele_g.viplimited = n_item.viplimited; // ee.data.data.viplimited = n_item.viplimited; - + // var gb = 1; // //-- 显示多规格 -- // for (let i in list) { @@ -3052,7 +3026,7 @@ Page({ // var gg = ""; // if (item.goods_spec == "null" || item.goods_spec == null) item.goods_spec = ""; // if (item.goods_color == "null" || item.goods_color == null) item.goods_color = ""; - + // if (item.goods_spec != "" && item.goods_color != "") { // gg = item.goods_spec + "/" + item.goods_color; // } else if (item.goods_spec != "" || item.goods_color != "") { @@ -3065,11 +3039,11 @@ Page({ // item.prom_id = item.prom_id; // item.prom_type = 1; // } - + // ee.setData({ // sku_g: list, // }); - + // } // }) // } @@ -3132,22 +3106,14 @@ Page({ } }); }, - - - - + click_contact:function () { + getApp().globalData.no_clear=1; + } - - - - - - - }); diff --git a/packageA/pages/goodsInfo/goodsInfo.wxml b/packageA/pages/goodsInfo/goodsInfo.wxml index 1212320..9684d19 100644 --- a/packageA/pages/goodsInfo/goodsInfo.wxml +++ b/packageA/pages/goodsInfo/goodsInfo.wxml @@ -506,7 +506,7 @@ - diff --git a/packageC/pages/luckyGo/luckyGo_members/luckyGo_members.js b/packageC/pages/luckyGo/luckyGo_members/luckyGo_members.js index 78e8384..af2238d 100644 --- a/packageC/pages/luckyGo/luckyGo_members/luckyGo_members.js +++ b/packageC/pages/luckyGo/luckyGo_members/luckyGo_members.js @@ -92,7 +92,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.js b/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.js index 84762b1..c723924 100644 --- a/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.js +++ b/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.js @@ -237,24 +237,7 @@ Page({ }, /*-----联系客户------*/ contactService: function() { - e.getConfig(function(t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function (rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().showWarning("商家未设置电话"); - return false; - } - e.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - e.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, //--------取消订单--------- @@ -1074,13 +1057,7 @@ Page({ }, con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this); }, //跳转到商品 @@ -1115,6 +1092,11 @@ Page({ // } // }) }, + + + click_contact:function () { + getApp().globalData.no_clear=1; + } diff --git a/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.wxml b/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.wxml index dc1198b..5d11ee4 100644 --- a/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.wxml +++ b/packageC/pages/luckyGo/luckyGo_order/luckyGo_order.wxml @@ -61,7 +61,7 @@ 查看拼团详情 - + 联系客服 联系客服 diff --git a/packageC/pages/luckyGo/luckyGo_winners/luckyGo_winners.js b/packageC/pages/luckyGo/luckyGo_winners/luckyGo_winners.js index e3c1c24..2f6c540 100644 --- a/packageC/pages/luckyGo/luckyGo_winners/luckyGo_winners.js +++ b/packageC/pages/luckyGo/luckyGo_winners/luckyGo_winners.js @@ -114,7 +114,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageC/pages/presell/cart/cart.js b/packageC/pages/presell/cart/cart.js index 9fdfdd2..64106b5 100644 --- a/packageC/pages/presell/cart/cart.js +++ b/packageC/pages/presell/cart/cart.js @@ -2601,35 +2601,12 @@ Page({ //---------联系客服------------ contactService: function () { - getApp().getConfig(function (t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function (rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().my_warnning("商家未设置电话", 0, th); - return false; - } - wx.makePhoneCall({ phoneNumber: rs.data.data.store_tel, }) - } - }) - } else { - wx.makePhoneCall({ phoneNumber: t.store_tel, }) - } - }); + getApp().con_Service(); }, //---------联系微信客服------------ con_weixin: function () { - var url = this.data.sys_switch.weapp_customertype_url; - var id = this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: { url: url }, - corpId: id, - success(res) { } - }) + getApp().con_wx(this); } diff --git a/packageC/pages/presell/goodsInfo/goodsInfo.js b/packageC/pages/presell/goodsInfo/goodsInfo.js index 7a49267..987f15d 100644 --- a/packageC/pages/presell/goodsInfo/goodsInfo.js +++ b/packageC/pages/presell/goodsInfo/goodsInfo.js @@ -1430,24 +1430,7 @@ Page({ //---------联系客服------------ contactService: function () { - s.getConfig(function (t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function (rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().my_warnning("商家未设置电话", 0, th); - return false; - } - s.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - s.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, //-------获取购物车数量---------- requestCardNum: function () { @@ -1488,11 +1471,8 @@ Page({ b[i] = this.data.iurl + e[i]; } this.data.show_prew_img = 1; + getApp().pre_img2(b,t) - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); }, previewCommentImgs_w: function (t) { @@ -1502,21 +1482,16 @@ Page({ b[i] = this.data.iurl + e[i]; } this.data.show_prew_img = 1; - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); + getApp().pre_img2(b,t) }, previewGoodsCommentImgs: function (t) { var e = this, a = this.data.data.comment[t.currentTarget.dataset.cidx].img; + getApp().globalData.no_clear=1; a = a.map(function (t) { return e.data.url + t; - }), wx.previewImage({ - current: a[t.currentTarget.dataset.id], - urls: a - }); + }), getApp().pre_img2(a,t); this.data.show_prew_img = 1; }, closePromModal: function () { @@ -1531,7 +1506,7 @@ Page({ }, //--点击分享事件--- - onShareAppMessage: function (t) { + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; var th = this; var price = th.data.pre_arr.presell_price; @@ -3813,10 +3788,7 @@ Page({ previewImage() { this.data.show_prew_img = 1; - wx.previewImage({ - //将图片预览出来 - urls: [this.data.shareImgPath] - }); + getApp().pre_img(this.data.shareImgPath); }, @@ -4012,21 +3984,21 @@ Page({ }, con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this); }, // 预览海报 previewPoster() { + getApp().globalData.no_clear=1; wx.previewImage({ current: this.data.shareImgPath, // 当前显示图片的http链接 urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 }); }, + + click_contact:function () { + getApp().globalData.no_clear=1; + } + }); diff --git a/packageC/pages/presell/goodsInfo/goodsInfo.wxml b/packageC/pages/presell/goodsInfo/goodsInfo.wxml index 73a884f..0caf452 100644 --- a/packageC/pages/presell/goodsInfo/goodsInfo.wxml +++ b/packageC/pages/presell/goodsInfo/goodsInfo.wxml @@ -495,7 +495,7 @@ - diff --git a/packageC/pages/presell/pregoodsInfo/goodsInfo.js b/packageC/pages/presell/pregoodsInfo/goodsInfo.js index 412d4c7..d4302b4 100644 --- a/packageC/pages/presell/pregoodsInfo/goodsInfo.js +++ b/packageC/pages/presell/pregoodsInfo/goodsInfo.js @@ -1431,24 +1431,7 @@ Page({ //---------联系客服------------ contactService: function () { - s.getConfig(function (t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function (rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().my_warnning("商家未设置电话", 0, th); - return false; - } - s.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - s.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, //-------获取购物车数量---------- requestCardNum: function () { @@ -1489,11 +1472,7 @@ Page({ b[i] = this.data.iurl + e[i]; } this.data.show_prew_img = 1; - - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); + getApp().pre_img2(b,t) }, previewCommentImgs_w: function (t) { @@ -1503,21 +1482,16 @@ Page({ b[i] = this.data.iurl + e[i]; } this.data.show_prew_img = 1; - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); + getApp().pre_img2(b,t) }, previewGoodsCommentImgs: function (t) { var e = this, a = this.data.data.comment[t.currentTarget.dataset.cidx].img; + getApp().globalData.no_clear=1; a = a.map(function (t) { return e.data.url + t; - }), wx.previewImage({ - current: a[t.currentTarget.dataset.id], - urls: a - }); + }), getApp().pre_img2(a,t); this.data.show_prew_img = 1; }, closePromModal: function () { @@ -1532,7 +1506,7 @@ Page({ }, //--点击分享事件--- - onShareAppMessage: function (t) { + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; var th = this; var price = th.data.pre_arr.presell_price; @@ -3814,10 +3788,7 @@ Page({ previewImage() { this.data.show_prew_img = 1; - wx.previewImage({ - //将图片预览出来 - urls: [this.data.shareImgPath] - }); + getApp().pre_img(this.data.shareImgPath); }, @@ -4014,13 +3985,12 @@ Page({ }, con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this); + }, + + + click_contact:function () { + getApp().globalData.no_clear=1; } }); diff --git a/packageC/pages/presell/pregoodsInfo/goodsInfo.wxml b/packageC/pages/presell/pregoodsInfo/goodsInfo.wxml index 3bb3c54..a80ff81 100644 --- a/packageC/pages/presell/pregoodsInfo/goodsInfo.wxml +++ b/packageC/pages/presell/pregoodsInfo/goodsInfo.wxml @@ -495,7 +495,7 @@ - diff --git a/packageD/pages/AI-test-skin/history_record/history_record.js b/packageD/pages/AI-test-skin/history_record/history_record.js index 598d574..1d1aec6 100644 --- a/packageD/pages/AI-test-skin/history_record/history_record.js +++ b/packageD/pages/AI-test-skin/history_record/history_record.js @@ -344,7 +344,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 } }) \ No newline at end of file diff --git a/packageD/pages/AI-test-skin/index/aiskin.js b/packageD/pages/AI-test-skin/index/aiskin.js index 1b36232..7024cbc 100644 --- a/packageD/pages/AI-test-skin/index/aiskin.js +++ b/packageD/pages/AI-test-skin/index/aiskin.js @@ -101,7 +101,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/packageD/pages/AI-test-skin/select_photo/select_photo.js b/packageD/pages/AI-test-skin/select_photo/select_photo.js index bc32fd8..995d321 100644 --- a/packageD/pages/AI-test-skin/select_photo/select_photo.js +++ b/packageD/pages/AI-test-skin/select_photo/select_photo.js @@ -52,6 +52,7 @@ Page({ //-- 重新从相册中选择图片 -- show_pai_pop: function () { var th = this; + getApp().globalData.no_clear=1; //选择和拍照一张图片 wx.chooseImage({ count: 1, @@ -70,6 +71,7 @@ Page({ //选择图片 takePhoto() { var that = this; + getApp().globalData.no_clear=1; wx.chooseImage({ count: 1, sizeType: ['compressed'], diff --git a/packageD/pages/AI-test-skin/shoot_notice/shoot_notice.js b/packageD/pages/AI-test-skin/shoot_notice/shoot_notice.js index 6004d73..8dc2547 100644 --- a/packageD/pages/AI-test-skin/shoot_notice/shoot_notice.js +++ b/packageD/pages/AI-test-skin/shoot_notice/shoot_notice.js @@ -68,13 +68,14 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, //从相册中选择图片 show_pai_pop: function () { let th = this; + getApp().globalData.no_clear=1; //选择和拍照一张图片 wx.chooseImage({ count: 1, @@ -98,7 +99,7 @@ Page({ //选择图片 takePhoto() { var that = this; - + getApp().globalData.no_clear=1; wx.chooseImage({ count: 1, sizeType: ['compressed'], diff --git a/packageD/pages/AI-test-skin/success_result/success_result.js b/packageD/pages/AI-test-skin/success_result/success_result.js index e606b81..1313c21 100644 --- a/packageD/pages/AI-test-skin/success_result/success_result.js +++ b/packageD/pages/AI-test-skin/success_result/success_result.js @@ -83,7 +83,29 @@ Page({ this.init(); //var face_result=getApp().globalData.face_result; //var face_data=face_result.face_list[0]; - this.data.id = options.id; + var id=options.id; + var first_leader = options.first_leader; + + if (id == undefined || id == null || id == "") { + var gid_str = decodeURIComponent(options.scene); + gid_str = gid_str.split("_"); + id=gid_str[0]; + if (gid_str.length > 1) { + first_leader = gid_str[1]; + } + } + + this.data.id=id; + if (first_leader) { + console.log("log---".first_leader); + getApp().globalData.first_leader = first_leader; + //调用接口判断是不是会员 + getApp().request.promiseGet("/api/weshop/shoppingGuide/get/" + os.stoid + "/" + first_leader, {}).then(res => { + if (res.data.code == 0) { + getApp().globalData.guide_id = res.data.data.id; + } + }) + } //用异步的获取比较准一点 wx.getSystemInfo({ @@ -590,7 +612,15 @@ Page({ * 用户点击右上角分享 */ onShareAppMessage: function () { + getApp().globalData.no_clear=1; + var url="packageD/pages/AI-test-skin/success_result/success_result?id="+this.data.id+"&first_leader="+getApp().globalData.user_id; + + var ob = { + title: "测肤报告", + path: url, + }; + return ob; }, //商品页面跳转 @@ -748,7 +778,7 @@ Page({ } ///二微码 var path3 = setting.url + "/api/wx/open/app/user/getWeAppEwm/" + - setting.stoid + "?sceneValue=" + scene + "&pageValue=pages/goods/goodsInfo/goodsInfo"; + setting.stoid + "?sceneValue=" + scene + "&pageValue=packageD/pages/AI-test-skin/success_result/success_result"; // 读取文件成功则OK-- wx.getImageInfo({ diff --git a/pages/activity/pind_list/pind_list.js b/pages/activity/pind_list/pind_list.js index 05e480a..cab2cae 100644 --- a/pages/activity/pind_list/pind_list.js +++ b/pages/activity/pind_list/pind_list.js @@ -195,6 +195,7 @@ Page({ //---------分享配置-------- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var curPage = this; var pagePath = curPage.route; //当前页面url if (pagePath.indexOf('/') != 0) { diff --git a/pages/activity/seckill_list/seckill_list.js b/pages/activity/seckill_list/seckill_list.js index 0c27e38..c979b9c 100644 --- a/pages/activity/seckill_list/seckill_list.js +++ b/pages/activity/seckill_list/seckill_list.js @@ -233,6 +233,7 @@ Page({ //---------分享配置-------- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var curPage = this; var pagePath = curPage.route; //当前页面url if (pagePath.indexOf('/') != 0) { diff --git a/pages/cart/cart_wk/cart_wk.js b/pages/cart/cart_wk/cart_wk.js index 3ac786a..2028d93 100644 --- a/pages/cart/cart_wk/cart_wk.js +++ b/pages/cart/cart_wk/cart_wk.js @@ -94,7 +94,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { }, + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, //---------------获取物流--------------- get_wuliu(func) { var th = this, diff --git a/pages/distribution/distribution.js b/pages/distribution/distribution.js index 5dd2c3c..f249f87 100644 --- a/pages/distribution/distribution.js +++ b/pages/distribution/distribution.js @@ -233,7 +233,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js index 8e0d3d7..13ae8ac 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.js +++ b/pages/giftpack/mygiftpack/mygiftpack.js @@ -163,6 +163,7 @@ Page({ //--- 分享设置 -- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var curPage = this; var pagePath = curPage.route; //当前页面url if (pagePath.indexOf('/') != 0) { diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js index 03a553e..305c0e8 100644 --- a/pages/goods/categoryList/categoryList.js +++ b/pages/goods/categoryList/categoryList.js @@ -627,7 +627,7 @@ Page({ //---------分享配置-------- onShareAppMessage: function (e) { - + getApp().globalData.no_clear=1; var url="pages/goods/categoryList/categoryList"; var userInfo=getApp().globalData.userInfo; //是分销商才带 @@ -799,6 +799,7 @@ Page({ //扫一扫 getScancode:function(){ var _this = this; + getApp().globalData.no_clear=1; // 允许从相机和相册扫码 wx.scanCode({ success: (res) => { diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 4e83a6f..ede09bf 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -752,6 +752,9 @@ Page({ //---展示--- onShow: function () { + + + var goods_list = null, th = this, that = this; var show_prew_img = this.data.show_prew_img if (show_prew_img) { @@ -759,6 +762,11 @@ Page({ return false; } + if(this.data.show_video) { + this.data.show_video=0; + return false; + } + //优惠券要实时更新 getApp().getConfig2(function (e) { var json_d = JSON.parse(e.switch_list); @@ -2280,24 +2288,7 @@ Page({ //---------联系客服------------ contactService: function () { - s.getConfig(function (t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function (rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().my_warnning("商家未设置电话", 0, th); - return false; - } - s.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - s.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, //-------获取购物车数量---------- requestCardNum: function () { @@ -2338,11 +2329,7 @@ Page({ b[i] = this.data.iurl + e[i]; } this.data.show_prew_img = 1; - - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); + getApp().pre_img2(b,t) }, previewCommentImgs_w: function (t) { @@ -2352,10 +2339,7 @@ Page({ b[i] = this.data.iurl + e[i]; } this.data.show_prew_img = 1; - wx.previewImage({ - current: b[t.currentTarget.dataset.id], - urls: b - }); + getApp().pre_img2(b,t) }, previewGoodsCommentImgs: function (t) { @@ -2363,10 +2347,7 @@ Page({ a = this.data.data.comment[t.currentTarget.dataset.cidx].img; a = a.map(function (t) { return e.data.url + t; - }), wx.previewImage({ - current: a[t.currentTarget.dataset.id], - urls: a - }); + }), getApp().pre_img2(a,t); this.data.show_prew_img = 1; }, closePromModal: function () { @@ -2381,7 +2362,7 @@ Page({ }, //--点击分享事件--- - onShareAppMessage: function (t) { + onShareAppMessage: function (t) { getApp().globalData.no_clear=1; var th = this; var price = th.data.sele_g.shop_price; @@ -5911,6 +5892,12 @@ Page({ wait_for_store_config: function () { var th = this; + //----获取系统参数----- + getApp().getConfig2(function (e) { + th.setData({ + bconfig: e, + }); + }) var t_time = setInterval(function () { if (th.data.bconfig == null) false; var e = th.data.bconfig; @@ -6246,10 +6233,7 @@ Page({ previewImage(e) { this.data.show_prew_img = 1; - wx.previewImage({ - //将图片预览出来 - urls: [this.data.sele_g.original_img] - }); + getApp().pre_img(this.data.sele_g.original_img); }, is_show_more_buy: function () { @@ -6499,14 +6483,7 @@ Page({ }, con_weixin: function () { - var url = this.data.sys_switch.weapp_customertype_url; - var id = this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) { - } - }) + getApp().con_wx(this); }, get_normal(gid){ this.setData({ @@ -6616,11 +6593,24 @@ Page({ // 预览海报 previewPoster() { + getApp().globalData.no_clear=1; wx.previewImage({ current: this.data.shareImgPath, // 当前显示图片的http链接 urls: [this.data.shareImgPath] ,// 需要预览的图片http链接列表 }); }, + + screenChange:function (e) { + let fullScreen = e.detail.fullScreen //值true为进入全屏,false为退出全屏 + if (fullScreen ){ //退出全屏 + getApp().globalData.no_clear=1; + this.data.show_video=1; + } + }, + + click_contact:function () { + getApp().globalData.no_clear=1; + } diff --git a/pages/goods/goodsInfo/goodsInfo.wxml b/pages/goods/goodsInfo/goodsInfo.wxml index fa37630..b038c3f 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxml +++ b/pages/goods/goodsInfo/goodsInfo.wxml @@ -42,7 +42,7 @@ - + @@ -1011,7 +1011,7 @@ - diff --git a/pages/goods/goodsInfo/goodsInfo.wxss b/pages/goods/goodsInfo/goodsInfo.wxss index 6b05758..9d08642 100644 --- a/pages/goods/goodsInfo/goodsInfo.wxss +++ b/pages/goods/goodsInfo/goodsInfo.wxss @@ -706,6 +706,7 @@ view.cart-btn-lg { color: #d60021; font-size: 33rpx; font-weight: bold; + display: flex; } .spec-goods-stock { diff --git a/pages/goods/goodsList/goodsList.js b/pages/goods/goodsList/goodsList.js index 4fe7bfe..d9c2b91 100644 --- a/pages/goods/goodsList/goodsList.js +++ b/pages/goods/goodsList/goodsList.js @@ -380,6 +380,7 @@ Page({ }, //---------分享配置-------- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var curPage=this; var pagePath = curPage.route; //当前页面url if (pagePath.indexOf('/') != 0) { diff --git a/pages/goods/search/search.js b/pages/goods/search/search.js index 1776180..1909d73 100644 --- a/pages/goods/search/search.js +++ b/pages/goods/search/search.js @@ -389,6 +389,7 @@ Page({ //---------分享配置-------- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var curPage=this; var pagePath = curPage.route; //当前页面url if (pagePath.indexOf('/') != 0) { diff --git a/pages/index/index/index.js b/pages/index/index/index.js index dedb298..7c4b123 100644 --- a/pages/index/index/index.js +++ b/pages/index/index/index.js @@ -84,7 +84,6 @@ Page({ full_ad: null, //全屏广告 full_screen: 0, //全屏广告 is_ok_h5:0, //判断要不要显示关注二维码 - }, onLoad: async function (tt) { @@ -223,18 +222,20 @@ Page({ //如果是自定义模板 if (this.data.isTemplate) { //---先获取会员--- - t.getUserFir(function () { - th.is_festival(); - var new_nav = th.data.new_nav; - if (new_nav == "") { - th.is_new(); - } - // sty - setTimeout(function () { - if (getApp().globalData.user_id) getApp().requestCardNum(th); - }, 500) + //t.getUserFir(function () { + if(getApp().globalData.user_id) { + th.is_festival(); + var new_nav = th.data.new_nav; + if (new_nav == "") { + th.is_new(); + } + // sty + setTimeout(function () { + if (getApp().globalData.user_id) getApp().requestCardNum(th); + }, 500) + } - }); + //}); } else { await this.init_fir(); wx.setNavigationBarColor({ @@ -428,29 +429,18 @@ Page({ var th = this; var show = getApp().globalData.isLoad_ad; - setTimeout(function () { - //user没有及时更新 - var userInfo = getApp().globalData.userInfo; - if (!userInfo || !userInfo.user_id) userInfo = null; - //有加载过一次首页,就显示 - if (show || userInfo || getApp().globalData.user_id) { + if(!show){ setTimeout(function () { - full_screen.get_the_full_screen(th); - }, 800) - //动画效果 + full_screen.get_the_full_screen(th); + }, 800); + getApp().globalData.isLoad_ad=1; if (!th.data.f_hidden) { - wx.showLoading({ - title: '加载中..' - }); - setTimeout(function () { - th.setData({ f_hidden: 1 }) - wx.hideLoading(); - }, 960) + setTimeout(function () { + th.setData({ f_hidden: 1 }) + wx.hideLoading(); + }, 960) } - } else { - getApp().globalData.isLoad_ad = 1; - } - }, 1500) + } setTimeout(function () { const query = wx.createSelectorQuery(); @@ -649,19 +639,20 @@ Page({ }); //---先获取会员--- - t.getUserFir(function () { - th.is_festival(); - var new_nav = th.data.new_nav; - if (new_nav == "") { - th.is_new(); - } - - // sty - setTimeout(function () { - if (getApp().globalData.user_id) getApp().requestCardNum(th); - }, 500) + //t.getUserFir(function () { + if(getApp().globalData.user_id) { + th.is_festival(); + var new_nav = th.data.new_nav; + if (new_nav == "") { + th.is_new(); + } - }); + // sty + setTimeout(function () { + if (getApp().globalData.user_id) getApp().requestCardNum(th); + }, 500) + } + //}); setTimeout(function () { var goods_list = th.selectComponent("#goods_list"); //组件的id @@ -743,6 +734,7 @@ Page({ }); }, onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var url = "/pages/index/index/index"; var userInfo = getApp().globalData.userInfo; //是分销商才带 @@ -938,6 +930,7 @@ Page({ //---扫一扫的函数--- getScancode: function () { var _this = this; + getApp().globalData.no_clear=1; // 允许从相机和相册扫码 wx.scanCode({ success: (res) => { diff --git a/pages/team/team_show/team_show.js b/pages/team/team_show/team_show.js index 0f00042..ccb5cec 100644 --- a/pages/team/team_show/team_show.js +++ b/pages/team/team_show/team_show.js @@ -959,6 +959,7 @@ Page({ //------ 分享配置 -------- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var curPage=this; var pagePath = curPage.route; //当前页面url if (pagePath.indexOf('/') != 0) { diff --git a/pages/team/team_success/team_success.js b/pages/team/team_success/team_success.js index 0d85179..4ba41e5 100644 --- a/pages/team/team_success/team_success.js +++ b/pages/team/team_success/team_success.js @@ -817,6 +817,7 @@ Page({ //------ 分享配置 -------- onShareAppMessage: function (e) { + getApp().globalData.no_clear=1; var th=this; var scene=this.data.teamgroup.id; var goods_id=this.data.teamlist.goods_id; diff --git a/pages/template/index.js b/pages/template/index.js index 8a3e50c..3cfd960 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -94,7 +94,7 @@ Page({ }, onShareAppMessage: function(e) { - + getApp().globalData.no_clear=1; }, /** diff --git a/pages/user/Detailed/Detailed.js b/pages/user/Detailed/Detailed.js index f87cb44..16cdf46 100644 --- a/pages/user/Detailed/Detailed.js +++ b/pages/user/Detailed/Detailed.js @@ -184,7 +184,7 @@ Page({ saveImageToPhotosAlbum: function () { if (this.data.imagePath != "") { - wx.previewImage({ urls: [this.data.imagePath], }) + getApp().pre_img(this.data.imagePath); return; } @@ -372,9 +372,8 @@ Page({ maskHidden: false, canvasHidden: true }); - wx.previewImage({ - urls: [res.tempFilePath], - }) + + getApp().pre_img(res.tempFilePath); if (!res.tempFilePath) { wx.showModal({ title: '提示', diff --git a/pages/user/assistance/assistance.js b/pages/user/assistance/assistance.js index 1d13f42..870dfb8 100644 --- a/pages/user/assistance/assistance.js +++ b/pages/user/assistance/assistance.js @@ -229,6 +229,7 @@ Page({ }, onShareAppMessage(res) { + getApp().globalData.no_clear=1; if (res.from === 'button') { // 来自页面内转发按钮 console.log(res.target) diff --git a/pages/user/assistance/friend_assistance.js b/pages/user/assistance/friend_assistance.js index 6d9d51e..7e5df72 100644 --- a/pages/user/assistance/friend_assistance.js +++ b/pages/user/assistance/friend_assistance.js @@ -171,7 +171,7 @@ Page({ * 用户点击右上角分享 */ onShareAppMessage: function() { - + getApp().globalData.no_clear=1; }, }) diff --git a/pages/user/assistance/task_assistance.js b/pages/user/assistance/task_assistance.js index 7857e94..aac604a 100644 --- a/pages/user/assistance/task_assistance.js +++ b/pages/user/assistance/task_assistance.js @@ -671,13 +671,14 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, preview: function () { var th = this; var shareImgPath = th.data.shareImgPath; + getApp().globalData.no_clear=1; wx.previewImage({ url: shareImgPath[0], urls: shareImgPath @@ -920,6 +921,7 @@ Page({ preview: function () { var th = this; var shareImgPath = th.data.shareImgPath; + getApp().globalData.no_clear=1; wx.previewImage({ url: shareImgPath[0], urls: shareImgPath diff --git a/pages/user/cardinfo/cardinfo.js b/pages/user/cardinfo/cardinfo.js index 7979aad..cc69cfa 100644 --- a/pages/user/cardinfo/cardinfo.js +++ b/pages/user/cardinfo/cardinfo.js @@ -324,12 +324,11 @@ Page({ */ saveImageToPhotosAlbum: function () { if (this.data.imagePath != "") { - wx.previewImage({ - urls: [this.data.imagePath], - }) + getApp().pre_img(this.data.imagePath); return; } - // if(this.data.is_loading) return false ; + + //if(this.data.is_loading) return false ; this.data.is_loading=1; wx.showLoading({ @@ -607,9 +606,7 @@ Page({ maskHidden: false, canvasHidden: true }); - wx.previewImage({ - urls: [res.tempFilePath], - }) + getApp().pre_img(res.tempFilePath); if (!res.tempFilePath) { wx.showModal({ title: '提示', diff --git a/pages/user/deposit/prepaid/msg/msg.js b/pages/user/deposit/prepaid/msg/msg.js index bc9d3ea..6dd0989 100644 --- a/pages/user/deposit/prepaid/msg/msg.js +++ b/pages/user/deposit/prepaid/msg/msg.js @@ -105,7 +105,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 } }) \ No newline at end of file diff --git a/pages/user/index/index.js b/pages/user/index/index.js index 2fa7e06..cd23628 100644 --- a/pages/user/index/index.js +++ b/pages/user/index/index.js @@ -502,7 +502,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function() {}, + onShareAppMessage: function() { getApp().globalData.no_clear=1; }, //------卡片的显示和关闭-------- show_tc: function() { @@ -703,25 +703,7 @@ Page({ //---------联系客服------------ contactService: function() { - var s = getApp(); - s.getConfig(function(t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function(rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().showWarning("商家未设置电话"); - return false; - } - s.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - s.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, go_info: function() { @@ -859,13 +841,7 @@ Page({ }, con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this); }, //初始话按钮图标 @@ -902,6 +878,11 @@ Page({ } }) this.setData({user_tool:d_list}); + }, + + + click_contact:function () { + getApp().globalData.no_clear=1; } diff --git a/pages/user/index/index.wxml b/pages/user/index/index.wxml index 09ce4f3..3b49e96 100644 --- a/pages/user/index/index.wxml +++ b/pages/user/index/index.wxml @@ -261,7 +261,7 @@ - diff --git a/pages/user/integral/integral.js b/pages/user/integral/integral.js index ab3d4f2..77ee2e7 100644 --- a/pages/user/integral/integral.js +++ b/pages/user/integral/integral.js @@ -350,7 +350,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/pages/user/integral/msg/msg.js b/pages/user/integral/msg/msg.js index 9b67c67..2764231 100644 --- a/pages/user/integral/msg/msg.js +++ b/pages/user/integral/msg/msg.js @@ -104,7 +104,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 } }) \ No newline at end of file diff --git a/pages/user/member/bring/bring.js b/pages/user/member/bring/bring.js index 0b301bb..6b127fe 100644 --- a/pages/user/member/bring/bring.js +++ b/pages/user/member/bring/bring.js @@ -407,6 +407,6 @@ Page({ * 用户点击右上角分享 */ onShareAppMessage: function() { - + getApp().globalData.no_clear=1; } }) \ No newline at end of file diff --git a/pages/user/member/bring/msg/msg.js b/pages/user/member/bring/msg/msg.js index 10bf1bd..07780b1 100644 --- a/pages/user/member/bring/msg/msg.js +++ b/pages/user/member/bring/msg/msg.js @@ -99,7 +99,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 } }) \ No newline at end of file diff --git a/pages/user/member/menber.js b/pages/user/member/menber.js index f02ec40..8eea293 100644 --- a/pages/user/member/menber.js +++ b/pages/user/member/menber.js @@ -154,7 +154,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 } }) \ No newline at end of file diff --git a/pages/user/my_service/beauty_deta.js b/pages/user/my_service/beauty_deta.js index 83ece7b..d49c9c3 100644 --- a/pages/user/my_service/beauty_deta.js +++ b/pages/user/my_service/beauty_deta.js @@ -393,6 +393,7 @@ Page({ previewImage: function (e) { var th = this; var current = e.currentTarget.dataset.src; + getApp().globalData.no_clear=1; wx.previewImage({ current: current, // 当前显示图片的http链接 urls: [th.data.head_img] // 需要预览的图片http链接列表 diff --git a/pages/user/order_detail/order_detail.js b/pages/user/order_detail/order_detail.js index 1a91a14..960f5e0 100644 --- a/pages/user/order_detail/order_detail.js +++ b/pages/user/order_detail/order_detail.js @@ -253,24 +253,7 @@ Page({ }, /*-----联系客户------*/ contactService: function() { - e.getConfig(function(t) { - if (t.store_tel == undefined) { - getApp().request.get("/api/weshop/store/get/" + os.stoid, { - isShowLoading: 1, - data: {}, - success: function (rs) { - getApp().globalData.config = rs.data.data; - if (rs.data.data.store_tel == null && rs.data.data.store_tel == undefined) { - getApp().showWarning("商家未设置电话"); - return false; - } - e.confirmBox("请联系客服:" + rs.data.data.store_tel); - } - }) - } else { - e.confirmBox("请联系客服:" + t.store_tel); - } - }); + getApp().con_Service(); }, //--------取消订单--------- @@ -1632,13 +1615,7 @@ Page({ }, con_weixin:function () { - var url=this.data.sys_switch.weapp_customertype_url; - var id=this.data.sys_switch.weapp_customertype_appid; - wx.openCustomerServiceChat({ - extInfo: {url: url}, - corpId: id, - success(res) {} - }) + getApp().con_wx(this); }, //跳转到商品 @@ -1675,6 +1652,12 @@ Page({ getApp().goto(good_url); } }) + }, + + + + click_contact:function () { + getApp().globalData.no_clear=1; } diff --git a/pages/user/order_detail/order_detail.wxml b/pages/user/order_detail/order_detail.wxml index 72ce859..9a97f62 100644 --- a/pages/user/order_detail/order_detail.wxml +++ b/pages/user/order_detail/order_detail.wxml @@ -54,7 +54,7 @@ 查看拼团详情 - + 联系客服 联系客服 @@ -77,7 +77,10 @@ 配送方式 - {{(order.shipping_name!=''&& order.shipping_name!=null) ?order.shipping_name:'自提'}} + + -- + + {{(order.shipping_name!=''&& order.shipping_name!=null) ?order.shipping_name:'自提'}} 买家留言 diff --git a/pages/user/return_goods_info/return_goods_info.js b/pages/user/return_goods_info/return_goods_info.js index 63e4103..4480a49 100644 --- a/pages/user/return_goods_info/return_goods_info.js +++ b/pages/user/return_goods_info/return_goods_info.js @@ -158,6 +158,7 @@ Page({ }, previewImgs: function(e) { var t = this, r = this.data.return_goods.imgs; + getApp().globalData.no_clear=1; r = r.map(function(e) { return t.data.url + e; }), wx.previewImage({ diff --git a/pages/user/user_spsy/user_spsy.js b/pages/user/user_spsy/user_spsy.js index 5ee5215..df3d87f 100644 --- a/pages/user/user_spsy/user_spsy.js +++ b/pages/user/user_spsy/user_spsy.js @@ -116,7 +116,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, diff --git a/pages/user/userinfo/userinfo.js b/pages/user/userinfo/userinfo.js index e2736ee..8cfde67 100644 --- a/pages/user/userinfo/userinfo.js +++ b/pages/user/userinfo/userinfo.js @@ -834,6 +834,7 @@ Page({ changeAvatar: function() { return false; var r = this; + getApp().globalData.no_clear=1; wx.chooseImage({ count: 1, sizeType: ["compressed", "original"], @@ -996,6 +997,7 @@ Page({ //--点击分享事件--- onShareAppMessage: function(t) { + getApp().globalData.no_clear=1; return o.share; }, diff --git a/pages/user/userqy/userqy.js b/pages/user/userqy/userqy.js index 574c301..f0a4579 100644 --- a/pages/user/userqy/userqy.js +++ b/pages/user/userqy/userqy.js @@ -158,7 +158,7 @@ Page({ /** * 用户点击右上角分享 */ - onShareAppMessage: function () { + onShareAppMessage: function () { getApp().globalData.no_clear=1 }, //--新品使用-- diff --git a/utils/selectFiles.js b/utils/selectFiles.js index 09371c9..e868c8a 100644 --- a/utils/selectFiles.js +++ b/utils/selectFiles.js @@ -1,5 +1,6 @@ module.exports = { selectPhotos: function(e, s, o) { + getApp().globalData.no_clear=1; if (void 0 === e[s]) { var c = 5 - e.length; c > 0 && wx.chooseImage({ diff --git a/utils/wxParse/wxParse.js b/utils/wxParse/wxParse.js index 8f650c9..c7e1d04 100644 --- a/utils/wxParse/wxParse.js +++ b/utils/wxParse/wxParse.js @@ -16,6 +16,7 @@ function t(e, t, a) { function a(e) { var t = this, a = e.target.dataset.src, i = e.target.dataset.from; t.data.show_prew_img=1; + getApp().globalData.no_clear=1; void 0 !== i && i.length > 0 && wx.previewImage({ current: a, urls: t.data[i].imageUrls,