shish 6 лет назад
Родитель
Сommit
a4f02d19f5
1 измененных файлов с 8 добавлено и 15 удалено
  1. 8 15
      saas/src/saas/shop/list.vue

+ 8 - 15
saas/src/saas/shop/list.vue

@@ -18,25 +18,15 @@
 
 			<!-- 微信支付 -->
 			<template #table-column-wxPayInit="{scope}">
-				<div class="pay">
-					<i
-						:class="[
-							'el-icon-success',
-							scope.row.extend.wxPayInit == '0' ? 'on' : 'off'
-						]"
-					></i>
+				<div :class="['pay',scope.row.extend.wxPayInit == '1' ? 'on' : 'off']">
+					<i class="el-icon-success"></i>
 					<el-button type="text" @click="payOption(1, scope.row)">配置</el-button>
 				</div>
 			</template>
 			<!-- 支付宝支付 -->
 			<template #table-column-aliPayInit="{scope}">
-				<div class="pay">
-					<i
-						:class="[
-							'el-icon-success',
-							scope.row.extend.aliPayInit == '0' ? 'on' : 'off'
-						]"
-					></i>
+				<div :class="['pay',scope.row.extend.alipayInit == '1' ? 'on' : 'off']">
+					<i class="el-icon-success"></i>
 					<el-button type="text" @click="payOption(2, scope.row)">配置</el-button>
 				</div>
 			</template>
@@ -343,7 +333,10 @@ export default {
 						alipayKey: this.form.alipayKey,
 						alipayPublicKey: this.form.alipayPublicKey
 					};
-					this.$service.saasShop.setAlipa(data);
+					this.$service.saasShop.setAlipa(data).then(res => {
+						this.resetForm();
+						this.$message('成功');
+					});
 					break;
 			}
 		},