-
-
-
订单号:{{ item.text.sn }}
+
+
{{ item.text.groupName }}
{{ item.text.paymentTime }}
+
+ 订单金额:¥{{ item.text.flowPrice }}
+
+
{{
+ item.text.orderStatus == 'CANCELLED' ? '已取消' : item.text.orderStatus == 'UNPAID' ? '未付款' :
+ item.text.orderStatus ==
+ 'PAID' ? '已付款' : item.text.orderStatus == 'UNDELIVERED' ? '待发货' : item.text.orderStatus ==
+ 'DELIVERED'
+ ? '已发货' : item.text.orderStatus == ' COMPLETED' ? '已完成' : item.text.orderStatus == ' TAKE' ?
+ '待校验' : ''
+ }}
-
-
@@ -149,10 +164,10 @@
+ talk_type: params.talk_type,
+ receiver_id: params.receiver_id,
+ title: params.nickname,
+ }" @close="findChatRecord = false" />
@@ -820,6 +835,67 @@ export default {
};
\ No newline at end of file
diff --git a/im/src/config/config.js b/im/src/config/config.js
index a5dd35ba..02f792f3 100644
--- a/im/src/config/config.js
+++ b/im/src/config/config.js
@@ -3,6 +3,9 @@ export default {
BASE_API_URL: process.env.VUE_APP_API_BASE_URL || "",
BASE_WS_URL: process.env.VUE_APP_WEB_SOCKET_URL || "",
BASE_COMMON: process.env.VUE_APP_COMMON || "",
- PC_URL: process.env.VUE_APP_PC_URL || "",
- STORE_URL:process.env.VUE_APP_PC_ORDER_URL || "http://192.168.0.139:10002",
+ PC_URL: process.env.VUE_APP_PC_URL || "https://pc-b2b2c.pickmall.cn",
+ STORE_URL: process.env.VUE_APP_PC_ORDER_URL || "http://192.168.0.139:8000/",
+ PC_STORE_GOODS: process.env.VUE_APP_PC_STORE_ORDER_URL || '',
+ PC_STORE_ORDER: process.env.VUE_APP_PC_STORE_ORDER || '',
+ PC_USER_ORDER: process.env.VUE_APP_PC_USER_ORDER || '',
};
diff --git a/im/src/main.js b/im/src/main.js
index 7ceab5ac..8fd9cef2 100644
--- a/im/src/main.js
+++ b/im/src/main.js
@@ -25,17 +25,27 @@ Vue.component('face', face)
Vue.component('face-null', faceNull)
Vue.prototype.linkToGoods = function (goodsId, skuId) { // 跳转买家端商品
- console.log(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`)
- window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
+ if (localStorage.getItem('storeFlag') == 'false') {
+ window.open(`${config.PC_STORE_GOODS}goods-operation-edit?id=${goodsId}`, '_blank')
+ } else {
+ window.open(`${config.PC_URL}/goodsDetail?skuId=${skuId}&goodsId=${goodsId}`, '_blank')
+ }
};
-Vue.prototype.linkToStore = function (storeId) { // 跳转买家端商品
+Vue.prototype.linkToStore = function (storeId) { // 跳转商家端商品
console.log(`${config.PC_URL}/Merchant?id=${storeId}`)
window.open(`${config.PC_URL}/Merchant?id=${storeId}`, '_blank')
};
// 订单跳转商家订单页面
-Vue.prototype.linkToOrders = function (sn) { // 跳转买家端订单
- window.open(`${config.STORE_URL}/order-detail?sn=${sn}`, '_blank')
+Vue.prototype.linkToOrders = function (sn) {
+ if (localStorage.getItem('storeFlag') == 'false') {
+ // 商家
+ window.open(`${config.PC_STORE_GOODS}order-detail?sn=${sn}`, '_blank')
+ } else {
+ // 用户
+ window.open(`${config.STORE_URL}/OrderDetail?sn=${sn}`, '_blank')
+ }
};
+
const Instance = new Vue({
router,
store,
diff --git a/manager/public/config.js b/manager/public/config.js
index 7ef1cf91..e674bf70 100644
--- a/manager/public/config.js
+++ b/manager/public/config.js
@@ -1,29 +1,29 @@
var BASE = {
- /**
- * @description api请求基础路径
- */
- API_DEV: {
- common: "http://192.168.0.113:8890",
- buyer: "http://192.168.0.113:8888",
- seller: "http://192.168.0.113:8889",
- manager: "http://192.168.0.113:8887"
- },
- API_PROD: {
- common: "https://common-api.pickmall.cn",
- buyer: "https://buyer-api.pickmall.cn",
- seller: "https://store-api.pickmall.cn",
- manager: "https://admin-api.pickmall.cn"
- },
- /**
- * @description // 跳转买家端地址 pc端
- */
- PC_URL: "https://pc-b2b2c.pickmall.cn",
- /**
- * @description // 跳转买家端地址 wap端
- */
- WAP_URL: "https://m-b2b2c.pickmall.cn",
- /**
- * @description api请求基础路径前缀
- */
- PREFIX: "/manager"
- };
+ /**
+ * @description api请求基础路径
+ */
+ API_DEV: {
+ common: "http://192.168.0.113:8890",
+ buyer: "http://192.168.0.113:8888",
+ seller: "http://192.168.0.113:8889",
+ manager: "http://192.168.0.113:8887"
+ },
+ API_PROD: {
+ common: "https://common-api.pickmall.cn",
+ buyer: "https://buyer-api.pickmall.cn",
+ seller: "https://store-api.pickmall.cn",
+ manager: "https://admin-api.pickmall.cn"
+ },
+ /**
+ * @description // 跳转买家端地址 pc端
+ */
+ PC_URL: "https://pc-b2b2c.pickmall.cn",
+ /**
+ * @description // 跳转买家端地址 wap端
+ */
+ WAP_URL: "https://m-b2b2c.pickmall.cn",
+ /**
+ * @description api请求基础路径前缀
+ */
+ PREFIX: "/manager"
+};
diff --git a/seller/public/config.js b/seller/public/config.js
index 8e0e70ba..69441029 100644
--- a/seller/public/config.js
+++ b/seller/public/config.js
@@ -3,10 +3,10 @@ var BASE = {
* @description api请求基础路径
*/
API_DEV: {
- common: "http://192.168.0.113:8890",
- buyer: "http://192.168.0.113:8888",
- seller: "http://192.168.0.113:8889",
- manager: "http://192.168.0.113:8887"
+ common: "https://common-api.pickmall.cn",
+ buyer: "https://buyer-api.pickmall.cn",
+ seller: "https://store-api.pickmall.cn",
+ manager: "https://admin-api.pickmall.cn"
},
API_PROD: {
common: "https://common-api.pickmall.cn",
diff --git a/seller/src/views/home/home.vue b/seller/src/views/home/home.vue
index 36f03b44..7d40de4b 100644
--- a/seller/src/views/home/home.vue
+++ b/seller/src/views/home/home.vue
@@ -258,7 +258,10 @@ export default {
this.$Message.error("请登录后再联系客服");
return;
}
- window.open(`${res.result}?token=` + accessToken);
+ // console.log(res.result, 'res.result');
+ // http://192.168.0.139:8000/
+ window.open(`http://192.168.0.139:8000/?token=` + accessToken);
+ // window.open(`${res.result}?token=` + accessToken);
},
// 获取im信息
From db33b34f18ac061ec1a52ba936316594d0ca3448 Mon Sep 17 00:00:00 2001
From: paulGao
Date: Wed, 11 Jan 2023 11:28:28 +0800
Subject: [PATCH 02/16] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BC=98?=
=?UTF-8?q?=E6=83=A0=E5=88=B8=E9=A2=86=E5=8F=96=E8=AF=A6=E6=83=85=E5=92=8C?=
=?UTF-8?q?=E4=BC=98=E5=8C=96pc=E7=AB=AF=E8=B7=B3=E8=BD=AC=E4=BD=BF?=
=?UTF-8?q?=E7=94=A8=E4=BC=98=E6=83=A0=E5=88=B8=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
buyer/src/pages/CouponCenter.vue | 221 ++++++------
buyer/src/pages/GoodsList.vue | 29 +-
buyer/src/pages/home/userCenter/Coupons.vue | 151 ++++----
manager/src/api/promotion.js | 15 +
manager/src/router/router.js | 6 +
manager/src/utils/promotions.js | 29 +-
.../promotions/coupon/coupon-receive.vue | 321 ++++++++++++++++++
.../src/views/promotions/coupon/coupon.vue | 50 ++-
seller/src/api/promotion.js | 51 +--
seller/src/router/router.js | 6 +
seller/src/utils/promotions.js | 29 +-
.../views/promotion/coupon/coupon-receive.vue | 285 ++++++++++++++++
seller/src/views/promotion/coupon/coupon.vue | 22 +-
13 files changed, 1004 insertions(+), 211 deletions(-)
create mode 100644 manager/src/views/promotions/coupon/coupon-receive.vue
create mode 100644 seller/src/views/promotion/coupon/coupon-receive.vue
diff --git a/buyer/src/pages/CouponCenter.vue b/buyer/src/pages/CouponCenter.vue
index e3f589f2..959e0329 100644
--- a/buyer/src/pages/CouponCenter.vue
+++ b/buyer/src/pages/CouponCenter.vue
@@ -5,25 +5,44 @@
推荐好券
-
+
-
- ¥{{item.price | unitPrice}}
- {{item.couponDiscount}}折
- 满{{item.consumeThreshold}}元可用
+ ¥{{
+ item.price | unitPrice
+ }}
+ {{ item.couponDiscount }}折
+ 满{{ item.consumeThreshold }}元可用
-
使用范围:{{useScope(item.scopeType, item.storeName)}}
-
有效期:{{item.endTime}}
+
使用范围:{{ useScope(item.scopeType, item.storeName) }}
+
有效期:{{ item.endTime }}
立即领取
@@ -31,12 +50,15 @@
-