Commit b603184d authored by Xuguangxing's avatar Xuguangxing

feat: 增加微信小程序webview和appwebview的判断

parent d98d78d7
......@@ -285,6 +285,9 @@ const ua = window.navigator.userAgent.toLowerCase();
// 判断微信环境
export const isWechat = ua.match(/MicroMessenger/i) == "micromessenger";
// 判断小程序
export const isWxMp = ua.match(/miniProgram/i) == 'miniprogram';
// 判断羊小咩(信用钱包)环境
export const isApp= ua.match(/xyqb/i) == "xyqb";
......
......@@ -346,7 +346,12 @@ export default {
async handleBuy() {
if (!this.orderInfo.addrReceiverInfo?.addrReceiverId) {
this.$dialog({
message: '请选择地址信息'
message: '你还没有选择收货地址哦!',
showCancelButton: false,
confirmButtonText: '去添加',
onConfirm: () => {
this.handleToAddress();
}
});
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment