Commit 8b0cc8caa832ac0cf177615dd0450de360af3c99

Authored by taiyuan
1 parent 6ab9d9e2

幸运购修改3

packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.js
... ... @@ -208,19 +208,19 @@ Page({
208 208 }
209 209 },
210 210  
211   - onShareTimeline() {
212   - var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:'';
213   - var pagePath = this.route; //当前页面url
  211 + // onShareTimeline() {
  212 + // var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:'';
  213 + // var pagePath = this.route; //当前页面url
214 214  
215   - if(!store_name) store_name = getApp().globalData.setting.appName;
216   - if (pagePath.indexOf('/') != 0) {
217   - pagePath = '/' + pagePath;
218   - }
219   - return {
220   - title: store_name + '-幸运购活动列表',
221   - path: pagePath,
222   - }
223   - },
  215 + // if(!store_name) store_name = getApp().globalData.setting.appName;
  216 + // if (pagePath.indexOf('/') != 0) {
  217 + // pagePath = '/' + pagePath;
  218 + // }
  219 + // return {
  220 + // title: store_name + '-幸运购活动列表',
  221 + // path: pagePath,
  222 + // }
  223 + // },
224 224  
225 225 })
226 226  
... ...
packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList.wxss
... ... @@ -20,8 +20,8 @@ page {
20 20 }
21 21  
22 22 .img-container {
23   - width: 200rpx;
24   - height: 200rpx;
  23 + width: 220rpx;
  24 + height: 220rpx;
25 25 border-radius: 14rpx;
26 26 overflow: hidden;
27 27 flex-shrink: 0;
... ...
packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js
... ... @@ -786,10 +786,17 @@ Page({
786 786 // }, 1);
787 787 util_pay.pay(data.data, function() {
788 788 setTimeout(function() {
789   - wx.reLaunch({
790   - //url: "/pages/payment/pay_success/pay_success?type=1&order_sn="+data.data,
791   - url: "/pages/team/team_success/team_success?ordersn=" + data.data,
792   - })
  789 + // wx.reLaunch({
  790 + // //url: "/pages/payment/pay_success/pay_success?type=1&order_sn="+data.data,
  791 + // url: "/pages/team/team_success/team_success?ordersn=" + data.data,
  792 + // })
  793 +
  794 + wx.redirectTo({
  795 + url: "/packageC/pages/luckyGo/luckyGo_details/luckyGo_details?type=1&ordersn=" + data.data +
  796 + "&group_id=" + th.data.param.group_id + "&goods_id=" + th.data.param.goods_id +
  797 + "&goods_name=" + th.data.bn_goods.goods_name,
  798 + });
  799 +
793 800 }, 1000)
794 801 }, function() {
795 802 //支付失败
... ...
packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
... ... @@ -953,32 +953,39 @@ Page({
953 953 },
954 954  
955 955 //------ 分享配置 --------
956   - // onShareAppMessage: function (e) {
957   - // var th=this;
958   - // var scene=this.data.teamgroup.id;
959   - // var url="/pages/team/team_show/team_show?tg_id="+scene;
960   - // //--分享图片--
961   - // var img=th.data.iurl+th.data.teamlist.share_imgurl;
962   - // //--把会员分享出去--
963   - // if(getApp().globalData.user_id){
964   - // if(url.indexOf("?")>0)
965   - // url+="&first_leader="+getApp().globalData.user_id;
966   - // else
967   - // url+="?first_leader="+getApp().globalData.user_id;
968   - // }
969   - // // console.log('url+++++>>>>>', url, th.data.teamlist.title);
970   -
971   - // var share_title=th.data.teamlist.title;
972   - // if(th.data.teamlist.share_title){
973   - // share_title=th.data.teamlist.share_title;
974   - // }
975   -
976   - // return {
977   - // path:url,
978   - // title: share_title,
979   - // imageUrl: img,
980   - // }
981   - // },
  956 + onShareAppMessage: function (e) {
  957 + var pagePath = `packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=${this.data.param.goods_id}&prom_type=9&group_id=${this.data.param.group_id}`; //当前页面url
  958 + // console.log('pagePath=====>', pagePath);
  959 + if (pagePath.indexOf('/') != 0) {
  960 + pagePath = '/' + pagePath;
  961 + }
  962 + if(getApp().globalData.user_id){
  963 +
  964 + if(pagePath.indexOf("?")>0){
  965 + pagePath+="&first_leader="+getApp().globalData.user_id;
  966 + }else{
  967 + pagePath+="?first_leader="+getApp().globalData.user_id;
  968 + }
  969 + }
  970 + return {
  971 + title: "幸运购",
  972 + path: pagePath,
  973 + }
  974 + },
  975 +
  976 + onShareTimeline() {
  977 + // var store_name = getApp().globalData.config ? getApp().globalData.config.store_name:'';
  978 + // var pagePath = this.route; //当前页面url
  979 +
  980 + // if(!store_name) store_name = getApp().globalData.setting.appName;
  981 + // if (pagePath.indexOf('/') != 0) {
  982 + // pagePath = '/' + pagePath;
  983 + // }
  984 + // return {
  985 + // title: store_name + '-幸运购活动列表',
  986 + // path: pagePath,
  987 + // }
  988 + },
982 989  
983 990 clickShare() {
984 991 this.setData({
... ...
packageC/pages/luckyGo/luckyGo_details/luckyGo_details.wxml
... ... @@ -324,7 +324,7 @@
324 324 </block>
325 325  
326 326 <!-- 分享控件,底部弹出 -->
327   -<share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>
  327 +<share id="share_button" bind:send="onShareAppMessage" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>
328 328  
329 329  
330 330 <view wx:if="{{showPoster}}">
... ...
packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.wxml
... ... @@ -1588,7 +1588,7 @@
1588 1588 <view class="img-container"><image class="img-block" src="{{iurl + 'miniapp/images/luckDraw/yhq.png'}}"></image></view>
1589 1589 <view class="f1 pdl20">
1590 1590 <view class="ellipsis-2 popup-title">优惠券-{{i.name}}</view>
1591   - <view class="fs24 t-r pdt16 c-7b">数量:<text class="c-red">{{i.num}}</text></view>
  1591 + <view class="fs26 t-r pdt16 c-7b">数量:<text class="c-red">{{i.num}}</text></view>
1592 1592 </view>
1593 1593 </view>
1594 1594 </block>
... ... @@ -1598,7 +1598,7 @@
1598 1598 <view class="img-container"><image class="img-block" src="{{iurl + 'miniapp/images/luckDraw/fw.png'}}"></image></view>
1599 1599 <view class="f1 pdl20">
1600 1600 <view class="ellipsis-2 popup-title">服务项目-{{i.name}}</view>
1601   - <view class="fs24 t-r pdt16 c-7b">数量:<text class="c-red">{{i.num}}</text></view>
  1601 + <view class="fs26 t-r pdt16 c-7b">数量:<text class="c-red">{{i.num}}</text></view>
1602 1602 </view>
1603 1603 </view>
1604 1604 </block>
... ... @@ -1608,7 +1608,7 @@
1608 1608 <view class="img-container"><image class="img-block" src="{{iurl + 'miniapp/images/luckDraw/jf.png'}}"></image></view>
1609 1609 <view class="f1 pdl20">
1610 1610 <view class="ellipsis-2 popup-title">{{luckGoInfo[item.name]}}</view>
1611   - <view class="fs24 t-r pdt16 c-7b">金额:<text class="c-red">{{filters.div100(luckGoInfo[item.num])}}</text></view>
  1611 + <view class="fs26 t-r pdt16 c-7b">金额:<text class="c-red">{{filters.div100(luckGoInfo[item.num])}}</text></view>
1612 1612 </view>
1613 1613 </view>
1614 1614 </block>
... ... @@ -1621,7 +1621,7 @@
1621 1621 </view>
1622 1622 <view class="f1 pdl20">
1623 1623 <view class="ellipsis-2 popup-title">{{item.name}}</view>
1624   - <view class="fs24 t-r pdt16 c-7b">数量:<text class="c-red">{{luckGoInfo[item.num]}}</text></view>
  1624 + <view class="fs26 t-r pdt16 c-7b">数量:<text class="c-red">{{luckGoInfo[item.num]}}</text></view>
1625 1625 </view>
1626 1626 </view>
1627 1627 </block>
... ...
pages/index/index/index.wxml
... ... @@ -229,7 +229,6 @@
229 229  
230 230  
231 231 <!--幸运购-->
232   - <!--幸运购-->
233 232 <view class="seckill" wx:if="{{luckGo_list && luckGo_list.length != 0}}">
234 233 <navigator bindtap="go_url" data-url="/packageC/pages/luckyGo/luckyGo_activityList/luckyGo_activityList" hover-class="none">
235 234 <view class="seckill-time">
... ... @@ -243,7 +242,7 @@
243 242 </view>
244 243 </view>
245 244 </navigator>
246   - <view class="seckill-list luck">
  245 + <view class=" luck">
247 246 <view class="list-item" wx:for="{{luckGo_list}}" bindtap="go_url" data-url="/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id={{item.goods_id}}&group_id={{item.id}}" wx:if="{{item.status == 1}}">
248 247 <view class="flex ai-center">
249 248 <view class="img-container"><image class="img-block" src="{{url + item.original_img}}" data-val="{{item.original_img}}"
... ...
pages/index/index/index.wxss
... ... @@ -1130,8 +1130,8 @@ page {
1130 1130 }
1131 1131  
1132 1132 .luck .img-container {
1133   - width: 200rpx;
1134   - height: 200rpx;
  1133 + width: 220rpx;
  1134 + height: 220rpx;
1135 1135 border-radius: 14rpx;
1136 1136 overflow: hidden;
1137 1137 flex-shrink: 0;
... ...