Commit ddbfeaaf by 蒋秀川

'jxc'

1 parent 71258b46
...@@ -3,7 +3,7 @@ import { ...@@ -3,7 +3,7 @@ import {
getPatrolRecordList getPatrolRecordList
} from "../../api/tour.js"; } from "../../api/tour.js";
const App = getApp(); const App = getApp();
import _ from 'underscore';
Page({ Page({
/** /**
...@@ -47,22 +47,27 @@ Page({ ...@@ -47,22 +47,27 @@ Page({
], ],
tourItems:[{ tourItems:[{
id:1,
name: '实时监控', name: '实时监控',
icon: '8', icon: '8',
path: '/pages/tour/gate/index?type=view' path: '/pages/tour/gate/index?type=view'
},{ },{
id:2,
name: '远程巡店', name: '远程巡店',
icon: '9', icon: '9',
path: '/pages/tour/gate/index?type=tour' path: '/pages/tour/gate/index?type=tour'
},{ },{
id:3,
name: '点检巡店', name: '点检巡店',
icon: '10', icon: '10',
path: '/pages/tour/point/index' path: '/pages/tour/point/index'
},{ },{
id:4,
name: '我发起的', name: '我发起的',
icon: '11', icon: '11',
path: '/pages/tour/list/index?type=create' path: '/pages/tour/list/index?type=create'
},{ },{
id:5,
name: '待我处理', name: '待我处理',
icon: '12', icon: '12',
path: '/pages/tour/list/index?type=handle' path: '/pages/tour/list/index?type=handle'
...@@ -84,7 +89,21 @@ Page({ ...@@ -84,7 +89,21 @@ Page({
this.setData({ menuItems }) this.setData({ menuItems })
} }
}, },
onShow:function(){
let name = wx.getStorageSync('name');
Promise.all([getPatrolRecordList({status:2,createBy:name}),getPatrolRecordList({status:1,handler:name})]).then(res=>{
let total1 = res[0].data.total;
let total2 = res[1].data.total;
let tourItems = this.data.tourItems;
let titem1 = _.findWhere(tourItems,{id:4});
titem1.dot = total1;
let titem2 = _.findWhere(tourItems,{id:5});
titem2.dot = total2;
this.setData({
tourItems
})
})
},
goOtherPage: function(e) { goOtherPage: function(e) {
const { path } = e.currentTarget.dataset.value const { path } = e.currentTarget.dataset.value
wx.navigateTo({ url: path }) wx.navigateTo({ url: path })
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<view wx:for="{{tourItems}}" wx:for-index="index" wx:for-item="n" wx:key="index" class="item" bindtap="goOtherPage" data-value="{{n}}"> <view wx:for="{{tourItems}}" wx:for-index="index" wx:for-item="n" wx:key="index" class="item" bindtap="goOtherPage" data-value="{{n}}">
<image src="{{ '../../images/icon/' + n.icon + '.png' }}" class="img" /> <image src="{{ '../../images/icon/' + n.icon + '.png' }}" class="img" />
<view class="tit">{{n.name}}</view> <view class="tit">{{n.name}}</view>
<view class="dot" wx:if="{{n.dot}}"></view>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -40,6 +40,15 @@ ...@@ -40,6 +40,15 @@
text-align: center; text-align: center;
margin-top: 10rpx; margin-top: 10rpx;
} }
.part-list .part .list .item .dot{
position: absolute;
width: 20rpx;
height: 20rpx;
border-radius: 50%;
background-color: #f00;
top:2px;
right: 24rpx;
}
.zong-content { .zong-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
...@@ -78,7 +78,14 @@ Page({ ...@@ -78,7 +78,14 @@ Page({
mask: true mask: true
}) })
login(params).then((res) => { login(params).then((res) => {
if(res.code==200){
this.dealData(res) this.dealData(res)
}else{
wx.showToast({
icon:'error',
title: '用户名密码错误',
});
}
}) })
}, },
...@@ -90,6 +97,7 @@ Page({ ...@@ -90,6 +97,7 @@ Page({
wx.setStorage({ data: res.data.user.type, key: 'userrole_type' }) wx.setStorage({ data: res.data.user.type, key: 'userrole_type' })
await wx.setStorage({ data: res.data.atoken, key: 'atoken' }) await wx.setStorage({ data: res.data.atoken, key: 'atoken' })
wx.setStorage({ data: res.data.user.accountId||2, key: 'accountId' }) wx.setStorage({ data: res.data.user.accountId||2, key: 'accountId' })
wx.setStorage({ data: res.data.user.id, key: 'uid' });
getApps({ getApps({
url: '/report/auth/api/v1/auth/apps', url: '/report/auth/api/v1/auth/apps',
header: { 'Authorization': res.data.atoken } header: { 'Authorization': res.data.atoken }
......
...@@ -9,12 +9,15 @@ import _ from 'underscore'; ...@@ -9,12 +9,15 @@ import _ from 'underscore';
import Dialog from '../../../../miniprogram_npm/@vant/weapp/dialog/dialog'; import Dialog from '../../../../miniprogram_npm/@vant/weapp/dialog/dialog';
const customBehavior = require('../../../../extends/custom.behavior.js'); const customBehavior = require('../../../../extends/custom.behavior.js');
let tourArrayList = []; let tourArrayList = [];
let assosArrayList = [];
Component({ Component({
behaviors: [customBehavior], behaviors: [customBehavior],
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
tval:Number,
pid:Number,
gateId: Number, gateId: Number,
gateName:String, gateName:String,
mallId: Number, mallId: Number,
...@@ -96,13 +99,14 @@ Component({ ...@@ -96,13 +99,14 @@ Component({
}) })
}, },
changeTourList(type){ changeTourList(type){
let sopList = JSON.parse(JSON.stringify(tourArrayList)); let sopList;// JSON.parse(JSON.stringify(tourArrayList));
if(type==1){ if(type==1){
sopList = _.where(sopList,{associated:1}) sopList = assosArrayList;
}else{
sopList = tourArrayList;
} }
this.setData({ this.setData({
sopList, sopList
remark: ''
},()=>{ },()=>{
this.setData({ this.setData({
activeSop: _.pluck(sopList, 'id'), activeSop: _.pluck(sopList, 'id'),
...@@ -125,12 +129,17 @@ Component({ ...@@ -125,12 +129,17 @@ Component({
system: 0 system: 0
}); });
tourArrayList=[]; tourArrayList=[];
assosArrayList = [];
_.each(data, item => { _.each(data, item => {
if (item.sopProjects.length > 0) { if (item.sopProjects.length > 0) {
let sopProjects = item.sopProjects let sopProjects = item.sopProjects
sopProjects.forEach(item1 => { sopProjects.forEach(item1 => {
item1.pName = item.name item1.pName = item.name;
if(item1.associated==1){
assosArrayList.push(item1);
}else{
tourArrayList.push(item1); tourArrayList.push(item1);
}
}) })
} }
}) })
...@@ -196,15 +205,15 @@ Component({ ...@@ -196,15 +205,15 @@ Component({
}, },
submitBtn() { submitBtn() {
let that = this; let that = this;
let noSelect = _.filter(this.data.sopList, sop => { // let noSelect = _.filter(this.data.sopList, sop => {
return ![-1, 0, 1].includes(sop.status); // return ![-1, 0, 1].includes(sop.status);
}) // })
if (noSelect.length) { // if (noSelect.length) {
return wx.showToast({ // return wx.showToast({
title: '您还有未选择的记录', // title: '您还有未选择的记录',
icon: 'none' // icon: 'none'
}); // });
} // }
let hasNo = _.findWhere(this.data.sopList, { let hasNo = _.findWhere(this.data.sopList, {
status: 0 status: 0
}); });
...@@ -240,15 +249,21 @@ Component({ ...@@ -240,15 +249,21 @@ Component({
accountId: wx.getStorageSync('accountId'), accountId: wx.getStorageSync('accountId'),
mallId: this.data.mallId, mallId: this.data.mallId,
gateId: this.data.gateId, gateId: this.data.gateId,
picUrl: fileUrls.join(',') picUrl: fileUrls.join(','),
patrolType:this.data.tval
}; };
if(formData.patrolType==2){
formData.patrolCaptureRecordId = this.data.pid;
}
if (this.data.dealBody) { if (this.data.dealBody) {
formData.handler =this.data.dealBody.loginName; formData.handler =this.data.dealBody.loginName;
} }
if (this.data.remark) { if (this.data.remark) {
formData.remark = this.data.remark; formData.remark = this.data.remark;
} }
formData.sops = JSON.stringify(_.map(this.data.sopList, item => { formData.sops = JSON.stringify(_.map(_.filter([...tourArrayList,...assosArrayList],item=>{
return [-1, 0, 1].includes(item.status);
}), item => {
return { return {
id: item.id, id: item.id,
status: item.status, status: item.status,
...@@ -289,6 +304,8 @@ Component({ ...@@ -289,6 +304,8 @@ Component({
this.setData({ this.setData({
dealBody: evt.detail, dealBody: evt.detail,
selectBody: false selectBody: false
},()=>{
this.submitBtn();
}); });
} }
} }
......
...@@ -62,7 +62,6 @@ ...@@ -62,7 +62,6 @@
<view class="sbView"> <view class="sbView">
<van-button type="info" bindtap="submitBtn" round block custom-style="font-size:16px;font-weight:600;letter-spacing:4px;">提交</van-button> <van-button type="info" bindtap="submitBtn" round block custom-style="font-size:16px;font-weight:600;letter-spacing:4px;">提交</van-button>
</view> </view>
</view> </view>
<van-dialog id="van-dialog" /> <van-dialog id="van-dialog" />
<van-action-sheet <van-action-sheet
......
...@@ -4,7 +4,8 @@ page{--font-weight-bold:600;} ...@@ -4,7 +4,8 @@ page{--font-weight-bold:600;}
position: relative; position: relative;
width: 750rpx; width: 750rpx;
--cell-font-size:28rpx; --cell-font-size:28rpx;
padding-bottom: 20rpx; padding-bottom: 150rpx;
z-index: 9;
} }
.aview{ .aview{
padding:0rpx 0rpx 10rpx; padding:0rpx 0rpx 10rpx;
...@@ -73,8 +74,10 @@ page{--font-weight-bold:600;} ...@@ -73,8 +74,10 @@ page{--font-weight-bold:600;}
height: 176rpx; height: 176rpx;
} }
.sbView{ .sbView{
position: fixed;
left:20rpx;
bottom:20rpx;
width: 710rpx; width: 710rpx;
margin: 40rpx auto 0;
} }
van-popup{--action-sheet-max-height:60%} van-popup{--action-sheet-max-height:60%}
van-popup button{border-bottom: 1px dashed rgba(0,0,0,0.1);} van-popup button{border-bottom: 1px dashed rgba(0,0,0,0.1);}
......
...@@ -25,6 +25,11 @@ Page({ ...@@ -25,6 +25,11 @@ Page({
type type
}); });
}, },
goBack(){
wx.switchTab({
url: '/pages/home/index'
})
},
onChange(evt) { onChange(evt) {
this.setData({ this.setData({
activeMall: evt.detail activeMall: evt.detail
......
<view class="malllist" style="padding-top: {{navHeight}}px;"> <view class="malllist" style="padding-top: {{navHeight}}px;">
<navbar2 bg-color="#fff" navbar-color="#000"> <navbar2 bg-color="#fff" navbar-color="#000">
<view class="navtitle"> <view class="navtitle">
<van-icon bindtap="onGoBack" size="24" name="arrow-left" custom-class="back"/> <van-icon bindtap="goBack" size="24" name="arrow-left" custom-class="back"/>
<view class="title">选择监控点</view> <view class="title">选择监控点</view>
</view> </view>
</navbar2> </navbar2>
......
...@@ -27,6 +27,17 @@ Page({ ...@@ -27,6 +27,17 @@ Page({
picUrl: '', picUrl: '',
tourType:'1' tourType:'1'
}, },
onBack(){
if(this.data.tval==2){
wx.navigateBack({
delta: 0,
});
}else{
wx.redirectTo({
url: '/pages/tour/gate/index',
})
}
},
backBtn(evt) { backBtn(evt) {
this.setData({ this.setData({
gateSelect: false gateSelect: false
...@@ -143,12 +154,16 @@ Page({ ...@@ -143,12 +154,16 @@ Page({
id, id,
mallId, mallId,
title, title,
picUrl picUrl,
pid=0,
tval=1
} = options; } = options;
// wx.showLoading({ // wx.showLoading({
// title: '加载中', // title: '加载中',
// }); // });
this.setData({ this.setData({
tval,
pid,
type: 'tour', type: 'tour',
gateId: id, gateId: id,
gateName: decodeURIComponent(title), gateName: decodeURIComponent(title),
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view class="container" style="padding-top: {{navHeight}}px"> <view class="container" style="padding-top: {{navHeight}}px">
<navbar2 bg-color="#fff" navbar-color="#000"> <navbar2 bg-color="#fff" navbar-color="#000">
<view class="navtitle"> <view class="navtitle">
<van-icon bindtap="onGoBack" size="24" name="arrow-left" custom-class="back"/> <van-icon bindtap="onBack" size="24" name="arrow-left" custom-class="back"/>
<view class="title" bindtap="showGates">{{gateName}}<van-icon name="arrow-down" custom-class="drop"/></view> <view class="title">{{gateName}}</view>
</view> </view>
</navbar2> </navbar2>
<!-- 视频截图 S --> <!-- 视频截图 S -->
...@@ -19,6 +19,6 @@ ...@@ -19,6 +19,6 @@
<van-tab title="其他检查项"></van-tab> <van-tab title="其他检查项"></van-tab>
</van-tabs> </van-tabs>
<!-- 开始巡店记录 S--> <!-- 开始巡店记录 S-->
<tour-upload type="{{tourType}}" bindupload="startUpload" id="upload" bindtourOther="showGates" mall-id="{{mallId}}" gate-id="{{gateId}}" gate-name="{{gateName}}"></tour-upload> <tour-upload type="{{tourType}}" bindupload="startUpload" id="upload" bindtourOther="showGates" mall-id="{{mallId}}" gate-id="{{gateId}}" gate-name="{{gateName}}" tval="{{tval}}" pid="{{pid}}"></tour-upload>
<!-- 开始巡店记录 S--> <!-- 开始巡店记录 S-->
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -133,7 +133,7 @@ Page({ ...@@ -133,7 +133,7 @@ Page({
let params = { let params = {
mallId:this.data.mallId||'', mallId:this.data.mallId||'',
pageSize:999, pageSize:999,
patrolType:1, //patrolType:1,
...this.data.date ...this.data.date
} }
if(this.data.type){ if(this.data.type){
......
...@@ -63,6 +63,11 @@ Page({ ...@@ -63,6 +63,11 @@ Page({
}) })
this.loadRuleList(); this.loadRuleList();
}, },
homeBack(){
wx.switchTab({
url: '/pages/home/index',
})
},
loadRuleList(){ loadRuleList(){
getRuleList({ getRuleList({
pageNum: 1, pageNum: 1,
...@@ -159,7 +164,7 @@ Page({ ...@@ -159,7 +164,7 @@ Page({
let {id} = evt.currentTarget.dataset; let {id} = evt.currentTarget.dataset;
let titem = _.findWhere(tourArrayList,{id}); let titem = _.findWhere(tourArrayList,{id});
wx.navigateTo({ wx.navigateTo({
url: `/pages/tour/index/index?action=capture&picUrl=${titem.pic}&id=${titem.gateId}&mallId=${titem.mallId}&title=${titem.gateName}` url: `/pages/tour/index/index?pid=${id}&tval=2&action=capture&picUrl=${titem.pic}&id=${titem.gateId}&mallId=${titem.mallId}&title=${titem.gateName}`
}) })
}, },
/** /**
...@@ -175,7 +180,7 @@ Page({ ...@@ -175,7 +180,7 @@ Page({
let mallId = wx.getStorageSync('mallId'); let mallId = wx.getStorageSync('mallId');
let mallList = wx.getStorageSync('mallList'); let mallList = wx.getStorageSync('mallList');
let params = { let params = {
mallId:this.data.mallId||'', mallIds:this.data.mallId||_.pluck(mallList,'id').join(','),
pageSize:999, pageSize:999,
ruleId:this.data.ruleVal, ruleId:this.data.ruleVal,
...this.data.date ...this.data.date
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<view class="container" style="padding-top: {{navHeight}}px"> <view class="container" style="padding-top: {{navHeight}}px">
<navbar2 bg-color="#001C90"> <navbar2 bg-color="#001C90">
<view class="navtitle"> <view class="navtitle">
<van-icon bindtap="onGoBack" size="24" name="arrow-left" custom-class="back" /> <van-icon bindtap="homeBack" size="24" name="arrow-left" custom-class="back" />
<view class="title">点检巡店记录</view> <view class="title">点检巡店</view>
</view> </view>
</navbar2> </navbar2>
<view style="width: 100%;margin-top: 4rpx;"> <view style="width: 100%;margin-top: 4rpx;">
......
...@@ -17,7 +17,8 @@ Page({ ...@@ -17,7 +17,8 @@ Page({
tourVal:0, //基础信息 tourVal:0, //基础信息
remark:'', remark:'',
fileList: [], fileList: [],
recordVal:0, //操作记录 recordVal:'', //操作记录
recordVal2:'', //最新操作记录
actionVal:1, actionVal:1,
tourObj:{}, tourObj:{},
picUrl:'', picUrl:'',
...@@ -53,6 +54,8 @@ Page({ ...@@ -53,6 +54,8 @@ Page({
Object.assign(item,this.getStatus(item.status)); Object.assign(item,this.getStatus(item.status));
return item; return item;
}).reverse(); }).reverse();
let newRecord = tourObj.handleRecords.shift();
tourObj.handleRecords.pop();
_.each(tourObj.sops,item=>{ _.each(tourObj.sops,item=>{
if(item.status==0){ if(item.status==0){
item.text = '不合格'; item.text = '不合格';
...@@ -77,12 +80,17 @@ Page({ ...@@ -77,12 +80,17 @@ Page({
this.setData({ this.setData({
recordId:id, recordId:id,
picUrl:picUrl, picUrl:picUrl,
tourVal:tourObj.type?0:1, //tourVal:tourObj.type?0:1,
//recordVal:tourObj.handleRecords[0].id, //recordVal2:newRecord.id,
tourObj, tourObj,
newRecord,
captureUrl:captureUrl?app.globalData.ajaxUrl + '/images/'+captureUrl:'' captureUrl:captureUrl?app.globalData.ajaxUrl + '/images/'+captureUrl:''
},()=>{ },()=>{
if(captureUrl)this.drawInit(); if(captureUrl)this.drawInit();
this.setData({
recordVal:'',
recordVal2:newRecord.id
})
}) })
}); });
}, },
...@@ -283,6 +291,11 @@ Page({ ...@@ -283,6 +291,11 @@ Page({
recordVal:evt.detail recordVal:evt.detail
}) })
}, },
changeRecord2(evt){
this.setData({
recordVal2:evt.detail
})
},
async playBtn(){ async playBtn(){
let {data} = await getPatrolGate({id:this.data.tourObj.gateId}); let {data} = await getPatrolGate({id:this.data.tourObj.gateId});
wx.navigateTo({ wx.navigateTo({
......
<template name="record">
<van-collapse-item title="{{record.result==1?'处理人':'巡检人'}}:{{record.handlerName}}" value="{{record.createTime}}" name="{{record.id}}">
<view class="actinfo">
<view><text>状态:</text><text style="color:{{record.color}}">{{record.text}}</text></view>
<view wx:if="{{record.remark}}"><text>备注:</text>{{record.remark}}</view>
<image mode="widthFix" wx:for="{{record.pics}}" src="{{picUrl+item}}" />
</view>
</van-collapse-item>
</template>
<view class="container" style="padding-top: {{navHeight}}px"> <view class="container" style="padding-top: {{navHeight}}px">
<navbar2 bg-color="#fff" navbar-color="#000"> <navbar2 bg-color="#fff" navbar-color="#000">
<view class="navtitle"> <view class="navtitle">
...@@ -6,10 +15,47 @@ ...@@ -6,10 +15,47 @@
</view> </view>
</navbar2> </navbar2>
<view class="tour"> <view class="tour">
<view class="title">基础信息</view>
<view class="tview"> <view class="tview">
<van-collapse accordion custom-class="" value="{{ tourVal }}" bind:change="onChange"> <van-collapse accordion value="{{recordVal2}}" bind:change="changeRecord2">
<van-collapse-item title="巡店内容" name="{{1}}" value="{{tourObj.createTime}}"> <template is="record" data="{{record:newRecord,picUrl}}"></template>
</van-collapse>
</view>
<view class="mview" wx:if="{{tourObj.type==1||tourObj.type==2}}">
<view class="title">{{tourObj.type==1?'复查':'处理'}}结果</view>
<view class="maction">
<van-collapse accordion value="{{actionVal}}" bind:change="changeAction">
<van-collapse-item title="{{tourObj.type==1?('复查人:'+tourObj.createByName):('处理人:'+tourObj.handlerName)}}" name="{{1}}">
<view class="upview">
<view class="label">{{tourObj.type==1?'复查':'处理'}}完成图:</view>
<view class="acea-row action-btns">
<van-button type="info" bindtap="playBtn" custom-style="width:300rpx;">播放实时视频</van-button>
<van-button type="info" bindtap="captureBtn" custom-style="width:300rpx;">现场截图</van-button>
</view>
<!-- 视频截图 S -->
<view class="capview {{actionVal&&captureUrl?'show':'hide'}}" >
<canvas disable-scroll class="cvs" type="2d" bindtouchstart="startDraw" bindtouchmove="drawing"
bindtouchend="endDraw" bindtouchcancel="endDraw" style="width:{{cWidth}}px;height: {{cHeight}}px;" id="painter" >
</canvas>
</view>
<!-- 视频截图 E -->
<!-- <van-uploader accept="image" capture="camera" custom-class="uploader" max-count="5" slot="input" deletable multiple bind:after-read="readFileSucc" bind:delete="deleteFile" file-list="{{ fileList }}" /> -->
</view>
<view class="upview">
<!-- <view class="label">备注:</view> -->
<van-field model:value="{{ remark }}" title-width="0rpx" type="textarea" placeholder="请输入备注信息" autosize show-word-limit maxlength="300" border="{{ true }}" />
</view>
</van-collapse-item>
</van-collapse>
</view>
</view>
<view class="title">操作记录</view>
<view class="actlist">
<van-collapse accordion value="{{recordVal}}" bind:change="changeRecord">
<template is="record" wx:for="{{tourObj.handleRecords}}" data="{{record:item,picUrl}}"></template>
<!-- 巡店记录详情 S-->
<van-collapse-item title="巡检人:{{tourObj.createByName}}" name="{{tourObj.id}}" value="{{tourObj.createTime}}">
<view class="tinfo"> <view class="tinfo">
<view class="pictit">巡查图:</view> <view class="pictit">巡查图:</view>
<view class="piclist"> <view class="piclist">
...@@ -65,56 +111,16 @@ ...@@ -65,56 +111,16 @@
</view> </view>
</van-collapse-item> </van-collapse-item>
<!-- 巡店记录详情 E-->
</van-collapse> </van-collapse>
</view> </view>
<view class="mview" wx:if="{{tourObj.type==1||tourObj.type==2}}"> <view style="height: 160rpx;"></view>
<view class="title">{{tourObj.type==1?'复查':'处理'}}结果</view>
<view class="maction">
<van-collapse accordion value="{{actionVal}}" bind:change="changeAction">
<van-collapse-item title="{{tourObj.type==1?('复查人:'+tourObj.createByName):('处理人:'+tourObj.handlerName)}}" name="{{1}}">
<view class="upview">
<view class="label">{{tourObj.type==1?'复查':'处理'}}完成图:</view>
<view class="acea-row action-btns">
<van-button type="info" bindtap="playBtn" custom-style="width:300rpx;">播放实时视频</van-button>
<van-button type="info" bindtap="captureBtn" custom-style="width:300rpx;">现场截图</van-button>
</view>
<!-- 视频截图 S -->
<view class="capview {{actionVal&&captureUrl?'show':'hide'}}" >
<canvas disable-scroll class="cvs" type="2d" bindtouchstart="startDraw" bindtouchmove="drawing"
bindtouchend="endDraw" bindtouchcancel="endDraw" style="width:{{cWidth}}px;height: {{cHeight}}px;" id="painter" >
</canvas>
</view>
<!-- 视频截图 E -->
<!-- <van-uploader accept="image" capture="camera" custom-class="uploader" max-count="5" slot="input" deletable multiple bind:after-read="readFileSucc" bind:delete="deleteFile" file-list="{{ fileList }}" /> -->
</view>
<view class="upview">
<!-- <view class="label">备注:</view> -->
<van-field model:value="{{ remark }}" title-width="0rpx" type="textarea" placeholder="请输入备注信息" autosize show-word-limit maxlength="300" border="{{ true }}" />
</view>
</van-collapse-item>
</van-collapse>
</view>
</view>
<view class="title">操作记录</view>
<view class="actlist">
<van-collapse accordion value="{{recordVal}}" bind:change="changeRecord">
<van-collapse-item wx:for="{{tourObj.handleRecords}}" title="{{item.result==1?'处理人':'巡检人'}}:{{item.handlerName}}" value="{{item.createTime}}" name="{{item.id}}">
<view class="actinfo">
<view><text>状态:</text><text style="color:{{item.color}}">{{item.text}}</text></view>
<view wx:if="{{item.remark}}"><text>备注:</text>{{item.remark}}</view>
<image mode="widthFix" wx:for="{{item.pics}}" src="{{picUrl+item}}" />
</view>
</van-collapse-item>
</van-collapse>
</view>
<view style="height: 100rpx;"></view>
</view> </view>
<view class="acea-row check-btns" wx:if="{{tourObj.type==1}}"> <view class="acea-row check-btns" wx:if="{{tourObj.type==1}}">
<van-button data-value="{{2}}" bindtap="submitBtn" custom-style="width:300rpx;" type="danger">不通过</van-button> <van-button data-value="{{2}}" bindtap="submitBtn" custom-style="width:300rpx;" type="danger">不通过</van-button>
<van-button data-value="{{3}}" bindtap="submitBtn" custom-style="width:300rpx;" type="primary">通过并完成</van-button> <van-button data-value="{{3}}" bindtap="submitBtn" custom-style="width:300rpx;" type="primary">通过并完成</van-button>
</view> </view>
<view class="acea-row check-btns btns2" wx:if="{{tourObj.type==2}}"> <view class="acea-row check-btns btns2" wx:if="{{tourObj.type==2}}">
<van-button data-value="{{1}}" block bindtap="submitBtn" type="info" custom-style="margin-top:40rpx;" block>已处理</van-button> <van-button data-value="{{1}}" block bindtap="submitBtn" type="info" block>已处理</van-button>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
--button-border-radius: 20px; --button-border-radius: 20px;
--cell-font-size: 16px; --cell-font-size: 16px;
--cell-icon-size: 20px; --cell-icon-size: 20px;
--cell-right-icon-color: #000 --cell-right-icon-color: #000;
} }
.tour .tview { .tour .tview {
...@@ -72,12 +73,12 @@ ...@@ -72,12 +73,12 @@
} }
.torlist .toritem view { .torlist .toritem view {
max-width: 585rpx; max-width: 570rpx;
} }
.torlist .toritem .state { .torlist .toritem .state {
position: absolute; position: absolute;
right: 10px; right: 15rpx;
top: 30%; top: 30%;
font-size: 30rpx; font-size: 30rpx;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!