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