first commit
This commit is contained in:
150
衣莎项目/源码/YiShaXiYi/pages/laundry/laundry.wxml
Normal file
150
衣莎项目/源码/YiShaXiYi/pages/laundry/laundry.wxml
Normal file
@@ -0,0 +1,150 @@
|
||||
<!-- 头部导航 -->
|
||||
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}" />
|
||||
<!-- pages/laundry/laundry.wxml -->
|
||||
<view class="laundry">
|
||||
<view class="laundry" wx:if="{{type == 1}}">
|
||||
<view class="laundry_l fl">
|
||||
<view class="laundry_big">
|
||||
<view
|
||||
wx:for="{{ laundryBig }}"
|
||||
wx:key="index"
|
||||
data-id="{{item.id}}"
|
||||
class="big_row {{bigSelect == item.id ? 'big_active' : ''}}"
|
||||
bind:tap="bigType"
|
||||
>
|
||||
<span class="big_row_p">
|
||||
{{item.name}}
|
||||
<!-- <span class="corner">21</span> -->
|
||||
</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 开始 -->
|
||||
<view class="laundry_r fl dis-flex1">
|
||||
<!-- <view class="laundry_title mt30" wx:if="{{isTips}}">
|
||||
<view class="laundry_title_l flex-con3">
|
||||
<image class="mr10" src="/static/img/icon/ts.png" />
|
||||
衣物含可拆卸毛领的,毛领单独计费哦~
|
||||
</view>
|
||||
<view class="laundry_title_r" bind:tap="closeTips">
|
||||
<image src="/static/img/icon/tsclose.png" />
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- 小分类的标题 -->
|
||||
<!-- <view class="laundry_name mt35 ml10 mb20"></view> -->
|
||||
<!-- <view class="flex1"> -->
|
||||
<!-- <scroll-view scroll-y style="height: auto;"> -->
|
||||
<view class="scroll_view_f">
|
||||
<scroll-view bindscrolltolower="bindscrolltolower" scroll-y="{{true}}" class="laundry_shop flex1">
|
||||
<view class="laundry_shop_row mb50" wx:for="{{ laundrySom }}" wx:key="index" data-item="{{item}}" bind:tap="plusShop">
|
||||
<view class="laundry_shop_row_l">
|
||||
<view class="laundry_shop_img fl">
|
||||
<image src="{{item.image}}" lazy-load />
|
||||
</view>
|
||||
<view class="laundry_shop_info fl ml10">
|
||||
<view class="laundry_shop_name">{{item.name}}</view>
|
||||
<view class="laundry_shop_pri mt20">
|
||||
<span>¥</span>
|
||||
{{item.price}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="laundry_shop_num">
|
||||
<view class="shop_num_cen flex-con5">
|
||||
<!-- 这是加 -->
|
||||
<view class="num_img">
|
||||
<image src="/static/img/icon/j2.png" />
|
||||
</view>
|
||||
<!-- <view wx:if="{{ item.num > 0 }}" class="num_c">{{ item.num }}</view> -->
|
||||
<!-- 这是减 -->
|
||||
<!-- <view bind:tap="reduceShop" data-item="{{item}}" wx:if="{{ item.num > 0 }}" class="num_img">
|
||||
<image src="/static/img/icon/j1.png" />
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view style="height:{{system.statusHeight+system.titleHeight+'px'}};" />
|
||||
<view style="height:100rpx;" />
|
||||
</view>
|
||||
<!-- 结束 -->
|
||||
</view>
|
||||
<!-- 工服排版 -->
|
||||
<view class='work dis-flex' wx:if="{{type == 2}}" style="padding-bottom:{{system.statusHeight+system.titleHeight+'px'}}">
|
||||
<scroll-view scroll-y="{{true}}" class='work_list flex1'>
|
||||
<view
|
||||
class='work_list_li'
|
||||
wx:for="{{laundrySom}}"
|
||||
wx:key="index"
|
||||
bind:tap="plusShop"
|
||||
data-item="{{item}}"
|
||||
>
|
||||
<view class='work_list_li_row'>
|
||||
<view class='work_img'>
|
||||
<image src="{{item.image}}" lazy-load />
|
||||
</view>
|
||||
<view class='work_title mt10'>{{item.name}}</view>
|
||||
<view class='dis-flex work_cen mt10'>
|
||||
<view class='flex2 flex-con2'>¥{{item.price}}/件</view>
|
||||
<view class='work_add flex1'>
|
||||
<image src="/static/img/icon/xyl2.png" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="shopCart">
|
||||
<view class="shopCart_cen">
|
||||
<view class="shopCart_img">
|
||||
<view class="shopCart_imgs" bind:tap="onClose">
|
||||
<image src="{{cart <= 0 ? '/static/img/icon/xyl1.png': '/static/img/icon/xyl2.png'}}" />
|
||||
<span>{{cart.length}}</span>
|
||||
</view>
|
||||
</view>
|
||||
<span class="cartAllPrice" wx:if="{{ allPrice > 0 }}">¥{{allPrice}}</span>
|
||||
<span wx:else>洗衣篮是空的哦</span>
|
||||
</view>
|
||||
<view class="shopCart_sub {{ cart.length >0 ?'shopCart_sub_active':'' }}" bind:tap="_sure">
|
||||
确认下单
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 购物车弹出 -->
|
||||
<wux-popup position="bottom" visible="{{ visible }}" catchtap="onClose">
|
||||
<view class="cart" catchtap="onOpen">
|
||||
<view class="cart_title" bind:tap="emptyCart">
|
||||
<view class="cart_title_l">已选商品</view>
|
||||
<view class="cart_title_r flex-con5">
|
||||
清空
|
||||
<image class="mr10" src="/static/img/icon/sc.png" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="cart_cen">
|
||||
<view class="cart_shop_row" wx:for="{{ cart }}" wx:key="index">
|
||||
<view class="cart_shop_info">
|
||||
<view class="cart_shop_info_l">{{item.name}}</view>
|
||||
<view class="cart_shop_info_r">
|
||||
<span>¥</span>
|
||||
{{item.price}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="cart_shop_num">
|
||||
<view class="cart_shop_num1 flex-con5">
|
||||
<view data-item="{{item}}" bind:tap="plusShop" class="cart_shop_img">
|
||||
<image src="/static/img/icon/j2.png" />
|
||||
</view>
|
||||
<view class="cart_shop_c">{{ item.num }}</view>
|
||||
<view data-item="{{item}}" bind:tap="reduceShop" class="cart_shop_img">
|
||||
<image src="/static/img/icon/j1.png" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</wux-popup>
|
||||
<!-- toasta提示 -->
|
||||
<i-toast id="toast" />
|
||||
|
||||
Reference in New Issue
Block a user