Skip to content

Commit 5a26bb1

Browse files
committed
mall + pay:
1. 简化微信支付的配置界面
1 parent a65c98b commit 5a26bb1

File tree

5 files changed

+318
-451
lines changed

5 files changed

+318
-451
lines changed

src/utils/constants.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ export const PayDisplayModeEnum = {
180180
}
181181
}
182182

183-
/**
184-
* 支付类型枚举
185-
*/
186-
export const PayType = {
187-
WECHAT: "WECHAT",
188-
ALIPAY: "ALIPAY"
189-
}
190-
191183
/**
192184
* 支付订单状态枚举
193185
*/

src/views/pay/app/components/alipayChannelForm.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export default {
172172
this.formData = response.data;
173173
this.formData.config = JSON.parse(response.data.config);
174174
}
175-
this.title = this.formData.id ? '创建支付渠道' : '编辑支付渠道'
175+
this.title = !this.formData.id ? '创建支付渠道' : '编辑支付渠道'
176176
}).finally(() => {
177177
this.formLoading = false;
178178
});
@@ -257,12 +257,7 @@ export default {
257257
this.formData.config.rootCertContent = e.target.result
258258
}
259259
readFile.readAsText(event.file);
260-
},
261-
260+
}
262261
}
263262
}
264-
265263
</script>
266-
<style scoped>
267-
268-
</style>

src/views/pay/app/components/wechatChannelForm.vue

Lines changed: 0 additions & 328 deletions
This file was deleted.

0 commit comments

Comments
 (0)