Index.vue 1.0 KB

12345678910111213141516171819202122232425262728
  1. <template>
  2. <app-view class="app-html">
  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;margin-bottom: .2rem;">
  8. <h4 style="margin-bottom: .32rem;">现货贸易合同(买方).docx</h4>
  9. <Button type="primary" style="width: 50%;" round @click="download('/html/ht_xh_b.docx')">下载文档</Button>
  10. </div>
  11. <div style="text-align: center;background-color: #fff;padding: 1rem 0;">
  12. <h4 style="margin-bottom: .32rem;">现货贸易合同(卖方).docx</h4>
  13. <Button type="primary" style="width: 50%;" round @click="download('/html/ht_xh_s.docx')">下载文档</Button>
  14. </div>
  15. </div>
  16. </app-view>
  17. </template>
  18. <script lang="ts" setup>
  19. import { Button } from 'vant'
  20. import service from '@/services'
  21. import plus from '@/utils/h5plus'
  22. const download = (filePath: string) => {
  23. const url = service.getConfig('mobileOpenUrl')
  24. plus.openURL(url + filePath)
  25. }
  26. </script>