index.vue 698 B

123456789101112131415161718192021222324
  1. <template>
  2. <app-view>
  3. <template #header>
  4. <app-navbar title="合同转让" />
  5. </template>
  6. <div style="padding: .2rem;">
  7. <div style="text-align: center;background-color: #fff;padding: 1rem 0;">
  8. <h4 style="margin-bottom: .32rem;">协议转让合同.docx</h4>
  9. <Button type="primary" style="width: 50%;" round @click="download">下载文档</Button>
  10. </div>
  11. </div>
  12. </app-view>
  13. </template>
  14. <script lang="ts" setup>
  15. import { Button } from 'vant'
  16. import { getServiceUrl } from '@/services/http'
  17. import plus from '@/utils/h5plus'
  18. const download = () => {
  19. const url = getServiceUrl('mobileOpenUrl')
  20. plus.openURL(url + '/html/ht_zr.docx')
  21. }
  22. </script>