shish 6 лет назад
Родитель
Сommit
a7b17c2f4c

+ 1 - 1
saas/src/App.vue

@@ -7,7 +7,7 @@
 <script>
 export default {
 	created() {
-		// let source = this.$project == 'sass' ? 'sass' : 'admin';
+		// let source = this.$project == 'saas' ? 'saas' : 'admin';
 		// if (source == 'admin') {
 		// 	localStorage.setItem('source', source);
 		// 	localStorage.setItem('account', 12358);

+ 5 - 5
saas/src/config/change.bat

@@ -2,7 +2,7 @@
 echo start......
 echo,
 set isMobile=business
-set sass=s-
+set saas=s-
 set business=b-
 set env=env.js
 set pages=pages.json
@@ -12,13 +12,13 @@ set /a sum=0
 
 for %%m in (*) do (
 	if "%%m"=="s-config.js" (
-		set isMobile=sass
+		set isMobile=saas
 	)
 )
 
 echo %isMobile%
 
-if "%isMobile%"=="sass" (
+if "%isMobile%"=="saas" (
 	echo %isMobile%
 	for %%z in (*) do (
 		echo %%z
@@ -48,11 +48,11 @@ if "%isMobile%"=="sass" (
 	for %%z in (*) do (
 		echo %%z
 		if "%%z"=="config.js" (
-			ren %%z %sass%%%z
+			ren %%z %saas%%%z
 			set /a sum+=1
 		)
 		if "%%z"=="env.js" (
-			ren %%z %sass%%%z
+			ren %%z %saas%%%z
 			set /a sum+=1
 		)
 	)

+ 1 - 1
saas/src/config/config.js

@@ -1,5 +1,5 @@
 import Vue from 'vue';
 // 项目配置--由bat脚本变更
-export const ProjectName = 'sass';
+export const ProjectName = 'saas';
 
 Vue.prototype.$projectName = ProjectName;

+ 2 - 2
saas/src/constant/constant.js

@@ -81,7 +81,7 @@ const _CONST_MAP = {
 		}
 	],
 	// 后台审核账号
-	SASS_APPLY_STATUS: [
+	SAAS_APPLY_STATUS: [
 		{
 			label: '审核中',
 			value: 0
@@ -104,7 +104,7 @@ const _CONST_MAP = {
 		}
 	],
 	// 后台小程序状态
-	SASS_MINIAPP_STATUS: [
+	SAAS_MINIAPP_STATUS: [
 		{
 			label: '审核中',
 			value: 0

+ 12 - 12
saas/src/cool/request/index.js

@@ -19,12 +19,12 @@ import setting from '@/service/setting/index';
 import workbench from '@/service/workbench/index';
 import auth from '@/service/auth/index';
 // saas
-import saasShop from '@/service/sass/shop/index';
-import sassOrder from '@/service/sass/order/index';
-import sassMember from '@/service/sass/member/index';
-import sassPtMember from '@/service/sass/pt-member/index';
-import sassFest from '@/service/sass/fest/index';
-import sassAuth from '@/service/sass/auth/index';
+import saasShop from '@/service/saas/shop/index';
+import saasOrder from '@/service/saas/order/index';
+import saasMember from '@/service/saas/member/index';
+import saasPtMember from '@/service/saas/pt-member/index';
+import saasFest from '@/service/saas/fest/index';
+import saasAuth from '@/service/saas/auth/index';
 
 import shop from '@/service/shop/index';
 import chat from '@/service/chat/index';
@@ -52,13 +52,13 @@ export function SET_SERVICE({ store }) {
 		setting,
 		workbench,
 		auth,
-		// sass
+		// saas
 		saasShop,
-		sassOrder,
-		sassMember,
-		sassPtMember,
-		sassFest,
-		sassAuth,
+		saasOrder,
+		saasMember,
+		saasPtMember,
+		saasFest,
+		saasAuth,
 		shop,
 		chat
 	};

+ 13 - 13
saas/src/mock/userInfo.js

@@ -202,7 +202,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 1,
 			router: '/',
-			viewPath: 'sass/shop/list',
+			viewPath: 'saas/shop/list',
 			keepAlive: 1
 		},
 		{
@@ -213,7 +213,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 1,
 			router: '/saas/merchant/apply-list',
-			viewPath: 'sass/shop/apply',
+			viewPath: 'saas/shop/apply',
 			keepAlive: 1
 		},
 		{
@@ -224,7 +224,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 1,
 			router: '/saas/merchant/upgrade',
-			viewPath: 'sass/shop/upgrade',
+			viewPath: 'saas/shop/upgrade',
 			keepAlive: 1
 		},
 		{
@@ -235,7 +235,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 1,
 			router: '/saas/merchant/shop-list',
-			viewPath: 'sass/shop/shop',
+			viewPath: 'saas/shop/shop',
 			keepAlive: 1
 		},
 		{
@@ -246,7 +246,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 1,
 			router: '/saas/merchant/buy-list',
-			viewPath: 'sass/shop/buy',
+			viewPath: 'saas/shop/buy',
 			keepAlive: 1
 		},
 		// 订单管理
@@ -258,7 +258,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 2,
 			router: '/saas/order/list',
-			viewPath: 'sass/order/list',
+			viewPath: 'saas/order/list',
 			keepAlive: 1
 		},
 		// 商家客户
@@ -270,7 +270,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 3,
 			router: '/saas/member/list',
-			viewPath: 'sass/member/list',
+			viewPath: 'saas/member/list',
 			keepAlive: 1
 		},
 		// 平台客户
@@ -282,7 +282,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 4,
 			router: '/saas/pt-member/list',
-			viewPath: 'sass/pt-member/list',
+			viewPath: 'saas/pt-member/list',
 			keepAlive: 1
 		},
 		// 商家商品
@@ -294,7 +294,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 5,
 			router: '/saas/goods/list',
-			viewPath: 'sass/goods/list',
+			viewPath: 'saas/goods/list',
 			keepAlive: 1
 		},
 		// 节日管理
@@ -306,7 +306,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 6,
 			router: '/saas/fest/list',
-			viewPath: 'sass/fest/list',
+			viewPath: 'saas/fest/list',
 			keepAlive: 1
 		},
 		// 套餐管理
@@ -318,7 +318,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 7,
 			router: '/saas/manage/list',
-			viewPath: 'sass/manage/list',
+			viewPath: 'saas/manage/list',
 			keepAlive: 1
 		},
 		{
@@ -329,7 +329,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 7,
 			router: '/saas/manage/package',
-			viewPath: 'sass/manage/package',
+			viewPath: 'saas/manage/package',
 			keepAlive: 1
 		},
 		{
@@ -340,7 +340,7 @@ let menu = {
 			icon: 'icongongzuotai',
 			orderNum: 7,
 			router: '/saas/manage/auth',
-			viewPath: 'sass/manage/auth',
+			viewPath: 'saas/manage/auth',
 			keepAlive: 1
 		}
 	]

+ 1 - 1
saas/src/saas/fest/list.vue

@@ -22,7 +22,7 @@ export default {
 		// crud
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.sassFest)
+			ctx.service(this.$service.saasFest)
 				.set('table', {
 					columns: [
 						{

+ 1 - 1
saas/src/saas/manage/auth.vue

@@ -59,7 +59,7 @@ export default {
 		onLoad({ ctx, app }) {
 			this.crud = app;
 
-			ctx.service(this.$service.sassAuth)
+			ctx.service(this.$service.saasAuth)
 				.set('dict', {
 					api: {
 						page: 'authList',

+ 1 - 1
saas/src/saas/manage/auth1.vue

@@ -80,7 +80,7 @@ export default {
 			this._list();
 		},
 		_list() {
-			this.$service.sassAuth.authList({ endId: 1 }).then(res => {
+			this.$service.saasAuth.authList({ endId: 1 }).then(res => {
 				this.data = res;
 			});
 		},

+ 1 - 1
saas/src/saas/manage/package.vue

@@ -24,7 +24,7 @@ export default {
 		onLoad({ ctx, app }) {
 			this.app = app;
 			let applyHost = () => {
-				return this.$service.sassAuth.packageList();
+				return this.$service.saasAuth.packageList();
 			};
 			ctx.service({
 				page: applyHost

+ 1 - 1
saas/src/saas/member/list.vue

@@ -79,7 +79,7 @@ export default {
 		// crud
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.sassMember)
+			ctx.service(this.$service.saasMember)
 				.set('table', {
 					columns: [
 						{

+ 1 - 1
saas/src/saas/order/list.vue

@@ -90,7 +90,7 @@ export default {
 		// crud
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.sassOrder)
+			ctx.service(this.$service.saasOrder)
 				.set('table', {
 					columns: [
 						{

+ 1 - 1
saas/src/saas/pt-member/list.vue

@@ -79,7 +79,7 @@ export default {
 		// crud
 		onLoad({ ctx, app }) {
 			this.app = app;
-			ctx.service(this.$service.sassPtMember)
+			ctx.service(this.$service.saasPtMember)
 				.set('table', {
 					columns: [
 						{

+ 3 - 3
saas/src/saas/shop/apply.vue

@@ -6,7 +6,7 @@
 			</template>
 
 			<template #table-column-status="{scope}">
-				<span>{{ scope.row.status | constantfilter('SASS_APPLY_STATUS') }}</span>
+				<span>{{ scope.row.status | constantfilter('SAAS_APPLY_STATUS') }}</span>
 			</template>
 
 			<!-- 审核 -->
@@ -73,7 +73,7 @@ export default {
 			this.applyDialog = true;
 		},
 		applyFn() {
-			this.$service.sassShop.applyCheck(this.form).then(res => {
+			this.$service.saasShop.applyCheck(this.form).then(res => {
 				this.app.refresh();
 				this.$message.success('审核成功!');
 				this.resetForm();
@@ -87,7 +87,7 @@ export default {
 		onLoad({ ctx, app }) {
 			this.app = app;
 			let applyHost = () => {
-				return this.$service.sassShop.applyList();
+				return this.$service.saasShop.applyList();
 			};
 			ctx.service({
 				page: applyHost

+ 1 - 1
saas/src/saas/shop/buy.vue

@@ -18,7 +18,7 @@ export default {
 		onLoad({ ctx, app }) {
 			this.app = app;
 			let applyHost = () => {
-				return this.$service.sassShop.buyList();
+				return this.$service.saasShop.buyList();
 			};
 			ctx.service({
 				page: applyHost

+ 5 - 5
saas/src/saas/shop/list.vue

@@ -167,7 +167,7 @@ export default {
 		onLoad({ ctx, app }) {
 			this.app = app;
 			let applyHost = () => {
-				return this.$service.sassShop.merchantList();
+				return this.$service.saasShop.merchantList();
 			};
 			ctx.service({
 				page: applyHost
@@ -288,7 +288,7 @@ export default {
 			this.$confirm('确认此商家的公众号和小程序已经取消授权?', '提示', {
 				type: 'warning'
 			}).then(() => {
-				this.$service.sassShop
+				this.$service.saasShop
 					.merchantCancel({ id })
 					.then(res => {
 						this.$message.success('注销成功');
@@ -300,7 +300,7 @@ export default {
 		payOption(type, data) {
 			this.plamPayType = type;
 			console.log(type);
-			this.$service.sassShop.merchantExtend({ id: data.id }).then(res => {
+			this.$service.saasShop.merchantExtend({ id: data.id }).then(res => {
 				this.form = { ...res };
 				this.wxPayDialog = true;
 				switch (type) {
@@ -322,7 +322,7 @@ export default {
 						wxPayMerchantId: this.form.wxPayMerchantId,
 						wxPayKey: this.form.wxPayKey
 					};
-					this.$service.sassShop.setWxPay(data).then(res => {
+					this.$service.saasShop.setWxPay(data).then(res => {
 						this.resetForm();
 						this.$message('成功');
 					});
@@ -334,7 +334,7 @@ export default {
 						alipayKey: this.form.alipayKey,
 						alipayPublicKey: this.form.alipayPublicKey
 					};
-					this.$service.sassShop.setAlipa(data);
+					this.$service.saasShop.setAlipa(data);
 					break;
 			}
 		},

+ 1 - 1
saas/src/saas/shop/shop.vue

@@ -29,7 +29,7 @@
             onLoad({ctx, app}) {
                 this.app = app;
                 let applyHost = () => {
-                    return this.$service.sassShop.shopList();
+                    return this.$service.saasShop.shopList();
                 };
                 ctx.service({
                     page: applyHost

+ 1 - 1
saas/src/saas/shop/upgrade.vue

@@ -22,7 +22,7 @@
 			</template>
 
 			<template #table-column-status="{scope}">
-				<span>{{ scope.row.status | constantfilter('SASS_MINIAPP_STATUS') }}</span>
+				<span>{{ scope.row.status | constantfilter('SAAS_MINIAPP_STATUS') }}</span>
 			</template>
 
 			<!-- 升级 -->

+ 14 - 14
saas/src/service/index.js

@@ -14,13 +14,13 @@ import ad from './ad/index';
 // import staff from './staff/index';
 // import role from './role/index';
 // import single from './single/index';
-// // sass
-// import sassShop from './sass/shop/index';
-// import sassOrder from './sass/order/index';
-// import sassMember from './sass/member/index';
-// import sassPtMember from './sass/pt-member/index';
-// import sassFest from './sass/fest/index';
-// import sassAuth from './sass/auth/index';
+// // saas
+// import saasShop from './saas/shop/index';
+// import saasOrder from './saas/order/index';
+// import saasMember from './saas/member/index';
+// import saasPtMember from './saas/pt-member/index';
+// import saasFest from './saas/fest/index';
+// import saasAuth from './saas/auth/index';
 
 Vue.prototype.$service = {
 	// common,
@@ -38,13 +38,13 @@ Vue.prototype.$service = {
 	// staff,
 	// role,
 	// single,
-	// // sass
-	// sassShop,
-	// sassOrder,
-	// sassMember,
-	// sassPtMember,
-	// sassFest,
-	// sassAuth
+	// // saas
+	// saasShop,
+	// saasOrder,
+	// saasMember,
+	// saasPtMember,
+	// saasFest,
+	// saasAuth
 };
 
 export default Vue.prototype.$service;

+ 2 - 2
saas/src/store/modules/user.js

@@ -17,7 +17,7 @@ export default {
 				};
 			} else {
 				host = () => {
-					return this.$service.common.sassLogin(form);
+					return this.$service.common.saasLogin(form);
 				};
 			}
 			return host(form).then(res => {
@@ -51,7 +51,7 @@ export default {
 				};
 			} else {
 				host = () => {
-					return this.$service.common.sassInfo();
+					return this.$service.common.saasInfo();
 				};
 			}
 			return host().then(res => {