进入签订协议的页面立即加载协议

This commit is contained in:
WindowBird 2025-09-12 09:15:39 +08:00
parent b68be4a41b
commit 3db05d2007
2 changed files with 5 additions and 2 deletions

View File

@ -78,6 +78,9 @@
import { tempUrlToRealUrl } from '../../utils/tempUrl-to-realUrl' import { tempUrlToRealUrl } from '../../utils/tempUrl-to-realUrl'
export default { export default {
onLoad() {
this.openProtocol()
},
data() { data() {
return { return {
tempUrl: '', tempUrl: '',

View File

@ -1,5 +1,5 @@
<template> <template>
<view @click="open()">123</view> <view @click="openProtocol()">123</view>
</template> </template>
<script> <script>
export default { export default {
@ -7,7 +7,7 @@ export default {
return {} return {}
}, },
methods: { methods: {
open() { openProtocol() {
uni.downloadFile({ uni.downloadFile({
url: 'https://api.ccttiot.com/安装协议(准备好)-1757570264575.pdf', url: 'https://api.ccttiot.com/安装协议(准备好)-1757570264575.pdf',
success: function (res) { success: function (res) {