static文件下的图片压缩
16
App.vue
|
@ -9,26 +9,18 @@
|
|||
// 优先于show方法
|
||||
onLaunch: function() {
|
||||
// 配置全局域名
|
||||
// #ifdef APP-PLUS
|
||||
this.globalData.hostapi = 'https://7and5.cn';
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
this.globalData.hostapi = 'https://7and5.cn';
|
||||
// #endif
|
||||
// #ifdef H5
|
||||
this.globalData.hostapi = 'https://7and5.cn';
|
||||
// this.globalData.hostapi = '/web';
|
||||
// #endif
|
||||
},
|
||||
onShow: function() {
|
||||
// if(uni.getStorageSync('token')){
|
||||
// 刷新token
|
||||
// this.$toolAll.tools.refreshToken();
|
||||
if(uni.getStorageSync('token')){
|
||||
// 每十分钟更新用户地理位置
|
||||
this.$toolAll.tools.renewLocationEv();
|
||||
// }
|
||||
// 检测是否开启GPS定位服务
|
||||
this.$toolAll.tools.checkOpenGPSServiceByAndroidIOS();
|
||||
// 检测是否开启GPS定位服务
|
||||
this.$toolAll.tools.checkOpenGPSServiceByAndroidIOS();
|
||||
}
|
||||
},
|
||||
onHide: function() {
|
||||
|
||||
|
|
|
@ -132,7 +132,15 @@
|
|||
},
|
||||
onLoad(op) {
|
||||
this.getType()
|
||||
if (op.index != undefined) this.typeIndex = op.index;
|
||||
if (op.index != undefined) {
|
||||
if(op.index==2) {
|
||||
this.typeIndex = 3;
|
||||
} else if(op.index==3) {
|
||||
this.typeIndex = 2;
|
||||
} else {
|
||||
this.typeIndex = op.index;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 切换类型
|
||||
|
|
|
@ -75,8 +75,8 @@
|
|||
<view class="list">
|
||||
<view class="li pad-z40 fon27 col9" :class="index==0 ? 'activeTrack' : ''" v-for="(item,index) in recordList" :key="index">
|
||||
<view class="disac fw line-h60">
|
||||
<view class="text">{{item.time_line}}</view>
|
||||
<!-- <view class="date">2020-05-15 16:00</view> -->
|
||||
<view class="text">{{item.value}}</view>
|
||||
<view class="date">{{item.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<pitera v-if="recordList.length==0" :textStr="nomoreText"></pitera>
|
||||
|
@ -142,9 +142,11 @@
|
|||
this.$requst.get('/universal/api.project/recording',params).then(res=>{
|
||||
if(res.code) {
|
||||
/**
|
||||
* {
|
||||
* time_line:''
|
||||
* }
|
||||
{
|
||||
order_id:23
|
||||
time:"2022-04-18"
|
||||
value:"【其打嗝】提交 供电不足 工单 GD20220418-000022"
|
||||
}
|
||||
*/
|
||||
this.recordList = res.data.data;
|
||||
} else {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<view slot="content" style="margin:-30rpx -30rpx 0 -30rpx;">
|
||||
<view class="details-nav" :style="{top:statusBarHeight + 'px'}">
|
||||
<view class="li pad-sx36" @click="detailsNavpa(index)" :class="item.state?'on':''"
|
||||
v-for="(item,index) in detailsNav">
|
||||
v-for="(item,index) in detailsNav" :key="index">
|
||||
{{item.title}}
|
||||
</view>
|
||||
</view>
|
||||
|
@ -258,8 +258,8 @@
|
|||
swiperCurrent: 0,
|
||||
swiHeight:0,
|
||||
statusBarHeight:uni.getSystemInfoSync().statusBarHeight + 40,
|
||||
statusText:'',
|
||||
isrideo: true,
|
||||
statusText:'',//状态文字
|
||||
statusColor:'',//状态背景颜色
|
||||
detailsNav: [{
|
||||
title: "基础信息",
|
||||
state: true
|
||||
|
@ -296,6 +296,7 @@
|
|||
onLoad(op) {
|
||||
this.statusText = op.statusText;
|
||||
this.statusColor = op.statusColor;
|
||||
console.log(this.statusColor,299);
|
||||
if(op.orderId!=undefined) {
|
||||
this.orderId = op.orderId;
|
||||
// 调取获取工单详情事件
|
||||
|
@ -334,9 +335,6 @@
|
|||
}
|
||||
})
|
||||
},
|
||||
isrideoFun(is) {
|
||||
this.isrideo = is
|
||||
},
|
||||
copy(value) {
|
||||
//提示模板
|
||||
uni.showModal({
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<view class="text clips1">{{item.project_name}}</view>
|
||||
<view class="icon" :style="{backgroundColor: item.btn.attributes.color || '#DDDDDD'}">{{item.btn.attributes.text}}</view>
|
||||
</view>
|
||||
<view class="disjb fc line-h38" style="margin-left: -20rpx;">
|
||||
<view class="disjb fc line-h36" style="margin-left: -20rpx;">
|
||||
<view class="serial-number scal09">
|
||||
<view class="type">#{{item.fault_type}}#</view>
|
||||
<view class="date">{{item.failure_time}}</view>
|
||||
|
@ -111,6 +111,7 @@
|
|||
}
|
||||
},
|
||||
onReachBottom() {
|
||||
console.log(this.total,this.dataList.length,114);
|
||||
if(this.total!=this.dataList.length) {
|
||||
this.dataPage.page++;
|
||||
this.getDatalist();
|
||||
|
@ -130,12 +131,18 @@
|
|||
// this.$toolAll.tools.showToast(res.msg);
|
||||
if (res.code) {
|
||||
this.array=[...res.data]
|
||||
// 调用获取工单列表事件
|
||||
if(this.statusId){
|
||||
this.workeOrderStatusIndex = this.array.findIndex(item=>item.id==this.statusId);
|
||||
if(this.workeOrderStatusIndex!=-1) this.workeOrderStatus = '';
|
||||
if(this.workeOrderStatusIndex!=-1) {
|
||||
this.workeOrderStatus = '';
|
||||
this.dataPage.order_status = this.array[this.workeOrderStatusIndex].id;
|
||||
}
|
||||
}
|
||||
this.getDatalist();
|
||||
// 如果页数等于1
|
||||
if(this.dataPage.page==1) {
|
||||
// 调用获取工单列表事件
|
||||
this.getDatalist();
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 375 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 708 B |
Before Width: | Height: | Size: 589 B After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 573 B After Width: | Height: | Size: 441 B |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 511 B After Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 915 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 227 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 716 B After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 497 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 678 B After Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 951 B After Width: | Height: | Size: 589 B |
Before Width: | Height: | Size: 768 B After Width: | Height: | Size: 564 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 857 B |
Before Width: | Height: | Size: 681 B After Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 902 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 817 B |
Before Width: | Height: | Size: 576 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 740 B |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 854 B After Width: | Height: | Size: 539 B |
Before Width: | Height: | Size: 404 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 660 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 242 B |
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 238 B |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 661 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 867 B After Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 162 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 819 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 885 B |
Before Width: | Height: | Size: 794 B After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 544 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 640 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 777 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 646 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 862 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 244 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 598 B |