diff --git a/src/App.vue b/src/App.vue
index 6a3a97f..1ee34d0 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,6 +1,7 @@
@@ -293,7 +335,7 @@
/* 公用颜色 */
.green-color {
- color: #51A97D;
+ color: $theme-color;
}
icon {
diff --git a/src/api/goods.js b/src/api/goods.js
index 17e5c56..364bb45 100644
--- a/src/api/goods.js
+++ b/src/api/goods.js
@@ -24,5 +24,30 @@ export default {
method: 'GET',
interfaceType: 0
});
- }
+ },
+ //根据门店ID查询 门店素材
+ queryStoreMaterialById(id) {
+ return request({
+ url: '/api/minimaterial/store',
+ method: 'POST',
+ data: {
+ storeId: id,
+ current: 1,
+ pageSize: 999
+ },
+ interfaceType: 0
+ });
+ },
+
+ /**获取OOS服务器地址
+ * @param {Object} data
+ */
+ GetCosRequestURL(data) {
+ return request({
+ url: '/api/systemconfig/GetCosRequestSignURL',
+ method: 'POST',
+ data: data,
+ interfaceType: 0
+ });
+ },
}
\ No newline at end of file
diff --git a/src/api/order.js b/src/api/order.js
index c784a43..be8bccf 100644
--- a/src/api/order.js
+++ b/src/api/order.js
@@ -4,7 +4,7 @@ export default {
//订单分页查询
orderPageQuery(data) {
return request({
- url: 'api/order/fullorderbyuserid',
+ url: '/order/fullorderbyuserid',
method: 'POST',
data: data,
interfaceType: 1
@@ -13,7 +13,7 @@ export default {
//用户主动下单:新增订单
newOrder(data) {
return request({
- url: 'api/order/v2/neworder',
+ url: '/order/v2/neworder',
method: 'POST',
data: data,
interfaceType: 1
@@ -22,7 +22,7 @@ export default {
//代客下单:新增订单
adminNewOrder(data) {
return request({
- url: 'api/order/admin/neworder',
+ url: '/order/admin/neworder',
method: 'POST',
data: data,
interfaceType: 1
@@ -31,7 +31,7 @@ export default {
//订单付款
orderPay(orderNumber, reason = '用户主动点击付款') {
return request({
- url: 'api/order/v2/orderpay',
+ url: '/order/v2/orderpay',
data: {
orderNumber,
reason
@@ -43,7 +43,7 @@ export default {
//根据订单编号获取完整订单
fullorderByNumber(orderNumber) {
return request({
- url: `api/order/fullorderbynumber/${orderNumber}`,
+ url: `/order/fullorderbynumber/${orderNumber}`,
interfaceType: 1,
method: 'GET'
});
@@ -51,7 +51,7 @@ export default {
//申请售后
applySaleAfter(data) {
return request({
- url: 'api/order/applysaleafter',
+ url: '/order/applysaleafter',
method: 'POST',
data: data,
interfaceType: 1
@@ -60,7 +60,25 @@ export default {
//取消售后
cancelSaleAfter(data) {
return request({
- url: 'api/order/cancelsaleafter',
+ url: '/order/cancelsaleafter',
+ method: 'POST',
+ data: data,
+ interfaceType: 1
+ });
+ },
+ //查询退款订单
+ queryRefundOrderByuserId(data) {
+ return request({
+ url: '/order/refundorderbyuserid',
+ method: 'POST',
+ data: data,
+ interfaceType: 1
+ });
+ },
+ //退单回调(在申请微信退款之后)
+ refundrefuc(data) {
+ return request({
+ url: '/order/refundrefuc',
method: 'POST',
data: data,
interfaceType: 1
diff --git a/src/api/pay.js b/src/api/pay.js
index 0dba428..bd309c3 100644
--- a/src/api/pay.js
+++ b/src/api/pay.js
@@ -18,6 +18,7 @@ export default {
interfaceType: 2
});
},
+ //解密
decryptUserInfo(data) {
return request({
url : 'api/wechat/decryptuserinfo',
@@ -25,5 +26,14 @@ export default {
data: data,
interfaceType: 2
});
+ },
+ //退款
+ wechatrefund(data) {
+ return request({
+ url : 'api/wechat/wechatrefund',
+ method: 'POST',
+ data: data,
+ interfaceType: 2
+ });
}
}
\ No newline at end of file
diff --git a/src/components/CouponList/CouponList.vue b/src/components/CouponList/CouponList.vue
index d266a00..343f797 100644
--- a/src/components/CouponList/CouponList.vue
+++ b/src/components/CouponList/CouponList.vue
@@ -14,7 +14,7 @@
满¥{{item.condition}}元,减¥{{item.couponValue}}元。
-
+
有效期:{{item.validStartTime}}-{{item.validEndTime}}
@@ -112,9 +112,10 @@
}
-
diff --git a/src/components/GoodsList/GoodsList.vue b/src/components/GoodsList/GoodsList.vue
index 49cf164..9d99bfe 100644
--- a/src/components/GoodsList/GoodsList.vue
+++ b/src/components/GoodsList/GoodsList.vue
@@ -4,7 +4,7 @@
-
+
{{item.name}}
@@ -12,11 +12,8 @@
-
-
-
-
-
+
+
@@ -66,6 +63,7 @@
v-if="isShowFeedPopup"
@onFeedPopuoClose="onFeedPopuoClose"
class="feed-list-popup"
+ :isSpecialOffer="isSpecialOffer"
>
@@ -93,6 +91,11 @@
type: Boolean,
default: false,
required: false
+ },
+ adverList: {
+ type: Array,
+ default: [],
+ require: true
}
},
data() {
@@ -156,7 +159,6 @@
onChooseFood(food) {
food.count = 0;
food.sencondId = food.id;
- let currentGoods;
if (food.addtoFoodList && food.addtoFoodList.length > 0) {
food.addtoFoodList.forEach(item => {
item.foods.forEach(additional => {
@@ -164,7 +166,8 @@
additional.sourceCount = 0;
});
});
- } else if (food.setMealList && food.setMealList.length > 0) {
+ }
+ if (food.setMealList && food.setMealList.length > 0) {
food.setMealList.forEach(item => {
item.foods.forEach(additional => {
additional.count = 0;
@@ -183,7 +186,16 @@
});
});
}
- currentGoods = JSON.parse(JSON.stringify(food));
+ if (food.goodsMakes && food.goodsMakes.length > 0) {
+ food.goodsMakes.forEach((item, inedx) => {
+ if (inedx === 0) {
+ item.isSelect = true;
+ } else {
+ item.isSelect = false;
+ }
+ });
+ }
+ let currentGoods = JSON.parse(JSON.stringify(food));
store.commit('initCurrentGoods', currentGoods);
this.isShowFeedPopup = true;
},
@@ -220,11 +232,6 @@
},
onChooseSpecial: debounce(function(food) {
this.onChooseFood(food);
- getApp().onCheckUserSession('specialOffer').then(() => {
- uni.navigateTo({
- url: '/pages/confirmOrder/confirmOrder'
- });
- });
}, 2000, true),
onImageError(item) {
item.cover = this.imageServer.concat('empty-image.png');
@@ -236,7 +243,7 @@
}
-
diff --git a/src/pages/coupon/coupon.vue b/src/pages/coupon/coupon.vue
index 6142096..aee39b3 100644
--- a/src/pages/coupon/coupon.vue
+++ b/src/pages/coupon/coupon.vue
@@ -1,7 +1,7 @@
-
+
{{item}}
@@ -36,7 +36,7 @@
imageServer: getApp().globalData.imageServer,
couponNavbar: {
navbarIndex: 0,
- list: ['未使用', '已使用', '已过期', '已赠送']
+ list: ['未使用', '已使用', '已过期']
},
couponScanCode: '', //扫码获取的优惠券ID
memberInfo: {}, //会员信息
@@ -209,7 +209,7 @@
}
-
diff --git a/src/pages/memberCardDetail/memberCardDetail.vue b/src/pages/memberCardDetail/memberCardDetail.vue
index f03c753..1dfdce8 100644
--- a/src/pages/memberCardDetail/memberCardDetail.vue
+++ b/src/pages/memberCardDetail/memberCardDetail.vue
@@ -1,13 +1,13 @@
-
+
- 且时且多会员卡
+ 会员卡
有效期:{{onSubstring(memberCard.createAt)}} ~ 无限期
@@ -79,15 +79,25 @@
-
diff --git a/src/pages/memberCardQr/memberCardQr.vue b/src/pages/memberCardQr/memberCardQr.vue
index cf2e900..c580e8c 100644
--- a/src/pages/memberCardQr/memberCardQr.vue
+++ b/src/pages/memberCardQr/memberCardQr.vue
@@ -82,7 +82,7 @@
}
-
diff --git a/src/pages/orderDetail/orderDetail.vue b/src/pages/orderDetail/orderDetail.vue
index 3d2377d..6790781 100644
--- a/src/pages/orderDetail/orderDetail.vue
+++ b/src/pages/orderDetail/orderDetail.vue
@@ -14,19 +14,23 @@
{{order.sortId}}
-
+
-
+
售后详情
-
+
{{order.saleAfterInfo.stutasStr}}
-
+
+
+
+ {{order.refundStutasStr}}
+
@@ -53,9 +57,9 @@
- 且时且多({{storeInfo.store_Name}})
+ ({{storeInfo.store_Name}})
-
+
@@ -162,6 +166,7 @@
-
diff --git a/src/pages/shareFriends/shareFriends.vue b/src/pages/shareFriends/shareFriends.vue
index 83b3592..28b2b27 100644
--- a/src/pages/shareFriends/shareFriends.vue
+++ b/src/pages/shareFriends/shareFriends.vue
@@ -91,7 +91,7 @@
}
-