From 6d54fb64df667c0c396fc7d74aeed9e096d95f95 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 11 九月 2024 10:36:50 +0800
Subject: [PATCH] Merge branch 'v2' of ssh://47.96.225.205:29418/hmy_farmer-main into v2

---
 sub_pages/customer/self/history.vue |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/sub_pages/customer/self/history.vue b/sub_pages/customer/self/history.vue
index 1664760..5b9e6dd 100644
--- a/sub_pages/customer/self/history.vue
+++ b/sub_pages/customer/self/history.vue
@@ -26,7 +26,7 @@
 		},
 		onLoad() {
 			this.listApi = '/api/browse/history/list'
-			this.page.size =30
+			this.page.size = 30
 			this.getList()
 
 			this.$http.request('get', '/api/code/value', {
@@ -55,13 +55,13 @@
 				})
 			})
 		},
-		  onShow() {
-		    // 页面显示时重新加载浏览记录数据
-		    this.listApi = '/api/browse/history/list'
-		    this.page.size =30
-		    this.getList()
-		  },
-		  
+		onShow() {
+			// 页面显示时重新加载浏览记录数据
+			this.listApi = '/api/browse/history/list'
+			this.page.size = 30
+			this.refreshList()
+		},
+
 		methods: {
 
 			async deleteExpired() {
@@ -222,23 +222,36 @@
 		<view class="trade-list-container">
 			<view class="trade-info-container flex" :class="[dto.status!=='UP'?'OFF':'']" v-for="(dto,index) of list"
 				:key="index">
-				<image class="img img100 br-4 m-r-10" :class="[!dto.stock?'component-stock-zero':'']"
+				<image class="img img100 br-4 m-r-10" :class="[!dto.stock?'component-stock-zero':'',dto.status!=='UP'?'component-status-zero':'']"
 					:src="dto.url||dto.cover" @click.stop="toDetail(dto)"></image>
 				<view class="flex1">
 					<view class="flex" @click.stop="toDetail(dto)">
 						<view class="title">
-							<span class="m-r-5" style="display: inline-block;"
-								v-if="dto.categoryStr">{{dto.categoryStr||''}}</span>
+							<!-- <span class="m-r-5" style="display: inline-block;" -->
+								<!-- v-if="dto.categoryStr">{{dto.categoryStr||''}}</span> -->
 							<span v-if="dto.levelStr" class="m-r-5"
 								style="display: inline-block;">{{ dto.levelStr || '' }}</span>
 							{{ dto.name || '-' }}
 						</view>
+						
+						<!-- #ifdef PUB_CUSTOMER_DEV -->
+						<view class="price m-l-a m-r-0 component-price-new">
+							<span class="tip">会员价</span>¥<span class="p">{{ dto.priceMember || dto.price || '-' }}</span>/扎
+							<view class="component-price-old">
+								¥{{dto.price}}/扎
+							</view>
+						</view>
+						<!-- #endif -->
+						<!-- #ifndef PUB_CUSTOMER_DEV -->
 						<view class="price m-l-a m-r-0">
 							¥{{ dto.price || '-' }}/扎
 						</view>
+						<!-- #endif -->
 					</view>
 					<view class="flex">
 						<view class="desc p-t-12 flex" @click.stop="toDetail(dto)">
+							<view class="m-r-15"> 已售:{{ ((dto.sales||0) +(dto.realSales||0))  || 0 }}							</view>
+
 							<view class="m-r-15">剩余:{{ dto.stock || 0 }}</view>
 							<view class="m-r-15">颜色:{{ dto.color || '-' }}</view>
 						</view>

--
Gitblit v1.9.3