代码优化
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<view class="space-footer"></view>
|
||||
<view class="space-max-footer"></view>
|
||||
<view class="footer-btn fix pl-lg pr-lg fill-base" v-if="list.count > 0">
|
||||
<image mode="aspectFill" lazy-load class="cart-img abs" src="/static/image/farm/breed-cart.png"></image>
|
||||
<image mode="aspectFill" lazy-load class="cart-img abs" src="/claim/static/image/farm/breed-cart.png"></image>
|
||||
<view class="cart-msg flex-center c-base f-icontext abs" :style="{width: list.count<10 ? '30rpx' : '50rpx'}"
|
||||
v-if="list.count">
|
||||
{{list.count < 100 ? list.count : '99+'}}
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
<view class="mt-md pd-lg flex-center flex-column fill-base radius-16">
|
||||
<view class="space-md"></view>
|
||||
<view class="flex-center">
|
||||
<image lazy-load class="tag-img mr-lg" src="/static/image/farm/tag.png"></image>
|
||||
<image lazy-load class="tag-img mr-lg" src="/claim/static/image/farm/tag.png"></image>
|
||||
<view class="f-md-title text-bold" :style="{color:primaryColor}">
|
||||
{{detail.status==1?`还差${detail.surplus_num}人, 成团立享超值优惠`:statusType[detail.status].title}}
|
||||
</view>
|
||||
<image lazy-load class="tag-img ml-lg" src="/static/image/farm/tag.png"></image>
|
||||
<image lazy-load class="tag-img ml-lg" src="/claim/static/image/farm/tag.png"></image>
|
||||
</view>
|
||||
<block v-if="detail.status==1">
|
||||
<view class="user-list flex-center mt-lg mb-md">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<view class="order-status-info flex-warp ml-lg mr-lg pt-lg pb-lg fill-base rel radius-24">
|
||||
<view class="status-item flex-center flex-column" v-for="(item,index) in statusList" :key="index">
|
||||
<image mode="aspectFill" lazy-load class="status-img radius"
|
||||
:src="`/static/image/farm/${detail.pay_type*1+1 > item.pay_type ? item.img_name + '-fill' : item.img_name}.png`">
|
||||
:src="`/claim/static/image/farm/${detail.pay_type*1+1 > item.pay_type ? item.img_name + '-fill' : item.img_name}.png`">
|
||||
</image>
|
||||
<view class="f-icontext c-caption mt-sm"
|
||||
:style="{color:detail.pay_type*1+1>item.pay_type ? primaryColor : ''}">{{item.title}}</view>
|
||||
|
||||
Reference in New Issue
Block a user