Commit f8b3df945a1f5c135e6a106cbcd861da732f2629
1 parent
ea78f162
全额预售优化
Showing
5 changed files
with
20 additions
and
31 deletions
.idea/mshopweapp.iml deleted
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | -<module type="WEB_MODULE" version="4"> | |
| 3 | - <component name="NewModuleRootManager"> | |
| 4 | - <content url="file://$MODULE_DIR$" /> | |
| 5 | - <orderEntry type="inheritedJdk" /> | |
| 6 | - <orderEntry type="sourceFolder" forTests="false" /> | |
| 7 | - </component> | |
| 8 | -</module> | |
| 9 | 0 | \ No newline at end of file |
packageC/pages/presell/cart/cart.wxml
| ... | ... | @@ -64,7 +64,8 @@ |
| 64 | 64 | |
| 65 | 65 | <view class="pdb20 flex t-c fs22 c-7b"> |
| 66 | 66 | <view class="f1"> |
| 67 | - <view>付定金</view> | |
| 67 | + <view wx:if="{{presell.presell_type!==1}}">付定金</view> | |
| 68 | + <view wx:else>支付金额</view> | |
| 68 | 69 | <view wx:if="{{presell.deposit_pay_time>0}}" class="box"> |
| 69 | 70 | <text class="iconfont icon-yes"></text> |
| 70 | 71 | </view> |
| ... | ... | @@ -316,7 +317,8 @@ |
| 316 | 317 | </view> |
| 317 | 318 | |
| 318 | 319 | <view class="information bdr14 mgt20"> |
| 319 | - <view class="item"> | |
| 320 | + <block wx:if="{{act.presell_type==0}}"> | |
| 321 | + <view class="item"> | |
| 320 | 322 | <view>阶段一:定金(待付款)</view> |
| 321 | 323 | <view class="co-red">¥{{filters.toFix(pre_arr.presell_money*order.order_goods.goods_num,2)}}元</view> |
| 322 | 324 | </view> |
| ... | ... | @@ -324,6 +326,7 @@ |
| 324 | 326 | <view>阶段二:尾款</view> |
| 325 | 327 | <view class="co-red">¥{{filters.toFix(tail_pay,2)}}元</view> |
| 326 | 328 | </view> |
| 329 | + </block> | |
| 327 | 330 | </view> |
| 328 | 331 | </view> |
| 329 | 332 | ... | ... |
packageC/pages/presell/cart/cart2_pre.wxml
| ... | ... | @@ -122,8 +122,8 @@ |
| 122 | 122 | |
| 123 | 123 | <!-- 不下单的时候退款定金 --> |
| 124 | 124 | <view class="information bdr14" style="margin-bottom: 20rpx" wx:if="{{!act.is_refundmoney}}"> |
| 125 | - <view class="item ai-center"> | |
| 126 | - <view>我同意预售商品不退定金</view> | |
| 125 | + <view wx:if="{{act.presell_type==0}}" class="item ai-center"> | |
| 126 | + <view >我同意预售商品不退定金</view> | |
| 127 | 127 | <switch style="transform: scale(0.7);position: relative; right: -24rpx" type="switch" checked="{{agree_no_ref?true:false}}" bindchange="switchChange"/> |
| 128 | 128 | </view> |
| 129 | 129 | </view> |
| ... | ... | @@ -136,7 +136,7 @@ |
| 136 | 136 | <view class="yu_er">使用余额 :¥{{yuer}} </view> |
| 137 | 137 | </view> |
| 138 | 138 | </view> |
| 139 | - <view class="item" wx:if="{{kt_type<3 || is_normal==1}}"> | |
| 139 | + <view class="item" wx:if="{{act.presell_type==1}}"> | |
| 140 | 140 | <view>商品金额</view> |
| 141 | 141 | <view class="co-red">¥ {{formData.all_price}}元</view> |
| 142 | 142 | </view> | ... | ... |
packageC/pages/presell/goodsInfo/goodsInfo.wxml
| ... | ... | @@ -104,7 +104,7 @@ |
| 104 | 104 | </view> |
| 105 | 105 | </view> |
| 106 | 106 | </view> |
| 107 | - <view class="fs24" style="padding-bottom:20rpx"> | |
| 107 | + <view wx:if="{{presellForm.presell_type==0}}" class="fs24" style="padding-bottom:20rpx"> | |
| 108 | 108 | <view class="stock" style="color:#999">尾款:{{filters.format_time(presellForm.pay_begindate,1)}}-{{filters.format_time(presellForm.pay_enddate,1)}}</view> |
| 109 | 109 | </view> |
| 110 | 110 | <view class="goods-num"> |
| ... | ... | @@ -504,11 +504,19 @@ |
| 504 | 504 | </view> |
| 505 | 505 | |
| 506 | 506 | <view class="line" bindtap="openSpecModel" data-ind="2" style="margin-left: 10rpx; padding-left: 10rpx"> |
| 507 | - <view class="">支付定金</view> | |
| 507 | + <block wx:if="{{presellForm.presell_type==0}}"> | |
| 508 | + <view class="">支付定金</view> | |
| 508 | 509 | <view class="flex"> |
| 509 | 510 | 定金 |
| 510 | 511 | <text class="rmb">{{presellList.presell_money}}</text> |
| 511 | 512 | </view> |
| 513 | + </block> | |
| 514 | + <block wx:else> | |
| 515 | + <view class="">支付金额</view> | |
| 516 | + <view class="flex"> | |
| 517 | + <text class="rmb" style="margin-left:10rpx;">{{presellList.presell_price}}</text> | |
| 518 | + </view> | |
| 519 | + </block> | |
| 512 | 520 | </view> |
| 513 | 521 | </view> |
| 514 | 522 | </view> |
| ... | ... | @@ -639,7 +647,8 @@ |
| 639 | 647 | <block wx:else> |
| 640 | 648 | <view wx:if="{{openSpecModal_ind==2}}" bindtap="addCart" |
| 641 | 649 | data-openSpecModal_ind="{{openSpecModal_ind}}" class="spec-cart-btn spec-buy" data-action="buy"> |
| 642 | - 支付定金(¥{{pre_arr.presell_money}}) | |
| 650 | + <text wx:if="{{presellForm.presell_type==0}}">支付定金(¥{{pre_arr.presell_money}})</text> | |
| 651 | + <text wx:else>支付金额(¥{{pre_arr.presell_price}})</text> | |
| 643 | 652 | </view> |
| 644 | 653 | </block> |
| 645 | 654 | ... | ... |
setting.js deleted
| 1 | -module.exports = { | |
| 2 | - appName: "派派通", | |
| 3 | - versionCode: "1.0.0", | |
| 4 | - appLogo: "../../../images/logo.png", | |
| 5 | - // url: "https://test-weshop.yolipai.net", | |
| 6 | - url: "https://test-weshop.xinda100.cn", | |
| 7 | - //url:"https://weshop.yolipai.net", //外网的网址 | |
| 8 | - //url:"http://172.20.3.121:8085", //明海的网址 | |
| 9 | - //url:"http://172.20.3.102:8085", //自己的网址 | |
| 10 | - banner_err:"../../../images/del/logo.png", | |
| 11 | - imghost: "https://mshopimg.yolipai.net/", | |
| 12 | - share: {}, | |
| 13 | - stoid:1, | |
| 14 | - | |
| 15 | -}; |