فهرست منبع

获取平台方法

shish 6 سال پیش
والد
کامیت
a9c69ec726
3فایلهای تغییر یافته به همراه31 افزوده شده و 3 حذف شده
  1. 2 0
      saas/src/cool/request/index.js
  2. 18 3
      saas/src/saas/shop/list.vue
  3. 11 0
      saas/src/service/saas/wx-open/index.js

+ 2 - 0
saas/src/cool/request/index.js

@@ -25,6 +25,7 @@ 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 saasWxOpen from '@/service/saas/wx-open/index';
 
 import shop from '@/service/shop/index';
 import chat from '@/service/chat/index';
@@ -59,6 +60,7 @@ export function SET_SERVICE({ store }) {
 		saasPtMember,
 		saasFest,
 		saasAuth,
+		saasWxOpen,
 		shop,
 		chat
 	};

+ 18 - 3
saas/src/saas/shop/list.vue

@@ -73,8 +73,16 @@
 					type="primary"
 					size="mini"
 					@click="bindJump(`/merchant/add-platform-merchant`)"
-					>平台帐号激活
+					>公众号激活
 				</el-button>
+
+				<el-button
+					type="primary"
+					size="mini"
+					@click="bindJump(`/merchant/add-platform-merchant`)"
+					>小程序激活
+				</el-button>
+
 			</template>
 
 			<template #slot-op-btn="{scope}">
@@ -152,7 +160,8 @@ export default {
 			dialogTitle: '',
 			plamPayType: 1,
 			form: {},
-			rule: {}
+			rule: {},
+			wxOpen:{},
 		};
 	},
 	mounted() {},
@@ -160,7 +169,7 @@ export default {
 		wxPayConfigFn() {},
 		// 绑定跳转
 		bindJump(url) {
-			let host = `http://api.w.${getFirstHost()}.com`;
+			let host = `http://api.saas.${getFirstHost()}.com`;
 			window.open(host + url);
 		},
 		// crud
@@ -169,6 +178,12 @@ export default {
 			let applyHost = () => {
 				return this.$service.saasShop.merchantList();
 			};
+			
+			
+				
+				this.$service.saasWxOpen.getWxOpen()
+			
+
 			ctx.service({
 				page: applyHost
 			})

+ 11 - 0
saas/src/service/saas/wx-open/index.js

@@ -0,0 +1,11 @@
+import { BaseService, Service } from '@/cool';
+export class WxOpenService extends BaseService {
+    getWxOpen(data) {
+        return this.request({
+            url: '/wx-open/get-wx-open',
+            params: data
+        });
+    }
+}
+
+export default new WxOpenService();