添加水印,计算进行中闪购订单
This commit is contained in:
parent
4cb7784d4a
commit
ce4a66ac3c
|
|
@ -72,7 +72,7 @@
|
||||||
<view class="left flex-align-center">
|
<view class="left flex-align-center">
|
||||||
<image style="width: 64rpx;height: 28rpx;margin-right: 8rpx;"
|
<image style="width: 64rpx;height: 28rpx;margin-right: 8rpx;"
|
||||||
src="/static/image/shopping/taobao/shangou-logo.png"></image>
|
src="/static/image/shopping/taobao/shangou-logo.png"></image>
|
||||||
<text>暂无进行中订单</text>
|
<text>{{ ongoingWaimaiCount > 0 ? `${ongoingWaimaiCount}个进行中订单` : '暂无进行中订单' }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<text>查看全部</text>
|
<text>查看全部</text>
|
||||||
|
|
@ -273,6 +273,10 @@ const buttonGroup = [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const ongoingWaimaiCount = computed(() => {
|
||||||
|
return mockList.value.filter(item => item.orderType === 'waimai' && (item.statusType === 'wait_recv')).length;
|
||||||
|
});
|
||||||
|
|
||||||
const displayList = computed(() => {
|
const displayList = computed(() => {
|
||||||
let list = JSON.parse(JSON.stringify(mockList.value));
|
let list = JSON.parse(JSON.stringify(mockList.value));
|
||||||
|
|
||||||
|
|
@ -291,7 +295,7 @@ const displayList = computed(() => {
|
||||||
'待发货': ['wait_send'],
|
'待发货': ['wait_send'],
|
||||||
'待收货': ['wait_recv'],
|
'待收货': ['wait_recv'],
|
||||||
'退款/售后': ['refunding'],
|
'退款/售后': ['refunding'],
|
||||||
'评价': ['success'],
|
'待评价': ['success'],
|
||||||
'已关闭': ['closed']
|
'已关闭': ['closed']
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
@ -325,7 +329,7 @@ const filterList = ref([
|
||||||
{ name: '待发货' },
|
{ name: '待发货' },
|
||||||
{ name: '待收货' },
|
{ name: '待收货' },
|
||||||
{ name: '退款/售后' },
|
{ name: '退款/售后' },
|
||||||
{ name: '评价' },
|
{ name: '待评价' },
|
||||||
{ name: '已关闭' }
|
{ name: '已关闭' }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -244,36 +244,36 @@
|
||||||
<template v-for="(info, index) in order.orderInfo" :key="'info-' + index">
|
<template v-for="(info, index) in order.orderInfo" :key="'info-' + index">
|
||||||
<view class="order-item flex" v-if="isOrderInfoExpanded || info.isFoldDisplay"
|
<view class="order-item flex" v-if="isOrderInfoExpanded || info.isFoldDisplay"
|
||||||
:style="info.label === '收货信息' ? 'align-items: flex-start;' : ''">
|
:style="info.label === '收货信息' ? 'align-items: flex-start;' : ''">
|
||||||
<text class="label" :style="info.label === '收货信息' ? 'line-height:36rpx;' : ''">{{ info.label
|
<text class="label" :style="info.label === '收货信息' ? 'line-height:36rpx;' : ''">{{ info.label
|
||||||
}}</text>
|
|
||||||
<view class="val flex-1 flex-align-center" style="justify-content: flex-end;">
|
|
||||||
<text :style="info.label === '收货信息' ? 'text-align: right;line-height:36rpx;' : ''">{{ info.value
|
|
||||||
}}</text>
|
}}</text>
|
||||||
<template v-if="info.hasModify">
|
<view class="val flex-1 flex-align-center" style="justify-content: flex-end;">
|
||||||
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
<text :style="info.label === '收货信息' ? 'text-align: right;line-height:36rpx;' : ''">{{
|
||||||
<text class="copy-btn">修改</text>
|
info.value
|
||||||
</template>
|
}}</text>
|
||||||
<template v-if="info.hasSetting">
|
<template v-if="info.hasModify">
|
||||||
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
||||||
<text class="copy-btn">设置</text>
|
<text class="copy-btn">修改</text>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="info.hasArrow">
|
<template v-if="info.hasSetting">
|
||||||
<uni-icons type="right" size="12" color="#7C8495"></uni-icons>
|
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
||||||
</template>
|
<text class="copy-btn">设置</text>
|
||||||
<template v-if="info.hasCopy">
|
</template>
|
||||||
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
<template v-if="info.hasArrow">
|
||||||
<text class="copy-btn">复制</text>
|
<uni-icons type="right" size="12" color="#7C8495"></uni-icons>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="info.hasApply">
|
<template v-if="info.hasCopy">
|
||||||
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
||||||
<text class="copy-btn">申请</text>
|
<text class="copy-btn">复制</text>
|
||||||
</template>
|
</template>
|
||||||
</view>
|
<template v-if="info.hasApply">
|
||||||
|
<text class="split" style="margin-left: 8rpx; margin-right: 8rpx;">|</text>
|
||||||
|
<text class="copy-btn">申请</text>
|
||||||
|
</template>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<view class="order-bottom-title flex-align-center"
|
<view class="order-bottom-title flex-align-center" @click="isOrderInfoExpanded = !isOrderInfoExpanded">
|
||||||
@click="isOrderInfoExpanded = !isOrderInfoExpanded">
|
|
||||||
<text>订单信息</text>
|
<text>订单信息</text>
|
||||||
<uni-icons :type="isOrderInfoExpanded ? 'up' : 'down'" size="14" color="#7C8495"
|
<uni-icons :type="isOrderInfoExpanded ? 'up' : 'down'" size="14" color="#7C8495"
|
||||||
style="margin-left: 8rpx;margin-top: 6rpx;"></uni-icons>
|
style="margin-left: 8rpx;margin-top: 6rpx;"></uni-icons>
|
||||||
|
|
@ -294,6 +294,15 @@
|
||||||
<view>
|
<view>
|
||||||
<image style="width: 100%;" :src="screenshotImage" mode="widthFix"></image>
|
<image style="width: 100%;" :src="screenshotImage" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 水印 -->
|
||||||
|
<view v-if="$isVip()">
|
||||||
|
<watermark dark="light" source="uni_alipay_shopping_taobao" />
|
||||||
|
<liu-drag-button :canDocking="false" @clickBtn="$goRechargePage('watermark', 'uni_alipay_shopping_taobao')">
|
||||||
|
<c-lottie ref="cLottieRef" :src='$watermark()' width="94px" height='74px' :loop="true"></c-lottie>
|
||||||
|
</liu-drag-button>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue