Skip to content

Commit

Permalink
Add Client Cash on delivery Permission
Browse files Browse the repository at this point in the history
  • Loading branch information
zhrrobert committed May 7, 2024
1 parent 09b9e63 commit 7183617
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion eaterplanet_ecommerce/pages/order/placeOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,16 @@ Page({
var community = wx.getStorageSync('community');
var community_id = community.communityId;
util.check_login() ? this.setData({ needAuth: false }) : (this.setData({ needAuth: true }));
var member_info = wx.getStorageSync('member_info');
console.log(member_info)
// let is_limit = options.is_limit || 0;
this.setData({
buy_type: options.type || '',
soli_id: options.soli_id || '',
pickUpAddress: community.fullAddress || '',
pickUpCommunityName: community.communityName || '',
disUserName: community.disUserName || ''
disUserName: community.disUserName || '',
is_cashon_delivery: member_info.is_cashon_delivery || ''
})
wx.showLoading()
app.util.request({
Expand Down
10 changes: 5 additions & 5 deletions eaterplanet_ecommerce/pages/order/placeOrder.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -308,31 +308,31 @@
</view>
</view>
</block>
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{cashondelivery_data.isopen_cashondelivery==1&&tabIdx==0&&cashondelivery_data.isopen_cashondelivery_ziti==1}}">
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{is_cashon_delivery==1&&cashondelivery_data.isopen_cashondelivery==1&&tabIdx==0&&cashondelivery_data.isopen_cashondelivery_ziti==1}}">
<view class="oc-payment-item {{ck_yupay==2?'oc-payment-selected':''}}" style="{{ck_yupay==2?'color:'+skin.color:''}}">
<text class="iconfont icon-huodaofukuan oc-payment-icon" style="color:#ff5777;"></text>
<view class="oc-payment-method">货到付款</view>
</view>
</view>
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{cashondelivery_data.isopen_cashondelivery==1&&tabIdx==1&&cashondelivery_data.isopen_cashondelivery_communityhead==1}}">
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{is_cashon_delivery==1&&cashondelivery_data.isopen_cashondelivery==1&&tabIdx==1&&cashondelivery_data.isopen_cashondelivery_communityhead==1}}">
<view class="oc-payment-item {{ck_yupay==2?'oc-payment-selected':''}}" style="{{ck_yupay==2?'color:'+skin.color:''}}">
<text class="iconfont icon-huodaofukuan oc-payment-icon" style="color:#ff5777;"></text>
<view class="oc-payment-method">货到付款</view>
</view>
</view>
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{cashondelivery_data.isopen_cashondelivery==1&&tabIdx==2&&cashondelivery_data.isopen_cashondelivery_express==1}}">
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{is_cashon_delivery==1&&cashondelivery_data.isopen_cashondelivery==1&&tabIdx==2&&cashondelivery_data.isopen_cashondelivery_express==1}}">
<view class="oc-payment-item {{ck_yupay==2?'oc-payment-selected':''}}" style="{{ck_yupay==2?'color:'+skin.color:''}}">
<text class="iconfont icon-huodaofukuan oc-payment-icon" style="color:#ff5777;"></text>
<view class="oc-payment-method">货到付款</view>
</view>
</view>
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{cashondelivery_data.isopen_cashondelivery==1&&tabIdx==3&&cashondelivery_data.isopen_cashondelivery_localtown==1}}">
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{is_cashon_delivery==1&&cashondelivery_data.isopen_cashondelivery==1&&tabIdx==3&&cashondelivery_data.isopen_cashondelivery_localtown==1}}">
<view class="oc-payment-item {{ck_yupay==2?'oc-payment-selected':''}}" style="{{ck_yupay==2?'color:'+skin.color:''}}">
<text class="iconfont icon-huodaofukuan oc-payment-icon" style="color:#ff5777;"></text>
<view class="oc-payment-method">货到付款</view>
</view>
</view>
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{cashondelivery_data.isopen_cashondelivery==1&&tabIdx==4&&cashondelivery_data.isopen_cashondelivery_hexiao==1}}">
<view class="oc-payment" avalonctrl="oc_payment" bindtap="ck_cash" wx:if="{{is_cashon_delivery==1&&cashondelivery_data.isopen_cashondelivery==1&&tabIdx==4&&cashondelivery_data.isopen_cashondelivery_hexiao==1}}">
<view class="oc-payment-item {{ck_yupay==2?'oc-payment-selected':''}}" style="{{ck_yupay==2?'color:'+skin.color:''}}">
<text class="iconfont icon-huodaofukuan oc-payment-icon" style="color:#ff5777;"></text>
<view class="oc-payment-method">货到付款</view>
Expand Down

0 comments on commit 7183617

Please sign in to comment.