Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
TaoHuang
6 years ago
Commit
9b1c4abb28d4d9c6a56f80e1a566a3ad9a536f0b
1 parent
4ee528c9
add jump ufo product
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletions
apps/common/yoho.js
apps/pages/single/selfUfo/form/form.vue
apps/common/yoho.js
View file @
9b1c4ab
...
...
@@ -598,7 +598,30 @@ const yoho = {
// tip(tipInfo);
}
}
},
// 跳UFO商品详情页
goUfoProductDetail
(
skn
)
{
var
url
=
window
.
location
.
protocol
+
'//m.yohobuy.com/'
;
if
(
this
.
isYohoBuy
&&
window
.
yohoInterface
)
{
url
=
url
+
'?openby:yohobuy='
+
JSON
.
stringify
({
action
:
'go.ufo'
,
params
:
{
pagename
:
'productDetail'
,
productId
:
skn
}
});
if
(
$appLink
)
{
$appLink
.
href
=
url
;
$appLink
.
click
();
}
}
else
{
url
=
url
+
'product/'
+
skn
+
'.html'
;
window
.
open
(
url
);
}
},
};
...
...
apps/pages/single/selfUfo/form/form.vue
View file @
9b1c4ab
...
...
@@ -102,6 +102,29 @@ export default {
timeout: this.finishPage
}
}).show();
} else if (result && result.code === 601) {
this.$createDialog({
type: 'confirm',
title: '提示',
content: '商品货号已存在,您可以直接进行商品出售',
confirmBtn: {
text: '去出售商品',
active: true,
disabled: false,
href: 'javascript:;'
},
cancelBtn: {
text: '返回修改',
active: false,
disabled: false,
href: 'javascript:;'
},
onConfirm: () => {
this.$yoho.goUfoProductDetail(result.data);
},
onCancel: () => {
}
}).show();
} else {
this.$createToast({
type: 'error',
...
...
Please
register
or
login
to post a comment