From 12c48f04f9ea1a57781a6e8c5c9ef901eaad8518 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 05 九月 2024 22:31:17 +0800 Subject: [PATCH] merge 1.小程序-花店:1.1-浏览记录建议改成显示30条数据; 1.2-增加一个一键清空已失效商品 2.小程序-花店:增加热区跳转进入店铺 及 点击头像和名字也可以跳转进入店铺 3.小程序-花店:轮播图指示点优化去掉 4.小程序-花店:登录,注册失去焦点验证手机号 --- pages/home/components/home-search.vue | 18 +++++++++++------- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/pages/home/components/home-search.vue b/pages/home/components/home-search.vue index b77bacf..5194327 100644 --- a/pages/home/components/home-search.vue +++ b/pages/home/components/home-search.vue @@ -1,8 +1,8 @@ <template> <view class="p15 bg-white"> <view class="search-container m-t-12 flex"> - <view class="flex m-r-20"> - <view class="m-r-10" style="line-height: 80rpx;" @click="changeType"> + <view class="flex m-r-20" @click="changeType"> + <view class="m-r-10" style="line-height: 80rpx;" > {{type=='flower'?'按鲜花':'按店铺'}} </view> <u-icon name="arrow-down"></u-icon> @@ -87,7 +87,9 @@ var p = '' if (this.type === 'flower') { p = 'name=' + this.search_flow - if (this.history_flower.indexOf(name) >= 0) {} else { + if (this.history_flower.indexOf(name) >= 0) { + + } else { this.history_flower.unshift(name) } if (this.history_flower.length >= 10) { @@ -95,11 +97,13 @@ } } else { p = 'supplierName=' + this.search_flow - if (this.history_supplier.indexOf(name) >= 0) {} else { - this..history_supplier.unshift(name) + if (this.history_supplier.indexOf(name) >= 0) { + + } else { + this.history_supplier.unshift(name) } - if (this..history_supplier.length >= 10) { - this..history_supplier.splice(this..history_supplier.length - 1, 1) + if (this.history_supplier.length >= 10) { + this.history_supplier.splice(this.history_supplier.length - 1, 1) } } uni.navigateTo({ -- Gitblit v1.9.3