|
@@ -1,4 +1,5 @@
|
|
|
-<view class="all">
|
|
|
+<wxs module="filters" src="../../utils/filters.wxs"></wxs>
|
|
|
+<view class="all" bindtap="goSerch">
|
|
|
<view class="ert" bindtap="search">
|
|
|
<van-search background="#FF8C00" value="{{ value }}" placeholder="麻辣烫" shape="round" />
|
|
|
<van-button color="#FF8C00" class="btn" round type="info" size="mini">搜索</van-button>
|
|
@@ -38,18 +39,63 @@
|
|
|
</view>
|
|
|
<view>
|
|
|
<view class="all1">
|
|
|
- <template is="card" data="" />
|
|
|
- <template is="card" data="" />
|
|
|
- <template is="card3" data="" />
|
|
|
- <template is="card3" data="" />
|
|
|
- <template is="card3" data="" />
|
|
|
+ <view wx:for="{{list}}" wx:key="id">
|
|
|
+ <view class="card1">
|
|
|
+ <view>
|
|
|
+ <image style="width: 170rpx;height: 170rpx; margin:25rpx 35rpx 0 60rpx ;" src="../../images/tupian2.png" mode="" />
|
|
|
+ </view>
|
|
|
+ <view style="margin-top: 25rpx;">
|
|
|
+ <view>
|
|
|
+ <text style="font-size: 14px;">麻辣烫微辣</text>
|
|
|
+ <van-tag color="#FF4500" style="margin-left: 10rpx;">优惠商品</van-tag>
|
|
|
+ </view>
|
|
|
+ <view style="margin-bottom: 10rpx;">
|
|
|
+ <text style="color: #D3D3D3; font-size: 12px; margin-bottom: 10rpx;">包含香菜、菠菜、面、豆芽、海带</text>
|
|
|
+ </view>
|
|
|
+ <view style="margin-bottom: 10rpx;">
|
|
|
+ <view style="display: flex;">
|
|
|
+ <text style="font-size: 12px; font-weight: 700;">¥28.80</text>
|
|
|
+ <view style="width: 55px; height: 1px; background-color: #808080; margin-left: -90rpx; margin-top: 14rpx;"></view>
|
|
|
+ <text style="font-size: 12px; margin-left: 245rpx; color: #FF8C00;">限购2份</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex;">
|
|
|
+ <view class="order-money">
|
|
|
+ ¥9.9+20积分
|
|
|
+ </view>
|
|
|
+ <van-stepper bind:blur="OnInput" bind:minus="prev" bind:plus="plus" bind:change="onChange" data-id="{{item.id}}" min="0" value="{{ 0 }}" round button-size="20px" input-width="36px" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view wx:for="{{list1}}" wx:key="id">
|
|
|
+ <view class="card1">
|
|
|
+ <view>
|
|
|
+ <image style="width: 170rpx;height: 170rpx; margin:25rpx 35rpx 0 60rpx ;" src="../../images/tupian2.png" mode="" />
|
|
|
+ </view>
|
|
|
+ <view style="margin-top: 25rpx;">
|
|
|
+ <view>
|
|
|
+ <text style="font-size: 14px;">{{item.title}}</text>
|
|
|
+ </view>
|
|
|
+ <view style="margin-bottom: 10rpx;">
|
|
|
+ <text style="color: #D3D3D3; font-size: 12px; margin-bottom: 10rpx;">{{item.text}}</text>
|
|
|
+ </view>
|
|
|
+ <view style="display: flex; margin-top: 50rpx;">
|
|
|
+ <view class="order-money">
|
|
|
+ ¥{{item.money}}
|
|
|
+ </view>
|
|
|
+ <van-stepper bind:blur="OnInput1" bind:minus="prev" bind:plus="plus" bind:change="onChange" data-id="{{item.id}}" class="minus-class" min="0" value="{{ 0 }}" round button-size="20px" input-width="36px" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="foot">
|
|
|
<view style="display: flex;">
|
|
|
<image style="width: 35px;height: 35px; margin: 10rpx 0 0 30rpx;" src="../../images/gouwuchekong.svg" mode="" />
|
|
|
<view class="order-money">
|
|
|
- ¥9.9+20积分
|
|
|
+ ¥{{filters.toFix(allMoney)}}+{{allIntegral}}积分
|
|
|
<view style="font-size: 10px; font-weight: 400; margin-top: 6rpx;">
|
|
|
共优惠¥10.0
|
|
|
<text style="color: #808080; margin-left: 20rpx;">贷款费¥0</text>
|
|
@@ -59,57 +105,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="width: 100%;height: 86rpx;">
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
|
|
|
<template name="card">
|
|
|
- <view class="card1">
|
|
|
- <view>
|
|
|
- <image style="width: 170rpx;height: 170rpx; margin:25rpx 35rpx 0 60rpx ;" src="../../images/tupian2.png" mode="" />
|
|
|
- </view>
|
|
|
- <view style="margin-top: 25rpx;">
|
|
|
- <view>
|
|
|
- <text style="font-size: 14px;">麻辣烫微辣</text>
|
|
|
- <van-tag color="#FF4500" style="margin-left: 10rpx;">优惠商品</van-tag>
|
|
|
- </view>
|
|
|
- <view style="margin-bottom: 10rpx;">
|
|
|
- <text style="color: #D3D3D3; font-size: 12px; margin-bottom: 10rpx;">包含香菜、菠菜、面、豆芽、海带</text>
|
|
|
- </view>
|
|
|
- <view style="margin-bottom: 10rpx;">
|
|
|
- <view style="display: flex;">
|
|
|
- <text style="font-size: 12px; font-weight: 700;">¥28.80</text>
|
|
|
- <view style="width: 55px; height: 1px; background-color: #808080; margin-left: -90rpx; margin-top: 14rpx;"></view>
|
|
|
- <text style="font-size: 12px; margin-left: 245rpx; color: #FF8C00;">限购2份</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view style="display: flex;">
|
|
|
- <view class="order-money">
|
|
|
- ¥9.9+20积分
|
|
|
- </view>
|
|
|
- <van-stepper min="0" value="{{ 0 }}" round button-size="20px" input-width="36px" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
</template>
|
|
|
<template name="card3">
|
|
|
- <view class="card1">
|
|
|
- <view>
|
|
|
- <image style="width: 170rpx;height: 170rpx; margin:25rpx 35rpx 0 60rpx ;" src="../../images/tupian2.png" mode="" />
|
|
|
- </view>
|
|
|
- <view style="margin-top: 25rpx;">
|
|
|
- <view>
|
|
|
- <text style="font-size: 14px;">麻辣烫微辣</text>
|
|
|
- </view>
|
|
|
- <view style="margin-bottom: 10rpx;">
|
|
|
- <text style="color: #D3D3D3; font-size: 12px; margin-bottom: 10rpx;">包含香菜、菠菜、面、豆芽、海带</text>
|
|
|
- </view>
|
|
|
- <view style="display: flex; margin-top: 50rpx;">
|
|
|
- <view class="order-money">
|
|
|
- ¥9.9
|
|
|
- </view>
|
|
|
- <van-stepper class="minus-class" min="0" value="{{ 0 }}" round button-size="20px" input-width="36px" />
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+
|
|
|
</template>
|