|
@@ -2,6 +2,7 @@
|
|
|
<view class="content">
|
|
|
<view class="one">
|
|
|
<image :src="logoUrl" mode="aspectFit"></image>
|
|
|
+ <view class="version">{{versionInfo.version}}</view>
|
|
|
</view>
|
|
|
<view class="two">
|
|
|
<view class="two_1">
|
|
@@ -25,13 +26,22 @@
|
|
|
data() {
|
|
|
return {
|
|
|
logoUrl: 'https://broadcast.waityou24.cn/files/test/20230116145912.jpg',
|
|
|
- timer: null
|
|
|
+ timer: null,
|
|
|
+ versionInfo: {},
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
const that = this;
|
|
|
that.search('/pagesHome/home/index');
|
|
|
},
|
|
|
+ onShow() {
|
|
|
+ const that = this;
|
|
|
+ // 获取版本信息
|
|
|
+ plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
|
+ that.$set(that, `versionInfo`, wgtinfo)
|
|
|
+ that.setTitle(wgtinfo)
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
async search(e) {
|
|
|
const that = this;
|
|
@@ -45,6 +55,12 @@
|
|
|
// clearTimeout(that.timer);
|
|
|
// that.timer = null;
|
|
|
// }, 2000)
|
|
|
+ },
|
|
|
+ // 赋值标题栏
|
|
|
+ setTitle(e) {
|
|
|
+ uni.setNavigationBarTitle({
|
|
|
+ title: e.name
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -59,10 +75,14 @@
|
|
|
image {
|
|
|
width: 50vw;
|
|
|
height: 50vw;
|
|
|
- border-radius: 90px;
|
|
|
+ border-radius: 90%;
|
|
|
box-shadow: 0 0 5px #f1f1f1;
|
|
|
margin: 30vw 0 0 0;
|
|
|
}
|
|
|
+
|
|
|
+ .version {
|
|
|
+ margin: 2vw 0 0 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.two {
|