Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
b603184d
Commit
b603184d
authored
Sep 13, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加微信小程序webview和appwebview的判断
parent
d98d78d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
validation.service.js
src/service/validation.service.js
+3
-0
createOrder.vue
src/views/order/createOrder.vue
+6
-1
No files found.
src/service/validation.service.js
View file @
b603184d
...
...
@@ -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
"
;
...
...
src/views/order/createOrder.vue
View file @
b603184d
...
...
@@ -346,7 +346,12 @@ export default {
async
handleBuy
()
{
if
(
!
this
.
orderInfo
.
addrReceiverInfo
?.
addrReceiverId
)
{
this
.
$dialog
({
message
:
'
请选择地址信息
'
message
:
'
你还没有选择收货地址哦!
'
,
showCancelButton
:
false
,
confirmButtonText
:
'
去添加
'
,
onConfirm
:
()
=>
{
this
.
handleToAddress
();
}
});
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment