shish 6 ani în urmă
părinte
comite
f0668cd07a
1 a modificat fișierele cu 32 adăugiri și 57 ștergeri
  1. 32 57
      saas/src/saas/shop/list.vue

+ 32 - 57
saas/src/saas/shop/list.vue

@@ -45,12 +45,7 @@
 			<template #table-column-wxAppId="{scope}">
 				<div class="pay on">
 					<i v-if="scope.row.extend.wxAuth != '0'" :class="['el-icon-success']"></i>
-					<el-button
-						v-else
-						type="text"
-						@click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}`)"
-						>待绑定
-					</el-button>
+					<el-button v-else type="text" @click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}`)">待绑定</el-button>
 				</div>
 			</template>
 
@@ -62,27 +57,15 @@
 						v-else
 						type="text"
 						@click="bindJump(`/wx-open/begin-auth?id=${scope.row.id}&authType=2`)"
-						>待绑定
-					</el-button>
+					>待绑定</el-button>
 				</div>
 			</template>
 
 			<!-- 平台帐号激活 -->
 			<template #slot-activation="{scope}">
-				<el-button
-					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>
+				<el-button 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}">
@@ -106,11 +89,7 @@
 					class="demo-form"
 				>
 					<el-form-item label="商户ID" prop="status">
-						<el-input
-							v-model="form.wxPayMerchantId"
-							placeholder="请输入商户ID"
-							size="small"
-						></el-input>
+						<el-input v-model="form.wxPayMerchantId" placeholder="请输入商户ID" size="small"></el-input>
 					</el-form-item>
 					<el-form-item label="密钥" prop="remark">
 						<el-input type="textarea" v-model="form.wxPayKey"></el-input>
@@ -125,11 +104,7 @@
 					class="demo-form"
 				>
 					<el-form-item label="商户ID" prop="status">
-						<el-input
-							v-model="form.alipayPId"
-							placeholder="请输入商户ID"
-							size="small"
-						></el-input>
+						<el-input v-model="form.alipayPId" placeholder="请输入商户ID" size="small"></el-input>
 					</el-form-item>
 					<el-form-item label="商户私钥" prop="remark">
 						<el-input type="textarea" v-model="form.alipayKey"></el-input>
@@ -161,7 +136,7 @@ export default {
 			plamPayType: 1,
 			form: {},
 			rule: {},
-			wxOpen:{},
+			wxOpen:{wx_mini_base_id:0,wx_base_id:0},
 		};
 	},
 	mounted() {},
@@ -172,18 +147,18 @@ export default {
 			let host = `http://api.saas.${getFirstHost()}.com`;
 			window.open(host + url);
 		},
+		getWxOpen(){
+			this.wxOpen = this.$service.saasWxOpen.getWxOpen()
+			console.log(this.wxOpen)
+		},
 		// crud
 		onLoad({ ctx, app }) {
+
 			this.app = app;
 			let applyHost = () => {
 				return this.$service.saasShop.merchantList();
 			};
 			
-			
-				
-				this.$service.saasWxOpen.getWxOpen()
-			
-
 			ctx.service({
 				page: applyHost
 			})
@@ -370,31 +345,31 @@ export default {
 
 <style lang="stylus" scoped>
 .liu-crud-wrap >>> .el-row--0 {
-	top: 0;
-	left: 0;
-	width: 100% !important;
+  top: 0;
+  left: 0;
+  width: 100% !important;
 }
 
 .pay {
-	display: flex;
-	align-items: center;
-	justify-content center;
+  display: flex;
+  align-items: center;
+  justify-content: center;
 
-	i {
-		font-size: 20px;
-		margin-right 5px;
-	}
+  i {
+    font-size: 20px;
+    margin-right: 5px;
+  }
 
-	&.on {
-		i {
-			color #67C23A;
-		}
-	}
+  &.on {
+    i {
+      color: #67C23A;
+    }
+  }
 
-	&.off {
-		i {
-			color #909399;
-		}
-	}
+  &.off {
+    i {
+      color: #909399;
+    }
+  }
 }
 </style>