From 0b931ba608faaa6fe51d77460f04c21640b30794 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Sat, 28 Sep 2024 17:12:06 +0800
Subject: [PATCH 01/20] =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=8D=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/mer_admin.js | 266 ++++++-----
src/router/full-routers.js | 301 ++++++------
src/views/modules/bank-card/index.vue | 199 ++++++++
.../modules/bank-card/popup/add-or-update.vue | 452 ++++++++++++++++++
4 files changed, 955 insertions(+), 263 deletions(-)
create mode 100644 src/views/modules/bank-card/index.vue
create mode 100644 src/views/modules/bank-card/popup/add-or-update.vue
diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js
index 6948e3a..37cbd51 100644
--- a/src/api/modules/mer_admin.js
+++ b/src/api/modules/mer_admin.js
@@ -3,124 +3,148 @@ import city_data from "@/utils/country-level2-data.js";
import qs from "qs";
export const mer_admin = {
- /**
- * 登录
- * @param {object} params LoginParam
- * @param {number} params.type
- * @param {string} params.role
- * @param {string} params.username
- * @param {string} params.password
- * @param {string} params.mobile
- * @param {string} params.code
- * @returns
- */
- loginByAccount: (params) => {
- return $http.post(`/auth/login`, {
- ...params,
- type: 1
- })
- },
- loginByMobile: (params) => {
- return $http.post(`/merchant-api/auth/sms/login`, {
- ...params,
- type: 2
- })
- },
- getYZM(mobile) {
- return $http.get(`/merchant-api/auth/login/code?mobile=${mobile}`);
- },
- getInfo() {
- return $http.get(`/merchant-api/auth/info`);
- },
- //商品管理
- //保存商品信息
- saveProduct: (data) => {
- return $http.post(`/merchant-api/product/save`, data);
- },
- //保存商品基本信息
- saveProductBase: (data) => {
- return $http.post(`/merchant-api/product/save/basic`, data);
- },
- //返回商品分类以及列表(聚合)
- getPolyProduct: (data) => {
- return $http.post(`/merchant-api/product/polymerization/list`, data);
- },
- //商品分页
- getProductPage: (data) => {
- return $http.post(`/merchant-api/product/page`, data);
- },
- //商户商品分类
- getProductCategory: () => {
- return $http.get(`/merchant-api/product/category/list?shopId=${JSON.parse(sessionStorage.getItem('userInfo')).shopId}`);
- },
- //上架或下架
- putOnShelvesProducts: (data) => {
- return $http.post(`/merchant-api/product/batch/update/status`, data);
- },
- //批量删除商品
- BatchDeleteProducts: (data) => {
- return $http.post(`/merchant-api/product/batch/delete`, data);
- },
- //打折扣
- setDiscounts: (data) => {
- return $http.post(`merchant-api/activity/save`, data);
- },
- //获取销售单位
- getSaleUnit: (data) => {
- return $http.request({ url: `/merchant-api/product/unit/list`, method: 'get', params: data });
- },
- //文件上传
- uploadFile: () => {
- return `${window.SITE_CONFIG['baseUrl']}/merchant-api/file/upload`
- },
- //直接获取城市数据
- getCityOptions: () => {
- return city_data;
- },
- //省市县数据
- getCity: () => {
- return $http.get(`/merchant-api/common/pca`);
- },
- //添加运费模板
- addShippingTemplate: (data) => {
- return $http.post(`/merchant-api/shippingTemplates/add`, data);
- },
- //删除模板
- removeShippingTemplate: (id) => {
- return $http.post(`/merchant-api/shippingTemplates/delete`, qs.stringify({
- id
- }), {
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- }
- })
- },
- //更新模板
- updateShippingTemplate: (data) => {
- return $http.post(`/merchant-api/shippingTemplates/update`, data);
- },
- //获取模板分页
- getShippingTemplatePage: (data) => {
- return $http.request({
- method: 'get',
- url: '/merchant-api/shippingTemplates/page',
- params: data
- })
- },
- //获取配送模板列表
- getShippingTemplateList: (data) => {
- return $http.request({
- method: 'get',
- url: '/merchant-api/shippingTemplates/list',
- params: data
- })
- },
- //获取模板详情
- getShippingTemplateInfo: (id) => {
- return $http.request({
- method: 'get',
- url: '/merchant-api/shippingTemplates/detail',
- params: { id }
- })
- }
-}
\ No newline at end of file
+ /**
+ * 登录
+ * @param {object} params LoginParam
+ * @param {number} params.type
+ * @param {string} params.role
+ * @param {string} params.username
+ * @param {string} params.password
+ * @param {string} params.mobile
+ * @param {string} params.code
+ * @returns
+ */
+ loginByAccount: (params) => {
+ return $http.post(`/auth/login`, {
+ ...params,
+ type: 1,
+ });
+ },
+ loginByMobile: (params) => {
+ return $http.post(`/merchant-api/auth/sms/login`, {
+ ...params,
+ type: 2,
+ });
+ },
+ getYZM(mobile) {
+ return $http.get(`/merchant-api/auth/login/code?mobile=${mobile}`);
+ },
+ getInfo() {
+ return $http.get(`/merchant-api/auth/info`);
+ },
+ //商品管理
+ //保存商品信息
+ saveProduct: (data) => {
+ return $http.post(`/merchant-api/product/save`, data);
+ },
+ //保存商品基本信息
+ saveProductBase: (data) => {
+ return $http.post(`/merchant-api/product/save/basic`, data);
+ },
+ //返回商品分类以及列表(聚合)
+ getPolyProduct: (data) => {
+ return $http.post(`/merchant-api/product/polymerization/list`, data);
+ },
+ //商品分页
+ getProductPage: (data) => {
+ return $http.post(`/merchant-api/product/page`, data);
+ },
+ //商户商品分类
+ getProductCategory: () => {
+ return $http.get(
+ `/merchant-api/product/category/list?shopId=${
+ JSON.parse(sessionStorage.getItem("userInfo")).shopId
+ }`
+ );
+ },
+ //上架或下架
+ putOnShelvesProducts: (data) => {
+ return $http.post(`/merchant-api/product/batch/update/status`, data);
+ },
+ //批量删除商品
+ BatchDeleteProducts: (data) => {
+ return $http.post(`/merchant-api/product/batch/delete`, data);
+ },
+ //打折扣
+ setDiscounts: (data) => {
+ return $http.post(`merchant-api/activity/save`, data);
+ },
+ //获取销售单位
+ getSaleUnit: (data) => {
+ return $http.request({
+ url: `/merchant-api/product/unit/list`,
+ method: "get",
+ params: data,
+ });
+ },
+ //文件上传
+ uploadFile: () => {
+ return `${window.SITE_CONFIG["baseUrl"]}/merchant-api/file/upload`;
+ },
+ //直接获取城市数据
+ getCityOptions: () => {
+ return city_data;
+ },
+ //省市县数据
+ getCity: () => {
+ return $http.get(`/merchant-api/common/pca`);
+ },
+ //添加运费模板
+ addShippingTemplate: (data) => {
+ return $http.post(`/merchant-api/shippingTemplates/add`, data);
+ },
+ //删除模板
+ removeShippingTemplate: (id) => {
+ return $http.post(
+ `/merchant-api/shippingTemplates/delete`,
+ qs.stringify({
+ id,
+ }),
+ {
+ headers: {
+ "Content-Type": "application/x-www-form-urlencoded",
+ },
+ }
+ );
+ },
+ //更新模板
+ updateShippingTemplate: (data) => {
+ return $http.post(`/merchant-api/shippingTemplates/update`, data);
+ },
+ //获取模板分页
+ getShippingTemplatePage: (data) => {
+ return $http.request({
+ method: "get",
+ url: "/merchant-api/shippingTemplates/page",
+ params: data,
+ });
+ },
+ //获取配送模板列表
+ getShippingTemplateList: (data) => {
+ return $http.request({
+ method: "get",
+ url: "/merchant-api/shippingTemplates/list",
+ params: data,
+ });
+ },
+ //获取模板详情
+ getShippingTemplateInfo: (id) => {
+ return $http.request({
+ method: "get",
+ url: "/merchant-api/shippingTemplates/detail",
+ params: { id },
+ });
+ },
+ //银行卡分页
+ bankCardPage: (data) => {
+ return $http.request({
+ method: "get",
+ url: "/merchant-api/bank/page",
+ params: data,
+ });
+ },
+ //添加商家端银行卡
+ bankCardAdd: (data) => {
+ return $http.post(`/merchant-api/bank/com-create`, data);
+ },
+};
diff --git a/src/router/full-routers.js b/src/router/full-routers.js
index 1d24baa..b63962a 100644
--- a/src/router/full-routers.js
+++ b/src/router/full-routers.js
@@ -1,148 +1,165 @@
import { getUUID } from "@/utils";
export default {
- "msg": "success",
- "menuList": [
- // {
- // "menuId": 999,
- // url: 'http://localhost:8082/',
- // type: 'iframe',
- // // isMicroApp: true,
- // name: '大屏展示',
- // icon: 's-data',
- // "type": 1,
- // },
- // new===
- //放到首页
- // {
- // "menuId": getUUID(),
- // "parentId": 0,
- // "parentName": null,
- // "name": "数据看板",
- // "url": "local-dashboard/dashboard",
- // "perms": "",
- // "type": 1,
- // "elIcon": "el-icon-data-analysis",
- // "orderNum": 0,
- // "open": null,
- // list: []
- // },
+ msg: "success",
+ menuList: [
+ // {
+ // "menuId": 999,
+ // url: 'http://localhost:8082/',
+ // type: 'iframe',
+ // // isMicroApp: true,
+ // name: '大屏展示',
+ // icon: 's-data',
+ // "type": 1,
+ // },
+ // new===
+ //放到首页
+ // {
+ // "menuId": getUUID(),
+ // "parentId": 0,
+ // "parentName": null,
+ // "name": "数据看板",
+ // "url": "local-dashboard/dashboard",
+ // "perms": "",
+ // "type": 1,
+ // "elIcon": "el-icon-data-analysis",
+ // "orderNum": 0,
+ // "open": null,
+ // list: []
+ // },
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "商品",
+ url: "local-course/resources",
+ perms: "",
+ type: 0,
+ elIcon: "el-icon-menu",
+ orderNum: 0,
+ open: null,
+ list: [
{
- "menuId": getUUID(),
- "parentId": 0,
- "parentName": null,
- "name": "商品",
- "url": "local-course/resources",
- "perms": "",
- "type": 0,
- "elIcon": "el-icon-menu",
- "orderNum": 0,
- "open": null,
- list: [{
- "menuId": getUUID(),
- "parentId": 0,
- "parentName": null,
- "name": "商品管理",
- "url": "product/index",
- "perms": "",
- "type": 1,
- "elIcon": "el-icon-menu",
- "orderNum": 0,
- "open": null,
- list: []
- }]
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "商品管理",
+ url: "product/index",
+ perms: "",
+ type: 1,
+ elIcon: "el-icon-menu",
+ orderNum: 0,
+ open: null,
+ list: [],
},
+ ],
+ },
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "运费管理",
+ url: "",
+ perms: "",
+ type: 0,
+ elIcon: "el-icon-money",
+ orderNum: 0,
+ open: null,
+ list: [
{
- "menuId": getUUID(),
- "parentId": 0,
- "parentName": null,
- "name": "运费管理",
- "url": "",
- "perms": "",
- "type": 0,
- "elIcon": "el-icon-money",
- "orderNum": 0,
- "open": null,
- list: [{
- "menuId": getUUID(),
- "parentId": 0,
- "parentName": null,
- "name": "运费模板",
- "url": "logistics-fare/logistics-template/index",
- "perms": "",
- "type": 1,
- "elIcon": "el-icon-postcard",
- "orderNum": 0,
- "open": null,
- list: []
- }]
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "运费模板",
+ url: "logistics-fare/logistics-template/index",
+ perms: "",
+ type: 1,
+ elIcon: "el-icon-postcard",
+ orderNum: 0,
+ open: null,
+ list: [],
},
- // {
- // "menuId": getUUID(),
- // "parentId": 0,
- // "parentName": null,
- // "name": "教务管理",
- // "url": "local-affairs",
- // "perms": "",
- // "type": 0,
- // "elIcon": "el-icon-office-building",
- // "orderNum": 0,
- // "open": null,
- // list: [
- // {
- // "menuId": getUUID(),
- // "parentId": 2,
- // "parentName": null,
- // "name": "年级管理",
- // "url": "local-affairs/grade",
- // "perms": "",
- // "type": 1,
- // "icon": "log",
- // "orderNum": 0,
- // "open": null,
- // "list": []
- // },
- // {
- // "menuId": getUUID(),
- // "parentId": 2,
- // "parentName": null,
- // "name": "班级管理",
- // "url": "local-affairs/class",
- // "perms": "",
- // "type": 1,
- // "icon": "log",
- // "orderNum": 0,
- // "open": null,
- // "list": []
- // },
- // {
- // "menuId": getUUID(),
- // "parentId": 2,
- // "parentName": null,
- // "name": "教师管理",
- // "url": "local-teacher/teacher",
- // "perms": "",
- // "type": 1,
- // "icon": "log",
- // "orderNum": 0,
- // "open": null,
- // "list": []
- // },
- // {
- // "menuId": getUUID(),
- // "parentId": 0,
- // "parentName": null,
- // "name": "学校管理",
- // "url": "local-school/school",
- // "perms": "",
- // "type": 1,
- // "elIcon": "el-icon-school",
- // "orderNum": 0,
- // "open": null,
- // list: []
- // },
- // ]
- // },
- ],
- "code": 0,
- "permissions": []
-}
\ No newline at end of file
+ ],
+ },
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "银行卡管理",
+ url: "bank-card/index",
+ perms: "",
+ type: 0,
+ elIcon: "el-icon-menu",
+ orderNum: 0,
+ open: null,
+ list: [],
+ },
+ // {
+ // "menuId": getUUID(),
+ // "parentId": 0,
+ // "parentName": null,
+ // "name": "教务管理",
+ // "url": "local-affairs",
+ // "perms": "",
+ // "type": 0,
+ // "elIcon": "el-icon-office-building",
+ // "orderNum": 0,
+ // "open": null,
+ // list: [
+ // {
+ // "menuId": getUUID(),
+ // "parentId": 2,
+ // "parentName": null,
+ // "name": "年级管理",
+ // "url": "local-affairs/grade",
+ // "perms": "",
+ // "type": 1,
+ // "icon": "log",
+ // "orderNum": 0,
+ // "open": null,
+ // "list": []
+ // },
+ // {
+ // "menuId": getUUID(),
+ // "parentId": 2,
+ // "parentName": null,
+ // "name": "班级管理",
+ // "url": "local-affairs/class",
+ // "perms": "",
+ // "type": 1,
+ // "icon": "log",
+ // "orderNum": 0,
+ // "open": null,
+ // "list": []
+ // },
+ // {
+ // "menuId": getUUID(),
+ // "parentId": 2,
+ // "parentName": null,
+ // "name": "教师管理",
+ // "url": "local-teacher/teacher",
+ // "perms": "",
+ // "type": 1,
+ // "icon": "log",
+ // "orderNum": 0,
+ // "open": null,
+ // "list": []
+ // },
+ // {
+ // "menuId": getUUID(),
+ // "parentId": 0,
+ // "parentName": null,
+ // "name": "学校管理",
+ // "url": "local-school/school",
+ // "perms": "",
+ // "type": 1,
+ // "elIcon": "el-icon-school",
+ // "orderNum": 0,
+ // "open": null,
+ // list: []
+ // },
+ // ]
+ // },
+ ],
+ code: 0,
+ permissions: [],
+};
diff --git a/src/views/modules/bank-card/index.vue b/src/views/modules/bank-card/index.vue
new file mode 100644
index 0000000..67f4b60
--- /dev/null
+++ b/src/views/modules/bank-card/index.vue
@@ -0,0 +1,199 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+ 添加银行卡
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/bank-card/popup/add-or-update.vue b/src/views/modules/bank-card/popup/add-or-update.vue
new file mode 100644
index 0000000..c7aef1e
--- /dev/null
+++ b/src/views/modules/bank-card/popup/add-or-update.vue
@@ -0,0 +1,452 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 977f2133d6024984ec831e328d18a7e38cf3db34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Sun, 29 Sep 2024 18:02:11 +0800
Subject: [PATCH 02/20] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=93=B6=E8=A1=8C?=
=?UTF-8?q?=E5=8D=A1=E5=AF=B9=E6=8E=A5=E5=AE=8C=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/mer_admin.js | 9 +
src/router/full-routers.js | 2 +-
src/views/modules/bank-card/index.vue | 61 +-
.../modules/bank-card/popup/add-or-update.vue | 758 ++++++++++--------
.../modules/bank-card/popup/view-details.vue | 571 +++++++++++++
5 files changed, 1054 insertions(+), 347 deletions(-)
create mode 100644 src/views/modules/bank-card/popup/view-details.vue
diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js
index 37cbd51..378d992 100644
--- a/src/api/modules/mer_admin.js
+++ b/src/api/modules/mer_admin.js
@@ -147,4 +147,13 @@ export const mer_admin = {
bankCardAdd: (data) => {
return $http.post(`/merchant-api/bank/com-create`, data);
},
+ //获取银行卡详情
+ bankCardDetail: (id) => {
+ return $http.request({
+ method: "get",
+ url: "/merchant-api/bank/detail",
+ params: { id },
+ });
+ },
+
};
diff --git a/src/router/full-routers.js b/src/router/full-routers.js
index b63962a..fe7a742 100644
--- a/src/router/full-routers.js
+++ b/src/router/full-routers.js
@@ -88,7 +88,7 @@ export default {
url: "bank-card/index",
perms: "",
type: 0,
- elIcon: "el-icon-menu",
+ elIcon: "el-icon-picture-outline",
orderNum: 0,
open: null,
list: [],
diff --git a/src/views/modules/bank-card/index.vue b/src/views/modules/bank-card/index.vue
index 67f4b60..cb509c4 100644
--- a/src/views/modules/bank-card/index.vue
+++ b/src/views/modules/bank-card/index.vue
@@ -12,10 +12,11 @@
-
-
-
-
+
+
+
+
+
@@ -43,19 +44,21 @@
@queryList="$refs.oTable.reload()"
ref="addOrUpdate"
>
+
+
+
\ No newline at end of file
From 95a020789bb722797b6189ca996c17cf93f1ab4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 8 Oct 2024 10:24:39 +0800
Subject: [PATCH 03/20] =?UTF-8?q?=E7=AB=AF=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/config/index-prod.js | 2 +-
src/views/modules/bank-card/popup/view-details.vue | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/public/config/index-prod.js b/public/config/index-prod.js
index 7ce89d8..94d58e2 100644
--- a/public/config/index-prod.js
+++ b/public/config/index-prod.js
@@ -13,7 +13,7 @@
window.SITE_CONFIG = {};
// 在线api接口请求地址
- window.SITE_CONFIG['baseUrl'] ="https://admin-test.damajishi.cn"
+ window.SITE_CONFIG['baseUrl'] ="http://admin-test.damajishi.cn:8899"
// cdn地址 = 域名 + 版本号
window.SITE_CONFIG['domain'] = './'; // 域名
diff --git a/src/views/modules/bank-card/popup/view-details.vue b/src/views/modules/bank-card/popup/view-details.vue
index d94034c..08b354e 100644
--- a/src/views/modules/bank-card/popup/view-details.vue
+++ b/src/views/modules/bank-card/popup/view-details.vue
@@ -534,7 +534,7 @@ export default {
},
},
{
- label: "上一步",
+ label: "上一页",
type: "primary",
disabled: () => this.process == 1,
handle: () => {
@@ -543,7 +543,7 @@ export default {
},
},
{
- label: this.process == 1 ? "下一步" : "确定",
+ label: this.process == 1 ? "下一页" : "确定",
type: "primary",
handle: () => {
if (this.process == 1) {
From 0ad0c4cf997485626832e2af5424917a0050f19c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 8 Oct 2024 11:04:11 +0800
Subject: [PATCH 04/20] =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=9C=B0=E5=9D=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/config/index-prod.js | 11 +++--
public/config/index.js | 18 +++----
src/views/common/login.vue | 95 +++++++++++++++++++++++++++++--------
3 files changed, 92 insertions(+), 32 deletions(-)
diff --git a/public/config/index-prod.js b/public/config/index-prod.js
index 94d58e2..6096255 100644
--- a/public/config/index-prod.js
+++ b/public/config/index-prod.js
@@ -9,14 +9,15 @@
/**
* 生产环境
*/
-;(function () {
+(function () {
window.SITE_CONFIG = {};
// 在线api接口请求地址
- window.SITE_CONFIG['baseUrl'] ="http://admin-test.damajishi.cn:8899"
+ window.SITE_CONFIG["baseUrl"] = "https://admin-test.damajishi.cn/";
// cdn地址 = 域名 + 版本号
- window.SITE_CONFIG['domain'] = './'; // 域名
- window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
- window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
+ window.SITE_CONFIG["domain"] = "./"; // 域名
+ window.SITE_CONFIG["version"] = ""; // 版本号(年月日时分)
+ window.SITE_CONFIG["cdnUrl"] =
+ window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
})();
diff --git a/public/config/index.js b/public/config/index.js
index 5e4df22..415da64 100644
--- a/public/config/index.js
+++ b/public/config/index.js
@@ -9,16 +9,18 @@
/**
* 开发环境
*/
-;(function () {
+(function () {
window.SITE_CONFIG = {};
// api接口请求地址
- window.SITE_CONFIG['baseUrl'] ="http://admin-test.damajishi.cn:8899"
- // 在线api接口请求地址
+ window.SITE_CONFIG["baseUrl"] = "https://admin-test.damajishi.cn/";
+ // 在线api接口请求地址
// window.SITE_CONFIG['baseUrl'] = 'http://119.29.103.250:8082/red-memory';
- // 在线api接口请求地址
- window.SITE_CONFIG['baseUrlComment'] = 'http://123.60.109.11:8081/red-memory-user';
+ // 在线api接口请求地址
+ window.SITE_CONFIG["baseUrlComment"] =
+ "http://123.60.109.11:8081/red-memory-user";
// cdn地址 = 域名 + 版本号
- window.SITE_CONFIG['domain'] = './'; // 域名
- window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分)
- window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
+ window.SITE_CONFIG["domain"] = "./"; // 域名
+ window.SITE_CONFIG["version"] = ""; // 版本号(年月日时分)
+ window.SITE_CONFIG["cdnUrl"] =
+ window.SITE_CONFIG.domain + window.SITE_CONFIG.version;
})();
diff --git a/src/views/common/login.vue b/src/views/common/login.vue
index e9c01ae..b763c0e 100644
--- a/src/views/common/login.vue
+++ b/src/views/common/login.vue
@@ -13,15 +13,32 @@
大妈集市商户端登录
-
+
-
+
-
+
-
+
- 登录
+ 登录
-
+
-
+
-
+
- 获取验证码
+ 获取验证码
{{ mobileCodeCountDown }}s
- 登录
+ 登录
-
+
-
+
- 获取验证码
+ 获取验证码
{{ mobileCodeCountDown }}s
- 登录
+ 登录
@@ -125,7 +182,7 @@ export default {
this.getCaptcha();
},
methods: {
- loginWayClick(tab, event) { },
+ loginWayClick(tab, event) {},
// 提交表单
dataFormSubmit() {
const _loginTypeMapper = {
@@ -344,7 +401,7 @@ export default {
.login-captcha {
overflow: hidden;
- >img {
+ > img {
width: 100%;
cursor: pointer;
}
From 3fc5c0b27d9d7eefc060ef2ba570ec0fc40405cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 8 Oct 2024 15:59:29 +0800
Subject: [PATCH 05/20] add
---
src/utils/httpRequest.js | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js
index b5c86fe..15b2e25 100644
--- a/src/utils/httpRequest.js
+++ b/src/utils/httpRequest.js
@@ -35,18 +35,18 @@ http.interceptors.request.use(
config => {
config.headers["token"] =`Bearer ${Vue.cookie.get("token")}`; // 请求头带上token
// 针对post请求加密
- if (config.method.toLowerCase() === "post" && process.env.NODE_ENV === "production" ) {
- //如果已经转成字符串了,就不用再转了
- if (typeof config.data === "string") {
- config.data = des.encryptByDES(config.data, "u48rE-RlGbua_K_m$*#z99lt");
- } else {
- //否则要转一次
- config.data = des.encryptByDES(
- JSON.stringify(config.data),
- "u48rE-RlGbua_K_m$*#z99lt"
- );
- }
- }
+ // if (config.method.toLowerCase() === "post" && process.env.NODE_ENV === "production" ) {
+ // //如果已经转成字符串了,就不用再转了
+ // if (typeof config.data === "string") {
+ // config.data = des.encryptByDES(config.data, "u48rE-RlGbua_K_m$*#z99lt");
+ // } else {
+ // //否则要转一次
+ // config.data = des.encryptByDES(
+ // JSON.stringify(config.data),
+ // "u48rE-RlGbua_K_m$*#z99lt"
+ // );
+ // }
+ // }
if (process.env.NODE_ENV !== "production") {
console.log(`【请求】${config.url}`, config);
}
From 0f3c1774ecde7a9653c54022a4cbebe03ce7503c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 8 Oct 2024 18:06:38 +0800
Subject: [PATCH 06/20] add
---
src/views/common/home.vue | 36 +++++++++++++++++-------------------
1 file changed, 17 insertions(+), 19 deletions(-)
diff --git a/src/views/common/home.vue b/src/views/common/home.vue
index 470580d..0d62a09 100644
--- a/src/views/common/home.vue
+++ b/src/views/common/home.vue
@@ -7,13 +7,11 @@
* @FilePath: \background-front-end\src\views\common\home.vue
-->
-
-
+
From 9e60dfcc0c563a05f040299f92c38c02db727f06 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Sat, 12 Oct 2024 14:58:09 +0800
Subject: [PATCH 07/20] =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=8D=A1=E7=8A=B6?=
=?UTF-8?q?=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/bank-card/index.vue | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/modules/bank-card/index.vue b/src/views/modules/bank-card/index.vue
index cb509c4..cb8fa67 100644
--- a/src/views/modules/bank-card/index.vue
+++ b/src/views/modules/bank-card/index.vue
@@ -15,8 +15,8 @@
-
-
+
+
@@ -153,9 +153,9 @@ export default {
render: ({ row }) => {
if (row.status == 0) {
return 审核中;
- } else if (row.status == 1) {
- return 未通过;
} else if (row.status == 2) {
+ return 未通过;
+ } else if (row.status == 1) {
return 已通过;
}
},
From 37ec774348d687dd8602ae1e9900271dab7d0c71 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 15 Oct 2024 18:02:25 +0800
Subject: [PATCH 08/20] =?UTF-8?q?=E9=93=B6=E8=A1=8C=E5=8D=A1=E7=A7=81?=
=?UTF-8?q?=E8=B4=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/common.js | 2 +-
.../modules/bank-card/popup/add-or-update.vue | 354 ++++++++++++++----
src/views/modules/product/index.vue | 2 +
.../modules/product/popup/add-or-update.vue | 2 +
4 files changed, 291 insertions(+), 69 deletions(-)
diff --git a/src/api/modules/common.js b/src/api/modules/common.js
index 930cbe0..0d5c907 100644
--- a/src/api/modules/common.js
+++ b/src/api/modules/common.js
@@ -15,7 +15,7 @@ export const password = (password, newPassword) => {
// 退出登录
export const logout = () => {
return $http({
- url: '/auth/logout',
+ url: '/merchant-api/auth/logout',
method: 'post',
data: $http.adornData()
})
diff --git a/src/views/modules/bank-card/popup/add-or-update.vue b/src/views/modules/bank-card/popup/add-or-update.vue
index 17f1a18..0fa56a6 100644
--- a/src/views/modules/bank-card/popup/add-or-update.vue
+++ b/src/views/modules/bank-card/popup/add-or-update.vue
@@ -9,7 +9,47 @@
>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 点击上传
+
+
+
+
+
+
+ 点击上传
+
+
+
+
+
@@ -486,7 +635,7 @@ export default {
bankLicense: "",
handIdCardFront: "",
handIdCardBack: "",
- bankAcctType: "",
+ bankAcctType: 1,
licenseNumber: "",
};
this.$refs.modal.resetFields();
@@ -500,8 +649,7 @@ export default {
},
init(row) {},
handleChange(e) {
- console.log(e);
- // this.modalData.prov = e.join("-");
+ this.modalData.prov = e.join("-");
},
handleAvatarSuccess(res) {
console.log(res);
@@ -527,42 +675,112 @@ export default {
console.log(res);
this.modalData.handIdCardBack = res.data;
},
+ handleChange(e) {
+ if (e == 1) {
+ this.modalData = {
+ linkId: JSON.parse(sessionStorage.getItem("userInfo")).managerId
+ ? JSON.parse(sessionStorage.getItem("userInfo")).managerId
+ : JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
+ bankType: "",
+ name: "",
+ prov: "",
+ area: "",
+ socialCreditCode: "",
+ socialCreditCodeExpires: "",
+ businessScope: "",
+ legalPerson: "",
+ legalCertId: "",
+ legalCertIdExpires: "",
+ legalMp: "",
+ address: "",
+ bankCode: "",
+ cardNo: "",
+ cardName: "",
+ licensePicture: "",
+ idCardFront: "",
+ idCardBack: "",
+ bankLicense: "",
+ handIdCardFront: "",
+ handIdCardBack: "",
+ bankAcctType: 1,
+ licenseNumber: "",
+ };
+ console.log(e);
+ } else {
+ this.modalData = {
+ linkId: JSON.parse(sessionStorage.getItem("userInfo")).managerId
+ ? JSON.parse(sessionStorage.getItem("userInfo")).managerId
+ : JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
+ bankType: "",
+ cardId: "",
+ cardName: "",
+ certId: "",
+ telNo: "",
+ idCardFront: "",
+ idCardBack: "",
+ bankAcctType: 2,
+ };
+ }
+ },
},
computed: {
modalHandles() {
- return [
- {
- label: "取消",
- handle: () => {
- this.toggle();
+ if (this.modalData.bankAcctType == 1) {
+ return [
+ {
+ label: "取消",
+ handle: () => {
+ this.toggle();
+ },
},
- },
- {
- label: "上一步",
- type: "primary",
- disabled: () => this.process == 1,
- handle: () => {
- console.log(this.modalData);
- this.process = 1;
+ {
+ label: "上一步",
+ type: "primary",
+ disabled: () => this.process == 1,
+ handle: () => {
+ console.log(this.modalData);
+ this.process = 1;
+ },
},
- },
- {
- label: this.process == 1 ? "下一步" : "确认添加",
- type: "primary",
- handle: () => {
- if (this.process == 1) {
- this.process = 2;
- } else {
+ {
+ label: this.process == 1 ? "下一步" : "确认添加",
+ type: "primary",
+ handle: () => {
+ if (this.process == 1) {
+ this.process = 2;
+ } else {
+ console.log(this.modalData);
+ this.$api.mer_admin.bankCardAdd(this.modalData).then((res) => {
+ console.log(res);
+ this.$emit("queryList");
+ this.toggle();
+ });
+ }
+ },
+ },
+ ];
+ } else {
+ return [
+ {
+ label: "取消",
+ handle: () => {
+ this.toggle();
+ },
+ },
+ {
+ label: "确认添加",
+ type: "primary",
+ handle: () => {
console.log(this.modalData);
this.$api.mer_admin.bankCardAdd(this.modalData).then((res) => {
console.log(res);
this.$emit("queryList");
this.toggle();
});
- }
+ },
},
- },
- ];
+ ];
+ }
},
},
asyncComputed: {},
diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue
index 928ce5d..bf23e1a 100644
--- a/src/views/modules/product/index.vue
+++ b/src/views/modules/product/index.vue
@@ -288,6 +288,8 @@ export default {
width: "340px",
render: ({ row }) => {
let edit = () => {
+ console.log(row);
+
this.$refs.addOrUpdate.toggle(row).update();
};
let priceAdjustment = () => {
diff --git a/src/views/modules/product/popup/add-or-update.vue b/src/views/modules/product/popup/add-or-update.vue
index fc0c9f1..0fdf68a 100644
--- a/src/views/modules/product/popup/add-or-update.vue
+++ b/src/views/modules/product/popup/add-or-update.vue
@@ -208,6 +208,8 @@ export default {
});
this.isAdd = true;
+ console.log('112233');
+
},
update: () => {
this.modalConfig.title = "编辑商品";
From 4733d3c3b279dd4c62461b78af44aa417333d23f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Sun, 20 Oct 2024 17:00:39 +0800
Subject: [PATCH 09/20] =?UTF-8?q?=E5=93=81=E7=89=8C=E7=AE=A1=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/router/full-routers.js | 27 ++++
src/views/modules/brand/config/index.vue | 108 +++++++++++++
.../brand/config/popup/add-or-update.vue | 148 ++++++++++++++++++
src/views/modules/product/index.vue | 144 +++++++++--------
4 files changed, 358 insertions(+), 69 deletions(-)
create mode 100644 src/views/modules/brand/config/index.vue
create mode 100644 src/views/modules/brand/config/popup/add-or-update.vue
diff --git a/src/router/full-routers.js b/src/router/full-routers.js
index fe7a742..d307d85 100644
--- a/src/router/full-routers.js
+++ b/src/router/full-routers.js
@@ -93,6 +93,33 @@ export default {
open: null,
list: [],
},
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "品牌管理",
+ url: "",
+ perms: "",
+ type: 0,
+ elIcon: "el-icon-money",
+ orderNum: 0,
+ open: null,
+ list: [
+ {
+ menuId: getUUID(),
+ parentId: 0,
+ parentName: null,
+ name: "品牌管理",
+ url: "brand/config/index",
+ perms: "",
+ type: 1,
+ elIcon: "el-icon-postcard",
+ orderNum: 0,
+ open: null,
+ list: [],
+ },
+ ],
+ },
// {
// "menuId": getUUID(),
// "parentId": 0,
diff --git a/src/views/modules/brand/config/index.vue b/src/views/modules/brand/config/index.vue
new file mode 100644
index 0000000..779b365
--- /dev/null
+++ b/src/views/modules/brand/config/index.vue
@@ -0,0 +1,108 @@
+
+
+
+
+ 品牌管理
+
+
+
+ 品牌信息
+ 编辑
+
+
+
品牌名称:
+
品牌ID:
+
品牌LOGO:
+
品牌背景:
+
品牌首页:
+
宣传语:
+
宣传视频:
+
+
+
+ 账号信息
+
+
+
管理员账号:
+
+ 管理员密码:
+ 修改
+
+
+
+
+ 其他信息
+
+
+
+
+ 推广营销工具
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/brand/config/popup/add-or-update.vue b/src/views/modules/brand/config/popup/add-or-update.vue
new file mode 100644
index 0000000..ed99012
--- /dev/null
+++ b/src/views/modules/brand/config/popup/add-or-update.vue
@@ -0,0 +1,148 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue
index bf23e1a..959977d 100644
--- a/src/views/modules/product/index.vue
+++ b/src/views/modules/product/index.vue
@@ -1,73 +1,78 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
添加商品
-
-
-
-
-
-
-
-
- 添加商品
- 批量删除
-
-
-
-
-
-
-
-
-
-
-
+
批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -95,6 +100,7 @@ export default {
},
productFilterType: "SALE",
selectList: [],
+ shopId: sessionStorage.getItem("userInfo").shopId,
};
},
methods: {
@@ -289,7 +295,7 @@ export default {
render: ({ row }) => {
let edit = () => {
console.log(row);
-
+
this.$refs.addOrUpdate.toggle(row).update();
};
let priceAdjustment = () => {
From 597e1157eee1256f811ac6a091111e3c779e53fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Mon, 21 Oct 2024 18:08:53 +0800
Subject: [PATCH 10/20] =?UTF-8?q?=E5=93=81=E7=89=8C=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/brand/config/index.vue | 26 ++-
.../brand/config/popup/add-or-update.vue | 198 ++++++++++++++----
.../brand/config/popup/change-password.vue | 141 +++++++++++++
3 files changed, 322 insertions(+), 43 deletions(-)
create mode 100644 src/views/modules/brand/config/popup/change-password.vue
diff --git a/src/views/modules/brand/config/index.vue b/src/views/modules/brand/config/index.vue
index 779b365..9b9989d 100644
--- a/src/views/modules/brand/config/index.vue
+++ b/src/views/modules/brand/config/index.vue
@@ -23,10 +23,15 @@
账号信息
-
管理员账号:
+
+ 管理员账号:
+ 修改
+
管理员密码:
- 修改
+ 修改
@@ -49,13 +54,16 @@
+
+
diff --git a/src/views/modules/brand/config/popup/add-or-update.vue b/src/views/modules/brand/config/popup/add-or-update.vue
index ed99012..722b9d9 100644
--- a/src/views/modules/brand/config/popup/add-or-update.vue
+++ b/src/views/modules/brand/config/popup/add-or-update.vue
@@ -26,8 +26,9 @@ export default {
width: "60%",
},
modalData: {},
- value1: [],
+ value1: "",
ProductData: {},
+ fileList: [],
};
},
methods: {
@@ -59,68 +60,185 @@ export default {
modalCols() {
return [
{
- label: "商品折扣(折)",
+ label: "品牌名称",
prop: "discount",
type: "Input",
width: "300px",
- rules: { required: true, message: "请输入打折数" },
- type: "jsx",
- render: () => {
- return (
-
-
- 提示: 请输入≤9.9数字 如:8折=售价*0.8
-
- );
- },
+ rules: { required: true, message: "请输入品牌名称" },
},
{
- label: "限制购买(数量)",
+ label: "品牌ID",
prop: "limitCount",
type: "Input",
width: "300px",
- rules: { required: true, message: "请输入价格" },
+ rules: { required: true, message: "请输入品牌ID" },
+ },
+ {
+ label: "品牌LOGO",
+ prop: "DiscountTi",
+ type: "Input",
+ width: "300px",
+ rules: { required: true, message: "请上传品牌LOGO" },
type: "jsx",
render: () => {
+ const handleChange = (file, fileList) => {
+ // console.log(fileList);
+ };
+ const handleAvatarSuccess = (res, file, fileList) => {
+ console.log(res, fileList);
+ };
+ const handleRemove = (file, fileList) => {
+ console.log(file, fileList);
+ };
return (
-
-
- 提示: 请输入≤99数字 超出数量以原价购买
-
+
+
+ 点击上传
+
+
+ 只能上传jpg/png文件,且不超过500kb
+
+
);
},
},
{
- label: "活动时间",
- prop: "DiscountTime",
+ label: "品牌首页:",
+ prop: "limitCoun",
type: "Input",
width: "300px",
- rules: { required: true, message: "请输入活动时间" },
+ rules: { required: true, message: "请输入品牌ID" },
type: "jsx",
render: () => {
return (
-
+
);
},
},
+ {
+ label: "宣传语",
+ prop: "limitCot",
+ type: "Input",
+ width: "300px",
+ rules: { required: true, message: "请输入宣传语" },
+ },
+ {
+ label: "首页背景",
+ prop: "DiscountTime",
+ type: "Input",
+ width: "300px",
+ rules: { required: true, message: "请上传背景图" },
+ type: "jsx",
+ render: () => {
+ const handleChange = (file, fileList) => {
+ // console.log(fileList);
+ };
+ const handleAvatarSuccess = (res, file, fileList) => {
+ console.log(res, fileList);
+ };
+ const handleRemove = (file, fileList) => {
+ console.log(file, fileList);
+ };
+ return (
+
+
+ 点击上传
+
+
+ 只能上传jpg/png文件,且不超过500kb
+
+
+ );
+ },
+ },
+ {
+ label: "视频",
+ prop: "DiscountTim",
+ type: "Input",
+ width: "300px",
+ rules: { required: true, message: "请上传视频" },
+ type: "jsx",
+ render: () => {
+ const handleChange = (file, fileList) => {
+ // console.log(fileList);
+ };
+ const handleAvatarSuccess = (res, file, fileList) => {
+ console.log(res, fileList);
+ };
+ const handleRemove = (file, fileList) => {
+ console.log(file, fileList);
+ };
+ return (
+
+
+ 点击上传
+
+
+ 只能上传jpg/png文件,且不超过500kb
+
+
+ );
+ },
+ },
+ {
+ label: "联系电话(仅用户可见)",
+ prop: "limit",
+ type: "Input",
+ width: "300px",
+ rules: { required: true, message: "请输入联系电话" },
+ },
];
},
modalHandles() {
diff --git a/src/views/modules/brand/config/popup/change-password.vue b/src/views/modules/brand/config/popup/change-password.vue
new file mode 100644
index 0000000..8e71c81
--- /dev/null
+++ b/src/views/modules/brand/config/popup/change-password.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
From ade29df89c6ae100b2e5f1d1895a11d38c048fd0 Mon Sep 17 00:00:00 2001
From: yukai
Date: Tue, 22 Oct 2024 15:12:05 +0800
Subject: [PATCH 11/20] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=9E=84=E5=BB=BA?=
=?UTF-8?q?=E6=BA=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.drone.yml | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/.drone.yml b/.drone.yml
index e8452cb..cd4ec61 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -4,7 +4,7 @@ name: build
steps:
- name: build
- image: node:18.20.3-alpine
+ image: docker.linbin.site/node:18.20.3-alpine
pull: if-not-exists
volumes:
- name: cache
@@ -12,26 +12,27 @@ steps:
- name: node-build
path: /app/build
commands: ## 此处自己定义项目工程的构建命令
- - npm install -g pnpm
+ - npm install -g pnpm --registry=https://registry.npmmirror.com
+ - pnpm config set registry https://registry.npmmirror.com
- pnpm i
- pnpm run build:prod
- ls -l
- cp -r dist /app/build/
when: ## 定义在什么情况下触发构建任务
branch: master #定义在哪个分支触发构建任务
- - name: scp
- image: appleboy/drone-scp
- volumes:
- - name: node-build
- path: /app/build
- settings:
- host: 60.204.138.3
- username: root
- password: 5xhqamyZ
- port: 22
- target: /data/app/dmjs-merchant-admin
- source: /app/build/dist
- overwrite: true
+# - name: scp
+# image: appleboy/drone-scp
+# volumes:
+# - name: node-build
+# path: /app/build
+# settings:
+# host: 60.204.138.3
+# username: root
+# password: 5xhqamyZ
+# port: 22
+# target: /data/app/dmjs-merchant-admin
+# source: /app/build/dist
+# overwrite: true
volumes:
- name: node-build
host:
From 732ff3cb50710acb0942c6b349264ecd42b6173f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Mon, 4 Nov 2024 16:59:29 +0800
Subject: [PATCH 12/20] =?UTF-8?q?=E8=BF=90=E8=B4=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/brand/config/popup/to-configure.vue | 13 +++++++++++++
.../logistics-template/popup/add-template.vue | 8 ++++++--
2 files changed, 19 insertions(+), 2 deletions(-)
create mode 100644 src/views/modules/brand/config/popup/to-configure.vue
diff --git a/src/views/modules/brand/config/popup/to-configure.vue b/src/views/modules/brand/config/popup/to-configure.vue
new file mode 100644
index 0000000..40e998e
--- /dev/null
+++ b/src/views/modules/brand/config/popup/to-configure.vue
@@ -0,0 +1,13 @@
+
+ 配置
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
index 025a327..3472035 100644
--- a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
+++ b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
@@ -832,7 +832,9 @@ export default {
if (this.isAdd) {
this.$api.mer_admin
.addShippingTemplate({
- linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId,
+ linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
+ ? JSON.parse(sessionStorage.getItem("userInfo")).shopId
+ : JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
defaults: 0, //默认值,待确认
sort: 0, //默认值,待确认
type: 2, //默认值,待确认
@@ -891,7 +893,9 @@ export default {
this.$api.mer_admin
.updateShippingTemplate({
id: this.modalData.id,
- linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId,
+ linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
+ ? JSON.parse(sessionStorage.getItem("userInfo")).shopId
+ : JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
defaults: 0, //默认值,待确认
sort: 0, //默认值,待确认
type: 2, //默认值,待确认
From b95c767c985efbc35a64e44d41b3e684e84ce7ae Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Thu, 7 Nov 2024 17:13:34 +0800
Subject: [PATCH 13/20] =?UTF-8?q?=E8=BF=90=E8=B4=B9=E6=A8=A1=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../logistics-template/index.vue | 73 +++++++++++--------
src/views/modules/product/index.vue | 5 +-
2 files changed, 45 insertions(+), 33 deletions(-)
diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue
index b958aa4..fa49791 100644
--- a/src/views/modules/logistics-fare/logistics-template/index.vue
+++ b/src/views/modules/logistics-fare/logistics-template/index.vue
@@ -1,37 +1,42 @@
-
-
-
-
-
-
-
-
-
- 搜索
+
+
+
+
+
+
+
+
+
+ 搜索
+
+ 添加运费模板
-
- 添加运费模板
-
-
-
+
+
+
+
+
+
+
@@ -45,8 +50,12 @@ export default {
searchForm: {
name: "",
},
+ shopId: "",
};
},
+ created() {
+ this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
+ },
methods: {
queryList(pageNo, pageSize) {
this.$api.mer_admin
@@ -144,7 +153,7 @@ export default {
}
// 将所有找到的路径合并成字符串返回
- return paths.map((path) =>{path.join("/")}
);
+ return paths.map((path) => {path.join("/")}
);
};
const appointMapper = {
diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue
index 959977d..3e4ff20 100644
--- a/src/views/modules/product/index.vue
+++ b/src/views/modules/product/index.vue
@@ -100,9 +100,12 @@ export default {
},
productFilterType: "SALE",
selectList: [],
- shopId: sessionStorage.getItem("userInfo").shopId,
+ shopId: "",
};
},
+ created() {
+ this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
+ },
methods: {
addProduct() {
this.$refs.addOrUpdate.toggle().add();
From e5c74c2e0c827aad8083442a13f8c5f31f6dd69b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Mon, 11 Nov 2024 18:05:56 +0800
Subject: [PATCH 14/20] =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=BB=8F=E8=90=A5?=
=?UTF-8?q?=E8=80=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../brand/config/popup/change-password.vue | 2 +-
src/views/modules/product/index.vue | 29 ++++++++++++++++---
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/src/views/modules/brand/config/popup/change-password.vue b/src/views/modules/brand/config/popup/change-password.vue
index 8e71c81..85fb772 100644
--- a/src/views/modules/brand/config/popup/change-password.vue
+++ b/src/views/modules/brand/config/popup/change-password.vue
@@ -125,7 +125,7 @@ export default {
},
},
{
- label: this.isAdd ? "确认添加" : "确认",
+ label: this.isAdd ? "保存" : "确认",
type: "primary",
loading: this.isLoading,
submit: true,
diff --git a/src/views/modules/product/index.vue b/src/views/modules/product/index.vue
index 3e4ff20..34490b7 100644
--- a/src/views/modules/product/index.vue
+++ b/src/views/modules/product/index.vue
@@ -26,7 +26,7 @@
@@ -34,6 +34,7 @@
查询
+ 重置
@@ -88,9 +89,10 @@ export default {
activeName: "在售",
dataList: [],
formInline: {
- user: "",
- region: "",
+ name: "",
+ marketId: "",
},
+ marketList: [],
tableProp: {
"auto-resize": true,
border: true,
@@ -104,7 +106,18 @@ export default {
};
},
created() {
- this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
+ if (JSON.parse(sessionStorage.getItem("userInfo")).markets.length > 0) {
+ this.shopId = true;
+ this.formInline.marketId = JSON.parse(
+ sessionStorage.getItem("userInfo")
+ ).markets[0].marketId;
+ this.marketList = JSON.parse(sessionStorage.getItem("userInfo")).markets;
+ console.log(this.marketList);
+ } else if (JSON.parse(sessionStorage.getItem("userInfo")).shopId) {
+ this.shopId = true;
+ } else {
+ this.shopId = false;
+ }
},
methods: {
addProduct() {
@@ -140,6 +153,7 @@ export default {
pageNumber: pageNo,
pageSize: pageSize,
},
+ ...this.formInline,
productFilterType: this.productFilterType,
merchantId: JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
shopId: JSON.parse(sessionStorage.getItem("userInfo")).shopId,
@@ -156,6 +170,13 @@ export default {
this.$refs.oTable.complete(false);
});
},
+ Reset() {
+ this.formInline = {
+ name: "",
+ // region: "",
+ };
+ this.$refs.oTable.reload();
+ },
handleClick() {
switch (this.activeName) {
case "在售":
From 97c78ea61bf7611f57e85ce96224aa85a7c9e9d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 12 Nov 2024 18:18:33 +0800
Subject: [PATCH 15/20] =?UTF-8?q?=E8=BF=90=E8=B4=B9=E6=A8=A1=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../logistics-fare/logistics-template/index.vue | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue
index fa49791..6649973 100644
--- a/src/views/modules/logistics-fare/logistics-template/index.vue
+++ b/src/views/modules/logistics-fare/logistics-template/index.vue
@@ -54,7 +54,18 @@ export default {
};
},
created() {
- this.shopId = JSON.parse(sessionStorage.getItem("userInfo")).shopId;
+ if (JSON.parse(sessionStorage.getItem("userInfo")).markets.length > 0) {
+ this.shopId = true;
+ this.formInline.marketId = JSON.parse(
+ sessionStorage.getItem("userInfo")
+ ).markets[0].marketId;
+ this.marketList = JSON.parse(sessionStorage.getItem("userInfo")).markets;
+ console.log(this.marketList);
+ } else if (JSON.parse(sessionStorage.getItem("userInfo")).shopId) {
+ this.shopId = true;
+ } else {
+ this.shopId = false;
+ }
},
methods: {
queryList(pageNo, pageSize) {
From 71254860636ad52a888e457319e98c3c3f746dcd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 12 Nov 2024 18:46:00 +0800
Subject: [PATCH 16/20] marketId
---
.../logistics-template/popup/add-template.vue | 6 ++++--
src/views/modules/product/popup/add-or-update.vue | 3 +--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
index 3472035..4a1457a 100644
--- a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
+++ b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
@@ -834,7 +834,8 @@ export default {
.addShippingTemplate({
linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
? JSON.parse(sessionStorage.getItem("userInfo")).shopId
- : JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
+ : JSON.parse(sessionStorage.getItem("userInfo")).markets[0]
+ .marketId,
defaults: 0, //默认值,待确认
sort: 0, //默认值,待确认
type: 2, //默认值,待确认
@@ -895,7 +896,8 @@ export default {
id: this.modalData.id,
linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
? JSON.parse(sessionStorage.getItem("userInfo")).shopId
- : JSON.parse(sessionStorage.getItem("userInfo")).merchantId,
+ : JSON.parse(sessionStorage.getItem("userInfo")).markets[0]
+ .marketId,
defaults: 0, //默认值,待确认
sort: 0, //默认值,待确认
type: 2, //默认值,待确认
diff --git a/src/views/modules/product/popup/add-or-update.vue b/src/views/modules/product/popup/add-or-update.vue
index 0fdf68a..25386cd 100644
--- a/src/views/modules/product/popup/add-or-update.vue
+++ b/src/views/modules/product/popup/add-or-update.vue
@@ -208,8 +208,7 @@ export default {
});
this.isAdd = true;
- console.log('112233');
-
+ console.log("112233");
},
update: () => {
this.modalConfig.title = "编辑商品";
From 4ec91760a15063f80485b041c3e4aa97be5e67a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Tue, 12 Nov 2024 19:52:30 +0800
Subject: [PATCH 17/20] =?UTF-8?q?=E8=BF=90=E8=B4=B9=E6=A8=A1=E7=89=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../logistics-template/index.vue | 23 ++++++++++++++++---
.../logistics-template/popup/add-template.vue | 14 ++++-------
2 files changed, 25 insertions(+), 12 deletions(-)
diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue
index 6649973..2086987 100644
--- a/src/views/modules/logistics-fare/logistics-template/index.vue
+++ b/src/views/modules/logistics-fare/logistics-template/index.vue
@@ -20,6 +20,19 @@
v-model="searchForm.name"
>
+
+
+
+
+
搜索
@@ -49,19 +62,24 @@ export default {
dataList: [],
searchForm: {
name: "",
+ linkId: "",
},
shopId: "",
+ marketList: "",
};
},
created() {
if (JSON.parse(sessionStorage.getItem("userInfo")).markets.length > 0) {
this.shopId = true;
- this.formInline.marketId = JSON.parse(
+ this.searchForm.linkId = JSON.parse(
sessionStorage.getItem("userInfo")
).markets[0].marketId;
this.marketList = JSON.parse(sessionStorage.getItem("userInfo")).markets;
console.log(this.marketList);
} else if (JSON.parse(sessionStorage.getItem("userInfo")).shopId) {
+ this.searchForm.linkId = JSON.parse(
+ sessionStorage.getItem("userInfo")
+ ).shopId;
this.shopId = true;
} else {
this.shopId = false;
@@ -87,7 +105,7 @@ export default {
});
},
addFareTemplate() {
- this.$refs.addTemplate.toggle().add();
+ this.$refs.addTemplate.toggle().add(this.searchForm.linkId);
},
},
computed: {
@@ -100,7 +118,6 @@ export default {
this.$api.mer_admin.getShippingTemplateInfo(row.id).then((res) => {
console.log(res);
console.log("row.tableData", row.tableData);
-
if (!row.tableData) {
if (res.data.data.shippingTemplatesRegionResultList) {
this.$set(
diff --git a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
index 4a1457a..ed4cc7f 100644
--- a/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
+++ b/src/views/modules/logistics-fare/logistics-template/popup/add-template.vue
@@ -57,6 +57,7 @@ export default {
},
fileList: [], //回显图片
place: "", //场地
+ linkId: "",
};
},
mounted() {
@@ -141,10 +142,11 @@ export default {
this.modalData = _data;
};
return {
- add: () => {
+ add: (id) => {
this.$nextTick(() => {
this.modalData = cloneDeep(BASE_DATA);
});
+ this.linkId = id;
this.isAdd = true;
this.modalConfig.title = "添加运费模板";
},
@@ -832,10 +834,7 @@ export default {
if (this.isAdd) {
this.$api.mer_admin
.addShippingTemplate({
- linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
- ? JSON.parse(sessionStorage.getItem("userInfo")).shopId
- : JSON.parse(sessionStorage.getItem("userInfo")).markets[0]
- .marketId,
+ linkId: this.linkId,
defaults: 0, //默认值,待确认
sort: 0, //默认值,待确认
type: 2, //默认值,待确认
@@ -894,10 +893,7 @@ export default {
this.$api.mer_admin
.updateShippingTemplate({
id: this.modalData.id,
- linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
- ? JSON.parse(sessionStorage.getItem("userInfo")).shopId
- : JSON.parse(sessionStorage.getItem("userInfo")).markets[0]
- .marketId,
+ linkId: this.linkId,
defaults: 0, //默认值,待确认
sort: 0, //默认值,待确认
type: 2, //默认值,待确认
From 3d5fd892a501ad92eef43f91861a6f57a73ae0e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=99=E5=90=8C=E5=AD=A6?= <2495967527@qq.com>
Date: Wed, 13 Nov 2024 19:02:08 +0800
Subject: [PATCH 18/20] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81?=
=?UTF-8?q?=E7=99=BB=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/mer_admin.js | 4 +-
src/views/common/login.vue | 78 ++++++++++++++++++-
.../logistics-template/index.vue | 14 +++-
src/views/modules/product/index.vue | 21 +++--
4 files changed, 102 insertions(+), 15 deletions(-)
diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js
index 378d992..b7e7607 100644
--- a/src/api/modules/mer_admin.js
+++ b/src/api/modules/mer_admin.js
@@ -15,9 +15,8 @@ export const mer_admin = {
* @returns
*/
loginByAccount: (params) => {
- return $http.post(`/auth/login`, {
+ return $http.post(`/admin-api/auth/login`, {
...params,
- type: 1,
});
},
loginByMobile: (params) => {
@@ -155,5 +154,4 @@ export const mer_admin = {
params: { id },
});
},
-
};
diff --git a/src/views/common/login.vue b/src/views/common/login.vue
index b763c0e..8b921b9 100644
--- a/src/views/common/login.vue
+++ b/src/views/common/login.vue
@@ -3,9 +3,7 @@
-
- 大妈集市商户端
-
+ 大妈集市商户端
@@ -13,6 +11,12 @@
大妈集市商户端登录
+
+
+ 验证码登入
+ 账号登录
+
+
+
+
+
+
+
+
+
+
+
+ 登录
+
+
@@ -144,6 +190,7 @@ import { getUUID } from "@/utils";
export default {
data() {
return {
+ value: true,
loginWay: "code_login",
loginType: "教育局",
mobileCodeCountDown: 0,
@@ -256,6 +303,31 @@ export default {
});
});
},
+ handleLogin() {
+ const _loginTypeMapper = {
+ 管理员: "ROLE_ADMIN",
+ 教育局: "ROLE_EDU",
+ 学校: "ROLE_SCHOOL",
+ 教师: "ROLE_TEACHER",
+ };
+ this.$refs["dataForm"].validate((valid) => {
+ console.log("账号密码登录");
+ this.$api.mer_admin
+ .loginByAccount({
+ // role: _loginTypeMapper[this.loginType],
+ userName: this.dataForm.userName,
+ password: this.dataForm.password,
+ })
+ .then(({ data }) => {
+ console.log("data", data);
+ this.$cookie.set("token", data.data.token);
+ this.$router.replace({ name: "home" });
+ })
+ .catch((err) => {
+ console.log(err);
+ });
+ });
+ },
//获取短信验证码
getCode() {
//正则表达式校验手机号是否合法
diff --git a/src/views/modules/logistics-fare/logistics-template/index.vue b/src/views/modules/logistics-fare/logistics-template/index.vue
index 2086987..4049b63 100644
--- a/src/views/modules/logistics-fare/logistics-template/index.vue
+++ b/src/views/modules/logistics-fare/logistics-template/index.vue
@@ -21,10 +21,7 @@
>
-
+
搜索
+ 重置
添加运费模板
-
+
+
+
+
+
+
+
查询
Date: Fri, 15 Nov 2024 16:34:50 +0800
Subject: [PATCH 19/20] =?UTF-8?q?=E7=99=BB=E5=85=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/mer_admin.js | 10 ++-
src/views/common/login.vue | 2 +-
src/views/modules/brand/config/index.vue | 78 +++++++++++++++++++-----
3 files changed, 74 insertions(+), 16 deletions(-)
diff --git a/src/api/modules/mer_admin.js b/src/api/modules/mer_admin.js
index b7e7607..ad3bcd0 100644
--- a/src/api/modules/mer_admin.js
+++ b/src/api/modules/mer_admin.js
@@ -15,7 +15,7 @@ export const mer_admin = {
* @returns
*/
loginByAccount: (params) => {
- return $http.post(`/admin-api/auth/login`, {
+ return $http.post(`/merchant-api/auth/login`, {
...params,
});
},
@@ -154,4 +154,12 @@ export const mer_admin = {
params: { id },
});
},
+ //获取品牌信息
+ getBrandInfo: () => {
+ return $http.request({
+ method: "get",
+ url: `/merchant-api/brand/info`,
+ params: {},
+ });
+ },
};
diff --git a/src/views/common/login.vue b/src/views/common/login.vue
index 8b921b9..ab04ccd 100644
--- a/src/views/common/login.vue
+++ b/src/views/common/login.vue
@@ -315,7 +315,7 @@ export default {
this.$api.mer_admin
.loginByAccount({
// role: _loginTypeMapper[this.loginType],
- userName: this.dataForm.userName,
+ mobile: this.dataForm.userName,
password: this.dataForm.password,
})
.then(({ data }) => {
diff --git a/src/views/modules/brand/config/index.vue b/src/views/modules/brand/config/index.vue
index 9b9989d..97e8367 100644
--- a/src/views/modules/brand/config/index.vue
+++ b/src/views/modules/brand/config/index.vue
@@ -10,13 +10,51 @@
编辑
-
品牌名称:
-
品牌ID:
-
品牌LOGO:
-
品牌背景:
-
品牌首页:
-
宣传语:
-
宣传视频:
+
品牌名称:{{ list.name }}
+
品牌ID: {{ list.id }}
+
+
+
+ 品牌首页: {{ list.homepageStatus == 0 ? "禁用" : "启用" }}
+
+
宣传语: {{ list.tagline }}
+
@@ -24,11 +62,13 @@
- 管理员账号:
+ 管理员账号:{{ list.administrator.substr(0, 3) }}****{{
+ list.administrator.substr(7)
+ }}
修改
- 管理员密码:
+ 管理员密码: ******
修改
@@ -39,8 +79,8 @@
其他信息
-
品牌联系人:
-
联系方式:
+
品牌联系人:{{ list.contact }}
+
联系方式: {{ list.contactPhone }}
@@ -58,19 +98,29 @@
-