diff --git a/api/store.js b/api/store.js index 40beae6..d175644 100644 --- a/api/store.js +++ b/api/store.js @@ -35,6 +35,14 @@ export function getProducts(q) { login: false }); } +/* + * 积分商品列表 + * */ +export function getProductsIntegral(q) { + return request.get("/products/integral", q, { + login: false + }); +} /* * 购物车数量 diff --git a/config/index.js b/config/index.js index 1a4dbba..8629e6a 100644 --- a/config/index.js +++ b/config/index.js @@ -1,7 +1,8 @@ // export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api'; -export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'; +// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'; // export const VUE_APP_API_URL = 'http://192.168.31.223:8008/api'; - // export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; + export const VUE_APP_API_URL = 'https://tapi.xinxintuan.co/api'; +// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; // export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api'; export const VUE_APP_RESOURCES_URL = 'https://wx.yixiang.co/static'; diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 1b41e3d..551a177 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -2,9 +2,7 @@ - + @@ -14,21 +12,11 @@ {{ attr.productSelect.price || storeInfo.price }} - ¥{{ attr.productSelect.vipPrice || storeInfo.vipPrice }} - + ¥{{ attr.productSelect.vipPrice || storeInfo.vipPrice }} + - + {{ storeInfo.storeName }} @@ -36,19 +24,11 @@ 库存:{{ storeInfo.stock }}{{ storeInfo.unitName }} 销量:{{ storeInfo.sales }}{{ storeInfo.unitName }} - + 优惠券: - 满{{ item.useMinPrice }}减{{ item.couponPrice }} + 满{{ item.useMinPrice }}减{{ item.couponPrice }} @@ -63,10 +43,7 @@ - + {{ attrTxt }}: {{ attrValue }} @@ -90,22 +67,14 @@ {{ systemStore.name }} - + {{ systemStore.address }} - - 距离{{ systemStore.distance }}千米 + + 距离{{ systemStore.distance }}千米 @@ -181,11 +150,7 @@ 收藏 - + {{ CartCount @@ -214,23 +179,12 @@ - + - + - + @@ -244,12 +198,7 @@ 生成海报 - + @@ -258,579 +207,601 @@ diff --git a/pages/shop/GoodsList/index.vue b/pages/shop/GoodsList/index.vue index 938233a..a833bfe 100644 --- a/pages/shop/GoodsList/index.vue +++ b/pages/shop/GoodsList/index.vue @@ -6,20 +6,11 @@ - + - {{ title ? title : "默认" }} + {{ title ? title : "默认" }} 价格 @@ -33,274 +24,276 @@ - 新品 + 新品 - - + + {{ item.storeName }} - + {{ item.price }} - + ¥{{ item.otPrice }} 已售{{ item.sales }}件 + + + + + + + {{ item.storeName }} + + {{ item.price }}积分 + + + + 已售{{ item.sales }}件 + + + + - + - + diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index 4a4c714..59a0943 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -114,11 +114,11 @@ - + @@ -167,7 +167,7 @@ props: {}, data: function () { return { - MyMenus: [], + MyMenus: [], switchActive: false, isWeixin: false }; @@ -353,7 +353,13 @@ }, goPages2: function () { this.$yrouter.push({ - path: "/pages/orderAdmin/OrderCancellation/index" + path: "/pages/shop/GoodsList/index", + query: { + // id: 0, + title: '积分商城', + isIntegral: true, + } + }); } },