Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-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
yyq
5 years ago
Commit
f4a01a60102e1066e44a3b46da03bdb960c6c4ef
1 parent
73cb986a
layout link
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletions
apps/components/index.js
apps/components/layout/layout-link.vue
apps/pages/order/deliver.vue
apps/components/index.js
View file @
f4a01a6
import
LayoutApp
from
'./layout/layout-app'
;
import
LayoutHeader
from
'./layout/layout-header'
;
import
LayoutLink
from
'./layout/layout-link'
;
import
Images
from
'./images'
;
import
YohoButton
from
'./button'
;
export
default
[
LayoutApp
,
LayoutHeader
,
LayoutLink
,
...
Images
,
YohoButton
];
...
...
apps/components/layout/layout-link.vue
0 → 100644
View file @
f4a01a6
<template>
<a href="javascript:;" class="layout-link" @click="jumpTo">
<slot></slot>
</a>
</template>
<script>
export default {
name: "LayoutLink",
props: {
href: String
},
methods: {
jumpTo() {
if (!this.href) {
return;
}
// TODO url解析
if (this.$yoho.isAliApp && window.WindVane) {
window.WindVane.call('Base', 'openWindow', params, data => {
console.log('open new window success: ' + this.href);
}, e => {
window.open(this.href);
});
} else {
window.open(this.href);
}
}
}
};
</script>
...
...
apps/pages/order/deliver.vue
View file @
f4a01a6
...
...
@@ -32,7 +32,7 @@
<div class="contract-check">
<i class="iconfont" :class="readContract ? 'iconcheck_full checked' : 'iconcheck_default'" @click="changeReadContract"></i>
<span>我已阅读并同意</span>
<
a href="//activity.yoho.cn/feature/4049.html?share_id=6729&title=UFO卖家商品质检标准">《UFO卖家商品质检标准》</a
>
<
LayoutLink href="//activity.yoho.cn/feature/4049.html?share_id=6729&title=UFO卖家商品质检标准">《UFO卖家商品质检标准》</LayoutLink
>
</div>
<p v-if="stateCenterAddress.warnTips" class="warn-tip">{{stateCenterAddress.warnTips}}</p>
<CubeButton class="deliver-btn" :disabled="deliverDisable" @click="submitDeliver">发货</CubeButton>
...
...
Please
register
or
login
to post a comment