|
|
@ -2,6 +2,12 @@ |
|
|
|
<view> |
|
|
|
<u-modal v-model="show" :title-style="{color: 'red'}" :title="title" :showTitle="false" |
|
|
|
:showConfirmButton="false" ref="modal"> |
|
|
|
<view class="" style="width: 100%;display: flex; align-items: center; justify-content: center;margin-top: 10rpx; " > |
|
|
|
<view class="" style=""> |
|
|
|
版本号 : {{version}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="slot-content"> |
|
|
|
<slot name="icon"> |
|
|
|
<image class="icon" :src="icon" /> |
|
|
@ -9,7 +15,6 @@ |
|
|
|
<slot name="content"> |
|
|
|
<rich-text class="content" :nodes="content"> |
|
|
|
</rich-text> |
|
|
|
|
|
|
|
</slot> |
|
|
|
<view class='split_line'></view> |
|
|
|
<slot name="button"> |
|
|
@ -56,10 +61,23 @@ |
|
|
|
cancel: false, //为 true 时,表示用户点击了取消 |
|
|
|
isDisabled: true, //为 true 时,表示用户可以点击,反之则不可以 |
|
|
|
seconds: 0, |
|
|
|
success: () => {} // 回调方法 |
|
|
|
success: () => {} ,// 回调方法 |
|
|
|
version:"" |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
const systemInfo = uni.getSystemInfoSync(); |
|
|
|
// #ifdef H5 |
|
|
|
this.version = systemInfo.appVersion; |
|
|
|
console.log(systemInfo.appVersion, '版本号'); |
|
|
|
// #endif |
|
|
|
|
|
|
|
// #ifdef APP |
|
|
|
this.version = systemInfo.appWgtVersion; |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
methods: { |
|
|
|
open() { |
|
|
|