-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9479e1a
commit a9bbd6b
Showing
5 changed files
with
77 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<template> | ||
<u-navbar :background="{'background-color': 'rgb(248, 248, 248)'}" :isBack="false"> | ||
<view style="display: flex;align-items: flex-end;justify-content: center;width: 100%;" @click="navClick"> | ||
<image style="width: 180px;height: 28px;" src="https://z-paging.zxlee.cn/img/title-logo.png"></image> | ||
<view style="display: flex;"> | ||
<view class="version-tag version-text">v{{version}}</view> | ||
<!-- #ifdef VUE2 --> | ||
<view class="version-tag vue-version-text">vue2</view> | ||
<!-- #endif --> | ||
<!-- #ifdef VUE3 --> | ||
<view class="version-tag vue-version-text">vue3</view> | ||
<!-- #endif --> | ||
</view> | ||
</view> | ||
</u-navbar> | ||
</template> | ||
|
||
<script> | ||
import { version } from '@/uni_modules/z-paging/package.json' | ||
export default { | ||
name:"index-nav", | ||
data() { | ||
return { | ||
version | ||
}; | ||
}, | ||
methods: { | ||
navClick() { | ||
const url = 'https://z-paging.zxlee.cn/'; | ||
// #ifdef APP-PLUS | ||
plus.runtime.openURL(url); | ||
// #endif | ||
// #ifdef H5 | ||
window.open(url); | ||
// #endif | ||
} | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.version-tag { | ||
font-weight: bold; | ||
color: white; | ||
padding: 1px 4px; | ||
border-radius: 4rpx; | ||
font-size: 12px; | ||
transform: scale(0.85); | ||
margin-left: -2px; | ||
margin-bottom: 3px; | ||
} | ||
.version-text { | ||
background-color: #007AFF; | ||
} | ||
.vue-version-text { | ||
background-color: #3eaf7c; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters