File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -212,6 +212,16 @@ export default {
212
212
return ;
213
213
}
214
214
215
+ // 微信公众号、小程序支付,无法在 PC 网页中进行
216
+ if (channelCode === PayChannelEnum .WX_PUB .code ) {
217
+ this .$message .error (' 微信公众号支付:不支持 PC 网站' );
218
+ return ;
219
+ }
220
+ if (channelCode === PayChannelEnum .WX_LITE .code ) {
221
+ this .$message .error (' 微信小程序:不支持 PC 网站' );
222
+ return ;
223
+ }
224
+
215
225
// 默认的提交处理
216
226
this .submit0 (channelCode)
217
227
},
@@ -292,7 +302,10 @@ export default {
292
302
/** 提交支付后(App) */
293
303
displayApp (channelCode , data ) {
294
304
if (channelCode === PayChannelEnum .ALIPAY_APP .code ) {
295
- this .$message .error (' 支付宝 App 无法在网页支付!' );
305
+ this .$message .error (' 支付宝 App 支付:无法在网页支付!' );
306
+ }
307
+ if (channelCode === PayChannelEnum .WX_APP .code ) {
308
+ this .$message .error (' 微信 App 支付:无法在网页支付!' );
296
309
}
297
310
this .submitLoading = false
298
311
},
You can’t perform that action at this time.
0 commit comments