Commit b40e1ac9497c360f9477a100def4aef2780fafac

Authored by yvan.ni
1 parent 070d83cf

礼包的优化

pages/giftpack/giftpacklist/giftpacklist.js
@@ -169,7 +169,7 @@ Page({ @@ -169,7 +169,7 @@ Page({
169 this.setData({submit:0}) 169 this.setData({submit:0})
170 ut.fy_back('',0); 170 ut.fy_back('',0);
171 com.set_py_fir(); 171 com.set_py_fir();
172 - getApp().check_can_share(); 172 + getApp().check_can_share(this);
173 getApp().is_Single_page(this, function () { 173 getApp().is_Single_page(this, function () {
174 //--先判断会员状态-- 174 //--先判断会员状态--
175 var user_info = getApp().globalData.userInfo; 175 var user_info = getApp().globalData.userInfo;
pages/giftpack/giftpacklist/giftpacklist.wxml
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <text class="data-v-3a5b7e36 ellipsis-2" style="width:90%;">{{giftTitle}}</text> 13 <text class="data-v-3a5b7e36 ellipsis-2" style="width:90%;">{{giftTitle}}</text>
14 14
15 <!-- 这个是分享按钮 --> 15 <!-- 这个是分享按钮 -->
16 - <view wx:if="{{c_state<2}}" class="xc-share-frame t-c" bindtap="clickShare"> 16 + <view wx:if="{{c_state<2 && isLogin}}" class="xc-share-frame t-c" bindtap="clickShare">
17 <view class="iconfont icon-share fs40" ></view> 17 <view class="iconfont icon-share fs40" ></view>
18 <view class="fs22 c-7b">分享</view> 18 <view class="fs22 c-7b">分享</view>
19 </view> 19 </view>