|
@ -2,6 +2,12 @@ |
|
|
<view> |
|
|
<view> |
|
|
<u-modal v-model="show" :title-style="{color: 'red'}" :title="title" :showTitle="false" |
|
|
<u-modal v-model="show" :title-style="{color: 'red'}" :title="title" :showTitle="false" |
|
|
:showConfirmButton="false" ref="modal"> |
|
|
: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"> |
|
|
<view class="slot-content"> |
|
|
<slot name="icon"> |
|
|
<slot name="icon"> |
|
|
<image class="icon" :src="icon" /> |
|
|
<image class="icon" :src="icon" /> |
|
@ -9,7 +15,6 @@ |
|
|
<slot name="content"> |
|
|
<slot name="content"> |
|
|
<rich-text class="content" :nodes="content"> |
|
|
<rich-text class="content" :nodes="content"> |
|
|
</rich-text> |
|
|
</rich-text> |
|
|
|
|
|
|
|
|
</slot> |
|
|
</slot> |
|
|
<view class='split_line'></view> |
|
|
<view class='split_line'></view> |
|
|
<slot name="button"> |
|
|
<slot name="button"> |
|
@ -56,9 +61,22 @@ |
|
|
cancel: false, //为 true 时,表示用户点击了取消 |
|
|
cancel: false, //为 true 时,表示用户点击了取消 |
|
|
isDisabled: true, //为 true 时,表示用户可以点击,反之则不可以 |
|
|
isDisabled: true, //为 true 时,表示用户可以点击,反之则不可以 |
|
|
seconds: 0, |
|
|
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: { |
|
|
methods: { |
|
|