diff --git a/libs/util.js b/libs/util.js index ab69b1b..8e72d90 100644 --- a/libs/util.js +++ b/libs/util.js @@ -1,8 +1,8 @@ import Product from '@/config/product' const files = [ - 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798714897.docx', // 用户服务协议 - 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798737175.docx', // 用户隐私协议 + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/用户服务协议.docx', // 用户服务协议 + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/用户隐私协议.docx', // 用户隐私协议 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798668435.docx', // 人工智能 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798621083.docx', // 大数据 'https://huoran.oss-cn-shenzhen.aliyuncs.com/1709798646462.docx', // 金融科技 @@ -95,7 +95,7 @@ export default { // 新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx。 uni.openDocument({ filePath: res.tempFilePath, - fileType: 'docx', // 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx + fileType: 'pdf', // 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx showMenu: true, // 允许出现分享功能 success: res => { uni.hideLoading() diff --git a/order/privacyAgreement/privacyAgreement.vue b/order/privacyAgreement/privacyAgreement.vue new file mode 100644 index 0000000..f8dfd12 --- /dev/null +++ b/order/privacyAgreement/privacyAgreement.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/order/serviceAgreement/serviceAgreement.vue b/order/serviceAgreement/serviceAgreement.vue new file mode 100644 index 0000000..391b6d7 --- /dev/null +++ b/order/serviceAgreement/serviceAgreement.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/pages.json b/pages.json index 3c256eb..7130a1f 100644 --- a/pages.json +++ b/pages.json @@ -49,15 +49,14 @@ "navigationStyle": "custom", "enablePullDownRefresh": false } - } - ,{ + }, + { "path" : "pages/reg/reg", "style" : { "navigationBarTitleText": "", "enablePullDownRefresh": false } - } ], "subPackages": [ @@ -140,12 +139,27 @@ ,{ "path" : "shopCart/shopCart", "style" : - { - "navigationBarTitleText": "购物车", - "enablePullDownRefresh": true - } - - } + { + "navigationBarTitleText": "购物车", + "enablePullDownRefresh": true + } + }, + { + "path" : "serviceAgreement/serviceAgreement", + "style" : + { + "navigationBarTitleText" : "用户服务协议", + "enablePullDownRefresh" : false + } + }, + { + "path" : "privacyAgreement/privacyAgreement", + "style" : + { + "navigationBarTitleText" : "用户隐私协议", + "enablePullDownRefresh" : false + } + } ] }, {