diff --git a/buyer/src/api/goods.js b/buyer/src/api/goods.js index fb7d8e0f..403a5c3f 100644 --- a/buyer/src/api/goods.js +++ b/buyer/src/api/goods.js @@ -60,8 +60,8 @@ export function pintuanMembers (pintuanId) { } /** - * @param {Number} start 搜索起始下标 - * @param {Number} end 搜索结束下标 + * 获取搜索热词 + * @param {Number} count 获取搜索热词数量 */ export function hotWords (params) { return request({ diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index b8ee208f..f93c2d66 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -81,16 +81,26 @@ export default { }, mounted () { this.searchData = this.$route.query.keyword - if (!this.hover) { // 首页顶部固定搜索栏不调用热词接口 - hotWords({start: 1, end: 5}).then(res => { - if (res.success) this.promotionTags = res.result - }) + // 搜索热词每一小时请求一次 + const reloadTime = this.Cookies.getItem('hotWordsReloadTime') + const time = new Date().getTime() - 60*60*1000 + if (!reloadTime) { + hotWords({count: 5}).then(res => { + if (res.success) this.promotionTags = res.result + }) + this.Cookies.setItem('hotWordsReloadTime',new Date().getTime()) + } else if (reloadTime && time > reloadTime) { + hotWords({count: 5}).then(res => { + if (res.success) this.promotionTags = res.result + }) + this.Cookies.setItem('hotWordsReloadTime',new Date().getTime()) + } + } } }; - diff --git a/buyer/src/components/map/index.vue b/buyer/src/components/map/index.vue index f408d1e8..1c5b9467 100644 --- a/buyer/src/components/map/index.vue +++ b/buyer/src/components/map/index.vue @@ -53,6 +53,7 @@ export default { }; }, watch: { + // 监听搜索框搜索地图 mapSearch: function (val) { this.searchOfMap(val); } diff --git a/buyer/src/components/map/region.vue b/buyer/src/components/map/region.vue index 3545e7d8..f55f07a7 100644 --- a/buyer/src/components/map/region.vue +++ b/buyer/src/components/map/region.vue @@ -167,7 +167,6 @@ export default { watch: { addressId: { handler: function (v) { - console.log(v); if (v) { this.reviewData(); } else { @@ -175,9 +174,6 @@ export default { } }, immediate: true - }, - addr (v) { - console.log(v); } } }; diff --git a/buyer/src/config/index.js b/buyer/src/config/index.js index b9f8a32d..23784c11 100644 --- a/buyer/src/config/index.js +++ b/buyer/src/config/index.js @@ -12,7 +12,7 @@ export default { * 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'} * 用来在菜单中显示文字 */ - useI18n: true, + useI18n: false, /** * @description api请求基础路径 */ diff --git a/buyer/src/pages/article/index.vue b/buyer/src/pages/article/index.vue index ee314193..ed59795c 100644 --- a/buyer/src/pages/article/index.vue +++ b/buyer/src/pages/article/index.vue @@ -17,7 +17,7 @@ :open-names="openName" @on-select="onSelect" > - + {{ chlidren.articleCategoryName }} - diff --git a/buyer/src/pages/home/Main.vue b/buyer/src/pages/home/Main.vue index 3c508218..ab5dbc66 100644 --- a/buyer/src/pages/home/Main.vue +++ b/buyer/src/pages/home/Main.vue @@ -30,11 +30,11 @@
- +
- +
diff --git a/buyer/src/pages/home/memberCenter/AccountBind.vue b/buyer/src/pages/home/memberCenter/AccountBind.vue deleted file mode 100644 index f645538c..00000000 --- a/buyer/src/pages/home/memberCenter/AccountBind.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - diff --git a/buyer/src/pages/home/memberCenter/AccountSafe.vue b/buyer/src/pages/home/memberCenter/AccountSafe.vue index 61d7b9a4..fdcceaa0 100644 --- a/buyer/src/pages/home/memberCenter/AccountSafe.vue +++ b/buyer/src/pages/home/memberCenter/AccountSafe.vue @@ -20,9 +20,7 @@ diff --git a/buyer/src/pages/home/memberCenter/ModifyPwd.vue b/buyer/src/pages/home/memberCenter/ModifyPwd.vue index 48651f20..5a7fdbf6 100644 --- a/buyer/src/pages/home/memberCenter/ModifyPwd.vue +++ b/buyer/src/pages/home/memberCenter/ModifyPwd.vue @@ -126,7 +126,7 @@ export default { {type: 'string', min: 6, message: '密码不能少于6位'} ], againPassword: [ - {required: true, message: '请输入新密码', trigger: 'blur'}, + {required: true, message: '请确认新密码', trigger: 'blur'}, {type: 'string', min: 6, message: '密码不能少于6位'} ] } @@ -200,13 +200,10 @@ export default { diff --git a/buyer/src/pages/home/orderCenter/AddAddress.vue b/buyer/src/pages/home/orderCenter/AddAddress.vue index f5bf0beb..9ebad4b9 100644 --- a/buyer/src/pages/home/orderCenter/AddAddress.vue +++ b/buyer/src/pages/home/orderCenter/AddAddress.vue @@ -10,21 +10,22 @@ :rules="ruleInline" > - + - + - +
-
{{ order.storeName }}
@@ -201,7 +200,7 @@ export default { this.getList() }, changePageSize (val) { // 修改页数 - this.pageNumber = 1; + this.params.pageNumber = 1; this.params.pageSize = val; this.getList() }, diff --git a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue index 1260367b..951349ad 100644 --- a/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue +++ b/buyer/src/pages/home/orderCenter/AfterSaleDetail.vue @@ -54,7 +54,7 @@ 商品处理方式{{afterSale.serviceType == 'RETURN_MONEY' ? '退款' : '退货'}} - 退款原因{{afterSale.reason}} + 退款原因{{afterSale.reasonName}} 问题描述{{afterSale.problemDesc}} @@ -70,7 +70,7 @@ diff --git a/buyer/src/pages/home/orderCenter/MyOrder.vue b/buyer/src/pages/home/orderCenter/MyOrder.vue index 46d3cd36..54c738b2 100644 --- a/buyer/src/pages/home/orderCenter/MyOrder.vue +++ b/buyer/src/pages/home/orderCenter/MyOrder.vue @@ -60,10 +60,8 @@ -
- {{ order.storeName }} + {{ order.storeName }}
@@ -79,25 +77,26 @@
-
+
-
- -
-
-
+
+ +
+
+
@@ -116,11 +115,7 @@ import { orderStatusList } from '../enumeration.js' export default { name: 'MyOrder', props: { - paging: { - type: Boolean, - default: true - }, - homePage: { + homePage: { // 判断是否个人中心首页展示内容 type: Boolean, default: false } diff --git a/buyer/src/pages/home/orderCenter/OrderDetail.vue b/buyer/src/pages/home/orderCenter/OrderDetail.vue index 1709b4c1..9bf1407f 100644 --- a/buyer/src/pages/home/orderCenter/OrderDetail.vue +++ b/buyer/src/pages/home/orderCenter/OrderDetail.vue @@ -96,10 +96,8 @@