index.vue 605 B

12345678910111213141516171819202122
  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 plus from '@/utils/h5plus'
  17. const download = () => {
  18. plus.downloadFile('./html/ht_zr.docx')
  19. }
  20. </script>