This commit is contained in:
GaoHao
2024-12-11 16:33:19 +08:00
3 changed files with 13 additions and 8 deletions

View File

@@ -29,6 +29,7 @@
<view>退出登录</view>
<view><u-icon name="arrow-right"></u-icon></view>
</view>
<view class="version" style="position: absolute;bottom: 50rpx;left: 0;right: 0;margin: auto;text-align: center;color: #666;">{{ version }}版本</view>
</view>
</template>
@@ -36,11 +37,14 @@
export default {
data() {
return {
version: null,
}
},
onLoad() {
plus.runtime.getProperty(plus.runtime.appid, widgetInfo => {
console.log(widgetInfo)
this.version = widgetInfo.version
})
},
methods: {
goNav(e) {