sadais-piui 1.2.7-beta124 → 1.2.7-beta125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
<view class="pi-scroll-container">
|
|
3
3
|
<!-- #ifndef MP -->
|
|
4
4
|
<slot name="title">
|
|
5
|
-
<pi-navbar :show-home="showHome">{{ title }}</pi-navbar>
|
|
5
|
+
<pi-navbar :show-home="showHome" :fixed="false">{{ title }}</pi-navbar>
|
|
6
6
|
</slot>
|
|
7
7
|
<!-- #endif -->
|
|
8
8
|
<!-- #ifndef APP-PLUS -->
|
|
9
|
-
<
|
|
9
|
+
<view class="pi-scroll pi-safearea">
|
|
10
|
+
<web-view v-if="webviewURL" :progress="true" :src="webviewURL" />
|
|
11
|
+
</view>
|
|
10
12
|
<!-- #endif -->
|
|
11
13
|
</view>
|
|
12
14
|
</template>
|
|
@@ -57,7 +59,8 @@ export default {
|
|
|
57
59
|
// H5 url 需要加时间戳,否则会有缓存问题
|
|
58
60
|
this.webviewURL = this.autoAddTimestamp
|
|
59
61
|
? this.urlAddParam(this.url || '', {
|
|
60
|
-
sadaisTimestamp:
|
|
62
|
+
sadaisTimestamp:
|
|
63
|
+
new Date().getTime() + '-' + Math.round(Math.random(1) * 10000)
|
|
61
64
|
})
|
|
62
65
|
: this.url
|
|
63
66
|
console.log('webview页面即将打开以下URL:', this.webviewURL)
|