Commit 351a44e014076dc62930b07d1e525e21469b3dce

Authored by taiyuan
1 parent e1396187

去掉拼单玩法,点击邀请好友参团出现转发给朋友和生成海报菜单

pages/team/team_show/team_show.wxml
@@ -154,10 +154,10 @@ @@ -154,10 +154,10 @@
154 </view> 154 </view>
155 </view> 155 </view>
156 <!----//拼团玩法----> 156 <!----//拼团玩法---->
157 - <view class='pintuan' bindtap="cpd"> 157 + <!-- <view class='pintuan' bindtap="cpd">
158 <view class='pintuanzhou'>拼团玩法</view> 158 <view class='pintuanzhou'>拼团玩法</view>
159 <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view> 159 <view class='pintuanyou'>开团/参团>邀请参团>人满成团</view>
160 - </view> 160 + </view> -->
161 <!--大家都在团--> 161 <!--大家都在团-->
162 <view class='goodslist'> 162 <view class='goodslist'>
163 <view class='goodslisttop'> 163 <view class='goodslisttop'>
pages/team/team_success/team_success.js
@@ -807,7 +807,7 @@ Page({ @@ -807,7 +807,7 @@ Page({
807 else 807 else
808 url+="?first_leader="+getApp().globalData.user_id; 808 url+="?first_leader="+getApp().globalData.user_id;
809 } 809 }
810 - console.log(url); 810 + console.log('url+++++>>>>>', url, th.data.teamlist.title);
811 811
812 return { 812 return {
813 path:url, 813 path:url,
@@ -815,6 +815,24 @@ Page({ @@ -815,6 +815,24 @@ Page({
815 imageUrl: img, 815 imageUrl: img,
816 } 816 }
817 }, 817 },
  818 +
  819 + clickShare() {
  820 + this.setData({
  821 + share_hidden: true,
  822 + });
  823 + },
  824 +
  825 + send() {
  826 + this.setData({
  827 + share_hidden:false,
  828 + });
  829 + },
  830 +
  831 + cancel() {
  832 + this.setData({
  833 + share_hidden:false,
  834 + });
  835 + },
818 836
819 837
820 }) 838 })
pages/team/team_success/team_success.json
@@ -5,5 +5,8 @@ @@ -5,5 +5,8 @@
5 "navigationBarTextStyle": "white", 5 "navigationBarTextStyle": "white",
6 "navigationBarBackgroundColor": "#ffffff", 6 "navigationBarBackgroundColor": "#ffffff",
7 "backgroundColor": "#eeeeee" 7 "backgroundColor": "#eeeeee"
8 - } 8 + },
  9 + "usingComponents": {
  10 + "share": "/components/share/share"
  11 + }
9 } 12 }
10 \ No newline at end of file 13 \ No newline at end of file
pages/team/team_success/team_success.wxml
@@ -165,7 +165,8 @@ @@ -165,7 +165,8 @@
165 165
166 <view wx:if="{{teamlist.kttype==3}}" class='bodybutton'> 166 <view wx:if="{{teamlist.kttype==3}}" class='bodybutton'>
167 <!-- 阶梯团 --> 167 <!-- 阶梯团 -->
168 - <button wx:if="{{p_status==1}}" bindtap='cmeng' style='background-color:#fab55a; color:#fff'> 168 + <button wx:if="{{p_status==1}}" bindtap="clickShare" style='background-color:#fab55a; color:#fff'>
  169 + <!-- <button wx:if="{{p_status==1}}" bindtap="clickShare" bindtap='cmeng' style='background-color:#fab55a; color:#fff'> -->
169 邀请好友参团 170 邀请好友参团
170 </button> 171 </button>
171 <button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}"> 172 <button bindtap="go_pay_wk" style='background-color:#42c780;' wx:if="{{order.pt_status==2 && order.is_zsorder==4 }}">
@@ -175,7 +176,7 @@ @@ -175,7 +176,7 @@
175 <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> --> 176 <!-- <view wx:elif="{{teamlist.ct_num-ordertx.length>0}}" class='' bindtap='cmeng'> -->
176 177
177 <!--会员团 商家团--> 178 <!--会员团 商家团-->
178 - <button class="bodybutton" style='background-color:#fab55a; color:#fff' bindtap='cmeng' 179 + <button class="bodybutton" style='background-color:#fab55a; color:#fff' bindtap='clickShare'
179 wx:if="{{(teamlist.kttype==2||teamlist.kttype==1)&&p_status==1}}">邀请好友参团</button> 180 wx:if="{{(teamlist.kttype==2||teamlist.kttype==1)&&p_status==1}}">邀请好友参团</button>
180 181
181 <!-- </view> --> 182 <!-- </view> -->
@@ -261,7 +262,7 @@ @@ -261,7 +262,7 @@
261 </view> 262 </view>
262 263
263 <!----蒙板----> 264 <!----蒙板---->
264 -<view class='mtop' wx:if="{{meng}}"> 265 +<!-- <view class='mtop' wx:if="{{meng}}">
265 <view wx:if="{{teamlist.kttype==3}}" class='mt1'> 266 <view wx:if="{{teamlist.kttype==3}}" class='mt1'>
266 <block wx:if="{{max_num-ordertx.length>0}}"> 267 <block wx:if="{{max_num-ordertx.length>0}}">
267 还差 268 还差
@@ -278,16 +279,17 @@ @@ -278,16 +279,17 @@
278 <span class='mts'>{{teamlist.ct_num-ordertx.length}}</span>人,邀请好友参团吧 279 <span class='mts'>{{teamlist.ct_num-ordertx.length}}</span>人,邀请好友参团吧
279 <span class='mcou' bindtap='cmc'>⊗</span> 280 <span class='mcou' bindtap='cmc'>⊗</span>
280 </view> 281 </view>
281 -  
282 <view>点击分享,发送给 282 <view>点击分享,发送给
283 <span class='mts'>朋友</span>和 283 <span class='mts'>朋友</span>和
284 <span class='mts'>朋友圈</span> 284 <span class='mts'>朋友圈</span>
285 - </view> 285 + </view> -->
286 <!--底部--> 286 <!--底部-->
287 - <view class='mfoot' bindtap='saveImageToPhotosAlbum'> 287 + <!-- <view class='mfoot' bindtap='saveImageToPhotosAlbum'>
288 <button class='mbtn'>查看分享二维码</button> 288 <button class='mbtn'>查看分享二维码</button>
289 </view> 289 </view>
290 -</view> 290 +</view> -->
  291 +
  292 +
291 <!--二维码显示页面--> 293 <!--二维码显示页面-->
292 <canvas canvas-id='share' style='width:750rpx;height:1217rpx;' wx:if='{{canvasHidden}}'></canvas> 294 <canvas canvas-id='share' style='width:750rpx;height:1217rpx;' wx:if='{{canvasHidden}}'></canvas>
293 <!--拼团玩法弹出框--> 295 <!--拼团玩法弹出框-->
@@ -317,3 +319,6 @@ @@ -317,3 +319,6 @@
317 </view> 319 </view>
318 </view> 320 </view>
319 </block> 321 </block>
  322 +
  323 +<!-- 分享控件,底部弹出 -->
  324 +<share id="share_button" bind:send="send" bind:cancel="cancel" bind:share_img="saveImageToPhotosAlbum" wx:if="{{share_hidden}}"></share>