123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <block wx:if="{{ bindMobileStatus == 2 }}">
- <view class="login-box">
- <image class="logo" src="/images/wx.jpg" mode="widthFix"></image>
- <view class="line"></view>
- <view class="title">申请获取以下权限</view>
- <view class="profile">授权绑定手机号码</view>
- <view class="btn">
- <van-button type="primary" block round open-type="getPhoneNumber" bind:getphonenumber="getPhoneNumber">绑定手机号码</van-button>
- </view>
- </view>
- </block>
- <block wx:if="{{ bindMobileStatus == 1 }}">
- <van-card
- wx:for="{{goodsList}}" wx:key="index"
- num="{{item.number}}"
- price="{{item.price}}"
- title="{{item.name}}"
- thumb="{{ item.pic }}"
- centered
- >
- <view slot="desc">
- {{item.label}}
- <block wx:for="{{item.sku}}" wx:for-item="option" wx:key="index">
- {{option.optionName}}:{{option.optionValueName}}
- </block>
- <block wx:for="{{item.additions}}" wx:for-item="option" wx:key="index">
- {{option.pname}}:{{option.name}}
- </block>
- </view>
- </van-card>
- <view class="container-box cell-group">
- <view class="peisong-way">
- <view class="row-box" wx:if="{{isNeedLogistics > 0}}">
- <view class="row-label">配送方式</view>
- <radio-group bindchange="radioChange">
- <label class="radio">
- <radio value="kd" checked="{{peisongType == 'kd'}}" /> 快递
- </label>
- <label class="radio">
- <radio value="zq" checked="{{peisongType == 'zq'}}" /> 到店自取
- </label>
- </radio-group>
- </view>
- <picker wx:if="{{peisongType == 'zq' && shops}}" bindchange="shopSelect" value="{{shopIndex}}" range="{{shops}}" range-key="name">
- <van-cell title="选择自提门店" value="{{shopIndex == -1 ? '请选择':shops[shopIndex].name}}" required is-link />
- </picker>
- <van-cell wx:if="{{peisongType == 'zq' && shopIndex != -1}}" title="电话" value="{{shops[shopIndex].linkPhone}}" is-link bind:click="callMobile" />
- <van-cell wx:if="{{peisongType == 'zq' && shopIndex != -1}}" title="地址" title-width="64rpx" value="{{shops[shopIndex].address}}" is-link bind:click="goMap" />
-
- <view class="address-box" wx:if="{{peisongType == 'kd' && isNeedLogistics > 0}}">
- <van-cell wx:if="{{!curAddressData}}" icon="add-o" title="新增收货地址" is-link bind:click="addAddress" />
- <view class="show-address" hidden="{{!curAddressData}}" bindtap="selectAddress">
- <view class="l">
- <view class="name-tel">{{curAddressData.linkMan}} {{curAddressData.mobile}}</view>
- <view class="addr-text">{{curAddressData.address}}</view>
- </view>
- <view class="r">
- <image class="next" src="/images/icon/next.png"></image>
- </view>
- </view>
- </view>
- <van-field
- wx:if="{{peisongType == 'zq'}}"
- size="large"
- model:value="{{ name }}"
- label="联系人"
- focus
- clearable
- required
- placeholder="请输入联系人"
- />
- <van-field
- wx:if="{{peisongType == 'zq'}}"
- size="large"
- model:value="{{ mobile }}"
- label="联系电话"
- type="number"
- clearable
- required
- placeholder="请输入手机号码">
- <van-button slot="button" size="small" type="danger" open-type="getPhoneNumber" bind:getphonenumber="getPhoneNumber">自动获取</van-button>
- </van-field>
- <view class="row-box">
- <view class="row-label">备注</view>
- <view class="right-text">
- <input bindinput="remarkChange" type="text" class="liuyan" placeholder="如需备注请输入" />
- </view>
- </view>
- </view>
- <view class="peisong-way" hidden="{{hasNoCoupons}}">
- <view class="row-box" style="border-bottom:none;">
- <view class="row-label t">使用优惠券</view>
- </view>
- <picker bindchange="bindChangeCoupon" range="{{coupons}}" range-key="nameExt">
- <view class="row-box" style="border-bottom:none;">
- <view class="row-label">{{curCouponShowText}}</view>
- <image class="next" src="/images/icon/next.png"></image>
- </view>
- </picker>
- </view>
- </view>
- <!-- 选择积分抵扣 -->
- <van-radio-group wx:if="{{ scoreDeductionRules && scoreDeductionRules.length > 0 }}" value="{{ deductionScore }}" bind:change="deductionScoreChange">
- <van-cell-group title="积分抵扣">
- <van-cell title="不使用积分" clickable data-name="0" bind:click="deductionScoreClick">
- <van-radio slot="right-icon" name="0" />
- </van-cell>
- <van-cell wx:for="{{scoreDeductionRules}}" wx:key="id" title="使用{{ item.score }}积分抵扣¥{{ item.money }}" clickable data-name="{{ item.score }}" bind:click="deductionScoreClick">
- <van-radio slot="right-icon" name="{{ item.score }}" />
- </van-cell>
- </van-cell-group>
- </van-radio-group>
- <van-cell-group title="小计">
- <van-cell wx:if="{{ yunPrice }}" title="运费" value="¥{{yunPrice}}" />
- <van-cell wx:if="{{deductionMoney}}" title="积分抵扣" value="-¥{{deductionMoney}}" />
- <van-cell wx:if="{{couponAmount}}" title="优惠金额" value="-¥{{couponAmount}}" />
- <van-cell wx:if="{{balance}}" title="账户余额" value="¥{{balance}}" />
- </van-cell-group>
- <view class="bottom-box"></view>
- <van-submit-bar
- price="{{ allGoodsAndYunPrice*100 }}"
- suffix-label="+{{totalScoreToPay}} 积分"
- button-text="提交订单"
- bind:submit="goCreateOrder"
- />
- </block>
|