Commit 98d02260f8d45bff250770a0e7f5a4065b72e825
Merge branch 'dev_oa_fu17' into dev
Showing
40 changed files
with
619 additions
and
75 deletions
app.wxss
@@ -367,6 +367,7 @@ button { | @@ -367,6 +367,7 @@ button { | ||
367 | .ai_end{ | 367 | .ai_end{ |
368 | align-items: flex-end; | 368 | align-items: flex-end; |
369 | } | 369 | } |
370 | + | ||
370 | .cover-layer { | 371 | .cover-layer { |
371 | position: fixed; | 372 | position: fixed; |
372 | left: 0; | 373 | left: 0; |
@@ -1332,4 +1333,10 @@ background: #ffe3e2; | @@ -1332,4 +1333,10 @@ background: #ffe3e2; | ||
1332 | 100% { | 1333 | 100% { |
1333 | transform: translateY(550rpx); | 1334 | transform: translateY(550rpx); |
1334 | } | 1335 | } |
1335 | -} | ||
1336 | \ No newline at end of file | 1336 | \ No newline at end of file |
1337 | +} | ||
1338 | + | ||
1339 | +checkbox .wx-checkbox-input { | ||
1340 | + width: 32rpx !important; | ||
1341 | + height: 32rpx !important; | ||
1342 | + margin-right: 16rpx; | ||
1343 | +} |
components/privacy_pop/privacy_pop.js
0 → 100644
1 | +var t = getApp(),os =t.globalData.setting; | ||
2 | +Component({ | ||
3 | + properties: { | ||
4 | + }, | ||
5 | + data: { | ||
6 | + show_pri:0, | ||
7 | + is_all_ok:0, | ||
8 | + store:null | ||
9 | + }, | ||
10 | + //获取一下商家的信息 | ||
11 | + ready: function () { | ||
12 | + getApp().getConfig(e=>{ | ||
13 | + this.setData({store:e}) | ||
14 | + }) | ||
15 | + }, | ||
16 | + | ||
17 | + methods: { | ||
18 | + //判断用户有没有同意安全隐私 | ||
19 | + check_pri_show(){ | ||
20 | + wx.getPrivacySetting({ | ||
21 | + success: res => { | ||
22 | + console.log(res) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' } | ||
23 | + if (res.needAuthorization) { | ||
24 | + // 需要弹出隐私协议 | ||
25 | + this.setData({ | ||
26 | + show_pri: 1 | ||
27 | + }) | ||
28 | + }else{ | ||
29 | + this.setData({ | ||
30 | + show_pri: 0 | ||
31 | + }) | ||
32 | + this.triggerEvent('agree_pri');// 调用同意的函数 | ||
33 | + } | ||
34 | + } | ||
35 | + }) | ||
36 | + }, | ||
37 | + //--- 分享 --- | ||
38 | + goto:function (e) { | ||
39 | + var url= e.currentTarget.dataset.url; | ||
40 | + getApp().goto(url); | ||
41 | + }, | ||
42 | + need_ok:function (){ | ||
43 | + wx.showToast({ | ||
44 | + title: '请您先阅读和勾选指定的内容', | ||
45 | + icon: 'none', | ||
46 | + }); | ||
47 | + }, | ||
48 | + //同意隐私的内容 | ||
49 | + AgreePrivacy:function (){ | ||
50 | + this.setData({show_pri:0,}); | ||
51 | + this.triggerEvent('agree_pri');// 调用同意的函数 | ||
52 | + }, | ||
53 | + | ||
54 | + // 是否同意协议 | ||
55 | + isAgree(e) { | ||
56 | + let isAgree = null; | ||
57 | + if (e.detail.value[0]) { | ||
58 | + isAgree = true; | ||
59 | + } else { isAgree = false;} | ||
60 | + | ||
61 | + this.setData({ | ||
62 | + is_all_ok:isAgree, | ||
63 | + }); | ||
64 | + }, | ||
65 | + | ||
66 | + } | ||
67 | + | ||
68 | +}) | ||
69 | + |
components/privacy_pop/privacy_pop.json
0 → 100644
components/privacy_pop/privacy_pop.wxml
0 → 100644
1 | +<view wx:if="{{show_pri}}"> | ||
2 | + <!-- 遮罩层 --> | ||
3 | + <view class="cover-layer" style="z-index:11111"></view> | ||
4 | + <!-- 内容层 --> | ||
5 | + <view class="privacy_view"> | ||
6 | + <view class="pri_title"> | ||
7 | + 隐私政策更新提示 | ||
8 | + </view> | ||
9 | + <view class="pri_content"> | ||
10 | + <view class="pri_content_p" > | ||
11 | + 为了更好地保障您的权益,我们更新了《{{store.store_name}}小程序隐私政策》,本次更新主要包括: | ||
12 | + | ||
13 | + <view style="margin:40rpx 0">1. 调整注销账户功能的描述</view> | ||
14 | + | ||
15 | + 请您务必在勾选同意前仔细阅读、充分理解《{{store.store_name}}小程序隐私政策》的内容。若您不同意《{{store.store_name}}小程序隐私政策》的内容,请您选择不同意或立即停止使用我们的产品 | ||
16 | + | ||
17 | + <view style="margin-top:40rpx">如您对上述内容有任何疑问,可与我们电话联系[{{store.store_tel}}]</view> | ||
18 | + </view> | ||
19 | + </view> | ||
20 | + | ||
21 | + <!-- 用户使用协议和隐私政策 --> | ||
22 | + <view class="pri_btn"> | ||
23 | + <view class="flex-vertical fs24"> | ||
24 | + <checkbox-group bindchange="isAgree"> | ||
25 | + <checkbox class="m_ck_box" value="true"> | ||
26 | + <label for="true"> | ||
27 | + <view class="user-name-txt">我已阅读同意 <text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view> | ||
28 | + </label> | ||
29 | + </checkbox> | ||
30 | + </checkbox-group> | ||
31 | + </view> | ||
32 | + </view> | ||
33 | + | ||
34 | + <view class="pri_btn"> | ||
35 | + <block wx:if="{{!is_all_ok}}"> | ||
36 | + <button class="continue_btn" bindtap="need_ok"> | ||
37 | + <view class="flex flex-center ali-c"> | ||
38 | + <view>同意,继续使用</view> | ||
39 | + </view> | ||
40 | + </button> | ||
41 | + </block> | ||
42 | + <block wx:else> | ||
43 | + <button class="continue_btn" open-type="agreePrivacyAuthorization" bindagreeprivacyauthorization="AgreePrivacy"> | ||
44 | + <view class="flex flex-center ali-c"> | ||
45 | + <view>同意,继续使用</view> | ||
46 | + </view> | ||
47 | + </button> | ||
48 | + </block> | ||
49 | + </view> | ||
50 | + | ||
51 | + </view> | ||
52 | +</view> |
components/privacy_pop/privacy_pop.wxss
0 → 100644
1 | +@import '../../app.wxss'; | ||
2 | +.privacy_view{ | ||
3 | + position: fixed; z-index: 110000; background-color: #fff; | ||
4 | + left:50%;top: 50%;border-radius: 10rpx; | ||
5 | + width: 640rpx;margin-left: -320rpx; | ||
6 | + height:940rpx;margin-top: -470rpx; | ||
7 | +} | ||
8 | +.pri_title{ | ||
9 | + color:#333;text-align: center;font-size: 30rpx; margin: 20rpx 0; | ||
10 | +} | ||
11 | +.pri_content{ | ||
12 | + border: 1rpx solid #eee; color:#666; height: 560rpx;width: 600rpx; margin: 0 auto; font-size: 26rpx; | ||
13 | +} | ||
14 | +.pri_content_p{ width: 560rpx;display: block; margin-top: 20rpx;margin-left: 20rpx;} | ||
15 | +.pri_btn{width: 600rpx; margin: 0 auto;margin-top: 20rpx} | ||
16 | +.gray {color: #767f8e;} | ||
17 | +.continue_btn{ | ||
18 | + width: 600rpx; | ||
19 | + height: 94rpx; | ||
20 | + line-height: 94rpx; | ||
21 | + background-color: #f23030; | ||
22 | + border-radius: 48rpx; | ||
23 | + color: rgb(255,255,255); | ||
24 | + font-size: 32rpx; | ||
25 | + margin-top: 40rpx; | ||
26 | +} | ||
27 | + |
packageA/pages/goodsInfo/goodsInfo.js
@@ -560,6 +560,12 @@ Page({ | @@ -560,6 +560,12 @@ Page({ | ||
560 | // gid 在onload阶段已经保存在this.data中 | 560 | // gid 在onload阶段已经保存在this.data中 |
561 | onShow: function() { | 561 | onShow: function() { |
562 | 562 | ||
563 | + //-- 看一下隐私政策要不要显示 -- | ||
564 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
565 | + if (privacy_pop) { | ||
566 | + privacy_pop.check_pri_show(); | ||
567 | + } | ||
568 | + | ||
563 | getApp().check_can_share(); | 569 | getApp().check_can_share(); |
564 | 570 | ||
565 | var that=this;var th=this; | 571 | var that=this;var th=this; |
@@ -4047,22 +4053,43 @@ Page({ | @@ -4047,22 +4053,43 @@ Page({ | ||
4047 | hiddenCS: true, | 4053 | hiddenCS: true, |
4048 | }); | 4054 | }); |
4049 | }, | 4055 | }, |
4050 | - | ||
4051 | - | ||
4052 | - | ||
4053 | - | ||
4054 | - | ||
4055 | - | ||
4056 | 4056 | ||
4057 | - | ||
4058 | - | ||
4059 | - | ||
4060 | 4057 | ||
4058 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
4059 | + agree_pri:function (){ | ||
4060 | + var th=this; | ||
4061 | + var bconfig = th.data.bconfig; | ||
4062 | + if (bconfig && bconfig.is_sort_storage) { | ||
4063 | + wx.getLocation({ | ||
4064 | + type: 'gcj02', | ||
4065 | + success: function (res) { | ||
4066 | + | ||
4067 | + th.data.lat = res.latitude; | ||
4068 | + th.data.lon = res.longitude; | ||
4069 | + th.data.is_get_local_ok = 1; | ||
4070 | + th.setData({is_gps: 1}); | ||
4071 | + th.get_sto(); | ||
4072 | + }, | ||
4073 | + fail: function (res) { | ||
4074 | + th.data.is_get_local_ok = 1; | ||
4075 | + th.get_sto(); | ||
4076 | + if (res.errCode == 2) { | ||
4077 | + th.setData({is_gps: 0}); | ||
4078 | + if (th.data.is_gps == 0) { | ||
4079 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
4080 | + } | ||
4081 | + } else { | ||
4082 | + th.setData({is_gps: "3"}); | ||
4083 | + } | ||
4084 | + | ||
4085 | + } | ||
4086 | + }) | ||
4087 | + } | ||
4088 | + }, | ||
4089 | + | ||
4061 | 4090 | ||
4062 | - | ||
4063 | 4091 | ||
4064 | 4092 | ||
4065 | - | ||
4066 | }); | 4093 | }); |
4067 | 4094 | ||
4068 | 4095 |
packageA/pages/goodsInfo/goodsInfo.json
@@ -4,6 +4,7 @@ | @@ -4,6 +4,7 @@ | ||
4 | "usingComponents": { | 4 | "usingComponents": { |
5 | "nav_box": "/components/nav_box/nav_box", | 5 | "nav_box": "/components/nav_box/nav_box", |
6 | "warn": "/components/long_warn/long_warn", | 6 | "warn": "/components/long_warn/long_warn", |
7 | - "serviceCard_recommend": "/components/serviceCard_list/serviceCard_list" | 7 | + "serviceCard_recommend": "/components/serviceCard_list/serviceCard_list", |
8 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
8 | } | 9 | } |
9 | } | 10 | } |
10 | \ No newline at end of file | 11 | \ No newline at end of file |
packageA/pages/goodsInfo/goodsInfo.wxml
@@ -3,6 +3,9 @@ | @@ -3,6 +3,9 @@ | ||
3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> | 3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> |
4 | <wxs module="tool" src="filter.wxs"></wxs> | 4 | <wxs module="tool" src="filter.wxs"></wxs> |
5 | 5 | ||
6 | +<!-- 判断隐私是不是显示 --> | ||
7 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
8 | + | ||
6 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> | 9 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> |
7 | <block wx:if="{{isshow}}"> | 10 | <block wx:if="{{isshow}}"> |
8 | <view class="container"> | 11 | <view class="container"> |
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.js
@@ -554,6 +554,12 @@ Page({ | @@ -554,6 +554,12 @@ Page({ | ||
554 | // gid 在onload阶段已经保存在this.data中 | 554 | // gid 在onload阶段已经保存在this.data中 |
555 | onShow: function () { | 555 | onShow: function () { |
556 | 556 | ||
557 | + //-- 看一下隐私政策要不要显示 -- | ||
558 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
559 | + if (privacy_pop) { | ||
560 | + privacy_pop.check_pri_show(); | ||
561 | + } | ||
562 | + | ||
557 | getApp().check_can_share(this); | 563 | getApp().check_can_share(this); |
558 | var that = this; | 564 | var that = this; |
559 | var ee = this, gid = this.data.gid, i = getApp().request; | 565 | var ee = this, gid = this.data.gid, i = getApp().request; |
@@ -3885,6 +3891,38 @@ Page({ | @@ -3885,6 +3891,38 @@ Page({ | ||
3885 | getApp().goto(url); | 3891 | getApp().goto(url); |
3886 | }, | 3892 | }, |
3887 | 3893 | ||
3894 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
3895 | + agree_pri:function (){ | ||
3896 | + var th=this; | ||
3897 | + var bconfig = th.data.bconfig; | ||
3898 | + if (bconfig && bconfig.is_sort_storage) { | ||
3899 | + wx.getLocation({ | ||
3900 | + type: 'gcj02', | ||
3901 | + success: function(res) { | ||
3902 | + | ||
3903 | + th.data.lat = res.latitude; | ||
3904 | + th.data.lon = res.longitude; | ||
3905 | + th.data.is_get_local_ok = 1; | ||
3906 | + th.setData({ is_gps: 1 }); | ||
3907 | + th.get_sto(); | ||
3908 | + }, | ||
3909 | + fail: function(res) { | ||
3910 | + | ||
3911 | + th.data.is_get_local_ok = 1; | ||
3912 | + th.get_sto(); | ||
3913 | + if (res.errCode == 2) { | ||
3914 | + th.setData({is_gps: 0}); | ||
3915 | + if (th.data.is_gps == 0) { | ||
3916 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
3917 | + } | ||
3918 | + } else { | ||
3919 | + th.setData({ is_gps: "3" }); | ||
3920 | + } | ||
3921 | + | ||
3922 | + } | ||
3923 | + }) | ||
3924 | + } | ||
3925 | + }, | ||
3888 | 3926 | ||
3889 | }); | 3927 | }); |
3890 | 3928 |
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.json
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | "nav_box": "/components/nav_box/nav_box", | 5 | "nav_box": "/components/nav_box/nav_box", |
6 | "warn": "/components/long_warn/long_warn", | 6 | "warn": "/components/long_warn/long_warn", |
7 | "serviceCard_recommend": "/components/serviceCard_list/serviceCard_list", | 7 | "serviceCard_recommend": "/components/serviceCard_list/serviceCard_list", |
8 | - "share": "/components/share/share" | 8 | + "share": "/components/share/share", |
9 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
9 | } | 10 | } |
10 | } | 11 | } |
11 | \ No newline at end of file | 12 | \ No newline at end of file |
packageA/pages/serviceCard_pd/goodsInfo/goodsInfo.wxml
@@ -3,6 +3,9 @@ | @@ -3,6 +3,9 @@ | ||
3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> | 3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> |
4 | <wxs module="tool" src="filter.wxs"></wxs> | 4 | <wxs module="tool" src="filter.wxs"></wxs> |
5 | 5 | ||
6 | +<!-- 判断隐私是不是显示 --> | ||
7 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
8 | + | ||
6 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> | 9 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> |
7 | <block wx:if="{{isshow}}"> | 10 | <block wx:if="{{isshow}}"> |
8 | <view class="container"> | 11 | <view class="container"> |
packageA/pages/serviceCard_pd/team_show/team_show.js
@@ -140,7 +140,13 @@ Page({ | @@ -140,7 +140,13 @@ Page({ | ||
140 | 140 | ||
141 | //显示加载 | 141 | //显示加载 |
142 | onShow:function(){ | 142 | onShow:function(){ |
143 | - getApp().check_can_share(); | 143 | + //-- 看一下隐私政策要不要显示 -- |
144 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
145 | + if (privacy_pop) { | ||
146 | + privacy_pop.check_pri_show(); | ||
147 | + } | ||
148 | + | ||
149 | + getApp().check_can_share(); | ||
144 | var tg_id = this.data.tg_id,th=this; | 150 | var tg_id = this.data.tg_id,th=this; |
145 | this.init(tg_id); | 151 | this.init(tg_id); |
146 | }, | 152 | }, |
@@ -1615,7 +1621,46 @@ Page({ | @@ -1615,7 +1621,46 @@ Page({ | ||
1615 | go_to:function (e) { | 1621 | go_to:function (e) { |
1616 | var url=e.currentTarget.dataset.url; | 1622 | var url=e.currentTarget.dataset.url; |
1617 | getApp().goto(url); | 1623 | getApp().goto(url); |
1618 | - } | 1624 | + }, |
1625 | + | ||
1626 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
1627 | + agree_pri:function (){ | ||
1628 | + var th=this; | ||
1629 | + var bconfig = th.data.bconfig; | ||
1630 | + if (bconfig && bconfig.is_sort_storage) { | ||
1631 | + wx.getLocation({ | ||
1632 | + type: 'gcj02', | ||
1633 | + success: function (res) { | ||
1634 | + th.data.lat = res.latitude; | ||
1635 | + th.data.lon = res.longitude; | ||
1636 | + th.data.is_get_local_ok = 1; | ||
1637 | + th.setData({ | ||
1638 | + is_gps: 1 | ||
1639 | + }); | ||
1640 | + //th.onShow(); | ||
1641 | + th.get_sto(); | ||
1642 | + }, | ||
1643 | + fail: function (res) { | ||
1644 | + //th.onShow(); | ||
1645 | + th.data.is_get_local_ok = 1; | ||
1646 | + th.get_sto(); | ||
1647 | + if (res.errCode == 2) { | ||
1648 | + th.setData({ | ||
1649 | + is_gps: 0 | ||
1650 | + }); | ||
1651 | + if (th.data.is_gps == 0) { | ||
1652 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
1653 | + } | ||
1654 | + } else { | ||
1655 | + th.setData({ | ||
1656 | + is_gps: "3" | ||
1657 | + }); | ||
1658 | + } | ||
1659 | + | ||
1660 | + } | ||
1661 | + }) | ||
1662 | + } | ||
1663 | + }, | ||
1619 | 1664 | ||
1620 | 1665 | ||
1621 | 1666 |
packageA/pages/serviceCard_pd/team_show/team_show.json
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | "backgroundColor": "#eeeeee" | 7 | "backgroundColor": "#eeeeee" |
8 | }, | 8 | }, |
9 | "usingComponents": { | 9 | "usingComponents": { |
10 | - "warn": "/components/long_warn/long_warn" | 10 | + "warn": "/components/long_warn/long_warn", |
11 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
11 | } | 12 | } |
12 | } | 13 | } |
13 | \ No newline at end of file | 14 | \ No newline at end of file |
packageA/pages/serviceCard_pd/team_show/team_show.wxml
1 | +<!-- 判断隐私是不是显示 --> | ||
2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
3 | + | ||
1 | <wxs module="filters" src="../../../../utils/filter.wxs"></wxs> | 4 | <wxs module="filters" src="../../../../utils/filter.wxs"></wxs> |
2 | <!---- //文字"--> | 5 | <!---- //文字"--> |
3 | <view wx:if="{{is_show}}"> | 6 | <view wx:if="{{is_show}}"> |
@@ -11,13 +14,13 @@ | @@ -11,13 +14,13 @@ | ||
11 | <view class='cenrt'> | 14 | <view class='cenrt'> |
12 | 15 | ||
13 | <view class='xc-goods-details ellipsis-2 fs28'> | 16 | <view class='xc-goods-details ellipsis-2 fs28'> |
14 | - <span>{{goods.serviceName}}</span> | 17 | + <text>{{goods.serviceName}}</text> |
15 | </view> | 18 | </view> |
16 | </view> | 19 | </view> |
17 | <view class='cenrcen flex-vertical-between'> | 20 | <view class='cenrcen flex-vertical-between'> |
18 | <view> | 21 | <view> |
19 | <view class="fs40 xc-wc" style='font-size:40rpx'> | 22 | <view class="fs40 xc-wc" style='font-size:40rpx'> |
20 | - <span class="fs28" style="font-weight:500;">¥</span>{{teamlist.price}}</view> | 23 | + <text class="fs28" style="font-weight:500;">¥</text>{{teamlist.price}}</view> |
21 | <view class="fs22 word-line xc-wc"> | 24 | <view class="fs22 word-line xc-wc"> |
22 | 零售价¥{{goods.show_price}} | 25 | 零售价¥{{goods.show_price}} |
23 | </view> | 26 | </view> |
@@ -62,7 +65,7 @@ | @@ -62,7 +65,7 @@ | ||
62 | <view class='bodyimg flex-level' wx:for="{{ordertx2}}" wx:key> | 65 | <view class='bodyimg flex-level' wx:for="{{ordertx2}}" wx:key> |
63 | <view class='d'> | 66 | <view class='d'> |
64 | <image src='{{item.head_pic}}'></image> | 67 | <image src='{{item.head_pic}}'></image> |
65 | - <span wx:if="{{item.is_pt_tz==1}}">团长</span> | 68 | + <text wx:if="{{item.is_pt_tz==1}}">团长</text> |
66 | </view> | 69 | </view> |
67 | </view> | 70 | </view> |
68 | <view class='d' wx:for="{{sf_arr}}"> | 71 | <view class='d' wx:for="{{sf_arr}}"> |
@@ -84,10 +87,10 @@ | @@ -84,10 +87,10 @@ | ||
84 | <!--许程 <view class='bodytimecen' wx:if='{{obj}}'> --> | 87 | <!--许程 <view class='bodytimecen' wx:if='{{obj}}'> --> |
85 | <view class='bodytimecen'> | 88 | <view class='bodytimecen'> |
86 | 剩余 | 89 | 剩余 |
87 | - <span wx:if="{{obj.day!=0}}"> {{obj.day}} </span>: | ||
88 | - <span> {{obj.hou}} </span>: | ||
89 | - <span> {{obj.min}} </span>: | ||
90 | - <span> {{obj.sec}} </span>结束 | 90 | + <text wx:if="{{obj.day!=0}}"> {{obj.day}} </text>: |
91 | + <text> {{obj.hou}} </text>: | ||
92 | + <text> {{obj.min}} </text>: | ||
93 | + <text> {{obj.sec}} </text>结束 | ||
91 | </view> | 94 | </view> |
92 | 95 | ||
93 | 96 | ||
@@ -131,21 +134,21 @@ | @@ -131,21 +134,21 @@ | ||
131 | <view class='mck'> | 134 | <view class='mck'> |
132 | <view class='bodyfoot'> | 135 | <view class='bodyfoot'> |
133 | <view class='bodyselect' wx:if="{{zk}}" bindtap='czk'> | 136 | <view class='bodyselect' wx:if="{{zk}}" bindtap='czk'> |
134 | - <span>展开拼团列表 | 137 | + <text>展开拼团列表 |
135 | <view class='down-arrow'></view> | 138 | <view class='down-arrow'></view> |
136 | - </span> | 139 | + </text> |
137 | </view> | 140 | </view> |
138 | <!----收起拼团列表----> | 141 | <!----收起拼团列表----> |
139 | <view class='zhangxi' wx:if="{{hiddenName}}"> | 142 | <view class='zhangxi' wx:if="{{hiddenName}}"> |
140 | 143 | ||
141 | - <view class='zspan' bindtap='click'>收起拼团列表 | 144 | + <view class='ztext' bindtap='click'>收起拼团列表 |
142 | <view class='down-arrow1'></view> | 145 | <view class='down-arrow1'></view> |
143 | </view> | 146 | </view> |
144 | 147 | ||
145 | <view class="ia" wx:for="{{ordertx}}" wx:for-index="ky"> | 148 | <view class="ia" wx:for="{{ordertx}}" wx:for-index="ky"> |
146 | <view class='img'> | 149 | <view class='img'> |
147 | <image src='{{item.head_pic}}'></image> | 150 | <image src='{{item.head_pic}}'></image> |
148 | - <span>{{item.nickname}}</span> | 151 | + <text>{{item.nickname}}</text> |
149 | </view> | 152 | </view> |
150 | <view class='zssj' wx:if="{{ky==0}}">{{item.add_time_date}} 开团</view> | 153 | <view class='zssj' wx:if="{{ky==0}}">{{item.add_time_date}} 开团</view> |
151 | <view class='zssj' wx:else>{{item.add_time_date}} 参团</view> | 154 | <view class='zssj' wx:else>{{item.add_time_date}} 参团</view> |
@@ -157,7 +160,7 @@ | @@ -157,7 +160,7 @@ | ||
157 | <!--大家都在团--> | 160 | <!--大家都在团--> |
158 | <view class='goodslist'> | 161 | <view class='goodslist'> |
159 | <view class='goodslisttop'> | 162 | <view class='goodslisttop'> |
160 | - <span class='goodslistspan'>大家都在团</span> | 163 | + <text class='goodslisttext'>大家都在团</text> |
161 | <view class='goodslisttopright'></view> | 164 | <view class='goodslisttopright'></view> |
162 | </view> | 165 | </view> |
163 | <view class="changxin"> | 166 | <view class="changxin"> |
@@ -171,7 +174,7 @@ | @@ -171,7 +174,7 @@ | ||
171 | <view class='price'> | 174 | <view class='price'> |
172 | <view class='jgleft'>¥{{item.price}}</view> | 175 | <view class='jgleft'>¥{{item.price}}</view> |
173 | <view class='jgright'>{{item.ct_num}}人 | 176 | <view class='jgright'>{{item.ct_num}}人 |
174 | - <span>参团</span> | 177 | + <text>参团</text> |
175 | </view> | 178 | </view> |
176 | </view> | 179 | </view> |
177 | </view> | 180 | </view> |
@@ -194,7 +197,7 @@ | @@ -194,7 +197,7 @@ | ||
194 | <view class="spec-goods-name ellipsis-1">{{goods.serviceName}}</view> | 197 | <view class="spec-goods-name ellipsis-1">{{goods.serviceName}}</view> |
195 | <view class="flex ai_end xc-val-money"> | 198 | <view class="flex ai_end xc-val-money"> |
196 | <view class="spec-goods-price"> | 199 | <view class="spec-goods-price"> |
197 | - <span class='t1'>¥</span><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text> | 200 | + <text class='t1'>¥</text><text class='t2'>{{teamlist.kttype==3?teamlist.yf_price:teamlist.price}}</text> |
198 | </view> | 201 | </view> |
199 | </view> | 202 | </view> |
200 | <view class="flex"> | 203 | <view class="flex"> |
@@ -300,7 +303,7 @@ | @@ -300,7 +303,7 @@ | ||
300 | </view> | 303 | </view> |
301 | </view> | 304 | </view> |
302 | <view> | 305 | <view> |
303 | - <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}"> | 306 | + <view class="distance fs24 address-val" wx:if="{{item.distance!=null}}"> |
304 | 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view> | 307 | 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+'km':filters.toFix(item.distance,0)+"m"}}</view> |
305 | </view> | 308 | </view> |
306 | </view> | 309 | </view> |
@@ -360,7 +363,7 @@ | @@ -360,7 +363,7 @@ | ||
360 | </view> | 363 | </view> |
361 | </view> | 364 | </view> |
362 | <view> | 365 | <view> |
363 | - <view class="distance fs24 address-val"wx:if="{{item.distance!=null}}"> | 366 | + <view class="distance fs24 address-val" wx:if="{{item.distance!=null}}"> |
364 | 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view> | 367 | 距离:{{item.distance>1000?filters.toFix(item.distance/1000,2)+"km":filters.toFix(item.distance,0)+"m"}}</view> |
365 | </view> | 368 | </view> |
366 | </view> | 369 | </view> |
@@ -377,7 +380,7 @@ | @@ -377,7 +380,7 @@ | ||
377 | <view class="store-bottom flex-vertical-between"> | 380 | <view class="store-bottom flex-vertical-between"> |
378 | <view class="determine red-b fs28 white t-c" bindtap="sure_pick" | 381 | <view class="determine red-b fs28 white t-c" bindtap="sure_pick" |
379 | data-openindstore="{{open_ind_store}}">确定</view> | 382 | data-openindstore="{{open_ind_store}}">确定</view> |
380 | - <view class="default t-c fs28" bindtap="set_def_pick"data-openindstore="{{open_ind_store}}">设为默认</view> | 383 | + <view class="default t-c fs28" bindtap="set_def_pick" data-openindstore="{{open_ind_store}}">设为默认</view> |
381 | </view> | 384 | </view> |
382 | </view> | 385 | </view> |
383 | 386 |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
@@ -898,6 +898,12 @@ Page({ | @@ -898,6 +898,12 @@ Page({ | ||
898 | //---展示--- | 898 | //---展示--- |
899 | onShow: async function () { | 899 | onShow: async function () { |
900 | 900 | ||
901 | + //-- 看一下隐私政策要不要显示 -- | ||
902 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
903 | + if (privacy_pop) { | ||
904 | + privacy_pop.check_pri_show(); | ||
905 | + } | ||
906 | + | ||
901 | //添加购物车的控制要清理0 | 907 | //添加购物车的控制要清理0 |
902 | this.data.adding=0; | 908 | this.data.adding=0; |
903 | 909 | ||
@@ -7346,7 +7352,40 @@ Page({ | @@ -7346,7 +7352,40 @@ Page({ | ||
7346 | break; | 7352 | break; |
7347 | } | 7353 | } |
7348 | } | 7354 | } |
7349 | - } | 7355 | + }, |
7356 | + | ||
7357 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
7358 | + agree_pri:function (){ | ||
7359 | + var th=this; | ||
7360 | + var bconfig = th.data.bconfig; | ||
7361 | + if (bconfig && bconfig.is_sort_storage) { | ||
7362 | + wx.getLocation({ | ||
7363 | + type: 'gcj02', | ||
7364 | + success: function(res) { | ||
7365 | + | ||
7366 | + th.data.lat = res.latitude; | ||
7367 | + th.data.lon = res.longitude; | ||
7368 | + th.data.is_get_local_ok = 1; | ||
7369 | + th.setData({ is_gps: 1 }); | ||
7370 | + th.get_sto(); | ||
7371 | + }, | ||
7372 | + fail: function(res) { | ||
7373 | + | ||
7374 | + th.data.is_get_local_ok = 1; | ||
7375 | + th.get_sto(); | ||
7376 | + if (res.errCode == 2) { | ||
7377 | + th.setData({is_gps: 0}); | ||
7378 | + if (th.data.is_gps == 0) { | ||
7379 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
7380 | + } | ||
7381 | + } else { | ||
7382 | + th.setData({ is_gps: "3" }); | ||
7383 | + } | ||
7384 | + | ||
7385 | + } | ||
7386 | + }) | ||
7387 | + } | ||
7388 | + }, | ||
7350 | 7389 | ||
7351 | 7390 | ||
7352 | 7391 |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.json
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | "nav_box": "/components/nav_box/nav_box", | 5 | "nav_box": "/components/nav_box/nav_box", |
6 | "warn": "/components/long_warn/long_warn", | 6 | "warn": "/components/long_warn/long_warn", |
7 | "goods_recommend": "/components/goods_list/goods_list", | 7 | "goods_recommend": "/components/goods_list/goods_list", |
8 | - "share": "/components/share/share" | 8 | + "share": "/components/share/share", |
9 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
9 | } | 10 | } |
10 | } | 11 | } |
11 | \ No newline at end of file | 12 | \ No newline at end of file |
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
@@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> | 3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> |
4 | <wxs module="tool" src="filter.wxs"></wxs> | 4 | <wxs module="tool" src="filter.wxs"></wxs> |
5 | 5 | ||
6 | +<!-- 判断隐私是不是显示 --> | ||
7 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
6 | 8 | ||
7 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> | 9 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> |
8 | <block wx:if="{{isshow}}"> | 10 | <block wx:if="{{isshow}}"> |
packageC/pages/presell/goodsInfo/goodsInfo.js
@@ -703,6 +703,13 @@ Page({ | @@ -703,6 +703,13 @@ Page({ | ||
703 | 703 | ||
704 | //---展示--- | 704 | //---展示--- |
705 | onShow: function () { | 705 | onShow: function () { |
706 | + | ||
707 | + //-- 看一下隐私政策要不要显示 -- | ||
708 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
709 | + if (privacy_pop) { | ||
710 | + privacy_pop.check_pri_show(); | ||
711 | + } | ||
712 | + | ||
706 | getApp().check_can_share(this); | 713 | getApp().check_can_share(this); |
707 | var goods_list = null, th = this, that = this; | 714 | var goods_list = null, th = this, that = this; |
708 | 715 | ||
@@ -4821,4 +4828,48 @@ Page({ | @@ -4821,4 +4828,48 @@ Page({ | ||
4821 | }); | 4828 | }); |
4822 | }, | 4829 | }, |
4823 | 4830 | ||
4831 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
4832 | + agree_pri:function (){ | ||
4833 | + var th=this; | ||
4834 | + var bconfig = th.data.bconfig; | ||
4835 | + | ||
4836 | + if (bconfig && bconfig.is_sort_storage) { | ||
4837 | + wx.getLocation({ | ||
4838 | + type: 'gcj02', | ||
4839 | + success: function (res) { | ||
4840 | + | ||
4841 | + th.data.lat = res.latitude; | ||
4842 | + th.data.lon = res.longitude; | ||
4843 | + th.data.is_get_local_ok = 1; | ||
4844 | + th.setData({ | ||
4845 | + is_gps: 1 | ||
4846 | + }); | ||
4847 | + //th.onShow(); | ||
4848 | + th.get_sto(); | ||
4849 | + }, | ||
4850 | + fail: function (res) { | ||
4851 | + //th.onShow(); | ||
4852 | + th.data.is_get_local_ok = 1; | ||
4853 | + th.get_sto(); | ||
4854 | + if (res.errCode == 2) { | ||
4855 | + th.setData({ | ||
4856 | + is_gps: 0 | ||
4857 | + }); | ||
4858 | + if (th.data.is_gps == 0) { | ||
4859 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
4860 | + } | ||
4861 | + } else { | ||
4862 | + th.setData({ | ||
4863 | + is_gps: "3" | ||
4864 | + }); | ||
4865 | + } | ||
4866 | + | ||
4867 | + } | ||
4868 | + }) | ||
4869 | + } | ||
4870 | + | ||
4871 | + | ||
4872 | + }, | ||
4873 | + | ||
4874 | + | ||
4824 | }); | 4875 | }); |
packageC/pages/presell/goodsInfo/goodsInfo.json
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | "nav_box": "/components/nav_box/nav_box", | 5 | "nav_box": "/components/nav_box/nav_box", |
6 | "warn": "/components/long_warn/long_warn", | 6 | "warn": "/components/long_warn/long_warn", |
7 | "goods_recommend": "/components/goods_list/goods_list", | 7 | "goods_recommend": "/components/goods_list/goods_list", |
8 | - "share": "/components/share/share" | 8 | + "share": "/components/share/share", |
9 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
9 | } | 10 | } |
10 | } | 11 | } |
11 | \ No newline at end of file | 12 | \ No newline at end of file |
packageC/pages/presell/goodsInfo/goodsInfo.wxml
@@ -3,6 +3,8 @@ | @@ -3,6 +3,8 @@ | ||
3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> | 3 | <wxs module="g_filters" src="g_filter.wxs"></wxs> |
4 | <wxs module="tool" src="filter.wxs"></wxs> | 4 | <wxs module="tool" src="filter.wxs"></wxs> |
5 | 5 | ||
6 | +<!-- 判断隐私是不是显示 --> | ||
7 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
6 | 8 | ||
7 | <block wx:if="{{show}}"> | 9 | <block wx:if="{{show}}"> |
8 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> | 10 | <!-- 商品内容区域,普通商品,秒杀,拼团 --> |
packageE/pages/togoin/togoin.js
@@ -26,6 +26,12 @@ Page({ | @@ -26,6 +26,12 @@ Page({ | ||
26 | this.data.is_reg=1; | 26 | this.data.is_reg=1; |
27 | } | 27 | } |
28 | 28 | ||
29 | + //-- 看一下隐私政策要不要显示 -- | ||
30 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
31 | + if (privacy_pop) { | ||
32 | + privacy_pop.check_pri_show(); | ||
33 | + } | ||
34 | + | ||
29 | //--判断是否有接受到邀请人的ID-- | 35 | //--判断是否有接受到邀请人的ID-- |
30 | if (options.first_leader) { | 36 | if (options.first_leader) { |
31 | this.setData({ first_leader: options.first_leader }); | 37 | this.setData({ first_leader: options.first_leader }); |
@@ -38,6 +44,7 @@ Page({ | @@ -38,6 +44,7 @@ Page({ | ||
38 | th.setData({ store: e, store_logo: logo }); | 44 | th.setData({ store: e, store_logo: logo }); |
39 | }) | 45 | }) |
40 | 46 | ||
47 | + | ||
41 | //判断注册的条件 | 48 | //判断注册的条件 |
42 | app.getConfig2(function (e) { | 49 | app.getConfig2(function (e) { |
43 | if (e.reg_type == 1) { | 50 | if (e.reg_type == 1) { |
@@ -490,7 +497,12 @@ Page({ | @@ -490,7 +497,12 @@ Page({ | ||
490 | }); | 497 | }); |
491 | }, | 498 | }, |
492 | 499 | ||
493 | - | 500 | + //弹出框的同意的优化 |
501 | + agree_pri:function (){ | ||
502 | + this.setData({ | ||
503 | + isAgree:1, | ||
504 | + }); | ||
505 | + }, | ||
494 | //通过路径跳转到其他页面 | 506 | //通过路径跳转到其他页面 |
495 | goto: function (e) { | 507 | goto: function (e) { |
496 | console.log('xxxx', e); | 508 | console.log('xxxx', e); |
packageE/pages/togoin/togoin.json
1 | { | 1 | { |
2 | "navigationBarTitleText": "授权登录", | 2 | "navigationBarTitleText": "授权登录", |
3 | "usingComponents": { | 3 | "usingComponents": { |
4 | - "warn": "/components/long_warn/long_warn" | 4 | + "warn": "/components/long_warn/long_warn", |
5 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
5 | } | 6 | } |
6 | } | 7 | } |
7 | \ No newline at end of file | 8 | \ No newline at end of file |
packageE/pages/togoin/togoin.wxml
1 | -<view> | 1 | +<!-- 判断隐私是不是显示 --> |
2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
2 | 3 | ||
4 | +<view> | ||
3 | <!-- 登录图 --> | 5 | <!-- 登录图 --> |
4 | <view > | 6 | <view > |
5 | <view class="logins flex-center2 ali-c flex" style="padding-top: 120rpx;"> | 7 | <view class="logins flex-center2 ali-c flex" style="padding-top: 120rpx;"> |
@@ -17,7 +19,7 @@ | @@ -17,7 +19,7 @@ | ||
17 | 19 | ||
18 | <view bindtap="" class="user-name flex-vertical fs24 jc-center"> | 20 | <view bindtap="" class="user-name flex-vertical fs24 jc-center"> |
19 | <checkbox-group bindchange="isAgree"> | 21 | <checkbox-group bindchange="isAgree"> |
20 | - <checkbox value="true"> | 22 | + <checkbox checked="{{isAgree}}" value="true"> |
21 | <label for="true"> | 23 | <label for="true"> |
22 | <view class="user-name-txt">我已阅读同意 <text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view> | 24 | <view class="user-name-txt">我已阅读同意 <text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=0">《用户使用协议》</text>与<text class="gray" catchtap="goto" data-url="/packageA/pages/parseHtml/parseHtml?t=1">《隐私政策》</text></view> |
23 | </label> | 25 | </label> |
@@ -64,7 +66,6 @@ | @@ -64,7 +66,6 @@ | ||
64 | 66 | ||
65 | </view> | 67 | </view> |
66 | 68 | ||
67 | - | ||
68 | <view wx:if="{{show_bind}}"> | 69 | <view wx:if="{{show_bind}}"> |
69 | <view class="cover-layer" bindtap="close_pop"></view> | 70 | <view class="cover-layer" bindtap="close_pop"></view> |
70 | <view class="p_content"> | 71 | <view class="p_content"> |
pages/cart/cart/cart.js
@@ -125,6 +125,13 @@ Page({ | @@ -125,6 +125,13 @@ Page({ | ||
125 | 125 | ||
126 | }, | 126 | }, |
127 | onShow: function () { | 127 | onShow: function () { |
128 | + | ||
129 | + //-- 看一下隐私政策要不要显示 -- | ||
130 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
131 | + if (privacy_pop) { | ||
132 | + privacy_pop.check_pri_show(); | ||
133 | + } | ||
134 | + | ||
128 | //每次显示都清空 | 135 | //每次显示都清空 |
129 | this.data.in_zhact_gdmap = {}; | 136 | this.data.in_zhact_gdmap = {}; |
130 | this.setData({ | 137 | this.setData({ |
@@ -797,6 +804,30 @@ Page({ | @@ -797,6 +804,30 @@ Page({ | ||
797 | continue; | 804 | continue; |
798 | } | 805 | } |
799 | 806 | ||
807 | + //把活动写入 | ||
808 | + item.prom=prom; | ||
809 | + | ||
810 | + //判断团购的限购 | ||
811 | + if (item.goods_num + promgoodsbuynum > prom.buy_limit && prom.buy_limit > 0) { | ||
812 | + var cbuy = prom.buy_limit - promgoodsbuynum; | ||
813 | + if (cbuy <= 0) { | ||
814 | + // var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id; | ||
815 | + // a.delete(url, {}); | ||
816 | + th.disInvalid(item, 2); | ||
817 | + continue; | ||
818 | + } | ||
819 | + //-- 购物车更新 -- | ||
820 | + var updata1 = { | ||
821 | + id: item.id, | ||
822 | + goods_num: cbuy, | ||
823 | + store_id: os.stoid, | ||
824 | + user_id: getApp().globalData.userInfo.user_id | ||
825 | + }; | ||
826 | + getApp().request.put("/api/weshop/cart/update", { | ||
827 | + data: updata1, | ||
828 | + }) | ||
829 | + item.goods_num = cbuy; | ||
830 | + } | ||
800 | 831 | ||
801 | } | 832 | } |
802 | 833 | ||
@@ -3382,13 +3413,18 @@ Page({ | @@ -3382,13 +3413,18 @@ Page({ | ||
3382 | if (res.data.code == 0) gd = res.data.data; | 3413 | if (res.data.code == 0) gd = res.data.data; |
3383 | }) | 3414 | }) |
3384 | 3415 | ||
3385 | - //判断秒杀的指定门店 | ||
3386 | - if(py_type==1 && i_arr[j].prom && i_arr[j].prom.pick_up_lists){ | 3416 | + //判断秒杀的指定门店和团购的指定门店 |
3417 | + if([1,2].indexOf(py_type)>-1 && i_arr[j].prom && i_arr[j].prom.pick_up_lists){ | ||
3387 | var idx0=i_arr[j].prom.pick_up_lists.findIndex(function (e){ | 3418 | var idx0=i_arr[j].prom.pick_up_lists.findIndex(function (e){ |
3388 | return e.pickup_id==i_arr[j].pick_id; | 3419 | return e.pickup_id==i_arr[j].pick_id; |
3389 | }) | 3420 | }) |
3390 | if(idx0<0){ | 3421 | if(idx0<0){ |
3391 | - getApp().confirmBox(i_arr[j].goods_name + "秒杀活动的门店不可售"); | 3422 | + |
3423 | + var act_type=0; | ||
3424 | + if(py_type==1) act_type='秒杀'; | ||
3425 | + if(py_type==2) act_type='团购'; | ||
3426 | + | ||
3427 | + getApp().confirmBox(i_arr[j].goods_name + act_type+"活动的门店不可售"); | ||
3392 | wx.hideLoading(); | 3428 | wx.hideLoading(); |
3393 | return false; | 3429 | return false; |
3394 | } | 3430 | } |
pages/cart/cart/cart.json
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | "usingComponents": { | 3 | "usingComponents": { |
4 | "warn": "/components/long_warn/long_warn", | 4 | "warn": "/components/long_warn/long_warn", |
5 | "goods_recommend":"/components/goods_list/goods_list", | 5 | "goods_recommend":"/components/goods_list/goods_list", |
6 | - "pro_pop": "/components/promate_pop/promate_pop" | 6 | + "pro_pop": "/components/promate_pop/promate_pop", |
7 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
7 | } | 8 | } |
8 | } | 9 | } |
9 | \ No newline at end of file | 10 | \ No newline at end of file |
pages/cart/cart/cart.wxml
pages/goods/goodsInfo/goodsInfo.js
@@ -921,6 +921,13 @@ Page({ | @@ -921,6 +921,13 @@ Page({ | ||
921 | 921 | ||
922 | //---展示--- | 922 | //---展示--- |
923 | onShow: function () { | 923 | onShow: function () { |
924 | + | ||
925 | + //-- 看一下隐私政策要不要显示 -- | ||
926 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
927 | + if (privacy_pop) { | ||
928 | + privacy_pop.check_pri_show(); | ||
929 | + } | ||
930 | + | ||
924 | //添加购物车的控制要清理0 | 931 | //添加购物车的控制要清理0 |
925 | this.data.adding=0; | 932 | this.data.adding=0; |
926 | 933 | ||
@@ -3645,9 +3652,9 @@ Page({ | @@ -3645,9 +3652,9 @@ Page({ | ||
3645 | } | 3652 | } |
3646 | 3653 | ||
3647 | 3654 | ||
3648 | - | 3655 | + var py=parseFloat(th.data.prom_type+''); |
3649 | //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 | 3656 | //指定门店判断, 不是普通购买的时候,秒杀的时候,秒杀有指定门店 |
3650 | - if(!is_normal && (th.data.prom_type==1 || th.data.prom_type==6) && th.data.prom_act.pick_up_lists){ | 3657 | + if(!is_normal && [1,2,6].indexOf(py)>-1 && th.data.prom_act.pick_up_lists){ |
3651 | pickup_ids=th.data.prom_act.pick_up_lists | 3658 | pickup_ids=th.data.prom_act.pick_up_lists |
3652 | } | 3659 | } |
3653 | 3660 | ||
@@ -3675,7 +3682,7 @@ Page({ | @@ -3675,7 +3682,7 @@ Page({ | ||
3675 | 3682 | ||
3676 | if(idx1<0){ | 3683 | if(idx1<0){ |
3677 | //如果是秒杀的指定门店,就要设置秒杀的 | 3684 | //如果是秒杀的指定门店,就要设置秒杀的 |
3678 | - if(!is_normal && (th.data.prom_type==1 || th.data.prom_type==6) ){ | 3685 | + if(!is_normal && [1,2,6].indexOf(py)>-1 ){ |
3679 | th.data.def_pick_store.is_no_dis_act=1; | 3686 | th.data.def_pick_store.is_no_dis_act=1; |
3680 | }else{ | 3687 | }else{ |
3681 | th.data.def_pick_store.is_no_dis_nor=1; | 3688 | th.data.def_pick_store.is_no_dis_nor=1; |
@@ -8748,7 +8755,46 @@ Page({ | @@ -8748,7 +8755,46 @@ Page({ | ||
8748 | break; | 8755 | break; |
8749 | } | 8756 | } |
8750 | } | 8757 | } |
8751 | - } | 8758 | + }, |
8759 | + | ||
8760 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
8761 | + agree_pri:function (){ | ||
8762 | + var th=this; | ||
8763 | + var bconfig = th.data.bconfig; | ||
8764 | + if (bconfig && bconfig.is_sort_storage) { | ||
8765 | + wx.getLocation({ | ||
8766 | + type: 'gcj02', | ||
8767 | + success: function (res) { | ||
8768 | + th.data.lat = res.latitude; | ||
8769 | + th.data.lon = res.longitude; | ||
8770 | + th.data.is_get_local_ok = 1; | ||
8771 | + th.setData({ | ||
8772 | + is_gps: 1 | ||
8773 | + }); | ||
8774 | + //th.onShow(); | ||
8775 | + th.get_sto(); | ||
8776 | + }, | ||
8777 | + fail: function (res) { | ||
8778 | + //th.onShow(); | ||
8779 | + th.data.is_get_local_ok = 1; | ||
8780 | + th.get_sto(); | ||
8781 | + if (res.errCode == 2) { | ||
8782 | + th.setData({ | ||
8783 | + is_gps: 0 | ||
8784 | + }); | ||
8785 | + if (th.data.is_gps == 0) { | ||
8786 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
8787 | + } | ||
8788 | + } else { | ||
8789 | + th.setData({ | ||
8790 | + is_gps: "3" | ||
8791 | + }); | ||
8792 | + } | ||
8793 | + | ||
8794 | + } | ||
8795 | + }) | ||
8796 | + } | ||
8797 | + }, | ||
8752 | 8798 | ||
8753 | 8799 | ||
8754 | }) | 8800 | }) |
8755 | \ No newline at end of file | 8801 | \ No newline at end of file |
pages/goods/goodsInfo/goodsInfo.json
@@ -6,6 +6,7 @@ | @@ -6,6 +6,7 @@ | ||
6 | "warn": "/components/long_warn/long_warn", | 6 | "warn": "/components/long_warn/long_warn", |
7 | "goods_recommend": "/components/goods_list/goods_list", | 7 | "goods_recommend": "/components/goods_list/goods_list", |
8 | "share": "/components/share/share", | 8 | "share": "/components/share/share", |
9 | - "pro_pop": "/components/promate_pop/promate_pop" | 9 | + "pro_pop": "/components/promate_pop/promate_pop", |
10 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
10 | } | 11 | } |
11 | } | 12 | } |
12 | \ No newline at end of file | 13 | \ No newline at end of file |
pages/goods/goodsInfo/goodsInfo.wxml
1 | +<!-- 判断隐私是不是显示 --> | ||
2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
1 | <!-- 促销弹出框 --> | 3 | <!-- 促销弹出框 --> |
2 | <pro_pop id="pro_pop"></pro_pop> | 4 | <pro_pop id="pro_pop"></pro_pop> |
3 | 5 | ||
@@ -1180,7 +1182,8 @@ | @@ -1180,7 +1182,8 @@ | ||
1180 | <text style="font-size: 23rpx">¥</text> | 1182 | <text style="font-size: 23rpx">¥</text> |
1181 | {{filters.toFix(prom_act.tz_yyhjg,2)}} | 1183 | {{filters.toFix(prom_act.tz_yyhjg,2)}} |
1182 | </view> | 1184 | </view> |
1183 | - <view wx:if="{{prom_act.tz_yhjgtype==2}}">团长免单</view> | 1185 | + <view style="margin-top:2rpx" wx:if="{{prom_act.tz_yhjgtype==2}}">团长免单</view> |
1186 | + <view style="margin-top:2rpx" wx:if="{{prom_act.tz_yhjgtype==4}}">送赠品</view> | ||
1184 | </view> | 1187 | </view> |
1185 | <view wx:else> | 1188 | <view wx:else> |
1186 | <view class="fir-v">¥{{ filters.toFix(prom_act.price,2)}}</view> | 1189 | <view class="fir-v">¥{{ filters.toFix(prom_act.price,2)}}</view> |
pages/index/index/index.js
@@ -391,13 +391,18 @@ Page({ | @@ -391,13 +391,18 @@ Page({ | ||
391 | 391 | ||
392 | async onShow() { | 392 | async onShow() { |
393 | 393 | ||
394 | - getApp().check_can_share(); | 394 | + //-- 看一下隐私政策要不要显示 -- |
395 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
396 | + if (privacy_pop) { | ||
397 | + privacy_pop.check_pri_show(); | ||
398 | + } | ||
395 | 399 | ||
396 | - if (typeof this.getTabBar === 'function' && this.getTabBar()) { | ||
397 | - this.getTabBar().setData({ | ||
398 | - cartGoodsNum: getApp().globalData.cartGoodsNum | ||
399 | - }) | ||
400 | - } | 400 | + getApp().check_can_share(); |
401 | + if (typeof this.getTabBar === 'function' && this.getTabBar()) { | ||
402 | + this.getTabBar().setData({ | ||
403 | + cartGoodsNum: getApp().globalData.cartGoodsNum | ||
404 | + }) | ||
405 | + } | ||
401 | var th = this; | 406 | var th = this; |
402 | //-- 登录回来判断弹框 -- | 407 | //-- 登录回来判断弹框 -- |
403 | var user_id = getApp().globalData.user_id; | 408 | var user_id = getApp().globalData.user_id; |
@@ -418,7 +423,7 @@ Page({ | @@ -418,7 +423,7 @@ Page({ | ||
418 | console.log(this.data.isTemplate, '首页'); | 423 | console.log(this.data.isTemplate, '首页'); |
419 | 424 | ||
420 | if (!this.data.isTemplate) { | 425 | if (!this.data.isTemplate) { |
421 | - // timetype: 1 仅查询已预售 置空查询全部, | 426 | + //timetype: 1 仅查询已预售 置空查询全部, |
422 | var pre_data = { store_id: os.stoid, is_end: 0, isuse: 1,timetype:3 }; | 427 | var pre_data = { store_id: os.stoid, is_end: 0, isuse: 1,timetype:3 }; |
423 | if (user_id) { | 428 | if (user_id) { |
424 | pre_data.user_id = user_id; | 429 | pre_data.user_id = user_id; |
pages/index/index/index.json
@@ -18,14 +18,15 @@ | @@ -18,14 +18,15 @@ | ||
18 | "picMax": "/components/diy_picMax/diy_picMax", | 18 | "picMax": "/components/diy_picMax/diy_picMax", |
19 | "mvideo": "/components/diy_video/diy_video", | 19 | "mvideo": "/components/diy_video/diy_video", |
20 | "service": "/components/diy_service/diy_service", | 20 | "service": "/components/diy_service/diy_service", |
21 | - "scan": "/components/diy_scan/diy_scan", | ||
22 | - "store_select": "/components/diy_store_select/diy_store_select", | 21 | + "scan": "/components/diy_scan/diy_scan", |
22 | + "store_select": "/components/diy_store_select/diy_store_select", | ||
23 | "presell": "/components/diy_pregoods/diy_pregoods", | 23 | "presell": "/components/diy_pregoods/diy_pregoods", |
24 | - "luckyGo": "/components/diy_luckyGo/diy_luckyGo", | ||
25 | - "serviceCard": "/components/diy_serviceCard/diy_serviceCard", | ||
26 | - "live": "/components/diy_live/diy_live", | ||
27 | - "mp-dialog": "weui-miniprogram/dialog/dialog", | ||
28 | - "mp-sticky": "/components/mp-sticky/mp-sticky" | 24 | + "luckyGo": "/components/diy_luckyGo/diy_luckyGo", |
25 | + "serviceCard": "/components/diy_serviceCard/diy_serviceCard", | ||
26 | + "live": "/components/diy_live/diy_live", | ||
27 | + "mp-dialog": "weui-miniprogram/dialog/dialog", | ||
28 | + "mp-sticky": "/components/mp-sticky/mp-sticky", | ||
29 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
29 | }, | 30 | }, |
30 | "enablePullDownRefresh": false, | 31 | "enablePullDownRefresh": false, |
31 | "onReachBottomDistance":300 | 32 | "onReachBottomDistance":300 |
pages/index/index/index.wxml
1 | +<!-- 判断隐私是不是显示 --> | ||
2 | +<privacy_pop id="privacy_pop"></privacy_pop> | ||
1 | <!-- 全屏控制 --> | 3 | <!-- 全屏控制 --> |
2 | <view wx:if="{{is_full_screen_show && full_ad && !full_ad.show_type}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');"> | 4 | <view wx:if="{{is_full_screen_show && full_ad && !full_ad.show_type}}" class="full_screen" bindtap="go_full_ad" style="background-image: url('{{url+full_ad.ad_code}}');"> |
3 | <view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view> | 5 | <view catchtap="close_full_screen" class="skip_box">跳过 <text>{{sec_show}}</text></view> |
@@ -406,8 +408,6 @@ | @@ -406,8 +408,6 @@ | ||
406 | </view> | 408 | </view> |
407 | </view> | 409 | </view> |
408 | 410 | ||
409 | - | ||
410 | - | ||
411 | <block wx:if="{{f_hidden}}"> | 411 | <block wx:if="{{f_hidden}}"> |
412 | <!--是否是自定义--> | 412 | <!--是否是自定义--> |
413 | <view class="container" wx:if="{{isTemplate}}" style="background-color:{{bgcolor_t}}; padding-bottom: 10rpx"> | 413 | <view class="container" wx:if="{{isTemplate}}" style="background-color:{{bgcolor_t}}; padding-bottom: 10rpx"> |
pages/team/team_show/team_show.js
@@ -144,7 +144,13 @@ Page({ | @@ -144,7 +144,13 @@ Page({ | ||
144 | 144 | ||
145 | //显示加载 | 145 | //显示加载 |
146 | onShow:function(){ | 146 | onShow:function(){ |
147 | - getApp().check_can_share(); | 147 | + //-- 看一下隐私政策要不要显示 -- |
148 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
149 | + if (privacy_pop) { | ||
150 | + privacy_pop.check_pri_show(); | ||
151 | + } | ||
152 | + | ||
153 | + getApp().check_can_share(); | ||
148 | var tg_id = this.data.tg_id,th=this; | 154 | var tg_id = this.data.tg_id,th=this; |
149 | this.init(tg_id); | 155 | this.init(tg_id); |
150 | }, | 156 | }, |
@@ -1633,7 +1639,45 @@ Page({ | @@ -1633,7 +1639,45 @@ Page({ | ||
1633 | }) | 1639 | }) |
1634 | 1640 | ||
1635 | }, | 1641 | }, |
1636 | - | 1642 | + |
1643 | + //-- 弹出框的同意的优化,重新获取定位 --- | ||
1644 | + agree_pri:function (){ | ||
1645 | + var th=this; | ||
1646 | + var bconfig = th.data.bconfig; | ||
1647 | + if (bconfig && bconfig.is_sort_storage) { | ||
1648 | + wx.getLocation({ | ||
1649 | + type: 'gcj02', | ||
1650 | + success: function (res) { | ||
1651 | + th.data.lat = res.latitude; | ||
1652 | + th.data.lon = res.longitude; | ||
1653 | + th.data.is_get_local_ok = 1; | ||
1654 | + th.setData({ | ||
1655 | + is_gps: 1 | ||
1656 | + }); | ||
1657 | + //th.onShow(); | ||
1658 | + th.get_sto(); | ||
1659 | + }, | ||
1660 | + fail: function (res) { | ||
1661 | + //th.onShow(); | ||
1662 | + th.data.is_get_local_ok = 1; | ||
1663 | + th.get_sto(); | ||
1664 | + if (res.errCode == 2) { | ||
1665 | + th.setData({ | ||
1666 | + is_gps: 0 | ||
1667 | + }); | ||
1668 | + if (th.data.is_gps == 0) { | ||
1669 | + getApp().confirmBox("请开启GPS定位", null, 25000, !1); | ||
1670 | + } | ||
1671 | + } else { | ||
1672 | + th.setData({ | ||
1673 | + is_gps: "3" | ||
1674 | + }); | ||
1675 | + } | ||
1676 | + | ||
1677 | + } | ||
1678 | + }) | ||
1679 | + } | ||
1680 | + }, | ||
1637 | 1681 | ||
1638 | 1682 | ||
1639 | 1683 |
pages/team/team_show/team_show.json
@@ -7,6 +7,7 @@ | @@ -7,6 +7,7 @@ | ||
7 | "backgroundColor": "#eeeeee" | 7 | "backgroundColor": "#eeeeee" |
8 | }, | 8 | }, |
9 | "usingComponents": { | 9 | "usingComponents": { |
10 | - "warn": "/components/long_warn/long_warn" | 10 | + "warn": "/components/long_warn/long_warn", |
11 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
11 | } | 12 | } |
12 | } | 13 | } |
13 | \ No newline at end of file | 14 | \ No newline at end of file |
pages/team/team_show/team_show.wxml
1 | +<!-- 判断隐私是不是显示 --> | ||
2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
3 | + | ||
1 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> | 4 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> |
2 | <!---- //文字"--> | 5 | <!---- //文字"--> |
3 | <view wx:if="{{is_show}}"> | 6 | <view wx:if="{{is_show}}"> |
pages/user/index/index.js
@@ -119,6 +119,12 @@ Page({ | @@ -119,6 +119,12 @@ Page({ | ||
119 | 119 | ||
120 | var _that=this; | 120 | var _that=this; |
121 | 121 | ||
122 | + //-- 看一下隐私政策要不要显示 -- | ||
123 | + var privacy_pop = this.selectComponent("#privacy_pop"); //组件的id | ||
124 | + if (privacy_pop) { | ||
125 | + privacy_pop.check_pri_show(); | ||
126 | + } | ||
127 | + | ||
122 | getApp().check_can_share(); | 128 | getApp().check_can_share(); |
123 | //看一下小程序是不是过期了 | 129 | //看一下小程序是不是过期了 |
124 | getApp().getConfig2(function (config2) { | 130 | getApp().getConfig2(function (config2) { |
pages/user/index/index.json
1 | { | 1 | { |
2 | "usingComponents": { | 2 | "usingComponents": { |
3 | "pop_txt": "/components/userqy_pop_up/userqy_pop_up", | 3 | "pop_txt": "/components/userqy_pop_up/userqy_pop_up", |
4 | - "goods_recommend": "/components/goods_list/goods_list" | 4 | + "goods_recommend": "/components/goods_list/goods_list", |
5 | + "privacy_pop": "/components/privacy_pop/privacy_pop" | ||
5 | }, | 6 | }, |
6 | "navigationBarTitleText": "会员中心" | 7 | "navigationBarTitleText": "会员中心" |
7 | } | 8 | } |
8 | \ No newline at end of file | 9 | \ No newline at end of file |
pages/user/index/index.wxml
1 | +<!-- 判断隐私是不是显示 --> | ||
2 | +<privacy_pop id="privacy_pop" bind:agree_pri="agree_pri"></privacy_pop> | ||
1 | <!-- <import src="../../tabbar/tabbar.wxml" /> | 3 | <!-- <import src="../../tabbar/tabbar.wxml" /> |
2 | <template is="tabBar" data="{{tabBar}}" /> --> | 4 | <template is="tabBar" data="{{tabBar}}" /> --> |
3 | <wxs src="filter.wxs" module="util"></wxs> | 5 | <wxs src="filter.wxs" module="util"></wxs> |
pages/user/order_detail/order_detail.js
@@ -1038,10 +1038,11 @@ Page({ | @@ -1038,10 +1038,11 @@ Page({ | ||
1038 | var act_type=''; | 1038 | var act_type=''; |
1039 | switch (c_type){ | 1039 | switch (c_type){ |
1040 | case 1:act_type='秒杀';break; | 1040 | case 1:act_type='秒杀';break; |
1041 | + case 2:act_type='团购';break; | ||
1041 | case 6:act_type='拼团';break; | 1042 | case 6:act_type='拼团';break; |
1042 | } | 1043 | } |
1043 | //指定门店的控制 | 1044 | //指定门店的控制 |
1044 | - if ([1,6].indexOf(c_type)>-1 && prom.pick_up_lists) { | 1045 | + if ([1,2,6].indexOf(c_type)>-1 && prom.pick_up_lists) { |
1045 | var idx0=prom.pick_up_lists.findIndex(function (e){ | 1046 | var idx0=prom.pick_up_lists.findIndex(function (e){ |
1046 | return e.pickup_id==order.pickup_id; | 1047 | return e.pickup_id==order.pickup_id; |
1047 | }) | 1048 | }) |
pages/user/order_list/order_list.js
@@ -778,7 +778,6 @@ Page({ | @@ -778,7 +778,6 @@ Page({ | ||
778 | return false; | 778 | return false; |
779 | } | 779 | } |
780 | 780 | ||
781 | - | ||
782 | //-- 要进行判断指定门店的判断优化,先做普通商品 -- | 781 | //-- 要进行判断指定门店的判断优化,先做普通商品 -- |
783 | if([0,3,5,7,10].indexOf(parseInt(good.prom_type))>-1 && gg.pick_group_ids && !good.is_gift){ | 782 | if([0,3,5,7,10].indexOf(parseInt(good.prom_type))>-1 && gg.pick_group_ids && !good.is_gift){ |
784 | var idx0=gg.pick_up_lists.findIndex(function (e){ | 783 | var idx0=gg.pick_up_lists.findIndex(function (e){ |
@@ -1354,11 +1353,12 @@ Page({ | @@ -1354,11 +1353,12 @@ Page({ | ||
1354 | var act_type=''; | 1353 | var act_type=''; |
1355 | switch (c_type){ | 1354 | switch (c_type){ |
1356 | case 1:act_type='秒杀';break; | 1355 | case 1:act_type='秒杀';break; |
1356 | + case 2:act_type='团购';break; | ||
1357 | case 6:act_type='拼团';break; | 1357 | case 6:act_type='拼团';break; |
1358 | } | 1358 | } |
1359 | 1359 | ||
1360 | //指定门店的控制 | 1360 | //指定门店的控制 |
1361 | - if ([1,6].indexOf(c_type)>-1 && prom.pick_up_lists) { | 1361 | + if ([1,2,6].indexOf(c_type)>-1 && prom.pick_up_lists) { |
1362 | var idx0=prom.pick_up_lists.findIndex(function (e){ | 1362 | var idx0=prom.pick_up_lists.findIndex(function (e){ |
1363 | return e.pickup_id==order.pickup_id; | 1363 | return e.pickup_id==order.pickup_id; |
1364 | }) | 1364 | }) |