From 23d1b73e5d229139113f645765eda91830f09899 Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 22 Nov 2024 13:58:29 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=8A=A8=E7=81=AB=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E6=B0=94=E4=BD=93=E5=88=86=E6=9E=90=E6=9C=AA=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=202=E3=80=81=E5=B7=B2=E5=8A=9E=E4=BA=8B=E9=A1=B9=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/eight_assignments/completed_list.vue | 6 +- pages/eight_assignments/hot_work/apply.vue | 2 +- pages/eight_assignments/sign.vue | 2 +- uni_modules/cc-defineStep/changelog.md | 8 + .../cc-defineStep/cc-defineStep.vue | 111 ++++++++++++ uni_modules/cc-defineStep/package.json | 87 +++++++++ uni_modules/cc-defineStep/readme.md | 170 ++++++++++++++++++ utils/request.js | 9 +- utils/tools.js | 2 + 9 files changed, 391 insertions(+), 6 deletions(-) create mode 100644 uni_modules/cc-defineStep/changelog.md create mode 100644 uni_modules/cc-defineStep/components/cc-defineStep/cc-defineStep.vue create mode 100644 uni_modules/cc-defineStep/package.json create mode 100644 uni_modules/cc-defineStep/readme.md diff --git a/pages/eight_assignments/completed_list.vue b/pages/eight_assignments/completed_list.vue index 78c1f45..2d48d78 100644 --- a/pages/eight_assignments/completed_list.vue +++ b/pages/eight_assignments/completed_list.vue @@ -27,7 +27,7 @@ params: {taskId:item.taskId,jobId:item.jobId,type,title,isView:'1'} })"/> - + - + diff --git a/pages/eight_assignments/sign.vue b/pages/eight_assignments/sign.vue index ddc8d3d..181e325 100644 --- a/pages/eight_assignments/sign.vue +++ b/pages/eight_assignments/sign.vue @@ -69,7 +69,7 @@ export default { }, methods: { fnSign(event) { - this.form.SIGN = event.filePath + this.form.SIGN = event.path }, async fnSubmit() { try { diff --git a/uni_modules/cc-defineStep/changelog.md b/uni_modules/cc-defineStep/changelog.md new file mode 100644 index 0000000..412b2fc --- /dev/null +++ b/uni_modules/cc-defineStep/changelog.md @@ -0,0 +1,8 @@ +## 1.3(2024-06-27) +优化 +## 1.2(2024-05-16) +组件优化 +## 1.0.1(2023-07-09) +组件优化 +## 1.0.0(2023-07-09) +组件初始化 diff --git a/uni_modules/cc-defineStep/components/cc-defineStep/cc-defineStep.vue b/uni_modules/cc-defineStep/components/cc-defineStep/cc-defineStep.vue new file mode 100644 index 0000000..3344255 --- /dev/null +++ b/uni_modules/cc-defineStep/components/cc-defineStep/cc-defineStep.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/uni_modules/cc-defineStep/package.json b/uni_modules/cc-defineStep/package.json new file mode 100644 index 0000000..19b21bf --- /dev/null +++ b/uni_modules/cc-defineStep/package.json @@ -0,0 +1,87 @@ +{ + "id": "cc-defineStep", + "displayName": "自定义精美steps步骤条进度条插件 物流信息跟踪展示组件 流程审批跟进组件", + "version": "1.3", + "description": "自定义精美steps步骤条进度条插件 物流信息跟踪展示组件 流程审批跟进组件", + "keywords": [ + "步骤条", + "时间轴", + "", + "物流信息", + "物流", + "跟踪" +], + "repository": "", + "engines": { + "HBuilderX": "^3.8.0" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "y", + "快手": "y", + "飞书": "y", + "京东": "y" + }, + "快应用": { + "华为": "y", + "联盟": "y" + } + } + } + } +} diff --git a/uni_modules/cc-defineStep/readme.md b/uni_modules/cc-defineStep/readme.md new file mode 100644 index 0000000..fb56e67 --- /dev/null +++ b/uni_modules/cc-defineStep/readme.md @@ -0,0 +1,170 @@ +# cc-defineStep + + +### 我的技术微信公众号 + +![图片](https://i.postimg.cc/RZ0sjnYP/front-End-Component.jpg) + + +#### 使用方法 +```使用方法 + + + + + colors:"#fa436a", + //模拟后台返回的数据 + stepData: [ + { + name: '提交申请', + time: '2023-06-09 20:01:49', + isNow: 0, + type: 1, + desc: '不想要了' + }, + { + name: '等待审核', + time: '2023-06-09 20:01:49', + isNow: 0, + type: 1, + desc: '您的服务单已申请成功,待售后审核中' + }, + { + name: '审核意见', + time: '2023-06-09 20:13:49', + isNow: 0, + type: 1, + desc: '您的售后单已收到,会在24小时与您联系。' + }, + { + name: '审核上门取件', + time: '2023-06-09 20:13:49', + isNow: 0, + type: 1, + desc: '您的服务单已预约时间2023-06-10(周日) 15:00-20:00' + }, + { + name: '取件成功', + time: '2023-06-10 18:54:55', + isNow: 0, + type: 1, + desc: '您的商品已取件成功' + }, + { + name: '商家售后已收到', + time: '2023-06-12 09:01:49', + isNow: 0, + type: 1, + desc: '您的服务单商品已收到' + }, + { + name: '返修换新订单生产', + time: '2023-06-12 13:19:49', + isNow: 0, + type: 1, + desc: '您的服务订单已生成新的订单' + }, + { + name: '返修换新完成', + time: '2023-06-13 12:12:49', + isNow: 1, + type: 1, + desc: '您的服务单已完成,如有疑问请反馈,谢谢~,欢迎再次光临' + }, + ] + + + +``` + +#### HTML代码实现部分 +```html + + + + + + + + +``` diff --git a/utils/request.js b/utils/request.js index 56996d9..190863c 100644 --- a/utils/request.js +++ b/utils/request.js @@ -1,6 +1,7 @@ // let requestPath = 'http://192.168.0.45:8092/'; // let requestPath = 'http://192.168.0.31:8992/qa-regulatory-gwj/'; // 后台请求地址https://skqhdg.porthebei.com:9004/qa-prevention-gwj/ -export var requestPath = 'http://192.168.0.29:8092/'; // 后台请求地址 +export var requestPath = 'https://qggf.qhdsafety.com/jgApi/'; // 后台请求地址 +import store from '../store/index' function post(url, data) { return new Promise((resolve, reject) => { if (data && data.loading !== false) { @@ -10,7 +11,11 @@ function post(url, data) { } uni.request({ url: requestPath + url, - data, + data: { + USER_ID: store.state.userInfo.USER_ID || '', + CORPINFO_ID: store.state.userInfo.CORPINFO_ID || '', + ...data + }, method: 'POST', header: { 'Content-type': data?.postMethod || 'application/x-www-form-urlencoded' diff --git a/utils/tools.js b/utils/tools.js index 9a801e8..cbbb82b 100644 --- a/utils/tools.js +++ b/utils/tools.js @@ -22,6 +22,8 @@ export function formatDate(date, fmt) { } } +export const filePath = 'https://wwag.qhdsafety.com/file/' + function padLeftZero(str) { return ('00' + str).substr(str.length) }