From cf7c3fdece4848e53c0fea3c2fd911d37228719c Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Fri, 8 Dec 2023 19:28:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E5=B0=8F=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/api.js | 8 + pages.json | 4 +- pages/carEntry/evaluate/comp/evaluateItem.vue | 12 + pages/carEntry/evaluate/evaluate.vue | 19 +- .../carEntry/examineAppointment/comp/pickDate.vue | 2 + pages/carEntry/examineAppointment/comp/step3.vue | 5 +- .../examineAppointment/comp/选择科目备份.vue | 86 ------- .../examineAppointment/examineAppointment.vue | 10 +- pages/carEntry/operaAppointment/comp/coachInfo.vue | 11 +- pages/carEntry/operaAppointment/comp/pickDate.vue | 3 + pages/carEntry/operaAppointment/comp/step1.vue | 32 ++- pages/carEntry/operaAppointment/comp/step2.vue | 1 + pages/carEntry/operaAppointment/comp/step3.vue | 182 --------------- pages/carEntry/operaAppointment/comp/step4.vue | 256 --------------------- .../carEntry/operaAppointment/operaAppointment.vue | 5 +- .../carEntry/simulateAppointment/comp/pickDate.vue | 9 +- pages/carEntry/simulateAppointment/comp/step2.vue | 9 +- pages/carEntry/simulateAppointment/comp/step3.vue | 15 +- .../simulateAppointment/simulateAppointment.vue | 11 +- .../NonPlatformStudentInfo.vue | 1 - .../consult/pubComplaint/pubComplaint.vue | 2 +- pages/indexEntry/consult/pubConsult/pubConsult.vue | 2 +- .../consult/record/comp/complaintItem.vue | 4 + pages/indexEntry/enroll/enroll.vue | 2 +- pages/indexEntry/enroll/realName/realName.vue | 13 +- .../findShcool/coachComment/coachComment.vue | 2 +- pages/indexEntry/findShcool/comments/comments.vue | 1 + pages/indexEntry/findShcool/comp/schoolItem.vue | 2 +- .../findShcool/shcoolDetail/comp/tab3.vue | 14 +- .../findShcool/shcoolDetail/shcoolDetail.vue | 4 +- pages/indexEntry/iIndustryInfo/detail/detail.vue | 2 + pages/indexEntry/publicVideo/comp/videoItem.vue | 2 +- .../publicVideo/videoDetail/videoDetail.vue | 26 ++- pages/mineEntry/myCollect/myCollect.vue | 2 +- pages/mineEntry/myCollect/videoItem.vue | 49 ++++ pages/mineEntry/myContract/myContract.vue | 46 +++- pages/mineEntry/myOrder/comp/comp.scss | 13 +- pages/mineEntry/myOrder/comp/opera.vue | 23 +- pages/mineEntry/myOrder/detail/detail.vue | 39 +++- pages/mineEntry/myOrder/myOrder.vue | 78 +++++-- pages/tabbar/index/index.vue | 6 +- pages/tabbar/mine/index.vue | 21 +- store/modules/school.js | 2 + uni_modules/mumu-previewOffce/changelog.md | 9 + .../mumu-previewOffce/mumu-previewOffce.vue | 208 +++++++++++++++++ uni_modules/mumu-previewOffce/package.json | 85 +++++++ uni_modules/mumu-previewOffce/readme.md | 85 +++++++ 47 files changed, 807 insertions(+), 616 deletions(-) delete mode 100644 pages/carEntry/examineAppointment/comp/选择科目备份.vue delete mode 100644 pages/carEntry/operaAppointment/comp/step3.vue delete mode 100644 pages/carEntry/operaAppointment/comp/step4.vue create mode 100644 pages/mineEntry/myCollect/videoItem.vue create mode 100644 uni_modules/mumu-previewOffce/changelog.md create mode 100644 uni_modules/mumu-previewOffce/components/mumu-previewOffce/mumu-previewOffce.vue create mode 100644 uni_modules/mumu-previewOffce/package.json create mode 100644 uni_modules/mumu-previewOffce/readme.md diff --git a/config/api.js b/config/api.js index e5f981f..756c882 100644 --- a/config/api.js +++ b/config/api.js @@ -94,6 +94,8 @@ export const getCardType = (params) => http.get('system/dict/cardType', {params} // export const contractCreate = (data) => http.post('business/contract/create', data) // // 获取驾校的合同 // export const getSchoolContract = (params) => http.get('business/contract/getSchoolContract', {params}) +// 我的合同 +export const selectContractPdfBase64 = (params) => http.get('business/contract/selectContractPdfBase64', {params}) // 获取合同链接 export const getSignContract = (data) => http.post('business/contract/signContract', data) // 查询学员合同签署状态 @@ -136,6 +138,12 @@ export const masterPage = (params) => http.get('business/booking/master/page', { export const masterDetail = (params) => http.get('business/booking/master/get', {params}) // 5实操取消预约 export const masterCancelBooking = (data) => http.put('business/booking/master/cancelBooking/'+data, ) +// 我的订单 +export const applyOrderPage = (params) => http.get('app/apply-order/page', {params}) +// 我的订单详情 +export const applyOrderGet = (params) => http.get('app/apply-order/get', {params}) + + diff --git a/pages.json b/pages.json index c3d212b..e23a747 100644 --- a/pages.json +++ b/pages.json @@ -421,7 +421,7 @@ "style": { "navigationBarTitleText": "订单详情", "navigationStyle": "custom", - "enablePullDownRefresh": false, + "enablePullDownRefresh": true, "backgroundTextStyle": "dark" } }, @@ -430,7 +430,7 @@ "style": { "navigationBarTitleText": "我的订单", "navigationStyle": "custom", - "enablePullDownRefresh": false, + "enablePullDownRefresh": true, "backgroundTextStyle": "dark" } }, diff --git a/pages/carEntry/evaluate/comp/evaluateItem.vue b/pages/carEntry/evaluate/comp/evaluateItem.vue index cfe9300..8f42ec9 100644 --- a/pages/carEntry/evaluate/comp/evaluateItem.vue +++ b/pages/carEntry/evaluate/comp/evaluateItem.vue @@ -97,6 +97,16 @@ imgArr:[] } }, + watch: { + info: { + handler(newVal) { + if(newVal) { + this.$emit('updatedForm', newVal) + } + }, + deep: true + } + }, methods: { // 1是匿名 2是不匿名 changeChe(val) { @@ -144,6 +154,8 @@ res.tempFiles.forEach(async (item,index)=>{ let imgLink = await uploadImgApi(item.path, index) if(imgLink) this.info.imgArr.push(imgLink) + console.log('----------') + console.log(this.info.imgArr) }) } }) diff --git a/pages/carEntry/evaluate/evaluate.vue b/pages/carEntry/evaluate/evaluate.vue index 105f5f9..7548c06 100644 --- a/pages/carEntry/evaluate/evaluate.vue +++ b/pages/carEntry/evaluate/evaluate.vue @@ -1,8 +1,8 @@ diff --git a/uni_modules/mumu-previewOffce/package.json b/uni_modules/mumu-previewOffce/package.json new file mode 100644 index 0000000..d1ac8e5 --- /dev/null +++ b/uni_modules/mumu-previewOffce/package.json @@ -0,0 +1,85 @@ +{ + "id": "mumu-previewOffce", + "displayName": "预览offce文件。可以打开 PDF WORD PPT EXCEL 文件", + "version": "1.0.3", + "description": "在程序中直接打开 offce 文件进行预览。可以打开 PDF WORD PPT EXCEL 文件", + "keywords": [ + "PDF", + "WORD", + "PPT", + "EXCEL", + "offce" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "n", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "y", + "快手": "u", + "飞书": "y", + "京东": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/mumu-previewOffce/readme.md b/uni_modules/mumu-previewOffce/readme.md new file mode 100644 index 0000000..f823fcd --- /dev/null +++ b/uni_modules/mumu-previewOffce/readme.md @@ -0,0 +1,85 @@ +# 插件介绍 + +** 预览的文件地址必须是可以通过互联网访问的!!! ** + +** 预览的文件地址必须是可以直接复制在浏览器地址中访问的!!! ** + +## 本插件将于2023/11/30停止提供服务 + +文档预览工具新版本已上线 + +对比当前版本支持了手机端双手缩放操作,office文件不在依赖微软的解析接口,支持服务端完全私有化部署(内网部署),UI界面有单独的电脑端、ios端、安卓端。 + +新版地址:[h5office。预览office文件,预览文档,打开PDF WORD PPT EXCEL 文件 - DCloud 插件市场](https://ext.dcloud.net.cn/plugin?id=10895) + +## 插件原理 + +> pdf 文件预览是通过 `pdf.js` 开源库,搭建了一个pdf预览的网站。前端只需要使用 iframe 加载这个网站即可。[pdf.js 官网](http://mozilla.github.io/pdf.js/api/draft/index.html) +> +> offce 文件的预览是通过微软offce在线接口进行解析的。offce在线地址:https://view.officeapps.live.com/op/embed.aspx?src=‘你的文件网络地址’ +> +> 在微信小程序中,是通过小程序中的API进行预览的。[小程序文档](https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html) + +## 使用环境 + +** 不支持nvue 。小程序中使用官方提供的api。h5与其他环境是通过上面介绍的插件原理加载。** + +## 插件使用 + +**插件已支持 uni_modules 支持组件easycom,以下代码演示的是普通使用** + +``` html + + + + +``` + +``` js + import MumuPreviewOffce from '@/uni_modules/mumu-previewOffce/components/mumu-previewOffce/mumu-previewOffce.vue' + export default { + components: { + MumuPreviewOffce + }, + data() { + return { + showPreview: false, + fileUrl: 'https://h5plugin.mumudev.top/public/previewOffce/333.docx' + } + }, + methods: { + + }, + } +``` + +## 相关 API + +### 可传属性(Props) + +| 参数 | 说明 | 类型 | 默认值 | 可选 | +| ------- | ------------------------ | ------- | ------ | ------------ | +| v-model | 双向绑定,显示或隐藏组件 | Boolean | false | false / true | +| fileUrl | 预览文件的网络地址 | String | - | - | + + + +## 打开本地预览 + +本地预览功能还在开发中... + +开发思路是: + +> 选择打开本地文件,上传到服务器。获取到服务器中的文件地址,传递给当前组件展示。 + +没有办法直接在本地打开,所有采取这种方案。有条件的同学可以自己开发。我也会尽快把这个功能做出来。 + + + +## 案例演示 + +![](https://h5plugin.mumudev.top/public/previewOffce/qrcode.png) + +## 支持作者 + +![支持作者](https://student.mumudev.top/wxMP.jpg) \ No newline at end of file