diff --git a/App.vue b/App.vue
index 1a5c86c..6f30caf 100644
--- a/App.vue
+++ b/App.vue
@@ -11,7 +11,7 @@
// 配置全局域名
// #ifdef H5
// this.globalData.hostapi = 'https://7and5.cn';
- this.globalData.hostapi = '/web';
+ // this.globalData.hostapi = '/web';
// #endif
},
onShow: function() {
diff --git a/commons/icon-font.css b/commons/icon-font.css
index 51ae7de..f0eaff7 100644
--- a/commons/icon-font.css
+++ b/commons/icon-font.css
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 3180711 */
- src: url('https://at.alicdn.com/t/font_3180711_7fx7wl7itar.woff2?t=1647479558213') format('woff2'),
- url('https://at.alicdn.com/t/font_3180711_7fx7wl7itar.woff?t=1647479558213') format('woff'),
- url('https://at.alicdn.com/t/font_3180711_7fx7wl7itar.ttf?t=1647479558213') format('truetype');
+ src: url('https://at.alicdn.com/t/font_3180711_635f9bvlgje.woff2?t=1652863135237') format('woff2'),
+ url('https://at.alicdn.com/t/font_3180711_635f9bvlgje.woff?t=1652863135237') format('woff'),
+ url('https://at.alicdn.com/t/font_3180711_635f9bvlgje.ttf?t=1652863135237') format('truetype');
}
.icon {
@@ -13,6 +13,66 @@
-moz-osx-font-smoothing: grayscale;
}
+.icon-sj-left-top:before {
+ content: "\e603";
+}
+
+.icon-sj-top:before {
+ content: "\e604";
+}
+
+.icon-sj-right-top:before {
+ content: "\e605";
+}
+
+.icon-sj-bottom:before {
+ content: "\e606";
+}
+
+.icon-sj-right-bottom:before {
+ content: "\e607";
+}
+
+.icon-sj-left:before {
+ content: "\e60d";
+}
+
+.icon-zsj:before {
+ content: "\e6bd";
+}
+
+.icon-del:before {
+ content: "\e718";
+}
+
+.icon-cut:before {
+ content: "\e609";
+}
+
+.icon-add:before {
+ content: "\e60a";
+}
+
+.icon-add-picture05:before {
+ content: "\e639";
+}
+
+.icon-add-picture04:before {
+ content: "\e636";
+}
+
+.icon-add-picture03:before {
+ content: "\e642";
+}
+
+.icon-add-picture02:before {
+ content: "\e8bc";
+}
+
+.icon-add-picture01:before {
+ content: "\e62c";
+}
+
.icon-sandian:before {
content: "\e769";
}
@@ -93,7 +153,7 @@
content: "\e73f";
}
-.icon-shopp-cart:before {
+.icon-shop-cart:before {
content: "\e73d";
}
diff --git a/components/dates/yy-mm-dd-hh-ss.vue b/components/dates/yy-mm-dd-hh-ss.vue
index eab00e0..586f4af 100644
--- a/components/dates/yy-mm-dd-hh-ss.vue
+++ b/components/dates/yy-mm-dd-hh-ss.vue
@@ -6,7 +6,7 @@
取消
确定
-
+
@@ -68,6 +68,7 @@
hour: "",
minute: "",
value: [0, 0, 0, 0, 0],
+ ifDate:false
};
},
@@ -148,6 +149,10 @@
}
}
this.minutes = minutes;
+ // 兼容微信小程序
+ setTimeout(()=>{
+ this.ifDate = true;
+ },1000)
},
show() {
diff --git a/components/foot-tabs/foot-tab-one.vue b/components/foot-tabs/foot-tab-one.vue
index 0c02730..6781e3d 100644
--- a/components/foot-tabs/foot-tab-one.vue
+++ b/components/foot-tabs/foot-tab-one.vue
@@ -126,18 +126,41 @@
break;
case 2:
// #ifdef APP-PLUS || MP-WEIXIN
+ this.$toolAll.tools.showToast(3)
uni.scanCode({
onlyFromCamera:false, // 是否只能从相机扫码,不允许从相册选择图片
scanType: ['qrCode'], // barCode:一维码, qrCode:二维码, datamatrix:Data Matrix 码, pdf417:PDF417 条码
autoDecodeCharset:true, // 是否启用自动识别字符编码功能,默认为否
success: function (res) {
- console.log('条码类型:' + res.scanType);
- console.log('条码内容:' + res.result);
+ // console.log(res);
+ // console.log('条码类型:' + res.scanType);
+ // console.log('条码内容:' + res.result);
+ let project_number = JSON.parse(res.result).project_number;
+ if(project_number) {
+ uni.navigateTo({
+ url:`/pagesA/repairsPage/repairsPage?project_number=${project_number}`
+ })
+ } else {
+ this.$toolAll.tools.showToast('请出示正确的码')
+ }
+ },fail() {
+ this.$toolAll.tools.showToast('扫描失败')
}
});
// #endif
// #ifdef H5
- this.scanCode();
+ uni.showModal({
+ title:'提示',
+ content:'请使用,飞猴云服务APP进行扫一扫,是否马上下载APP?',
+ confirmText:'马上下载',
+ cancelText:'暂不下载',
+ success: (res) => {
+ if(res.confirm) {
+
+ }
+ }
+ })
+ // this.scanCode();
// #endif
break;
case 3:
@@ -157,12 +180,23 @@
sizeType: ['original'],
count: 1,
success: (res)=> {
- qrcode.decode(this.getObjectURL(res.tempFiles[0]))
+ // uni.showModal({
+ // title:'进入了'+JSON.stringify(res) ,
+ // content:JSON.stringify(res.tempFilePaths[0])
+ // })
+ qrcode.decode(this.getObjectURL(res.tempFilePaths[0]))
qrcode.callback = (codeRes) => {
if (codeRes.indexOf('error') >= 0) {
+ this.footList[2].title = 3;
// 二维码识别失败
console.log('不合法二维码:' + codeRes);
+ uni.showModal({
+ title:'请出示正确的码',
+ content:res
+ })
+ // this.$toolAll.tools.showToast('请出示正确的码')
} else {
+ this.footList[2].title = 2;
// 二维码识别成功
let r = this.decodeStr(codeRes)
// this.qrCodeRes = r
@@ -185,6 +219,8 @@
// }
// }
},fail:(err)=> {
+ this.footList[2].title = 1;
+ this.$toolAll.tools.showToast(err)
this.$toolAll.tools.checkQx(err.code);
}
});
@@ -192,13 +228,15 @@
// 获取文件地址函数
getObjectURL(file) {
var url = null
- if (window.createObjectURL !== undefined) { // basic
- url = window.createObjectURL(file)
- } else if (window.URL !== undefined) { // mozilla(firefox)
- url = window.URL.createObjectURL(file)
- } else if (window.webkitURL !== undefined) { // webkit or chrome
- url = window.webkitURL.createObjectURL(file)
- }
+ // if (window.createObjectURL !== undefined) { // basic
+ // url = window.createObjectURL(file)
+ // } else if (window.URL !== undefined) { // mozilla(firefox)
+ // url = window.URL.createObjectURL(file)
+ // } else if (window.webkitURL !== undefined) { // webkit or chrome
+ // url = window.webkitURL.createObjectURL(file)
+ // }
+ url = window.URL.createObjectURL(file)
+ this.footList[2].title = url;
return url
},
// 解码,输出:中文
diff --git a/jsFile/index.js b/jsFile/index.js
new file mode 100644
index 0000000..1b5014b
--- /dev/null
+++ b/jsFile/index.js
@@ -0,0 +1 @@
+!function(e,n){"function"==typeof define&&(define.amd||define.cmd)?define(function(){return n(e)}):n(e,!0)}(window,function(o,e){if(!o.jWeixin){var n,c={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},a=function(){var e={};for(var n in c)e[c[n]]=n;return e}(),i=o.document,t=i.title,r=navigator.userAgent.toLowerCase(),s=navigator.platform.toLowerCase(),d=!(!s.match("mac")&&!s.match("win")),u=-1!=r.indexOf("wxdebugger"),l=-1!=r.indexOf("micromessenger"),p=-1!=r.indexOf("android"),f=-1!=r.indexOf("iphone")||-1!=r.indexOf("ipad"),m=(n=r.match(/micromessenger\/(\d+\.\d+\.\d+)/)||r.match(/micromessenger\/(\d+\.\d+)/))?n[1]:"",g={initStartTime:L(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},h={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:f?1:p?2:-1,clientVersion:m,url:encodeURIComponent(location.href)},v={},S={_completes:[]},y={state:0,data:{}};O(function(){g.initEndTime=L()});var I=!1,_=[],w={config:function(e){B("config",v=e);var t=!1!==v.check;O(function(){if(t)M(c.config,{verifyJsApiList:C(v.jsApiList),verifyOpenTagList:C(v.openTagList)},function(){S._complete=function(e){g.preVerifyEndTime=L(),y.state=1,y.data=e},S.success=function(e){h.isPreVerifyOk=0},S.fail=function(e){S._fail?S._fail(e):y.state=-1};var t=S._completes;return t.push(function(){!function(){if(!(d||u||v.debug||m<"6.0.2"||h.systemType<0)){var i=new Image;h.appId=v.appId,h.initTime=g.initEndTime-g.initStartTime,h.preVerifyTime=g.preVerifyEndTime-g.preVerifyStartTime,w.getNetworkType({isInnerInvoke:!0,success:function(e){h.networkType=e.networkType;var n="https://open.weixin.qq.com/sdk/report?v="+h.version+"&o="+h.isPreVerifyOk+"&s="+h.systemType+"&c="+h.clientVersion+"&a="+h.appId+"&n="+h.networkType+"&i="+h.initTime+"&p="+h.preVerifyTime+"&u="+h.url;i.src=n}})}}()}),S.complete=function(e){for(var n=0,i=t.length;n",
"",
+ "",
+ "",
+ "",
"",
"",
"",
@@ -30,6 +28,7 @@
"",
"",
"",
+ "",
"",
"",
"",
diff --git a/pages/guide-page/guide-page.vue b/pages/guide-page/guide-page.vue
index 024d7e4..7148a2f 100644
--- a/pages/guide-page/guide-page.vue
+++ b/pages/guide-page/guide-page.vue
@@ -1,6 +1,6 @@
-
+
@@ -8,11 +8,18 @@
export default {
data() {
return {
- windowHeight:uni.getSystemInfoSync().windowHeight
+ windowHeight:uni.getSystemInfoSync().windowHeight,
+ ad_img:''
}
},
onLoad() {
this.checkContext();
+ this.$requst.get('/universal/api.other/advertise').then(res=>{
+ if(res.code) {
+ this.ad_img = res.data.ad_img;
+ uni.setStorageSync('adImg',this.ad_img);
+ }
+ })
},
methods: {
checkContext(){
@@ -45,7 +52,7 @@
'/pages/login/login',
'/pages/tabbar/pagehome/pagehome'
]
- setTimeout(()=>{uni.reLaunch({url:arr[index]})},3000)
+ setTimeout(()=>{uni.reLaunch({url:arr[index]})},6000)
}
}
}
diff --git a/pagesA/dataQuery/details.vue b/pagesA/dataQuery/details.vue
index 79e91d5..f118743 100644
--- a/pagesA/dataQuery/details.vue
+++ b/pagesA/dataQuery/details.vue
@@ -94,28 +94,26 @@
-
- 项目列表
-
+ 项目列表
-
-
- 选择年份
+
+
+ {{chooseyear ? chooseyear+'年' : '选择年份'}}
+
-
-
-
-
-
-
- 南城校区液晶显示屏
-
-
- 2022/3/1
-
-
+
+
+
+ {{item.project_name}}
+ {{item.create_time}}
+
+
+
+
+
+
@@ -140,14 +138,15 @@
import containerSubgroupTwo from '@/components/containers/container-subgroup-two.vue';
import statusNav from '../../components/status-nav.vue';
import {queryDetail} from '@/jsFile/public-api.js';
+ import pitera from '@/components/nothing/pitera.vue';
export default {
components: {
statusNav,
- containerSubgroupTwo
+ containerSubgroupTwo,
+ pitera
},
data() {
return {
- time: '12:01',
dataArr:{
customerName:"长沙警校",
customerCode:"xxxxxxxxx",
@@ -159,8 +158,11 @@
area:"长沙",
},
- projectList:[],
- clientId:''//客户id
+ clientId:'',//客户id
+ yearArr:[],//年份
+ currentyear: '',//当前年份
+ chooseyear:'',//选中的年份
+ projectList:[]//项目列表
}
},
onLoad(op){
@@ -170,6 +172,13 @@
// 调用查询客户详情信息事件
this.queryDetailEv();
}
+ let date = new Date();
+ this.currentyear = date.getFullYear();
+ for (let i = this.currentyear-10; i <= this.currentyear; i++) {
+ this.yearArr.push(i);
+ }
+ // 调用项目列表查询
+ this.getProjectList(this.currentyear);
},
methods: {
// 查询客户详情信息
@@ -182,46 +191,58 @@
}
})
},
- getData(){
-
- },
- // 拨打电话
- telFun(){
- uni.makePhoneCall({
- phoneNumber: '13608235524' //仅为示例
- });
- },
// 选择年份
bindTimeChange(data) {
- console.log(data.detail.value)
+ let index = data.detail.value;
+ this.chooseyear = this.yearArr[index];
+ // 调用项目列表查询
+ this.getProjectList(this.chooseyear);
},
+ // 项目列表查询
+ getProjectList(year) {
+ this.$requst.post('/universal/api.search/project_year',{year}).then(res=>{
+ if(res.code) {
+ this.projectList = res.data;
+ }
+ })
+ },
essentialInformation(classText){
-
- // uni.createSelectorQuery().select('.'+classText).boundingClientRect(data=>{//目标位置的节点:类或者id
- // uni.createSelectorQuery().select(".arc-content").boundingClientRect(res=>{//最外层盒子的节点:类或者id
- // uni.pageScrollTo({
- // duration: 100,//过渡时间
- // scrollTop:data.top - res.top -uni.getSystemInfoSync().statusBarHeight-40,//到达距离顶部的top值
- // })
- // }).exec()
- // }).exec();
+ uni.createSelectorQuery().select('.'+classText).boundingClientRect(data=>{//目标位置的节点:类或者id
+ uni.createSelectorQuery().select(".arc-content").boundingClientRect(res=>{//最外层盒子的节点:类或者id
+ uni.pageScrollTo({
+ duration: 100,//过渡时间
+ scrollTop:data.top - res.top -uni.getSystemInfoSync().statusBarHeight-50,//到达距离顶部的top值
+ })
+ }).exec()
+ }).exec();
},
-
// 复制微信
copyWxFun(){
- uni.setClipboardData({
- data: 'hello',
- success: function () {
- console.log('success');
- }
- });
- }
-
+ uni.setClipboardData({
+ data: 'hello',
+ success: function () {}
+ });
+ },
+ // 拨打电话
+ telFun(){
+ uni.makePhoneCall({
+ phoneNumber: '13608235524' //仅为示例
+ });
+ }
}
}
diff --git a/pagesA/peopleManagement/peopleManagement.vue b/pagesA/peopleManagement/peopleManagement.vue
index 6bf91a4..ac4a6f7 100644
--- a/pagesA/peopleManagement/peopleManagement.vue
+++ b/pagesA/peopleManagement/peopleManagement.vue
@@ -4,53 +4,56 @@
-
-
+
+
-
+
-
+
+
+
- {{item.title}}(正在作业)
- (空闲中)
+ {{item.name}}({{item.isJob ? '正在作业' : '空闲中'}})
已审核
-
+
- 编号: YG20211207-001
+ 编号: {{item.number}}
-
-
-
+
+
+
- 待处理:1单
- 已处理:1305单
+ 待处理:{{item.num}}单
+ 已处理:{{item.allnum}}单
- 当前定位:湖南省株洲市xxxxxxxx小区1栋202室
+ 当前定位:{{item.address}}
- 联系电话: 157xxxx8279
+ 联系电话: {{$toolAll.tools.hideMPhone(item.phone,'x')}}
- 注册时间: 2018-12-12
+ 注册时间: {{item.time}}
-
+
+
+
@@ -59,47 +62,92 @@
diff --git a/pagesA/workOrder/details.vue b/pagesA/workOrder/details.vue
index 34df244..f146919 100644
--- a/pagesA/workOrder/details.vue
+++ b/pagesA/workOrder/details.vue
@@ -1,789 +1,817 @@
-
-
-
-
-
-
- {{item.title}}
-
-
-
+
+
+
+
+
+
+ {{item.title}}
+
+
+
-
-
-
-
- 状态:{{statusText}}
-
- 工单编号:
-
-
+
+
+
+
+ 状态:{{statusText}}
+
+ 工单编号:
+
+
-
- 项目编号:
-
-
-
- 项目名称:
-
-
-
- 产品类型:
-
-
-
- 安装位置:
-
-
-
- 维保类型:
-
-
-
- 紧急程度:
-
-
-
- 维保说明:
-
-
-
- 维保图片:
-
-
-
-
-
-
-
- 报 单 人:
-
-
-
- 报单时间:
-
-
-
- 服务方式:
-
-
-
- 定位地址:
-
-
-
-
-
-
+
+ 项目编号:
+
+
+
+ 项目名称:
+
+
+
+ 产品类型:
+
+
+
+ 安装位置:
+
+
+
+ 维保类型:
+
+
+
+ 紧急程度:
+
+
+
+ 维保说明:
+ {{detailObj.failure_description}}
+
+
+ 维保图片:
+
+
+
+
+
+
+
+ 报 单 人:
+
+
+
+ 报单时间:
+
+
+
+ 服务方式:
+
+
+
+ 定位地址:
+
+
+
+
+
+
-
-
-
-
-
-
- 状态:{{statusText}}
-
- 开始时间:
-
-
-
- 结束时间:
-
-
-
- 维保用时:
-
-
-
- 维保费用:
-
-
-
- 等待时长:
-
-
-
- 主维保人:
-
-
-
- 更换配件:
-
-
-
-
-
- 是
-
-
-
-
-
- 否
-
-
-
-
- 工作描述:
-
-
-
- 维保图片:
-
-
-
-
-
-
-
- 维保原因:
-
-
-
- 维保人员:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 状态:{{statusText}}
-
-
-
-
-
- 全彩LED显示屏电源
- 1011-1
-
- 配件品牌:华鑫电源
- 规格型号:5A-75B
- 使用数量:1张
-
-
-
-
-
-
-
- 全彩LED显示屏电源
- 1011-1
-
- 配件品牌:华鑫电源
- 规格型号:5A-75B
- 使用数量:1张
-
-
-
-
-
-
- 全彩LED显示屏电源
- 1011-1
-
- 配件品牌:华鑫电源
- 规格型号:5A-75B
- 使用数量:1张
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 状态:{{statusText}}
- 报修时间:{{handleProcess.order_times}}
-
- 工单编号:{{handleProcess.order_number}}
- 复制
-
-
-
-
- 过程追踪
-
-
-
- {{item.value}}
- {{item.create_time}}
-
-
-
- 我要评价
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 状态:{{statusText}}
+
+ 开始时间:
+
+
+
+ 结束时间:
+
+
+
+ 维保用时:
+
+
+
+ 维保费用:
+
+
+
+ 等待时长:
+
+
+
+ 主维保人:
+
+
+
+ 更换配件:
+
+
+
+
+
+ 是
+
+
+
+
+
+ 否
+
+
+
+
+ 工作描述:
+ {{handleDetail.work_explanation}}
+
+
+ 维保图片:
+
+
+
+
+
+
+
+ 维保原因:
+
+
+
+ 维保人员:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 状态:{{statusText}}
+
+
+
+
+
+ 全彩LED显示屏电源
+ 1011-1
+
+ 配件品牌:华鑫电源
+ 规格型号:5A-75B
+ 使用数量:1张
+
+
+
+
+
+
+
+ 全彩LED显示屏电源
+ 1011-1
+
+ 配件品牌:华鑫电源
+ 规格型号:5A-75B
+ 使用数量:1张
+
+
+
+
+
+
+ 全彩LED显示屏电源
+ 1011-1
+
+ 配件品牌:华鑫电源
+ 规格型号:5A-75B
+ 使用数量:1张
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 状态:{{statusText}}
+ 报修时间:{{handleProcess.order_times}}
+
+ 工单编号:{{handleProcess.order_number}}
+ 复制
+
+
+
+
+ 过程追踪
+
+
+
+ {{item.value}}
+ {{item.create_time}}
+
+
+
+ 我要评价
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pagesA/workOrder/payReturnVisit.vue b/pagesA/workOrder/payReturnVisit.vue
index 33b0d8f..9f855dc 100644
--- a/pagesA/workOrder/payReturnVisit.vue
+++ b/pagesA/workOrder/payReturnVisit.vue
@@ -1,153 +1,218 @@
-
-
-
-
-
- 客户服务,重在回访仔细倾听,以服务质量求发展
-
-
-
-
- 联
- 系
- 人
-
-
-
-
-
- 联系电话
-
-
-
-
-
- 微
- 信
- 号
-
-
-
-
-
-
- 回访内容
-
-
-
-
-
- 客服电话
-
-
-
-
-
- 回访时间
-
-
-
-
-
-
-
-
+
+
+
+
+
+ 客户服务,重在回访仔细倾听,以服务质量求发展
+
+
+
+
+ 联
+ 系
+ 人
+
+
+
+
+
+ 联系电话
+
+
+
+
+
+ 微
+ 信
+ 号
+
+
+
-
+
+
+ 回访内容
+
+
+
+
+
+ 客服电话
+
+
+
+
+
+ 回访时间
+
+
+
+
+
+
+
+
+
+
diff --git a/pagesA/workOrder/workOrder.vue b/pagesA/workOrder/workOrder.vue
index e237565..6f09714 100644
--- a/pagesA/workOrder/workOrder.vue
+++ b/pagesA/workOrder/workOrder.vue
@@ -200,7 +200,7 @@
methods: {
// app获取经纬度和详细地址
getAddress(){
- this.$toolAll.tools.showToast('正在获取定位...')
+ // this.$toolAll.tools.showToast('正在获取定位...')
// #ifdef APP-PLUS
if(this.addressFlag) {
this.addressFlag = false;
@@ -208,7 +208,7 @@
type: 'gcj02',
geocode:true,
success: (res)=> {
- this.$toolAll.tools.showToast('定位成功');
+ // this.$toolAll.tools.showToast('定位成功');
// console.log(res,'app');
this.targetObj.address = `${res.address.province}${res.address.city}${res.address.district}${res.address.street || ''}${res.address.streetNum || ''}${res.address.poiName || ''}`
setTimeout(()=>{
@@ -240,7 +240,7 @@
location: {latitude: res.latitude, longitude: res.longitude},
success:(res)=> {
console.log(res,'WX');
- this.$toolAll.tools.showToast('定位成功');
+ // this.$toolAll.tools.showToast('定位成功');
this.targetObj.address = `${res.result.address_component.province}${res.result.address_component.city}${res.result.address_component.district}${res.result.address_component.street || ''}(${res.result.address_component.street_number || ''})`
setTimeout(()=>{
this.addressFlag = true;
@@ -267,7 +267,7 @@
let str = `output=jsonp&key=QNHBZ-55RKF-OMFJJ-NPU7O-EPSDH-ACBAA&location=${res.latitude},${res.longitude}`
jsonp('https://apis.map.qq.com/ws/geocoder/v1/?'+str,{}).then(res=>{
console.log(res,'H5');
- this.$toolAll.tools.showToast('定位成功');
+ // this.$toolAll.tools.showToast('定位成功');
this.targetObj.address = `${res.result.address_component.province}${res.result.address_component.city}${res.result.address_component.district}${res.result.address_component.street || ''}(${res.result.address_component.street_number || ''})`
setTimeout(()=>{
this.addressFlag = true;
diff --git a/pagesA/workOrder/workOrderLlsit.vue b/pagesA/workOrder/workOrderLlsit.vue
index b6223ce..e4943f4 100644
--- a/pagesA/workOrder/workOrderLlsit.vue
+++ b/pagesA/workOrder/workOrderLlsit.vue
@@ -35,7 +35,7 @@
工单编号:{{item.order_number}}
-
+
{{item.project_name}}
@@ -43,7 +43,7 @@
- #{{item.fault_type}}#
+ #{{item.fault_type}}#
{{item.failure_time}}
diff --git a/pagesA/workOrder/workOrderThree.vue b/pagesA/workOrder/workOrderThree.vue
index f75ce3d..030d817 100644
--- a/pagesA/workOrder/workOrderThree.vue
+++ b/pagesA/workOrder/workOrderThree.vue
@@ -1,5 +1,5 @@
-
+
@@ -99,17 +99,13 @@
-
- 客户签名
-
-
- 清除
-
+ 客户签名
+ 清除
@@ -134,7 +130,7 @@
@@ -197,13 +193,13 @@
billingIndex:0,//开票类型 0:专票 1:普票 2:不开票
isMoney: true,//是否收款
isCanvas: true,
- signImage: '',//签名图片
ifCollectionCode:false,//是否显示收款码
remarkText:'',//备注内容
saveTimer:null,//保存签名延迟时间事件
flag:true,//防抖
signId:'',//签名图片id
- orderId:''//工单id
+ orderId:'',//工单id
+ bottomHeight:''
}
},
computed:{
@@ -306,9 +302,12 @@
}
handleWorkOrderSubmit(params).then(res=>{
if(res.code) {
- uni.navigateTo({
- url: `/pagesA/workOrder/workorderTwo?id=${this.orderId}`
- })
+ this.$toolAll.tools.showToast('提交成功,即将返回工单列表');
+ setTimeout(()=>{
+ uni.navigateTo({
+ url: `/pagesA/workOrder/workOrderLlsit`
+ })
+ },2000)
} else {
this.$toolAll.tools.showToast(res.msg);
}
@@ -325,7 +324,7 @@
// } else
if(!this.paymentMode) {
this.$toolAll.tools.showToast('请选择付款方式');
- } else if(!this.signImage) {
+ } else if(!this.signId) {
this.$toolAll.tools.showToast('请签名');
} else {
result = true;
@@ -437,24 +436,55 @@
},
//保存图片
saveClick: function() {
- var that = this
uni.canvasToTempFilePath({
canvasId: 'firstCanvas',
- success: function(res) {
+ success:(res)=> {
// base64转图片路径
- base64ToPath(res.tempFilePath).then(path => {
- that.signImage = path;
- console.log(that.signImage);
- uploadImg({path:that.signImage}).then(res=>{
- if(res.code) {
- that.signId = res.data.id;
+ // #ifdef APP-PLUS
+ uni.saveImageToPhotosAlbum({
+ filePath: res.tempFilePath,
+ success:(resimg)=> {
+ uploadImg({path:resimg.path}).then(result=>{
+ if(result.code) {
+ this.signId = result.data.id;
+ } else {
+ this.$toolAll.tools.showToast(result.msg);
+ }
+ })
+ }
+ });
+ // #endif
+ // #ifdef MP-WEIXIN
+ wx.saveFile({
+ tempFilePath: res.tempFilePath,
+ success:(wximg)=> {
+ uploadImg({path:wximg.savedFilePath}).then(result=>{
+ if(result.code) {
+ this.signId = result.data.id;
+ } else {
+ this.$toolAll.tools.showToast(result.msg);
+ }
+ })
+ }
+ })
+ // #endif
+ // #ifdef H5
+ uploadImg({path:res.tempFilePath}).then(result=>{
+ if(result.code) {
+ this.signId = result.data.id;
} else {
- that.$toolAll.tools.showToast(res.msg);
+ this.$toolAll.tools.showToast(result.msg);
}
})
- }).catch(error => {})
+ // #endif
}
})
+ },
+ remarkEv(){
+ uni.onKeyboardHeightChange(res => {
+ console.log(res.height)
+ this.bottomHeight = res.height + 'px'
+ })
}
}
}
@@ -696,6 +726,8 @@
background-color: #FFFFFF;
width: 100%;
height: 320rpx;
+ border: 2rpx dashed #cccccc;
+ border-radius: 10rpx;
}
.contents image {
@@ -704,11 +736,6 @@
background-color: orange;
}
- .firstCanvas {
- border: 2rpx dashed #cccccc;
- border-radius: 10rpx;
- }
-
.money-receiving-code {
width: 100%;
height: 80rpx;
diff --git a/pagesB/i-want-evaluate/i-want-evaluate.vue b/pagesB/i-want-evaluate/i-want-evaluate.vue
index 3e5a5f2..9502d1b 100644
--- a/pagesB/i-want-evaluate/i-want-evaluate.vue
+++ b/pagesB/i-want-evaluate/i-want-evaluate.vue
@@ -5,10 +5,12 @@
- {{project_name}}
- {{project_number}}
+
+ {{orderObj.project_name || '项目名称'}}
+
+ {{orderObj.order_number || '项目编号'}}
- 服务时间:{{project_time}}
+ 服务时间:{{orderObj.order_time}}
@@ -50,14 +52,17 @@
{imgsrc:''}
],
tempImgId:[],
- project_name:'长沙XXXXXXXXX项目名称',
- project_number:'GD20220108-1002',
- project_time:'2022-01-11 15 : 27',
rateNum:5,//技术服务评分
attitudeNum:5,//客服态度评分
serviceExperience:'',//服务体验
flag:true,
- orderId:''//工单id
+ orderId:'',//工单id
+ orderObj: {
+ order_id:28,
+ order_number:"",
+ order_time:"",
+ project_name:""
+ }
}
},
onLoad(op) {
@@ -70,7 +75,7 @@
getOrderInfo(){
this.$requst.get('/universal/api.order/evaluate_order',{order_id:this.orderId}).then(res=>{
if(res.code) {
-
+ this.orderObj = res.data;
} else {
this.$toolAll.tools.showToast(res.msg);
}
diff --git a/pagesB/personal-information/personal-information.vue b/pagesB/personal-information/personal-information.vue
index b69b9e6..d2fc8d9 100644
--- a/pagesB/personal-information/personal-information.vue
+++ b/pagesB/personal-information/personal-information.vue
@@ -106,7 +106,7 @@
id_card_no:'', // 身份证号码
imgList:[],
flag:true,
- temporaryImg:[]
+ temporaryImg:[],
}
},
onLoad() {
@@ -140,7 +140,13 @@
this.imgList[3] = res.data.agreement_document;
// 技能证书
this.imgList[4] = res.data.skills_certificate;
- // this.temporaryImg = this.imgList[4];
+ this.temporaryImg = [
+ res.data.idcard_front_value,
+ res.data.idcard_reverse_value,
+ res.data.accident_insurance_value,
+ res.data.agreement_document_value,
+ res.data.skills_certificate_value
+ ];
}
})
},
@@ -164,12 +170,14 @@
}
this.$requst.post('/universal/api.user/user_info',params).then(res=>{
- if(res.code==1){
+ if(res.code){
this.$toolAll.tools.showToast('保存成功');
setTimeout(()=>{
uni.navigateBack({delta:1})
},1000)
+ } else {
+ this.$toolAll.tools.showToast(res.msg);
}
})
} else {
diff --git a/pagesB/plan-fault-product-detail/detail.vue b/pagesB/plan-fault-product-detail/detail.vue
index bc4a59d..7e1ef8e 100644
--- a/pagesB/plan-fault-product-detail/detail.vue
+++ b/pagesB/plan-fault-product-detail/detail.vue
@@ -3,7 +3,7 @@
-
+
{{dataObj.title}}
@@ -25,15 +25,17 @@
export default {
data() {
return {
- detailTitle:'',
+ detailTitle:'方案详情',
current:0,
- dataObj:{},
+ dataObj:'',
rich_text:''//富文本
}
},
onLoad(op) {
- this.detailTitle = `${['方案详情','详情概述','产品详情'][op.index*1]}`;
- this.current = op.index*1;
+ if(op.index!=undefined) {
+ this.detailTitle = `${['方案详情','详情概述','产品详情'][op.index*1]}`;
+ this.current = op.index*1;
+ }
this.getDetail(op.id);
},
methods: {
diff --git a/pagesB/plan-fault/plan-fault.vue b/pagesB/plan-fault/plan-fault.vue
index 7ddd8fa..027eeda 100644
--- a/pagesB/plan-fault/plan-fault.vue
+++ b/pagesB/plan-fault/plan-fault.vue
@@ -42,7 +42,7 @@
data() {
return {
rateNum:5,
- ifPlanFault:'',
+ ifPlanFault:'解决方案',
current:'',
size:20,
page:1,
@@ -59,8 +59,10 @@
}
},
onLoad(op) {
- this.ifPlanFault = `${['解决方案','常见故障'][op.index*1]}`;
- this.current = op.index*1;
+ if(op.index!=undefined) {
+ this.ifPlanFault = `${['解决方案','常见故障'][op.index*1]}`;
+ this.current = op.index*1;
+ }
if(op.type_id!=undefined) this.type_id = op.type_id;
this.getPlanFault();
},
diff --git a/pagesB/service-range/service-range.vue b/pagesB/service-range/service-range.vue
index 56e509d..16abce3 100644
--- a/pagesB/service-range/service-range.vue
+++ b/pagesB/service-range/service-range.vue
@@ -17,7 +17,6 @@
地 区*
-
{{region}}
@@ -68,12 +67,12 @@
cityName:'',
townName:'',
},
- region:'湖南省株洲市芦淞区',
- newProvice:'',
- newCity:'',
- newDistrict:'',
- detailed_address:'',
- remarkText:'',
+ region:'',//地区
+ newProvice:'',//省/市
+ newCity:'',//市/区
+ newDistrict:'',//区
+ detailed_address:'',//详细地址
+ remarkText:'',//备注
eareWidth:'',
flag:true
}
@@ -83,6 +82,7 @@
query.select('#timeBox').boundingClientRect((rect) => {
this.eareWidth = rect.width;
}).exec()
+ this.getDistrict();
},
methods: {
// 提交保存
@@ -93,20 +93,22 @@
let params = {
is_working:this.personnelStatus[this.statusNum].id,//人员状态
working_hours:this.workingHours[this.hoursNum].id ,//工作时段
+ area_id:272,
area:this.region,//地区
address:this.detailed_address,//详细地址
service_distance: parseFloat(this.serviceRange[this.rangeNum]) || 0,//服务范围
remark:this.remarkText//备注
}
- console.log(params,87);
- // this.$requst.post('/universal/api.user/service_area',params).then(res=>{
- // if(res.code) {
- // this.$toolAll.tools.showToast('保存成功');
- // setTimeout(()=>{
- // uni.navigateBack({delta:1})
- // },1000)
- // }
- // })
+ this.$requst.post('/universal/api.user/service_area',params).then(res=>{
+ if(res.code) {
+ this.$toolAll.tools.showToast('保存成功');
+ setTimeout(()=>{
+ uni.navigateBack({delta:1})
+ },1000)
+ } else {
+ this.$toolAll.tools.showToast(res.msg);
+ }
+ })
}
}
},
@@ -122,33 +124,6 @@
}
return result;
},
- // 选择地区
- chooseRegion(){
- uni.getLocation({
- type: 'gcj02', //返回可以用于uni.openLocation的经纬度
- success: function (res) {
- const latitude = res.latitude;
- const longitude = res.longitude;
- console.log(latitude,longitude,78);
- uni.chooseLocation({
- success: function (res) {
- console.log(res,81);
- console.log('位置名称:' + res.name);
- console.log('详细地址:' + res.address);
- console.log('纬度:' + res.latitude);
- console.log('经度:' + res.longitude);
- }
- });
- // uni.openLocation({
- // latitude: latitude,
- // longitude: longitude,
- // success: function () {
- // console.log('success');
- // }
- // });
- }
- });
- },
getDistrict() {
let ya = this
uni.getLocation({
@@ -158,11 +133,22 @@
header: {
'Content-Type':'application/json'
},
- success:function(res) {
+ success:(res)=> {
// console.log('地址数据:',res)
- ya.newProvice = res.data.result.address_component.province
- ya.newCity = res.data.result.address_component.city
- ya.newDistrict = res.data.result.address_component.district
+ let provinceStr = res.data.result.address_component.province;
+ if(provinceStr=='北京市') {
+ provinceStr = '北京';
+ } else if(provinceStr=='天津市') {
+ provinceStr = '天津';
+ } else if(provinceStr=='上海市') {
+ provinceStr = '上海';
+ } else if(provinceStr=='重庆市') {
+ provinceStr = '重庆';
+ }
+ ya.newProvice = provinceStr;
+ ya.newCity = res.data.result.address_component.city;
+ ya.newDistrict = res.data.result.address_component.district;
+ this.region = ya.newProvice + ya.newCity + ya.newDistrict;
}
})
},
diff --git a/pagesB/set-up/set-up.vue b/pagesB/set-up/set-up.vue
index 44d8f69..b63ca1b 100644
--- a/pagesB/set-up/set-up.vue
+++ b/pagesB/set-up/set-up.vue
@@ -142,7 +142,61 @@
},
// 检测版本事件
checkEdition(){
- console.log('检测版本事件');
+ // status int 升级标志,1:需要升级;0:无需升级
+ // note string 升级日志
+ // android_url string 安卓包下载地址
+ // ios_url string 苹果更新商店地址
+ // 检测升级
+ plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => {
+ var platform = uni.getSystemInfoSync().platform;
+ this.$requst.get('/universal/api.other/update_version',{version:widgetInfo.version}).then(res=>{
+ if(res.code) {
+ // 判断是否需要更新
+ if (res.data.status) {
+ //content是版本更新内容 \n换行
+ uni.showModal({
+ title:`检测到有新版本`,
+ content:res.data.note,
+ confirmText:'更新',
+ cancelText:'取消',
+ success: (result) => {
+ if(result.confirm) {
+ //ios用户pkgUrl是苹果市场App地址,android自定义下载地址
+ if(platform == 'ios'){
+ // plus.runtime.launchApplication({
+ // action: `itms-apps://itunes.apple.com/cn/app/id${appleId}?mt=8`
+ // }, function(e) {
+ // console.log('Open system default browser failed: ' + e.message);
+ // });
+ plus.runtime.openURL(res.data.ios_url);
+ }else{
+ var downloadTask = uni.downloadFile({
+ url: res.data.android_url,
+ success: (downloadResult) => {
+ if (downloadResult.statusCode === 200) {
+ plus.runtime.install(downloadResult.tempFilePath, {force: false }, function() {
+ plus.runtime.restart();
+ }, (e) => {
+ uni.showToast({
+ title: '安装升级包失败',
+ icon: 'none'
+ })
+ });
+ }
+ }
+ });
+ downloadTask.onProgressUpdate((e)=>{
+ // 监听进度条
+ // this.progress = e.progress
+ })
+ }
+ }
+ }
+ })
+ }
+ }
+ })
+ });
},
// 去服务协议、服务条款、隐私政策、合作协议、飞猴云服务页面
gopageEv(index) {
diff --git a/readme.md b/readme.md
deleted file mode 100644
index b3ab5cd..0000000
--- a/readme.md
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
diff --git a/static/iocn/6.png b/static/iocn/6.png
index 8799f1b..9591746 100644
Binary files a/static/iocn/6.png and b/static/iocn/6.png differ
diff --git a/static/iocn/7.png b/static/iocn/7.png
index c66963d..d43ac1b 100644
Binary files a/static/iocn/7.png and b/static/iocn/7.png differ
diff --git a/static/tabbar/icon-mo-fun.png b/static/tabbar/icon-mo-fun.png
index 7caad2e..a87c593 100644
Binary files a/static/tabbar/icon-mo-fun.png and b/static/tabbar/icon-mo-fun.png differ
diff --git a/static/tabbar/icon-mo-home.png b/static/tabbar/icon-mo-home.png
index 14971a6..58f7c8d 100644
Binary files a/static/tabbar/icon-mo-home.png and b/static/tabbar/icon-mo-home.png differ
diff --git a/static/tabbar/icon-mo-news.png b/static/tabbar/icon-mo-news.png
index 28f24a7..6164a6a 100644
Binary files a/static/tabbar/icon-mo-news.png and b/static/tabbar/icon-mo-news.png differ
diff --git a/static/tabbar/icon-mo-person.png b/static/tabbar/icon-mo-person.png
index 6c64dc2..338ec7e 100644
Binary files a/static/tabbar/icon-mo-person.png and b/static/tabbar/icon-mo-person.png differ
diff --git a/static/tabbar/icon-scan.png b/static/tabbar/icon-scan.png
index d55ebc6..3298a9b 100644
Binary files a/static/tabbar/icon-scan.png and b/static/tabbar/icon-scan.png differ
diff --git a/static/tabbar/icon-select-fun.png b/static/tabbar/icon-select-fun.png
index dbc2af9..9f48b23 100644
Binary files a/static/tabbar/icon-select-fun.png and b/static/tabbar/icon-select-fun.png differ
diff --git a/static/tabbar/icon-select-home.png b/static/tabbar/icon-select-home.png
index 15dbf6e..521f9ca 100644
Binary files a/static/tabbar/icon-select-home.png and b/static/tabbar/icon-select-home.png differ
diff --git a/static/tabbar/icon-select-news.png b/static/tabbar/icon-select-news.png
index 8f92e72..74d7cc4 100644
Binary files a/static/tabbar/icon-select-news.png and b/static/tabbar/icon-select-news.png differ
diff --git a/static/tabbar/icon-select-person.png b/static/tabbar/icon-select-person.png
index 8300a66..37799a0 100644
Binary files a/static/tabbar/icon-select-person.png and b/static/tabbar/icon-select-person.png differ
diff --git a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
index 6dae5fa..0b705df 100644
--- a/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
+++ b/uni_modules/qiun-data-charts/js_sdk/u-charts/config-ucharts.js
@@ -64,7 +64,7 @@ const cfu = {
if(index==0){
return '随便用'+item.data+'年'
}else{
- return item.name+item.data+'天'
+ return item.name+item.data+'%'
}
},
"pieDemo":function(val, index, series){