diff --git a/manifest.json b/manifest.json
index 818d375..0a26d89 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "lili商城",
"appid" : "__UNI__C100675",
"description" : "",
- "versionName" : "4.0.32",
- "versionCode" : 4000032,
+ "versionName" : "4.0.34",
+ "versionCode" : 4000034,
"transformPx" : false,
"app-plus" : {
"compatible" : {
diff --git a/pages/cart/coupon/index.vue b/pages/cart/coupon/index.vue
index 4ffe267..9edd921 100644
--- a/pages/cart/coupon/index.vue
+++ b/pages/cart/coupon/index.vue
@@ -6,7 +6,7 @@
-
+
@@ -31,7 +31,7 @@
{{item.reason}}
有效期至:{{item.endTime}}
-
+
立即
使用
@@ -53,7 +53,7 @@ export default {
name: "可用优惠券",
},
{
- name: "不可能优惠券",
+ name: "不可用优惠券",
},
],
couponsList: [], //优惠券集合
diff --git a/pages/mine/distribution/list.vue b/pages/mine/distribution/list.vue
index fbddebc..989daf3 100644
--- a/pages/mine/distribution/list.vue
+++ b/pages/mine/distribution/list.vue
@@ -222,7 +222,7 @@ export default {
*/
handleNavgationGoods(val) {
uni.navigateTo({
- url: `/pages/product/goods?id=${val.skuId}&goodsId=${val.id}`,
+ url: `/pages/product/goods?id=${val.skuId}&goodsId=${val.goodsId}`,
});
},
diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue
index e1ddd57..cdd060c 100644
--- a/pages/navigation/search/searchPage.vue
+++ b/pages/navigation/search/searchPage.vue
@@ -1,10 +1,9 @@
-
-
-
+
@@ -23,22 +22,19 @@
热门搜索
- {{ keyword }}
+
+ {{ keyword }}
-
-
-
-
@@ -54,11 +50,13 @@
销量
-
+
-
+
@@ -67,11 +65,13 @@
价格
-
+
-
+
@@ -80,7 +80,8 @@
-
+
@@ -113,7 +114,8 @@
-
+
-
+
-
+
@@ -179,7 +183,8 @@
-
+
{{ item.storeName || "暂无" }}
@@ -201,7 +206,8 @@
品牌
-
+
@@ -214,7 +220,9 @@
全部分类
-
+
@@ -248,7 +256,8 @@
{{ param.key }}
-
+
@@ -337,7 +346,6 @@ export default {
};
},
onLoad(val) {
- // return false
this.init();
this.initSortGoods();
// 接收分类的数据
@@ -360,9 +368,27 @@ export default {
this.loadData();
},
components: {
- //引用mSearch组件,如不需要删除即可
mSearch,
},
+ watch: {
+ /**
+ * 将搜索的字和热词进行匹配,如果为热词则不改商品搜索关键字
+ */
+ keyword(val) {
+ if (val) {
+ let identical = this.hotKeywordList.some((item) => {
+ return item == val;
+ });
+ if (!identical) {
+ this.defaultKeyword = "请输入搜索商品";
+ } else {
+ this.defaultKeyword = val;
+ }
+ } else {
+ this.defaultKeyword = "请输入搜索商品";
+ }
+ },
+ },
onReachBottom() {
this.params.pageNumber++;
@@ -497,8 +523,9 @@ export default {
},
init() {
- this.loadDefaultKeyword();
+ // 加载搜索记录
this.loadOldKeyword(this.loadIndex);
+ // 加载热词
this.loadHotKeyword();
},
blur() {
@@ -577,8 +604,16 @@ export default {
},
//加载默认搜索关键字
loadDefaultKeyword() {
- //定义默认搜索关键字,可以自己实现ajax请求数据再赋值,用户未输入时,以水印方式显示在输入框,直接不输入内容搜索会搜索默认关键字
- this.defaultKeyword = "请输入搜索商品";
+ /**
+ * 定义默认搜索关键字会根据当前热门搜索来进行显示
+ * 如果当前热门搜索没有的话,则会显示默认关键字
+ */
+ if (this.hotKeywordList.length != 0) {
+ //
+ this.defaultKeyword = this.hotKeywordList[0];
+ } else {
+ this.defaultKeyword = "请输入搜索商品";
+ }
},
//加载历史搜索,自动读取本地Storage
loadOldKeyword(index) {
@@ -626,6 +661,7 @@ export default {
this.hotKeywordList.push(item);
});
}
+ this.loadDefaultKeyword();
},
//加载商品 ,带下拉刷新和上滑加载
async loadData(type, loading) {
@@ -643,19 +679,7 @@ export default {
this.initSortGoods();
uni.hideLoading();
},
- //监听输入
- inputChange(event) {
- //兼容引入组件时传入参数情况
- var keyword = event.detail ? event.detail.value : event;
- if (!keyword) {
- this.keywordList = [];
- this.isShowKeywordList = false;
- return;
- }
- this.isShowKeywordList = true;
- this.getKeywordNumFun(keyword);
- },
//高亮关键字
drawCorrelativeKeyword(keywords, keyword) {
var len = keywords.length,
@@ -696,14 +720,27 @@ export default {
},
// 样式修改布局
- doSearchSwitch(val) {
+ doSearchSwitch() {
this.isSWitch = !this.isSWitch;
this.isShowSeachGoods = true;
},
- //执行搜索
+ /**
+ * 执行搜索
+ */
doSearch(keyword) {
+ // 用户自行搜索/热门搜索/搜索历史
keyword = keyword === false ? this.keyword : keyword;
+
+ if (!keyword) {
+ /**
+ * 进行空搜索
+ * 第一次搜索如果没有关键词会将热门搜索中第一个热词进行判定
+ * 如果没有热词则会展示一个空词搜索
+ */
+ keyword = (this.hotKeywordList.length && this.hotKeywordList[0]) || "";
+ }
+ this.defaultKeyword == "请输入搜索商品" ? (keyword = "") : "";
this.keyword = keyword;
this.saveKeyword(keyword); //保存为历史
this.isShowSeachGoods = true;
@@ -711,7 +748,6 @@ export default {
this.params.keyword = keyword;
this.params.pageNumber = 1;
this.$set(this.sortParams, "keyword", keyword);
-
this.loadData("refresh", 1);
},
//保存关键字到历史记录
@@ -747,12 +783,6 @@ export default {
},
});
},
-
- // 搜索关键字
- getKeywordNumFun(keywords) {
- this.params.keyword = keywords;
- this.$set(this.sortParams, "keyword", keywords);
- },
},
};
diff --git a/pages/order/fillorder.vue b/pages/order/fillorder.vue
index ccd1c96..130f353 100644
--- a/pages/order/fillorder.vue
+++ b/pages/order/fillorder.vue
@@ -1,49 +1,38 @@
-
-
-
+
+
+
请选择地址
-
- {{ address.name }}
-
- {{ address.mobile | secrecyMobile }}
-
-
-
-
-
{{
- address.consigneeAddressPath[0]
- }}
-
-
{{
- address.consigneeAddressPath[1]
- }}
-
{{
- address.consigneeAddressPath[2]
- }}
-
-
{{
- address.consigneeAddressPath[3]
- }}
-
+
+
+
+
默认
+
+
+ {{item}}
+
+
+
+
+
{{ address.detail }}
-
+
+
+
+ {{ address.name }}
+ {{ address.mobile | secrecyMobile }}
+
-
-
-
-
-
+
+
+
+
+
-
-
@@ -64,7 +53,6 @@
width="81rpx" height="81rpx">
-
@@ -75,43 +63,30 @@
-
-
- {{ item.storeName }}
-
-
+
+
+ {{ item.storeName }}
+
+
{{ item.promotionNotice || '' }}
-
-
+
-
-
-
-
-
{{ val.goodsSku.goodsName }}
-
- {{ promotion_item }}
-
+
+
+
+
+
{{ val.goodsSku.goodsName }}
x{{ val.num }}
-
-
¥{{ val.goodsSku.price | unitPrice }}
-
-
-
-
-
- 备注信息
-
-
-
-
-
-
-
+
+ ¥
+ {{formatPrice(val.goodsSku.price)[0]}}
+ .{{formatPrice(val.goodsSku.price)[1] }}
+
+
+
发票信息
@@ -119,37 +94,25 @@
不开发票
-
-
-
-
-
-
-
-
- 配送方式
+ 配送
{{shippingMethod.find(e=>{ return e.value == shippingText; }).label }}
- 优惠券
-
-
- -¥{{orderMessage.priceDetailDTO.couponPrice | unitPrice}}
-
-
-
- {{ orderMessage.canUseCoupons.length || "0" }}张可用
-
+ 备注信息
+
+
-
+
+
+
+
@@ -163,34 +126,45 @@
运费
-
+ 包邮
¥{{
orderMessage.priceDetailDTO.freightPrice | unitPrice
}}
+
+ 优惠券
+
+ -¥{{orderMessage.priceDetailDTO.couponPrice | unitPrice}}
+
+
+
+ {{ orderMessage.canUseCoupons.length || "0" }} 张可用
+
+
+
优惠金额
- -¥{{ orderMessage.priceDetailDTO.couponPrice | unitPrice }}
+
+ -¥{{ orderMessage.priceDetailDTO.couponPrice | unitPrice }}
+ 0.00
活动优惠
-
- {{
- orderMessage.priceDetailDTO.discountPrice | unitPrice
- }}
+ -¥{{orderMessage.priceDetailDTO.discountPrice | unitPrice}}
+ 0.00
+
@@ -200,13 +174,14 @@
+
- 合计:
-
- ¥
- {{ orderMessage.priceDetailDTO.flowPrice | unitPrice }}
-
+
+ ¥
+ {{ formatPrice(orderMessage.priceDetailDTO.flowPrice)[0] }}
+ .{{formatPrice(orderMessage.priceDetailDTO.flowPrice)[1] }}
+
{{orderMessage.priceDetailDTO.payPoint | unitPrice }}积分
@@ -338,6 +313,13 @@ export default {
mounted() {},
methods: {
+ // 格式化金钱 1999 --> [1999,00]
+ formatPrice(val) {
+ if (typeof val == "undefined") {
+ return val;
+ }
+ return val.toFixed(2).split(".");
+ },
//发票回调 选择发票之后刷新购物车
async callbackInvoice(val) {
this.invoiceFlag = false;
@@ -567,7 +549,16 @@ export default {
},
};
+
diff --git a/pages/floor/imgs/line.png b/pages/order/imgs/line.png
similarity index 100%
rename from pages/floor/imgs/line.png
rename to pages/order/imgs/line.png
diff --git a/pages/promotion/bargain/log.vue b/pages/promotion/bargain/log.vue
index 3c41157..b859307 100644
--- a/pages/promotion/bargain/log.vue
+++ b/pages/promotion/bargain/log.vue
@@ -81,7 +81,7 @@ page {