diff --git a/package.json b/package.json
index afefe29..30091b7 100644
--- a/package.json
+++ b/package.json
@@ -57,7 +57,8 @@
"mockjs": "^1.1.0",
"nprogress": "0.2.0",
"obj-modal": "^1.2.2",
- "obj-table-plus": "^2.4.0",
+ "obj-table-plus": "^2.5.0",
+ "qrcodejs2": "^0.0.2",
"qs": "^6.13.0",
"quill": "1.3.7",
"screenfull": "5.0.2",
diff --git a/src/api/modules/marketing.js b/src/api/modules/marketing.js
index 09537cc..d8443d1 100644
--- a/src/api/modules/marketing.js
+++ b/src/api/modules/marketing.js
@@ -16,6 +16,31 @@ export const marketing = {
data: data,
});
},
+ //会员开通情况
+ getEffective: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberPackageUnitStatus/getEffective`,
+ method: "post",
+ data,
+ });
+ },
+ //有效套餐
+ memberPackageList: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberPackage/list`,
+ method: "post",
+ data,
+ });
+ },
+ //下单
+ placeOrder: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberPackageUnitOrder/placeOrder`,
+ method: "post",
+ data,
+ });
+ },
+ //会员用户
marketingUserPage: (data) => {
return $http.request({
url: `/merchant-api/memberUnitUser/page`,
@@ -23,6 +48,27 @@ export const marketing = {
params: data,
});
},
+ memberUnitUserDetail: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitUser/detail`,
+ method: "post",
+ data,
+ });
+ },
+ changeMemberPoints: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitUser/changeMemberPoints`,
+ method: "post",
+ data,
+ });
+ },
+ changeGrowthValue: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitUser/changeGrowthValue`,
+ method: "post",
+ data,
+ });
+ },
//积分列表
integralList: (data) => {
return $http.request({
@@ -31,4 +77,33 @@ export const marketing = {
data,
});
},
+ reverseEnable: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitMemberTask/reverseEnable`,
+ method: "post",
+ data,
+ });
+ },
+ integralTop: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitMemberTask/top`,
+ method: "post",
+ data,
+ });
+ },
+ settingTaskDetail: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitMemberTask/settingTaskDetail`,
+ method: "post",
+ data,
+ });
+ },
+ // 会员积分商品
+ PointsProductPage: (data) => {
+ return $http.request({
+ url: `/merchant-api/memberUnitPointsProduct/page`,
+ method: "get",
+ params: data,
+ });
+ },
};
diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js
index f06c096..b9aaf73 100644
--- a/src/api/modules/mer_admin.js
+++ b/src/api/modules/mer_admin.js
@@ -204,4 +204,60 @@ export const mer_admin = {
params: data,
});
},
+ //订单管理
+ orderPage: (data) => {
+ return $http.request({
+ method: "get",
+ url: `/merchant-api/order/page`,
+ params: data,
+ });
+ },
+ // 轮播图分页
+ bannerPage: (data) => {
+ return $http.request({
+ method: "get",
+ url: `/admin-api/banner/page`,
+ params: data,
+ });
+ },
+ // 轮播图添加
+ bannerAdd: (data) => {
+ return $http.post(`/admin-api/banner/add`, data);
+ },
+ //编辑轮播图
+ bannerUpdate: (data) => {
+ return $http.post(`/admin-api/banner/update`, data);
+ },
+ //删除轮播图
+ bannerDelete: (data) => {
+ return $http.post(`/admin-api/banner/delete`, data);
+ },
+ //排序轮播图
+ sortBanner: (data) => {
+ return $http.post(`/admin-api/banner/update/sort`, data);
+ },
+ // 公告分页
+ noticePage: (data) => {
+ return $http.request({
+ method: "get",
+ url: `/admin-api/notice/page`,
+ params: data,
+ });
+ },
+ // 公告添加
+ noticeAdd: (data) => {
+ return $http.post(`/admin-api/notice/add`, data);
+ },
+ //编辑公告
+ noticeUpdate: (data) => {
+ return $http.post(`/admin-api/notice/update`, data);
+ },
+ //删除公告
+ noticeDelete: (data) => {
+ return $http.post(`/admin-api/notice/delete`, data);
+ },
+ //排序公告
+ sortnotice: (data) => {
+ return $http.post(`/admin-api/notice/update/sort`, data);
+ },
};
diff --git a/src/router/full-routers.js b/src/router/full-routers.js
index 5a0a63c..d580fd2 100644
--- a/src/router/full-routers.js
+++ b/src/router/full-routers.js
@@ -43,7 +43,46 @@ export default {
parentId: 0,
parentName: null,
name: "商品管理",
- url: "product/index",
+ url: "product/commodity/index",
+ perms: "",
+ type: 1,
+ elIcon: "el-icon-menu",
+ orderNum: 0,
+ open: null,
+ list: [],
+ },
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "订单管理",
+ url: "product/order/index",
+ perms: "",
+ type: 1,
+ elIcon: "el-icon-menu",
+ orderNum: 0,
+ open: null,
+ list: [],
+ },
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "轮播图管理",
+ url: "product/banner/index",
+ perms: "",
+ type: 1,
+ elIcon: "el-icon-menu",
+ orderNum: 0,
+ open: null,
+ list: [],
+ },
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "公告管理",
+ url: "product/notice/index",
perms: "",
type: 1,
elIcon: "el-icon-menu",
diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js
index 15b2e25..8931b19 100644
--- a/src/utils/httpRequest.js
+++ b/src/utils/httpRequest.js
@@ -156,7 +156,7 @@ http.interceptors.response.use(
router.push({ name: "login" });
return Promise.resolve(response);
} else if (response.data && response.data.code !=200 ) {
- Message.closeAll();
+ // Message.closeAll();
Message({
message: response.data.msg||response.data.message,
type: "error"
@@ -166,7 +166,7 @@ http.interceptors.response.use(
//请求成功的情况
//如果是开发模式下,都要弹出
if (process.env.NODE_ENV !== "production") {
- Message.closeAll();
+ // Message.closeAll();
Message({
message: response.data.msg||response.data.message,
type: "success"
@@ -175,9 +175,9 @@ http.interceptors.response.use(
// 生产环境下限制性弹出
else {
if (response.data.msg != "success" && response.data.msg != "查询成功" && Object.prototype.toString.call(response.data) === '[object Object]') {
- Message.closeAll();
+ // Message.closeAll();
Message({
- message: response.data.msg,
+ message: response.data.msg||response.data.message,
type: "success"
});
}
diff --git a/src/views/modules/marketing/level/index.vue b/src/views/modules/marketing/level/index.vue
index 9dfa607..e1739d8 100644
--- a/src/views/modules/marketing/level/index.vue
+++ b/src/views/modules/marketing/level/index.vue
@@ -12,39 +12,36 @@
24年3月,本商铺修改VIP2所需成长值为700,并新增会员生日优惠卷2;修改提交后,该用户会员等级保持VIP2不变且享有会员优惠卷1和会员优惠卷2;
-
-
+
- 全部等级({{list.length}})+新增套餐
+ 全部等级({{ list.length }})+新增套餐
-
+ 未开通会员
+ 会员到期时间 {{ form.effectiveEndTime }}
+ 购买工具
@@ -74,10 +71,16 @@
>
- {{scope.row.enableMemberDiscount ? '会员折扣,' :''}}
- {{scope.row.enablePointsRedemption ? '积分兑换,' : ''}}
- {{scope.row.enableBirthdayCoupons ? '生日优惠卷,' : ''}}
- {{scope.row.enableBirthdayReward ? '生日双倍积分' : ''}}
+ {{ scope.row.enableMemberDiscount ? "会员折扣," : "" }}
+ {{
+ scope.row.enablePointsRedemption ? "积分兑换," : ""
+ }}
+ {{
+ scope.row.enableBirthdayCoupons ? "生日优惠卷," : ""
+ }}
+ {{
+ scope.row.enableBirthdayReward ? "生日双倍积分" : ""
+ }}
@@ -102,32 +105,37 @@
-
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-mall/index.vue b/src/views/modules/marketing/points-mall/index.vue
index 1d0cd38..0400454 100644
--- a/src/views/modules/marketing/points-mall/index.vue
+++ b/src/views/modules/marketing/points-mall/index.vue
@@ -12,38 +12,65 @@
>
+
+
+
+
+
+
-
-
+
+
-
-
-
+
查询
- +添加
+ +添加
-
+ >
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-mall/popup/commodity.vue b/src/views/modules/marketing/points-mall/popup/commodity.vue
new file mode 100644
index 0000000..f7d4012
--- /dev/null
+++ b/src/views/modules/marketing/points-mall/popup/commodity.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ ¥{{ getSalePrice(scope.row) }}
+
+
+
+
+ {{ scope.row.discountActivity?.ruleObject.discount }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-setting/index.vue b/src/views/modules/marketing/points-setting/index.vue
index 51217aa..0dec8ad 100644
--- a/src/views/modules/marketing/points-setting/index.vue
+++ b/src/views/modules/marketing/points-setting/index.vue
@@ -4,7 +4,7 @@
此页面数据在每日0点提交并生效;请勿频繁操作,以免影响用户体验。
积分/成长值任务(9)
-
+
+
+
+ {{ getUnitType(scope.row.unitType) }}
+
+
-
+
- {{
- scope.row.packageEffectiveTimeUnit == 1 ? "年" : "月"
- }}
+
+
- 编辑
- 转移
- 置顶
+ 配置积分
-
- 删除
-
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-setting/popup/browse.vue b/src/views/modules/marketing/points-setting/popup/browse.vue
new file mode 100644
index 0000000..291981b
--- /dev/null
+++ b/src/views/modules/marketing/points-setting/popup/browse.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 不勾选则无上限
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-setting/popup/evaluate.vue b/src/views/modules/marketing/points-setting/popup/evaluate.vue
new file mode 100644
index 0000000..7dceae2
--- /dev/null
+++ b/src/views/modules/marketing/points-setting/popup/evaluate.vue
@@ -0,0 +1,192 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 不勾选则无上限
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-setting/popup/product-points.vue b/src/views/modules/marketing/points-setting/popup/product-points.vue
new file mode 100644
index 0000000..961ecff
--- /dev/null
+++ b/src/views/modules/marketing/points-setting/popup/product-points.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+ 元,可获得1积分/成长值
+ (订单完成时,根据实际实付款发放)
+
+
+
+
+
+
+ 不勾选则无上限
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/points-setting/popup/share-points.vue b/src/views/modules/marketing/points-setting/popup/share-points.vue
new file mode 100644
index 0000000..dccb2f8
--- /dev/null
+++ b/src/views/modules/marketing/points-setting/popup/share-points.vue
@@ -0,0 +1,175 @@
+
+
+
+
+
+
+
+
+ (此任务为评价商品,1订单可能包含多商品)
+
+
+
+
+
+
+
+ 不勾选则无上限
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/user/index.vue b/src/views/modules/marketing/user/index.vue
index 7ab310e..11c8910 100644
--- a/src/views/modules/marketing/user/index.vue
+++ b/src/views/modules/marketing/user/index.vue
@@ -11,100 +11,8 @@
:enableAutoQuery="false"
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
查询
- 重置
+ 重置
-
-
+ -->
+ ref="modifyPoints"
+ >
-
+
+
\ No newline at end of file
diff --git a/src/views/modules/marketing/user/popup/view-details.vue b/src/views/modules/marketing/user/popup/view-details.vue
new file mode 100644
index 0000000..5648073
--- /dev/null
+++ b/src/views/modules/marketing/user/popup/view-details.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+ {{
+ modalData.username
+ }}
+ {{
+ modalData.userId
+ }}
+ {{
+ modalData.mobile
+ }}
+
+
+
+
+
+ {{
+ modalData.levelName
+ }}
+ {{
+ modalData.birthday
+ }}
+ {{
+ modalData.joinTime
+ }}
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/banner/index.vue b/src/views/modules/product/banner/index.vue
new file mode 100644
index 0000000..a719add
--- /dev/null
+++ b/src/views/modules/product/banner/index.vue
@@ -0,0 +1,320 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+ 新增轮播图
+ 排序
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/banner/popup/add-or-update.vue b/src/views/modules/product/banner/popup/add-or-update.vue
new file mode 100644
index 0000000..50e4e07
--- /dev/null
+++ b/src/views/modules/product/banner/popup/add-or-update.vue
@@ -0,0 +1,276 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/banner/popup/set-sorting.vue b/src/views/modules/product/banner/popup/set-sorting.vue
new file mode 100644
index 0000000..650cf95
--- /dev/null
+++ b/src/views/modules/product/banner/popup/set-sorting.vue
@@ -0,0 +1,122 @@
+
+
+
+ {{ item.title }}
+
+
+ 取消
+ 确定
+
+
+
+
+
diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/commodity/index.vue
similarity index 100%
rename from src/views/modules/product/index.vue
rename to src/views/modules/product/commodity/index.vue
diff --git a/src/views/modules/product/popup/add-attribute.vue b/src/views/modules/product/commodity/popup/add-attribute.vue
similarity index 100%
rename from src/views/modules/product/popup/add-attribute.vue
rename to src/views/modules/product/commodity/popup/add-attribute.vue
diff --git a/src/views/modules/product/popup/add-discount.vue b/src/views/modules/product/commodity/popup/add-discount.vue
similarity index 100%
rename from src/views/modules/product/popup/add-discount.vue
rename to src/views/modules/product/commodity/popup/add-discount.vue
diff --git a/src/views/modules/product/popup/add-or-update.vue b/src/views/modules/product/commodity/popup/add-or-update.vue
similarity index 100%
rename from src/views/modules/product/popup/add-or-update.vue
rename to src/views/modules/product/commodity/popup/add-or-update.vue
diff --git a/src/views/modules/product/popup/add-price.vue b/src/views/modules/product/commodity/popup/add-price.vue
similarity index 100%
rename from src/views/modules/product/popup/add-price.vue
rename to src/views/modules/product/commodity/popup/add-price.vue
diff --git a/src/views/modules/product/popup/add-specifications.vue b/src/views/modules/product/commodity/popup/add-specifications.vue
similarity index 100%
rename from src/views/modules/product/popup/add-specifications.vue
rename to src/views/modules/product/commodity/popup/add-specifications.vue
diff --git a/src/views/modules/product/popup/add-stock.vue b/src/views/modules/product/commodity/popup/add-stock.vue
similarity index 100%
rename from src/views/modules/product/popup/add-stock.vue
rename to src/views/modules/product/commodity/popup/add-stock.vue
diff --git a/src/views/modules/product/notice/index.vue b/src/views/modules/product/notice/index.vue
new file mode 100644
index 0000000..8ea3149
--- /dev/null
+++ b/src/views/modules/product/notice/index.vue
@@ -0,0 +1,324 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+ 新增公告
+ 排序
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/notice/popup/add-or-update.vue b/src/views/modules/product/notice/popup/add-or-update.vue
new file mode 100644
index 0000000..bc693e8
--- /dev/null
+++ b/src/views/modules/product/notice/popup/add-or-update.vue
@@ -0,0 +1,219 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/notice/popup/set-sorting.vue b/src/views/modules/product/notice/popup/set-sorting.vue
new file mode 100644
index 0000000..5229aca
--- /dev/null
+++ b/src/views/modules/product/notice/popup/set-sorting.vue
@@ -0,0 +1,122 @@
+
+
+
+ {{ item.title }}
+
+
+ 取消
+ 确定
+
+
+
+
+
diff --git a/src/views/modules/product/order/content.vue b/src/views/modules/product/order/content.vue
new file mode 100644
index 0000000..c8ed5e7
--- /dev/null
+++ b/src/views/modules/product/order/content.vue
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/order/index.vue b/src/views/modules/product/order/index.vue
new file mode 100644
index 0000000..1d00cbc
--- /dev/null
+++ b/src/views/modules/product/order/index.vue
@@ -0,0 +1,400 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/wallet/index.vue b/src/views/modules/wallet/index.vue
index e4b5171..3596f10 100644
--- a/src/views/modules/wallet/index.vue
+++ b/src/views/modules/wallet/index.vue
@@ -246,7 +246,7 @@
订单状态:{{ getBillStatus(item.billStatus) }}
-
{{ item.billTypeName }}
+
{{ item.billTypeName }}:{{item.billAmount}}
余额:{{ item.amountAfterChange }}