Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
2188f5b9c1f22a560e0d61f46f3fd85c9240fcd4
2 parents
bfe1d8e7
037f97a5
Merge branch 'master' of git.yoho.cn:fe/yoho-community-web
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
apps/common/yoho.js
apps/components/images/image-format.vue
apps/utils/init-client.js
apps/common/yoho.js
View file @
2188f5b
...
...
@@ -612,6 +612,17 @@ const yoho = {
}
else
{
// tip(tipInfo);
}
},
setWebview
(
args
,
success
,
fail
)
{
if
(
this
.
isYohoBuy
&&
window
.
yohoInterface
)
{
window
.
yohoInterface
.
triggerEvent
(
success
||
nullFun
,
fail
||
nullFun
,
{
method
:
'set.webview'
,
arguments
:
args
});
}
else
{
// tip(tipInfo);
}
}
};
...
...
apps/components/images/image-format.vue
View file @
2188f5b
...
...
@@ -53,6 +53,7 @@ export default {
}
}
return (src || '')
.replace('http://', '//')
.replace('{mode}', this.mode)
.replace('{width}', this.width)
.replace('{height}', this.height);
...
...
apps/utils/init-client.js
View file @
2188f5b
...
...
@@ -48,4 +48,10 @@ export default store => {
store
.
commit
(
'SET_LOGIN_INFO'
,
user
);
}
});
Vue
.
$yoho
.
ready
(()
=>
{
Vue
.
$yoho
.
setWebview
({
bounces
:
false
});
});
};
...
...
Please
register
or
login
to post a comment