From 8c9fe474d3d43265c33653f17bb411336269dfab Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期五, 26 七月 2024 15:34:22 +0800 Subject: [PATCH] fix bug 接口对接和样式调整 --- sub_pages/customer/self/collect.vue | 40 +++++++++++++++++++++++----------------- 1 files changed, 23 insertions(+), 17 deletions(-) diff --git a/sub_pages/customer/self/collect.vue b/sub_pages/customer/self/collect.vue index 90f7b0c..eec6161 100644 --- a/sub_pages/customer/self/collect.vue +++ b/sub_pages/customer/self/collect.vue @@ -1,6 +1,6 @@ <template> - <view class="page-collect"> - <view class="search-container m-t-12 flex"> + <view class="page-collect p20"> + <view class="search-container bg-white flex"> <view class="flex1 input"> <u-input placeholder="请输入花名" v-model="query.name"> <template slot="suffix"> @@ -9,17 +9,19 @@ </u-input> </view> </view> - <view class="component-filter-container"> - <view class="flex1"> - 排序 + <view class="component-filter-container p10 bg-white"> + <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> + <no-data v-if="!list||list.length===0" style="width: 100%;"></no-data> + <u-picker :show="level_show" @confirm="select_level" keyName="label" :columns="level_columns" @cancel="level_show=false"></u-picker> @@ -29,19 +31,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 +72,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 +117,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