diff --git a/buyer/src/api/member.js b/buyer/src/api/member.js
index 9ecdbb50..e963eaa2 100644
--- a/buyer/src/api/member.js
+++ b/buyer/src/api/member.js
@@ -346,14 +346,16 @@ export function getDistGoodsList (params) {
}
/**
- * 选择分销商品
+ * 绑定、解绑分销商品
* @param distributionGoodsId 分销商品id
+ * @param checked 分销商品id,true为绑定,false为解绑
*/
-export function selectDistGoods (distributionGoodsId) {
+export function selectDistGoods (params) {
return request({
- url: `/buyer/distributionGoods/checked/${distributionGoodsId}`,
+ url: `/buyer/distributionGoods/checked/${params.distributionGoodsId}`,
method: Method.GET,
- needToken: true
+ needToken: true,
+ params
});
}
@@ -457,7 +459,8 @@ export function memberMsgList (params) {
* 设置消息为已读
* @param {String} messageId 消息id
*/
- export function readMemberMsg (id) {
+
+export function readMemberMsg (id) {
return request({
url: `/buyer/member/message/${id}`,
method: Method.PUT,
@@ -468,7 +471,7 @@ export function memberMsgList (params) {
* 删除会员消息
* @param {String} messageId 消息id
*/
- export function delMemberMsg (id) {
+export function delMemberMsg (id) {
return request({
url: `/buyer/member/message/${id}`,
method: Method.DELETE,
diff --git a/buyer/src/assets/styles/coupon.scss b/buyer/src/assets/styles/coupon.scss
index 52399f82..9afd57a7 100644
--- a/buyer/src/assets/styles/coupon.scss
+++ b/buyer/src/assets/styles/coupon.scss
@@ -55,9 +55,6 @@
color: #fff;
font-size: 16px;
padding: 20px;
- &:hover{
- font-weight: bold;
- }
}
i{
position: absolute;
diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue
index 6c8afeac..2bb3b3dd 100644
--- a/buyer/src/components/Search.vue
+++ b/buyer/src/components/Search.vue
@@ -97,12 +97,12 @@ export default {
const time = new Date().getTime() - 5 * 60 * 1000
if (!reloadTime) {
hotWords({count: 5}).then(res => {
- if (res.success) storage.setItem('hotWordsList', res.result)
+ if (res.success && res.result) storage.setItem('hotWordsList', res.result)
})
storage.setItem('hotWordsReloadTime', new Date().getTime())
} else if (reloadTime && time > reloadTime) {
hotWords({count: 5}).then(res => {
- if (res.success) storage.setItem('hotWordsList', res.result)
+ if (res.success && res.result) storage.setItem('hotWordsList', res.result)
})
storage.setItem('hotWordsReloadTime', new Date().getTime())
}
diff --git a/buyer/src/components/goodsDetail/ShowGoods.vue b/buyer/src/components/goodsDetail/ShowGoods.vue
index 351a37ad..8f23da65 100644
--- a/buyer/src/components/goodsDetail/ShowGoods.vue
+++ b/buyer/src/components/goodsDetail/ShowGoods.vue
@@ -556,9 +556,6 @@ export default {
}
.item-select-row {
- // display: flex;
- // flex-direction: row;
- // flex-wrap: wrap;
margin-bottom: 8px;
}
@@ -568,10 +565,6 @@ export default {
align-items: center;
}
-.item-select-img {
- width: 36px;
-}
-
.item-select-box {
padding: 5px;
margin-right: 8px;
@@ -589,31 +582,11 @@ export default {
border: 0.5px solid $theme_color;
}
-.item-select-box-disabled {
- background-color: gray;
-}
-
-.item-select-img img {
- width: 100%;
-}
-
.item-select-intro p {
margin: 0px;
padding: 5px;
}
-.item-select-class {
- padding: 5px;
- margin-right: 8px;
- @include sub_background_color($light_background_color);
- border: 0.5px solid #ccc;
- cursor: pointer;
-}
-
-.item-select-class:hover {
- border: 0.5px solid $theme_color;
-}
-
.add-buy-car-box {
width: 100%;
margin-top: 15px;
diff --git a/buyer/src/components/nav/CateNav.vue b/buyer/src/components/nav/CateNav.vue
index 95e90d5c..5dfc6517 100644
--- a/buyer/src/components/nav/CateNav.vue
+++ b/buyer/src/components/nav/CateNav.vue
@@ -89,7 +89,11 @@ export default {
},
computed: {
navList () { // 导航列表
- return JSON.parse(storage.getItem('navList')) || []
+ if (storage.getItem('navList')) {
+ return JSON.parse(storage.getItem('navList'))
+ } else {
+ return []
+ }
}
},
methods: {
diff --git a/buyer/src/components/nav/GoodsClassNav.vue b/buyer/src/components/nav/GoodsClassNav.vue
index 9a3db4c0..570fec48 100644
--- a/buyer/src/components/nav/GoodsClassNav.vue
+++ b/buyer/src/components/nav/GoodsClassNav.vue
@@ -188,7 +188,7 @@ export default {
},
computed: {
cateList () { // 商品分类
- return this.$store.state.category
+ return this.$store.state.category || []
}
},
watch: {
diff --git a/buyer/src/components/nav/cateNav.vue b/buyer/src/components/nav/cateNav.vue
index 95e90d5c..5dfc6517 100644
--- a/buyer/src/components/nav/cateNav.vue
+++ b/buyer/src/components/nav/cateNav.vue
@@ -89,7 +89,11 @@ export default {
},
computed: {
navList () { // 导航列表
- return JSON.parse(storage.getItem('navList')) || []
+ if (storage.getItem('navList')) {
+ return JSON.parse(storage.getItem('navList'))
+ } else {
+ return []
+ }
}
},
methods: {
diff --git a/buyer/src/config/index.js b/buyer/src/config/index.js
index 23784c11..b2b6bfdc 100644
--- a/buyer/src/config/index.js
+++ b/buyer/src/config/index.js
@@ -17,10 +17,10 @@ export default {
* @description api请求基础路径
*/
api_dev: {
- // common: 'http://192.168.0.101:8890',
- // buyer: 'http://192.168.0.101:8888',
- // seller: 'http://192.168.0.101:8889',
- // manager: 'http://192.168.0.101:8887'
+ // common: 'http://192.168.0.100:8890',
+ // buyer: 'http://192.168.0.100:8888',
+ // seller: 'http://192.168.0.100:8889',
+ // manager: 'http://192.168.0.100:8887'
common: 'https://common-api.pickmall.cn',
buyer: 'https://buyer-api.pickmall.cn',
diff --git a/buyer/src/pages/Cart.vue b/buyer/src/pages/Cart.vue
index 4c452885..293d7d65 100644
--- a/buyer/src/pages/Cart.vue
+++ b/buyer/src/pages/Cart.vue
@@ -117,7 +117,7 @@
已节省{{ priceDetailDTO.discountPrice | unitPrice("¥") }}
- 总价(不含运费):
{{ priceDetailDTO.billPrice | unitPrice("¥") }}
+ 总价(不含运费):
{{ priceDetailDTO.flowPrice | unitPrice("¥") }}
去结算
diff --git a/buyer/src/pages/Index.vue b/buyer/src/pages/Index.vue
index 5ed806ed..4a059584 100644
--- a/buyer/src/pages/Index.vue
+++ b/buyer/src/pages/Index.vue
@@ -70,7 +70,6 @@ export default {
},
async getListByDay () { // 当天秒杀活动
const res = await seckillByDay()
- console.log(res);
if (res.success && res.result.length) {
return res.result
} else {
diff --git a/buyer/src/pages/Merchant.vue b/buyer/src/pages/Merchant.vue
index 14db72cc..cdf934a9 100644
--- a/buyer/src/pages/Merchant.vue
+++ b/buyer/src/pages/Merchant.vue
@@ -20,7 +20,7 @@
- 首页
- -
+
-
{{cate.labelName}}
diff --git a/buyer/src/pages/home/memberCenter/Distribution.vue b/buyer/src/pages/home/memberCenter/Distribution.vue
index 10443df1..7f7a61db 100644
--- a/buyer/src/pages/home/memberCenter/Distribution.vue
+++ b/buyer/src/pages/home/memberCenter/Distribution.vue
@@ -47,7 +47,8 @@
¥{{ row.commission | unitPrice }}
-
+
+
@@ -74,7 +75,7 @@
¥{{ row.commission | unitPrice }}
-
+
@@ -158,7 +159,7 @@
+
diff --git a/buyer/src/pages/PointMall.vue b/buyer/src/pages/promotion/PointMall.vue
similarity index 87%
rename from buyer/src/pages/PointMall.vue
rename to buyer/src/pages/promotion/PointMall.vue
index d5afcccf..44bd94a6 100644
--- a/buyer/src/pages/PointMall.vue
+++ b/buyer/src/pages/promotion/PointMall.vue
@@ -15,16 +15,14 @@
class="goods-show-info"
v-for="(item, index) in goodsList"
:key="index"
- @click="goGoodsDetail(item.skuId, item.goodsSku.goodsId)"
+ @click="goGoodsDetail(item.id)"
>
- {{
- item.settlementPrice | unitPrice("¥")
- }} + {{item.points}}积分
+ {{item.points}}积分
@@ -97,12 +95,13 @@ export default {
this.getList()
this.$router.push({query: {categoryId: cateId}})
},
- goGoodsDetail (skuId, goodsId) { // 跳转商品详情
- let routerUrl = this.$router.resolve({
- path: '/goodsDetail',
- query: {skuId, goodsId, way: 'POINT'}
- })
- window.open(routerUrl.href, '_blank')
+ goGoodsDetail (id) { // 跳转商品详情
+ this.$router.push({path: '/pointGoodsDetail', query: {id}})
+ // let routerUrl = this.$router.resolve({
+ // path: '/pointGoodsDetail',
+ // query: {id}
+ // })
+ // window.open(routerUrl.href, '_blank')
},
changePageNum (val) { // 修改页码
this.params.pageNumber = val;
@@ -117,7 +116,7 @@ export default {
}
diff --git a/manager/src/views/promotion/seckill/seckill.vue b/manager/src/views/promotion/seckill/seckill.vue
index 248f44f5..662a5dc4 100644
--- a/manager/src/views/promotion/seckill/seckill.vue
+++ b/manager/src/views/promotion/seckill/seckill.vue
@@ -21,10 +21,10 @@
-
+
+
@@ -32,7 +32,7 @@
-
+
-
-