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

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'
export default {
onLoad() {
this.openProtocol()
},
data() {
return {
tempUrl: '',

View File

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