From e7731f1cf08331d23cd0d27549025a2642caa9ab Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期三, 24 七月 2024 18:58:39 +0800 Subject: [PATCH] update todo还差个订单详情的商品列表展示 --- sub_pages/customer/self/collect.vue | 32 ++++++++++++++++++-------------- 1 files changed, 18 insertions(+), 14 deletions(-) diff --git a/sub_pages/customer/self/collect.vue b/sub_pages/customer/self/collect.vue index 90f7b0c..f3350c1 100644 --- a/sub_pages/customer/self/collect.vue +++ b/sub_pages/customer/self/collect.vue @@ -10,14 +10,14 @@ </view> </view> <view class="component-filter-container"> - <view class="flex1"> - 排序 + <view class="flex1" @click.stop="order_show=true"> + {{ this.query.columnStr || '排序' }} <image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down"></image> </view> - <view class="flex1"> + <view class="flex1" @click.stop="level_show=true"> {{ this.query.levelStr || '级别' }} <image src="../../../static/common/icon-arrow-down.png" class="icon-arrow-down" - @click="level_show=true"></image> + ></image> </view> </view> @@ -29,19 +29,19 @@ <view class="trade-list-container"> <view class="trade-info-container" v-for="(dto,index) of list" :key="index"> <view class="title"> - <view class="level m-r-15">{{dto.levelStr || '-'}}级</view> + <view class="level m-r-15">{{ dto.levelStr || '-' }}级</view> <view class=""> - {{dto.name || '-'}} + {{ dto.name || '-' }} </view> </view> <view class="desc m-t-12"> - <view class="m-r-15">已售:{{ dto.sales || 0}}</view> - <view class="m-r-15">剩余:{{dto.stock || 0}}</view> - <view class=" ">{{dto.unit||'-'}}支/扎</view> + <view class="m-r-15">已售:{{ dto.sales || 0 }}</view> + <view class="m-r-15">剩余:{{ dto.stock || 0 }}</view> + <view class=" ">{{ dto.unit || '-' }}支/扎</view> </view> <view class="flex m-t-12"> <view class="price m-r-a"> - <span class="num">{{dto.price||'-'}}</span> + <span class="num">{{ dto.price || '-' }}</span> 元/扎 </view> <view class="m-l-a m-r-15"> @@ -70,14 +70,14 @@ name: '', levelStr: '', level: '', - column:'', - columnStr:'', + column: '', + columnStr: '', }, level_show: false, level_columns: [[]], - order_show:false, - order_columns:[[]] + order_show: false, + order_columns: [[]] } }, onLoad() { @@ -115,11 +115,15 @@ this.level_show = false this.query.levelStr = e.value[0].label this.query.level = e.value[0].value + this.refreshList() + }, select_order(e) { this.order_show = false this.query.columnStr = e.value[0].label this.query.column = e.value[0].value + this.refreshList() + }, } } -- Gitblit v1.9.3