first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,320 @@
<!-- user/appointment/appointment.wxml -->
<!-- 头部 -->
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}" />
<view class="tecProcess">
<image mode="widthFix" src="{{ shopList.shopCart.length != 0 ?'http://cdn.yishaxiyi.com/ff8049b242111156b09d8b714de064dd.png':'http://cdn.yishaxiyi.com/d0a3068c38351c1082013e9dd135efdc.png'}}" />
</view>
<!-- 自送门店 和 上门取件 -->
<view class="tabs_choice pd20">
<view class="mt20" wx:if="{{groupType == -1 || groupType == 0}}">
<wux-cell-group>
<wux-cell
right="text_right_cell2"
title="自送门店"
data-type='1'
bind:tap="tapTakeTypeOrdinary"
rightUrl="{{takeTypeOrd == 1 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
<wux-cell
right="text_right_cell2"
title="上门取件"
data-type='2'
bind:tap="tapTakeTypeOrdinary"
rightUrl="{{takeTypeOrd == 2 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
</wux-cell-group>
</view>
</view>
<!-- 内容 -->
<view class="appointment pd20">
<form report-submit bindsubmit="placeOrder">
<view class="mt20" wx:if="{{groupType !== -1 && groupType !== 0}}">
<wux-cell-group>
<wux-cell
right="text_right_cell2"
title="在单位约定时间或到门店洗衣免运费"
data-type='2'
bind:tap="tapTakeType"
rightUrl="{{take_type == 2 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
<wux-cell
right="text_right_cell2"
title="其它地址上门取送"
data-type='1'
bind:tap="tapTakeType"
rightUrl="{{take_type == 1 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
</wux-cell-group>
</view>
<!-- 团体客户地址选择 -->
<view wx:if="{{groupType !== 0 && groupType !== -1}}">
<!-- 选择快递方式 -->
<view class="mt20" wx:if="{{take_type == 2}}">
<picker
value="{{branchIndex}}"
range="{{branchList}}"
range-key='unit_title'
bindchange='pickerChange'
>
<view class='bac_cell'>
<wux-cell-group>
<wux-cell right="text_right_cell2" title="{{ branchIndex == -1?'请选择您所在的分行':branchList[branchIndex].unit_title}}" rightUrl='/static/img/icon/asfa51f3a1f3a5f13a.png' />
</wux-cell-group>
</view>
</picker>
</view>
<navigator url="/user/addList/addList" wx:if='{{take_type == 1}}'>
<view class="rec mt20 pd25 flex-con2">
<view class="rec-all">
<view class="rec-img fl flex-con2">
<image src="/static/img/icon/rfw161.png" />
</view>
<view class="rec-add fl pl20">
<view class="adds clamp1">
<span>{{address.userName || '请选择或新建地址'}}</span>
<span class="ml10">{{address.telNumber}}</span>
</view>
<view class="addInfo clamp1">{{address.all || '请填写您的详细地址'}}</view>
</view>
<view class="fr right_icon flex-con2">
<image src="/static/img/icon/rthyrthertherth.png" />
</view>
</view>
</view>
</navigator>
</view>
<!-- 普通用户的地址选择 -->
<view wx:if="{{groupType == -1 || groupType == 0}}">
<!-- 普通用户门店自取 -->
<view class="mt20" wx:if="{{takeTypeOrd == 1}}">
<picker
value="{{addIndex}}"
range="{{addList}}"
range-key='name'
bindchange='pickerChangeOrd'
>
<view class='bac_cell'>
<wux-cell-group>
<wux-cell right="text_right_cell2" title="{{ addIndex == -1?'请选择门店':addList[addIndex].name}}" rightUrl='/static/img/icon/asfa51f3a1f3a5f13a.png' />
</wux-cell-group>
</view>
</picker>
</view>
<!-- 普通用户填写地址显示 -->
<navigator url="/user/addList/addList" wx:if='{{takeTypeOrd == 2 }}'>
<view class="rec mt20 pd25 flex-con2">
<view class="rec-all">
<view class="rec-img fl flex-con2">
<image src="/static/img/icon/rfw161.png" />
</view>
<view class="rec-add fl pl20">
<view class="adds clamp1">
<span>{{address.userName || '请选择或新建地址'}}</span>
<span class="ml10">{{address.telNumber}}</span>
</view>
<view class="addInfo clamp1">{{address.all || '请填写您的详细地址'}}</view>
</view>
<view class="fr right_icon flex-con2">
<image src="/static/img/icon/rthyrthertherth.png" />
</view>
</view>
</view>
</navigator>
</view>
<view wx:if='{{ takeTypeOrd == 1 && (groupType == 0 || groupType == -1) }}' class="tips pd25 mt20 app2">
部分门店周四休息,到店前请联系门店确认
</view>
<view class="rec app2 mt20 pd25" wx:if='{{takeTypeOrd == 2 || ((groupType != 0 && groupType != -1)) }}'>
<view class="rec-rem flex-con2 pl20" bind:tap="onClose">
<view class="time">
<view class="time1 fl">
<image src="/static/img/icon/asfasfwerf.jpg" />
</view>
<view class="time2 fl pl20">
{{ !!somIndex.time ? date_list[bigIndex].title :''}} {{ somIndex.time || '请选择上门时间'}}
</view>
<view class="right_icon fr">
<image src="/static/img/icon/rthyrthertherth.png" />
</view>
</view>
</view>
<view class="rec-rem flex-con2 pl20">
<input type="text" placeholder="备注:(如取送时间、污渍等说明)" bindinput="changeSearch" />
</view>
</view>
<view class="rec app2 mt20 pd25">
<!-- 第三方进入时显示 -->
<view class="rec-rem flex-con2 pl20" wx:if="{{formSource != 0}}">
<input type="text" placeholder="请输入卷码" bindinput="changeCode" />
</view>
</view>
<!-- 如果从洗衣购物车过来的显示 -->
<view class="shop_list mt20" wx:if="{{shopList.shopCart.length != 0}}">
<view class="shop_list_row dis-flex" wx:for="{{ shopList.shopCart }}" wx:key="index">
<view class="shop_list_img">
<image src="{{item.image}}" />
</view>
<view class="flex1 ml20 dis-flex1">
<view class="flex1 flex-con2">
<view class="flex1 text1">{{item.name}}{{item.type == 1?'(工服)':''}}</view>
<view class="flex1 text-right text1">¥{{item.price}}</view>
</view>
<view class="flex1 flex-con2">
<view class="flex1 text2">
<span>{{item.attr}}</span>
</view>
<view class="flex1 text-right text1">×{{item.num}}</view>
</view>
</view>
</view>
<view class="mon mt20">
<view class="mon_cen pdtb20 dis-flex">
<view class="flex1 mon_p">订单金额</view>
<view class="flex1 text-right mon_p">¥{{shopList.orderPrice}}</view>
</view>
<view class="mon_cen pdtb20 dis-flex" wx:if="{{groupType !== 0 && type == 1}}">
<view class="flex1 mon_p">
专属优惠
<span class="discount ml20" wx:if="{{shopList.ordinaryPrice > 0}}">{{groupData.favour_des}}</span>
</view>
<view class="flex1 text-right mon_p2">-¥{{shopList.ordinaryPrice}}</view>
</view>
<navigator wx:if="{{groupType == 0 && isCoupon}}" url="/mall/couponCard/couponCard?total={{shopList.orderPrice}}" class="mon_cen pdtb20 dis-flex">
<view class="flex1 mon_p">优惠</view>
<view class="flex1 flex-con5 mon_span">
<image src="/static/img/icon/right-r.png" />
<span wx:if="{{ !!coupon && !!coupon.price }}" class="mr20">
-¥{{coupon.price}}
</span>
<span wx:else class="mr20">选择优惠券</span>
</view>
</navigator>
<view class="mon_cen pdtb20 dis-flex">
<view class="flex1 mon_p">
运费
<span class="explain ml20" wx:if="{{ freightTips}}">实付满{{type == 2?groupData.satisfy_money:postage.satisfy_money}}元免运费</span>
<span class="explain ml20" wx:else>3月底前免运费</span>
</view>
<view class="flex1 text-right mon_p">¥{{shopList.postageMoney}}</view>
</view>
<!-- <view class="mon_cen pdtb20 dis-flex">
<view class="flex1 text-right mon_p">
合计:
<span class="mon_span">¥{{shopList.total}}</span>
</view>
</view> -->
</view>
</view>
<view class="mt20" wx:if="{{groupType !== 0 && groupType !== -1}}">
<wux-cell-group>
<wux-cell
wx:if="{{type == 1}}"
extra='{{shopList.total}}'
right="text_right_cell2"
thumb="/static/img/icon/wxlogo2.png"
title="微信支付"
rightUrl="{{isPay[0] ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
<wux-cell
wx:if="{{type == 2}}"
extra='{{shopList.total}}'
right="text_right_cell2"
thumb="{{!!giftCard.logo?giftCard.logo:'/static/img/icon/guangda.png'}}"
title="光大专属礼卡"
rightUrl="{{isPay[1] ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
>
<span style="color:#f22c21;">(余额¥{{giftCard.money}})</span>
</wux-cell>
</wux-cell-group>
</view>
<view class="mt20" wx:elif="{{groupType == 0}}">
<wux-cell-group>
<wux-cell
data-type="1"
bind:tap="selectPay"
data-url="/user/payment/card/card"
right="text_right_cell2"
thumb="{{!!giftCard.logo?giftCard.logo:'/static/img/icon/yhk.png'}}"
title="{{isgiftCard != ''?isgiftCard:'会员卡支付'}}"
rightUrl="{{isPayp == 1 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
<wux-cell
data-type="2"
bind:tap="selectPay"
thumb="/static/img/icon/wxlogo2.png"
title="微信支付"
rightUrl="{{isPayp == 2 ? '/static/img/icon/wxPay2.png' : '/static/img/icon/wxPay1.png'}}"
/>
</wux-cell-group>
</view>
<button wx:if="{{groupType == -1}}" class="sub" form-type="submit">立即下单</button>
<view class="tip mt40" wx:if="{{groupType !== 0 && groupType !== -1}}">
温馨提示:{{groupData.tips}}
</view>
<view class="tip mt40" wx:else>
温馨提示:如订单总额未满{{postage.satisfy_money}}元需支付{{postage.postage_money}}元运费
</view>
</form>
</view>
<!-- 支付 -->
<view class="shop_pay" wx:if="{{groupType !== -1}}">
<view class="flex-con5 flex1 pay_num">应付:¥{{shopList.total}}</view>
<form report-submit bindsubmit="payment">
<button class="pay_sub" form-type="submit">支付</button>
</form>
</view>
<wux-popup position="bottom" visible="{{ visible }}" bind:close="onClose">
<view class="frame">
<view class="frame_title">
<view class="frame_p">上门时间</view>
<span bind:tap="onClose">
<image src="/static/img/icon/dasdasd_05.png" />
</span>
</view>
<view class="frame_cen">
<view class="frame_cenl">
<view
wx:for="{{date_list}}"
wx:key="index"
bind:tap="bigSelect"
class="cenl_row {{bigIndex == index?'row_active1':''}}"
data-index="{{index}}"
>
{{item.title}}
</view>
</view>
<view class="frame_cenr">
<view
wx:for="{{somList}}"
wx:key="index"
bind:tap="somSelect"
data-item="{{item}}"
data-index="{{index}}"
class="cenr_row pd30"
>
<view class="frame_time fl {{somIndex.time == item.time?'row_active2':''}} {{item.type == 1 ?'black300':''}}">
{{item.time || '今日休息'}}
</view>
<view class="frame_time" wx:if="{{groupType !== 0 && take_type == 2}}">
运费:{{item.post_desc}}
</view>
<view wx:if="{{somIndex.time == item.time && bigIndex == index}}" class="frame_img fr">
<image src="/static/img/icon/qewfwrgerthgrt.png" />
</view>
</view>
</view>
</view>
</view>
</wux-popup>
<!-- toasta提示 -->
<i-toast id="toast" />