From fe80801123abe5096dae9c5ad1c443c10124d435 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 14 十月 2024 16:34:26 +0800
Subject: [PATCH] 1.商品限购,只有有数据的才展示 2.花店-设置布局重写 3.花店-广告功能
---
sub_pages/customer/trade/trade.vue | 42 ++++++++++++++++++++----------------------
1 files changed, 20 insertions(+), 22 deletions(-)
diff --git a/sub_pages/customer/trade/trade.vue b/sub_pages/customer/trade/trade.vue
index a7612cc..f0821ba 100644
--- a/sub_pages/customer/trade/trade.vue
+++ b/sub_pages/customer/trade/trade.vue
@@ -23,11 +23,10 @@
<uni-icons color="#20613D" type="search" size="24" @click="buttonSearchFlow"></uni-icons>
</template>
</u-input> -->
- <u-input :placeholder="search_home_placeholder" v-model="query.name" clearable @confirm="buttonSearchFlow" @clear="()=>{
+ <u-input :placeholder="search_home_placeholder" v-model="query.name" clearable
@confirm="buttonSearchFlow" @clear="()=>{
$nextTick(()=>{buttonSearchFlow()})
}">
- <!-- <u--text text="http://" slot="prefix" margin="0 3px 0 0" type="tips"></u--text> -->
<template slot="suffix">
@@ -61,7 +60,7 @@
<view class="flex1">
<view class="cateen_infos list">
<view class="title flex">
- {{item.name}}
+ <view style="max-width: 190rpx;text-align: left;word-break: break-all;">{{item.name}}</view>
<view class="desc m-l-a m-r-0">在售 {{item.stock||'0'}} 扎</view>
</view>
<view class="price">
@@ -140,17 +139,16 @@
currentCategory: {},
type: 'category', //supplier
def: 0,
- typeList:[
- {
- label: '按分类',
- value: 'category',
- },
- {
- label: '按店铺',
- value: 'supplier',
- },
+ typeList: [{
+ label: '按分类',
+ value: 'category',
+ },
+ {
+ label: '按店铺',
+ value: 'supplier',
+ },
],
- search_home_placeholder:"请输入分类",
+ search_home_placeholder: "请输入分类",
}
@@ -217,24 +215,24 @@
})
},
methods: {
- fnChange(e) {
+ fnChange(e) {
this.type = e.value
if (this.type == 'category') {
this.search_home_placeholder = '请输入分类'
uni.setNavigationBarTitle({
- title: '搜分类',
- success: function() {
- // console.log('标题搜鲜花修改成功');
- }
+ title: '搜分类',
+ success: function() {
+ // console.log('标题搜鲜花修改成功');
+ }
});
} else {
this.search_home_placeholder = '请输入店铺名'
uni.setNavigationBarTitle({
- title: '按店铺',
- success: function() {
- // console.log('标题搜店铺修改成功');
- }
+ title: '按店铺',
+ success: function() {
+ // console.log('标题搜店铺修改成功');
+ }
});
}
},
--
Gitblit v1.9.3