Commit 32b684f2 authored by 和慭琛's avatar 和慭琛

1.0.0 正式环境 提交审核版本

parent 6ce387b0
......@@ -14,8 +14,11 @@
//https://system.banshouhui.com
//https://system.dev.banshouhui.com
//正式环境
domain_Name: 'https://system.banshouhui.com',
//测试环境
domain_Name: 'https://system.dev.banshouhui.com',
//domain_Name: 'https://system.dev.banshouhui.com',
//http://192.168.0.208:8192
//小青本地环境
......@@ -101,12 +104,12 @@
uni.getStorage({
key: 'token',
success: function (res) {
console.log('本地获取token成功')
console.log(res.data);
// console.log('本地获取token成功')
// console.log(res.data);
that.globalData.token = res.data
that.initAPIneedToken()
console.log('当前token',that.token)
// console.log('当前token',that.token)
}
})
......@@ -117,7 +120,7 @@
},
onShow: function() {
console.log('App Show')
//console.log('App Show')
......@@ -142,38 +145,38 @@
//RTOKEN45f41a3053238cb72b3b72fe14df8d7040c9f502
///*
if(this.globalData.token){
console.log('initAPIneedToken')
//console.log('initAPIneedToken')
//下单模块--
//立即下单
this.globalData.createAppletsOrder = '/wxh-worker-rest/rest/order/revision/applets/'
+this.globalData.token+'/order/createAppletsOrder',
console.log('立即下单'+this.globalData.createAppletsOrder)
//console.log('立即下单'+this.globalData.createAppletsOrder)
//下单列表
this.globalData.createOrderList = '/wxh-worker-rest/rest/order/revision/applets/'
+this.globalData.token+'/order/customer'
console.log('下单列表'+this.globalData.createOrderList)
//console.log('下单列表'+this.globalData.createOrderList)
//接单模块--
//抢单广场
this.globalData.grabbing = '/wxh-worker-rest/rest/order/revision/applets/'
+this.globalData.token+'/order/grabbing'
console.log('抢单广场'+this.globalData.grabbing)
//console.log('抢单广场'+this.globalData.grabbing)
//检查抢单用户状态
this.globalData.checkRobStatus = '/wxh-worker-rest/rest/order/revision/applets/'
+this.globalData.token+'/order/check',
console.log('检查抢单用户状态'+this.globalData.checkRobStatus)
//console.log('检查抢单用户状态'+this.globalData.checkRobStatus)
//工单列表
this.globalData.workOrderList = '/wxh-worker-rest/rest/order/revision/applets/'
+this.globalData.token+'/order/worker',
console.log('工单列表'+this.globalData.workOrderList)
//console.log('工单列表'+this.globalData.workOrderList)
//工单详情
this.globalData.workOrderDetail = '/wxh-worker-rest/rest/order/revision/applets/'
+this.globalData.token+'/order/detail',
console.log('工单详情'+this.globalData.workOrderDetail)
//console.log('工单详情'+this.globalData.workOrderDetail)
//预约 V2
this.globalData.orderReserve = '/wxh-worker-rest/rest/project/order/reserve/'
+ this.globalData.token,
console.log('预约 V2'+this.globalData.orderReserve)
//console.log('预约 V2'+this.globalData.orderReserve)
//工单完工
this.globalData.configCompletion = ''
///wxh-worker-rest/rest/config/RTOKEN222bdab78b0d2a74f159b640df53180772813250/completion/11885887?inGuaranteePeriod=true
......
......@@ -6,6 +6,8 @@
*/
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
......
......@@ -243,10 +243,10 @@
let that = this
uni.chooseLocation({
success: function (res) {
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
// console.log('位置名称:' + res.name);
// console.log('详细地址:' + res.address);
// console.log('纬度:' + res.latitude);
// console.log('经度:' + res.longitude);
that.isClean = false
that.location = res.name
that.address = res.address
......@@ -262,13 +262,13 @@
//产品类型 点击
productTypeClick: function (item) {
this.activeProduct = item.title
console.log(item.title)
// console.log(item.title)
},
//服务类型 点击
serviceTypeClick: function (item) {
this.activeService = item.title
console.log(item.title)
// console.log(item.title)
},
//勾选点击
......@@ -279,7 +279,7 @@
this.TimeID = setTimeout(() => {
*/
this.isAgree = !isAgree
console.log(this.isAgree)
// console.log(this.isAgree)
/*
}, 1000);
*/
......@@ -294,8 +294,8 @@
uni.getStorage({
key: 'protocolPath',
success: function (res) {
console.log('本地获取 服务协议路径 成功')
console.log(res.data);
// console.log('本地获取 服务协议路径 成功')
// console.log(res.data);
that.openProtocol(res.data)
......@@ -318,7 +318,7 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
*/
console.log('服务协议 点击')
// console.log('服务协议 点击')
let that = this
uni.showLoading({
title:'加载中'
......@@ -333,14 +333,14 @@
title:'打开中'
})
console.log('下载成功');
//console.log('下载成功');
that.saveProtocolPath(res.tempFilePath)
}
},
fail(res) {
console.log('打开服务协议失败')
console.log(res)
//console.log('打开服务协议失败')
//console.log(res)
uni.hideLoading()
uni.showToast({
icon:'none',
......@@ -362,7 +362,7 @@
key: 'protocolPath',
data: filePath,
success: function (e) {
console.log('保存 服务协议 成功'+e);
//console.log('保存 服务协议 成功'+e);
that.openProtocol(filePath)
}
});
......@@ -469,8 +469,8 @@
this.TimeID = setTimeout(() => {
*/
console.log('立即下单')
console.log(getApp().globalData.token)
//console.log('立即下单')
//console.log(getApp().globalData.token)
this.checkAllInput()
......@@ -514,12 +514,12 @@
//非空判断
checkAllInput: function () {
this.isAllInput = false
console.log('下单前的 联系人:'+this.name+'字符串长度:'+this.name.length)
console.log('下单前的 联系人电话:'+this.phone+'字符串长度:'+this.phone.length)
console.log('下单前的 地址:'+this.address+'字符串长度:'+this.address.length)
console.log('下单前的 产品类型:'+this.activeProduct+'字符串长度:'+this.activeProduct.length)
console.log('下单前的 服务类型:'+this.activeService+'字符串长度:'+this.activeService.length)
console.log('下单前的 服务需求:'+this.demandContent+'字符串长度:'+this.demandContent.length)
//console.log('下单前的 联系人:'+this.name+'字符串长度:'+this.name.length)
//console.log('下单前的 联系人电话:'+this.phone+'字符串长度:'+this.phone.length)
//console.log('下单前的 地址:'+this.address+'字符串长度:'+this.address.length)
//console.log('下单前的 产品类型:'+this.activeProduct+'字符串长度:'+this.activeProduct.length)
//console.log('下单前的 服务类型:'+this.activeService+'字符串长度:'+this.activeService.length)
//console.log('下单前的 服务需求:'+this.demandContent+'字符串长度:'+this.demandContent.length)
if(this.name.length>0
&& this.phone.length>0
//&& this.location.length>0
......@@ -535,13 +535,13 @@
//客户报单接口
createAppletsOrder: async function() {
console.log('是否已填所有必填项:'+this.isAllInput)
console.log('联系人:'+this.name)
console.log('联系电话:'+this.phone)
console.log('地址:'+this.address)
console.log('品类:'+this.activeProduct)
console.log('服务类型:'+this.activeService)
console.log('服务备注:'+this.demandContent)
//console.log('是否已填所有必填项:'+this.isAllInput)
//console.log('联系人:'+this.name)
//console.log('联系电话:'+this.phone)
//console.log('地址:'+this.address)
//console.log('品类:'+this.activeProduct)
//console.log('服务类型:'+this.activeService)
//console.log('服务备注:'+this.demandContent)
uni.showLoading({
title:'请稍候'
})
......@@ -571,8 +571,8 @@
},
success: (res) => {
console.log('客户报单接口 成功')
console.log(res)
//console.log('客户报单接口 成功')
//console.log(res)
uni.hideLoading()
if(res.statusCode==401){
......@@ -609,8 +609,8 @@
icon:'none',
title:'下单失败'
})
console.log('客户报单接口 失败')
console.log(e)
//console.log('客户报单接口 失败')
//console.log(e)
}
})
},
......@@ -625,11 +625,11 @@
success(res) {
if (res.confirm) {
//调用订阅消息
console.log('用户点击 确定');
//console.log('用户点击 确定');
//调用订阅
that.getSubSubscribeMessage();
}else if (res.cancel) {
console.log('用户点击 拒绝');
//console.log('用户点击 拒绝');
uni.navigateTo({
url: '/pages/index/success'+'?activeService='+that.activeService
})
......@@ -650,8 +650,8 @@
'3doUrjIT3-FIfmzsLdBy5MQ5i_q5braPzIbVZRBoEjU',
'3doUrjIT3-FIfmzsLdBy5MQ5i_q5braPzIbVZRBoEjU'],
success (res) {
console.log('请求订阅信息 成功:')
console.log(res)
//console.log('请求订阅信息 成功:')
//console.log(res)
uni.navigateTo({
url: '/pages/index/success'+'?activeService='+that.activeService
......@@ -660,8 +660,8 @@
},
fail (res){
console.log('请求订阅信息 失败:')
console.log(res)
//console.log('请求订阅信息 失败:')
//console.log(res)
uni.navigateTo({
url: '/pages/index/success'+'?activeService='+that.activeService
})
......@@ -686,8 +686,8 @@
let pages = getCurrentPages();
let currPage = pages[pages.length-1];
console.log('是否清除:')
console.log(currPage.data.isClean)
//console.log('是否清除:')
//console.log(currPage.data.isClean)
if (currPage.data.isClean == true){//这就是传递的参数
this.name = '',
this.phone = '',
......@@ -815,7 +815,7 @@
}
.borderBottom{
border-bottom: 2rpx solid #CCCCCC;
border-bottom: 1rpx solid #CCCCCC;
}
.itemTitle {
......
......@@ -14,7 +14,7 @@
onLoad(e) {
if(e && e.activeService && e.activeService.length>0){
console.log(e.activeService)
//console.log(e.activeService)
this.activeService = e.activeService
}
},
......
......@@ -122,8 +122,8 @@
await uni.getStorage({
key: 'token',
success: function (res) {
console.log('本地获取token成功')
console.log(res.data);
//console.log('本地获取token成功')
// console.log(res.data);
getApp().globalData.token = res.data
that.createOrderList()
......@@ -162,8 +162,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取下单列表 成功')
console.log(res)
// console.log('获取下单列表 成功')
// console.log(res)
if(res.statusCode==401){
uni.navigateTo({
......@@ -173,7 +173,7 @@
}
if(res.data.code==200){
console.log('code=200')
// console.log('code=200')
this.handleList(res)
}else{
......@@ -193,8 +193,8 @@
icon:'none',
title:'获取下单列表失败'
})
console.log('获取下单列表 失败')
console.log(e)
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
......@@ -204,7 +204,7 @@
//未完工
if(this.activeTop == 0){
console.log('未完工')
//console.log('未完工')
if(this.unfinishList && this.unfinishList.length==0){
this.unfinishList = res.data.data.list
......@@ -226,7 +226,7 @@
}
//已完工
if(this.activeTop == 1){
console.log('已完工')
// console.log('已完工')
if(this.finishList && this.finishList.length==0){
......@@ -272,7 +272,7 @@
//拨打电话
callClick: function (phone) {
console.log(phone)
//console.log(phone)
uni.makePhoneCall({
phoneNumber: phone
});
......
......@@ -7,8 +7,8 @@
</view>
<view class="bigView">
<text class="u-font-36 u-p-b-10">已发给</text>
<text class="countText u-p-l-20 u-p-r-20" v-if="count<21">{{count}}</text>
<text class="countText u-p-l-20 u-p-r-20" v-if=" count>20 || count == 20 ">20+</text>
<text class="countText u-p-l-20 u-p-r-20" v-if="!isOver20">{{count}}</text>
<text class="countText u-p-l-20 u-p-r-20" v-if="isOver20">20+</text>
<text class="u-font-36 u-p-b-10">位师傅</text>
</view>
<!--view class="textBackView height_92 u-m-t-80 u-row">
......@@ -46,13 +46,14 @@
activeService:'家电服务',
count:3,
phone:'400-8834-123',
TimeID:-1
TimeID:-1,
isOver20:false
}
},
onLoad(e) {
if(e && e.activeService && e.activeService.length>0){
console.log(e.activeService)
//console.log(e.activeService)
this.activeService = e.activeService
}
......@@ -60,7 +61,7 @@
},
onBackPress() {
console.log('返回按钮')
//console.log('返回按钮')
this.oneMoreClick()
},
......@@ -79,21 +80,22 @@
let that = this
var addCount = this.getRandomNumberByRange(1,3)
//Math.random(1,3).toFixed(0)
console.log('每10秒加一次')
console.log('加之前的addCount')
console.log(addCount)
console.log('加之前的this.count')
console.log(this.count)
// console.log('每10秒加一次')
// console.log('加之前的addCount')
// console.log(addCount)
// console.log('加之前的this.count')
// console.log(this.count)
this.count = this.count + addCount
if(this.count >= 20){
console.log('大于20了')
console.log('加之后的this.count')
console.log(this.count)
this.isOver20 = true
// console.log('大于20了')
// console.log('加之后的this.count')
// console.log(this.count)
}else{
console.log('没大于20')
console.log('加之后的this.count')
console.log(this.count)
// console.log('没大于20')
// console.log('加之后的this.count')
// console.log(this.count)
setTimeout(function() {
that.addCount()
}, 10000);
......@@ -257,9 +259,9 @@
.topView{
background-color: #FFFFFF;
width: 100%;
height: 386rpx;
display: flex;
flex-direction: column;
padding-bottom: 110rpx;
}
.textBackView{
......
......@@ -34,7 +34,7 @@
this.icon_notice = getApp().globalData.icon_auth_notice
this.icon_auth_notice_new = getApp().globalData.icon_auth_notice_new
//this.domain_name = getApp().globalData.domain_Name
console.log('当前域名:'+this.domain_name)
//console.log('当前域名:'+this.domain_name)
},
methods: {
......@@ -44,8 +44,8 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('获取用户信息')
console.log(e.detail.userInfo)
//console.log('获取用户信息')
//console.log(e.detail.userInfo)
if (e.detail.errMsg == 'getUserInfo:fail auth deny') {
......@@ -106,9 +106,9 @@
//通过code获取用户信息(新接口)
getUsersByCode: async function(code) {
console.log('通过code获取用户信息 请求接口:')
console.log(getApp().globalData.domain_Name
+getApp().globalData.getUsersByCode)
//console.log('通过code获取用户信息 请求接口:')
//console.log(getApp().globalData.domain_Name
//+getApp().globalData.getUsersByCode)
uni.showLoading({
title:'加载中'
})
......@@ -122,8 +122,8 @@
code: code,
},
success: (res) => {
console.log('通过code获取用户信息(新接口) 成功')
console.log(res)
//console.log('通过code获取用户信息(新接口) 成功')
//console.log(res)
if(res.data.code==200){
this.unionID = res.data.data.user.unionid
......@@ -158,8 +158,8 @@
},
fail: (e) => {
console.log('通过code获取用户信息(新接口) 失败')
console.log(e)
//console.log('通过code获取用户信息(新接口) 失败')
//console.log(e)
},
complete() {
uni.hideLoading()
......@@ -169,12 +169,12 @@
//用户信息存本地
saveUserInfo: async function(res) {
console.log('用户信息存本地 token:' +res.data.data.token);
//console.log('用户信息存本地 token:' +res.data.data.token);
uni.setStorage({
key: 'token',
data: res.data.data.token,
success: function (e) {
console.log('保存token 成功'+e);
//console.log('保存token 成功'+e);
}
});
......@@ -197,8 +197,8 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('获取用户手机号')
console.log(e.detail)
//console.log('获取用户手机号')
//console.log(e.detail)
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') {
//this.$u.toast('未授权');
......@@ -237,8 +237,8 @@
'Content-Type': 'application/x-www-form-urlencoded'
},
success: (res) => {
console.log('通过手机号获取用户信息 成功')
console.log(res)
//console.log('通过手机号获取用户信息 成功')
//console.log(res)
if(res.data.code==200){
uni.showToast({
......@@ -259,8 +259,8 @@
},
fail: (e) => {
console.log('通过code获取用户信息(新接口) 失败')
console.log(e)
//console.log('通过code获取用户信息(新接口) 失败')
//console.log(e)
},
complete() {
uni.hideLoading()
......
......@@ -138,9 +138,7 @@
return {
orderId:'',
orderInfo:{},
photoList:[
{image:''},{image:''},{image:''},{image:''},
],
photoList:[],
domain_name:'',
bottomTitle:'',
isBottomShow:true,
......@@ -183,7 +181,7 @@
}
this.datetime = this.getTime()
console.log('当前时间:'+this.datetime)
//console.log('当前时间:'+this.datetime)
......@@ -218,8 +216,8 @@
await uni.getStorage({
key: 'token',
success: function (res) {
console.log('本地获取token成功')
console.log(res.data);
//console.log('本地获取token成功')
//console.log(res.data);
getApp().globalData.token = res.data
that.getOrderDetail()
......@@ -240,9 +238,9 @@
//getApp().globalData.workOrderDetail
//获取工单详情
getOrderDetail: function () {
console.log('获取工单详情:')
console.log(getApp().globalData.domain_Name
+getApp().globalData.workOrderDetail)
//console.log('获取工单详情:')
//console.log(getApp().globalData.domain_Name
// +getApp().globalData.workOrderDetail)
uni.showLoading({
title:'加载中'
......@@ -258,8 +256,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取工单详情 成功')
console.log(res)
// console.log('获取工单详情 成功')
// console.log(res)
if(res.statusCode==401){
uni.navigateTo({
......@@ -288,8 +286,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取工单详情 失败')
console.log(e)
// console.log('获取工单详情 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'获取工单详情失败'
......@@ -300,14 +298,14 @@
//照片 点击
photoClick: function (item,ikey) {
console.log('照片 点击')
console.log(item)
console.log(ikey)
// console.log('照片 点击')
// console.log(item)
// console.log(ikey)
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('照片点击')
console.log(item)
console.log(ikey)
// console.log('照片点击')
// console.log(item)
// console.log(ikey)
this.previewImage(item,ikey)
......@@ -317,7 +315,7 @@
//照片预览
previewImage: function(item,ikey){
console.log('照片预览')
//console.log('照片预览')
uni.previewImage({
urls: [item],
current:ikey-1
......@@ -339,14 +337,28 @@
adjustPhotoList: function (images) {
var photoArray = images.split(',')
var newPhotoArray = []
photoArray.forEach(item => {
console.log('photoArray个数:' + photoArray.length)
var lastOne = photoArray.length - 1
for (let i = 0; i < photoArray.length; i++) {
var item = photoArray[i]
var imageURL = getApp().globalData.domain_Name + '/wxh-sts-rest' + item
newPhotoArray.push(imageURL)
})
console.log('imageURL:' + imageURL)
if(i != lastOne){
newPhotoArray.push(imageURL)
}
}
// photoArray.forEach(item => {
// var imageURL = getApp().globalData.domain_Name + '/wxh-sts-rest' + item
// console.log('imageURL:' + imageURL)
// newPhotoArray.push(imageURL)
// })
this.photoList = newPhotoArray
console.log('照片数组:')
console.log(this.photoList)
//console.log('照片数组:')
//console.log(this.photoList)
},
phoneCallClick: function (phone) {
......@@ -356,7 +368,7 @@
},
bookClick: function () {
console.log('预约点击')
//console.log('预约点击')
this.type = 'datetime'
this.showPicker = true;
this.value = this['datetime'];
......@@ -364,7 +376,7 @@
//时间选择器 选择
onShowDatePicker: function (type,item){//显示
console.log('当前工单ID:'+item.orderId)
//console.log('当前工单ID:'+item.orderId)
this.orderId = item.orderId
this.type = type;
this.showPicker = true;
......@@ -383,9 +395,9 @@
this[this.type] = e.value;
this.bookPost(e.value)
//选择的值
console.log('value => '+ e.value);
// console.log('value => '+ e.value);
//原始的Date对象
console.log('date => ' + e.date);
// console.log('date => ' + e.date);
}
}, 1000);
......@@ -401,7 +413,7 @@
dateTime = dateTime.replace("/","-")
dateTime = dateTime.replace("/","-")
//2020/12/25 15:00:12
console.log('预约请求 dateTime'+dateTime)
//console.log('预约请求 dateTime'+dateTime)
let that = this
uni.showLoading({
title:'加载中'
......@@ -423,8 +435,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('预约请求 成功')
console.log(res)
//console.log('预约请求 成功')
//console.log(res)
if(res.statusCode==200){
uni.showToast({
......@@ -445,8 +457,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('预约请求 失败')
console.log(e)
//console.log('预约请求 失败')
//console.log(e)
}
})
},
......@@ -458,7 +470,7 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('退单点击')
//console.log('退单点击')
this.isCancelShow = true
......@@ -471,9 +483,9 @@
//退单原因 确认选择
cancelReasonOnConfirm(res,type){
this.result=res;
console.log('退单原因 确认选择')
console.log(res.result)
console.log(res.value)
// console.log('退单原因 确认选择')
// console.log(res.result)
// console.log(res.value)
this.cancelPost(res.result)
......@@ -482,7 +494,7 @@
//退单原因 取消选择
cancelReasonOnCancel(){
console.log('退单原因 取消选择')
//console.log('退单原因 取消选择')
},
//退单请求
......@@ -506,8 +518,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('退单 成功')
console.log(res)
// console.log('退单 成功')
// console.log(res)
if(res.data.code==200){
uni.showToast({
......@@ -532,8 +544,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('退单 失败')
console.log(e)
// console.log('退单 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'退单失败',
......@@ -595,8 +607,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('接单请求 成功')
console.log(res)
// console.log('接单请求 成功')
// console.log(res)
if(res.statusCode==200){
uni.showToast({
......@@ -621,8 +633,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('接单请求 失败')
console.log(e)
// console.log('接单请求 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'接单请求失败'
......
......@@ -7,8 +7,10 @@
<text class="contentText u-m-l-20 underLine" v-if="contactMobilephone">{{contactMobilephone}}</text>
</view>
<view class="itemView u-m-t-30">
<text class="titleText u-m-l-30">地址:</text>
<text class="contentText u-m-l-20" v-if="contactAddress">{{contactAddress}}</text>
<view class="u-p-l-30 u-p-r-30">
<text class="titleText ">地址:</text>
<text class="contentText u-m-l-10" v-if="contactAddress">{{contactAddress}}</text>
</view>
</view>
<view class="itemView u-m-t-30">
<text class="titleText u-m-l-30">类型:</text>
......@@ -320,8 +322,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取完工页详情 成功')
console.log(res)
// console.log('获取完工页详情 成功')
// console.log(res)
if(res.data.code==200){
this.handleDefaultData(res)
......@@ -339,8 +341,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取完工页详情 失败')
console.log(e)
// console.log('获取完工页详情 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'获取完工页详情失败'
......@@ -362,9 +364,9 @@
this.SPECIFICATIONS_fieldsValue = item.fieldsValue
this.SPECIFICATIONS_fieldsOptions = item.fieldsOptions
this.SPECIFICATIONS_showContent = optionsDic.specificationName
console.log('之前填写过的 产品规格:')
console.log(optionsDic)
console.log(this.SPECIFICATIONS_showContent)
// console.log('之前填写过的 产品规格:')
// console.log(optionsDic)
// console.log(this.SPECIFICATIONS_showContent)
}
}
......@@ -376,9 +378,9 @@
var valueArray = JSON.parse(firstJSON)
var valueDic = valueArray[0]
this.measure_showContent = valueDic.measureName
console.log('之前填写过的 处理措施:')
console.log(valueDic)
console.log(this.measure_showContent)
// console.log('之前填写过的 处理措施:')
// console.log(valueDic)
// console.log(this.measure_showContent)
}
}
......@@ -399,9 +401,9 @@
var imageURL = getApp().globalData.domain_Name + '/wxh-sts-rest' + item
this.photoList.push(imageURL)
})
//this.photoList = newPhotoArray
console.log('之前填写过的 照片数组:')
console.log(this.photoList)
// console.log('之前填写过的 照片数组:')
// console.log(this.photoList)
}
})
......@@ -416,10 +418,10 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('点击类 点击')
console.log(ikey)
console.log(item.fieldsTitle)
console.log(item.fieldsType)
// console.log('点击类 点击')
// console.log(ikey)
// console.log(item.fieldsTitle)
// console.log(item.fieldsType)
//开关类Cell
//服务措施 SERVICE_MEASURES
......@@ -557,8 +559,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 产品规格 成功')
console.log(res)
// console.log('获取 产品规格 成功')
// console.log(res)
if(res.statusCode==200){
......@@ -577,8 +579,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 产品规格 失败')
console.log(e)
// console.log('获取 产品规格 失败')
// console.log(e)
}
})
},
......@@ -586,9 +588,9 @@
//产品规格 确认选择
SPECIFICATIONSonConfirm(res,type){
this.result=res;
console.log('产品规格 确认选择')
console.log(res.result)
console.log(res.value)
// console.log('产品规格 确认选择')
// console.log(res.result)
// console.log(res.value)
//产品规格Id
this.current_SPECIFICATIONS_specificationId = res.value
......@@ -622,13 +624,13 @@
var specificationString = ''
specificationString = JSON.stringify(specificationJSON)
console.log('转为JSON后的产品规格数据')
console.log(specificationString)
//console.log('转为JSON后的产品规格数据')
//console.log(specificationString)
this.SPECIFICATIONS_fieldsValue = specificationId
this.SPECIFICATIONS_fieldsOptions = specificationString
console.log('this.SPECIFICATIONS_fieldsValue:'+this.SPECIFICATIONS_fieldsValue)
console.log('this.SPECIFICATIONS_fieldsOptions:'+this.SPECIFICATIONS_fieldsOptions)
//console.log('this.SPECIFICATIONS_fieldsValue:'+this.SPECIFICATIONS_fieldsValue)
//console.log('this.SPECIFICATIONS_fieldsOptions:'+this.SPECIFICATIONS_fieldsOptions)
},
......@@ -653,8 +655,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 产品型号 成功')
console.log(res)
// console.log('获取 产品型号 成功')
// console.log(res)
if(res.statusCode==200){
this.PRODUCT_NUMBER_list = res.data
......@@ -672,8 +674,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 产品型号 失败')
console.log(e)
// console.log('获取 产品型号 失败')
// console.log(e)
}
})
},
......@@ -681,9 +683,9 @@
//产品型号 确认选择
PRODUCT_NUMBERonConfirm(res,type){
this.result=res;
console.log('产品型号 确认选择')
console.log(res.result)
console.log(res.value)
// console.log('产品型号 确认选择')
// console.log(res.result)
// console.log(res.value)
//产品型号Id
this.current_PRODUCT_NUMBER_Id = res.value
......@@ -729,9 +731,9 @@
if(e) {
this[this.type] = e.value;
//选择的值
console.log('value => '+ e.value);
// console.log('value => '+ e.value);
//原始的Date对象
console.log('date => ' + e.date);
// console.log('date => ' + e.date);
this.updateInfo(this.currentIndex,'DATE',e.value)
}
},
......@@ -761,7 +763,7 @@
let pages = getCurrentPages();
let currPage = pages[pages.length-1];
console.log('检查获取 服务措施 信息')
//console.log('检查获取 服务措施 信息')
this.measure_measureTypeName = currPage.data.measure_measureTypeName
this.measure_measureTypeId = currPage.data.measure_measureTypeId
......@@ -810,8 +812,8 @@
measureString = JSON.stringify(measureJSON)
measureString = JSON.stringify(measureArray)
console.log('转为JSON后 的 服务措施 数据')
console.log(measureString)
//console.log('转为JSON后 的 服务措施 数据')
//console.log(measureString)
this.measure_fieldsValue = measureString
},
......@@ -820,9 +822,9 @@
photoClick: function (item,ikey) {
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('照片点击')
console.log(item)
console.log(ikey)
// console.log('照片点击')
// console.log(item)
// console.log(ikey)
if(ikey == 0){
this.addPhoto()
......@@ -836,7 +838,7 @@
//照片预览
previewImage: function(ikey){
console.log('照片预览')
//console.log('照片预览')
uni.previewImage({
urls: this.photo_tempFilePaths,
current:ikey-1
......@@ -851,7 +853,7 @@
sizeType: ['compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album'], //从相册选择
success: function (res) {
console.log('照片添加成功')
//console.log('照片添加成功')
that.getImageInfo(res)
//that.photoUpload(res)
},
......@@ -881,13 +883,13 @@
uni.getImageInfo({
src: res.tempFilePaths[i],
success: function (image) {
console.log('获取照片信息 成功:')
console.log(image.width);
console.log(image.height);
console.log(image.path);
console.log(image.orientation);
console.log(image.type);
//var imageDic = {image:image.path}
// console.log('获取照片信息 成功:')
// console.log(image.width);
// console.log(image.height);
// console.log(image.path);
// console.log(image.orientation);
// console.log(image.type);
that.photoList.push(image.path)
}
});
......@@ -902,10 +904,10 @@
async photoUpload(){
let that = this
console.log('照片上传 数量 :')
console.log(this.photo_tempFilePaths.length)
console.log(this.photo_tempFilePaths)
console.log(this.photo_tempFilePaths[0])
// console.log('照片上传 数量 :')
// console.log(this.photo_tempFilePaths.length)
// console.log(this.photo_tempFilePaths)
// console.log(this.photo_tempFilePaths[0])
var deleteIndexs = '0'
var totalCount = this.photo_tempFilePaths.length
......@@ -940,25 +942,25 @@
uni.hideLoading();
console.log('第几次 i')
console.log(i)
console.log('filePath')
console.log(this.photo_tempFilePaths[i])
console.log('images 参数')
console.log(this.images_parameters)
// console.log('第几次 i')
// console.log(i)
// console.log('filePath')
// console.log(this.photo_tempFilePaths[i])
// console.log('images 参数')
// console.log(this.images_parameters)
successCount = successCount + 1
console.log('totalCount:'+totalCount)
console.log('successCount:'+successCount)
// console.log('totalCount:'+totalCount)
// console.log('successCount:'+successCount)
that.photo_totalValue = that.photo_totalValue + uploadFileRes.data + ','
//小青 最后一次上传时将之前的拼接数据传入images参数中
if(successCount == totalCount-1 && uploadFileRes.statusCode == 200){
that.images_parameters = that.photo_totalValue
console.log('最后一次上传时将之前的拼接数据传入images参数中 images_parameters:')
console.log(that.images_parameters)
// console.log('最后一次上传时将之前的拼接数据传入images参数中 images_parameters:')
// console.log(that.images_parameters)
imagesString = that.photo_totalValue
console.log('imagesString:'+imagesString)
//console.log('imagesString:'+imagesString)
}
......@@ -972,14 +974,14 @@
//that.uploadImagesOneMoreTime()
}
console.log( '第' + i + '张 照片单张上传 成功');
console.log(uploadFileRes.data);
console.log('照片总值拼接:');
console.log(that.photo_totalValue);
// console.log( '第' + i + '张 照片单张上传 成功');
// console.log(uploadFileRes.data);
// console.log('照片总值拼接:');
// console.log(that.photo_totalValue);
},fail(res) {
uni.hideLoading();
console.log('照片单张上传 失败');
console.log(res);
// console.log('照片单张上传 失败');
// console.log(res);
uni.showToast({
icon:'none',
title:'照片上传失败'
......@@ -1014,8 +1016,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 上传图片路径 成功')
console.log(res)
//console.log('获取 上传图片路径 成功')
//console.log(res)
if(res.statusCode==200){
......@@ -1034,8 +1036,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 上传图片路径 失败')
console.log(e)
//console.log('获取 上传图片路径 失败')
//console.log(e)
}
})
},
......@@ -1043,8 +1045,8 @@
//保存照片value到配置项里
savePhotoValues: function(photoValue){
console.log('保存照片value到配置项里')
console.log(photoValue)
//console.log('保存照片value到配置项里')
//console.log(photoValue)
for (var i=0;i<this.orderInfo.fieldsItems.length;i++)
......@@ -1067,10 +1069,10 @@
//输入类 事件处理
inputTypeInput: function (e,item,ikey) {
console.log('更新的选项:')
console.log(item.fieldsType)
console.log(ikey)
console.log(e.target.value)
// console.log('更新的选项:')
// console.log(item.fieldsType)
// console.log(ikey)
// console.log(e.target.value)
this.updateInfo(ikey,item.fieldsType,e.target.value)
......@@ -1117,16 +1119,16 @@
//输入框完成
textAreaInput: function(e){
console.log('输入框完成:')
console.log(e.detail.value)
// console.log('输入框完成:')
// console.log(e.detail.value)
},
//更新完工信息
updateInfo: function (currentIndex,currentType,newValue) {
console.log('更新的选项:')
console.log(currentIndex)
console.log(currentType)
console.log(newValue)
// console.log('更新的选项:')
// console.log(currentIndex)
// console.log(currentType)
// console.log(newValue)
for (var i=0;i<this.orderInfo.fieldsItems.length;i++)
{
var item = this.orderInfo.fieldsItems[i]
......@@ -1185,7 +1187,7 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('确认完工 点击')
//console.log('确认完工 点击')
//this.photoUpload()
this.checkAllRequired()
......@@ -1197,7 +1199,7 @@
//判断所有必填项
checkAllRequired: function (){
console.log('判断所有必填项')
//console.log('判断所有必填项')
var isAllDone = true
......@@ -1213,10 +1215,10 @@
uni.showToast({
title:'请选择'+item.fieldsTitle
})
console.log('照片必填 没选照片')
//console.log('照片必填 没选照片')
break
}else{
console.log('照片必填 有选照片')
//console.log('照片必填 有选照片')
item.fieldsValue = '{}'
}
......@@ -1241,7 +1243,7 @@
//改为先上传照片 再完工
if(this.photo_tempFilePaths.length>0){
this.photoUpload()
console.log('用户有选图片')
//console.log('用户有选图片')
}else{
//处理 数据 上传格式
......@@ -1258,7 +1260,7 @@
//处理 数据 上传格式 第一步
handleAllDataFormatStepOne: function (){
console.log('处理 数据 上传格式 第一步')
//console.log('处理 数据 上传格式 第一步')
//特殊格式添加替换
for (var i=0;i<this.orderInfo.fieldsItems.length;i++)
{
......@@ -1268,9 +1270,9 @@
if (item.fieldsType == 'SPECIFICATIONS' ){
item.fieldsValue = this.SPECIFICATIONS_fieldsValue
item.fieldsOptions = this.SPECIFICATIONS_fieldsOptions
console.log('单独处理后的 产品规格')
console.log(item.fieldsValue)
console.log(item.fieldsOptions)
// console.log('单独处理后的 产品规格')
// console.log(item.fieldsValue)
// console.log(item.fieldsOptions)
}
......@@ -1285,16 +1287,16 @@
//处理措施 单独处理
if (item.fieldsType == 'SERVICE_MEASURES' ){
item.fieldsValue = this.measure_fieldsValue
console.log('单独处理后的 处理措施')
console.log(item.fieldsValue)
// console.log('单独处理后的 处理措施')
// console.log(item.fieldsValue)
}
//日期
if (item.fieldsType == 'DATE' && item.fieldsValue){
item.fieldsValue = this.timeProcessing(item.fieldsValue)
console.log('单独处理后的 日期')
console.log(item.fieldsValue)
// console.log('单独处理后的 日期')
// console.log(item.fieldsValue)
}
......@@ -1308,7 +1310,7 @@
//处理 数据 上传格式 第二步
handleAllDataFormatStepTwo: function (){
console.log('处理 数据 上传格式 第二步')
//console.log('处理 数据 上传格式 第二步')
//第一步 配置项数组 转 JSON
var orderInfoJSON = {}
for(var i=0; i<this.orderInfo.fieldsItems.length; i++){
......@@ -1319,8 +1321,8 @@
dataString = JSON.stringify(orderInfoJSON)
dataString = JSON.stringify(this.orderInfo.fieldsItems)
console.log('转为JSON后的配置项数组')
console.log(dataString)
// console.log('转为JSON后的配置项数组')
// console.log(dataString)
//第二步 放入key为maintainFields的字典中
var maintainFieldsDic = {maintainFields:dataString}
......@@ -1333,8 +1335,8 @@
maintainString = JSON.stringify(maintainFieldsJSON)
//maintainString = JSON.stringify(maintainFieldsJSON)
console.log('转为JSON后的配置项 maintainString')
console.log(maintainString)
// console.log('转为JSON后的配置项 maintainString')
// console.log(maintainString)
this.saveInfo(dataString)
},
......@@ -1365,7 +1367,7 @@
uni.showLoading({
title:'请稍候'
})
console.log('保存完工信息 点击')
//console.log('保存完工信息 点击')
let that = this
uni.request({
url: getApp().globalData.domain_Name
......@@ -1382,10 +1384,10 @@
},
success: (res) => {
uni.hideLoading()
console.log('保存完工信息 成功')
console.log(res)
// console.log('保存完工信息 成功')
// console.log(res)
console.log(res.statusCode)
// console.log(res.statusCode)
if(res.statusCode==200){
......@@ -1396,7 +1398,7 @@
// return
// }
console.log('用户没选图片')
//console.log('用户没选图片')
that.finishConfirm()
......@@ -1414,8 +1416,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('保存完工信息 失败')
console.log(e)
// console.log('保存完工信息 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'完工失败'
......@@ -1435,7 +1437,7 @@
[request setValue: @"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-Type"];
*/
finishConfirm: function () {
console.log('确认完工 点击')
//console.log('确认完工 点击')
uni.showLoading({
title:'请稍候'
......@@ -1457,9 +1459,9 @@
},
success: (res) => {
uni.hideLoading()
console.log('确认完工 成功')
console.log(res)
console.log(res.statusCode)
// console.log('确认完工 成功')
// console.log(res)
// console.log(res.statusCode)
if(res.statusCode==200){
uni.showToast({
......@@ -1484,8 +1486,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('确认完工 失败')
console.log(e)
// console.log('确认完工 失败')
// console.log(e)
uni.showToast({
title:'完工失败'
})
......@@ -1499,7 +1501,7 @@
dateTime = dateTime.replace("-","/")
dateTime = dateTime.replace("-","/")
dateTime = dateTime.replace("-","/")
console.log('dateTime' + dateTime)
//console.log('dateTime' + dateTime)
//let timeDate = "2019-06-24 11:08:48";
let timeDate = dateTime
......@@ -1510,8 +1512,8 @@
let timestemp = Time.getTime();
console.log('转换后的时间戳')
console.log(timestemp)
// console.log('转换后的时间戳')
// console.log(timestemp)
return timestemp
//1561345728000
......
......@@ -190,10 +190,10 @@
//this.getToken()
this.datetime = this.getTime()
console.log('当前时间:'+this.datetime)
//console.log('当前时间:'+this.datetime)
var yuyueDate = this.formatDate(1608249600000)
console.log('预约时间:'+yuyueDate)
//console.log('预约时间:'+yuyueDate)
},
......@@ -208,7 +208,7 @@
},
onPullDownRefresh() {
console.log('onPullDownRefresh')
//console.log('onPullDownRefresh')
let that = this
setTimeout(function() {
that.getData()
......@@ -220,11 +220,11 @@
//底部加载更多
onReachBottom() {
console.log('onReachBottom')
//console.log('onReachBottom')
let that = this
setTimeout(function() {
that.pageNumber = that.pageNumber + 1
console.log('底部加载更多 pageNumber'+ that.pageNumber)
//console.log('底部加载更多 pageNumber'+ that.pageNumber)
that.getData()
}, 1000);
......@@ -239,8 +239,8 @@
await uni.getStorage({
key: 'token',
success: function (res) {
console.log('本地获取token成功')
console.log(res.data);
// console.log('本地获取token成功')
// console.log(res.data);
getApp().globalData.token = res.data
that.getData()
......@@ -297,9 +297,9 @@
//工单类型 选择
typeItemClick: function(item){
this.isOrderTypeShow = false
console.log('工单类型 选择')
console.log(item.title)
console.log(item.type)
// console.log('工单类型 选择')
// console.log(item.title)
// console.log(item.type)
this.currentOrderTypeTitle = item.title
this.currentOrderType = item.type
......@@ -313,9 +313,9 @@
//工单类型切换 确认选择
orderTypeOnConfirm(res,type){
this.result=res;
console.log('工单类型切换 确认选择')
console.log(res.result)
console.log(res.value)
// console.log('工单类型切换 确认选择')
// console.log(res.result)
// console.log(res.value)
this.currentOrderTypeTitle = res.result
this.currentOrderType = res.value
......@@ -329,7 +329,7 @@
//产品规格 取消选择
orderTypeOnCancel(){
console.log('工单类型切换 取消选择')
//console.log('工单类型切换 取消选择')
},
//获取数据
......@@ -393,9 +393,9 @@
success: (res) => {
that.isLoading = false
uni.hideLoading()
console.log('获取抢单广场列表 成功')
console.log(res.statusCode)
console.log(res)
// console.log('获取抢单广场列表 成功')
// console.log(res.statusCode)
// console.log(res)
if(res.statusCode==401){
uni.navigateTo({
......@@ -422,8 +422,8 @@
fail: (e) => {
that.isLoading = false
uni.hideLoading()
console.log('获取抢单广场列表 失败')
console.log(e)
// console.log('获取抢单广场列表 失败')
// console.log(e)
}
})
},
......@@ -441,11 +441,11 @@
// })
}else{
var newList = this.grabList;
console.log('前 newList:')
console.log(newList)
// console.log('前 newList:')
// console.log(newList)
newList = newList.concat(res.data.data.list)
console.log('后 newList:')
console.log(newList)
// console.log('后 newList:')
// console.log(newList)
this.grabList = newList
}
......@@ -472,8 +472,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取工单列表 成功')
console.log(res)
// console.log('获取工单列表 成功')
// console.log(res)
if(res.statusCode == 403){
this.noDataTitle = '您没有权限操作'
......@@ -501,8 +501,8 @@
icon:'none',
title:'获取工单列表失败'
})
console.log('获取工单列表 失败')
console.log(e)
// console.log('获取工单列表 失败')
// console.log(e)
}
})
},
......@@ -512,7 +512,7 @@
//已完工
if(type == 5){
console.log('已完工')
//console.log('已完工')
this.totalRight = res.data.data.total
......@@ -534,7 +534,7 @@
}
}else{
console.log('中间')
//console.log('中间')
this.totalMid = res.data.data.total
......@@ -563,14 +563,14 @@
bookClick: function (item) {
console.log(item.address)
//console.log(item.address)
this.type = 'datetime'
this.showPicker = true;
this.value = this['datetime'];
},
callClick: function (phone) {
console.log(phone)
//console.log(phone)
uni.makePhoneCall({
phoneNumber: phone
});
......@@ -582,8 +582,8 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
*/
console.log(item.statusText)
console.log(item.orderId)
//console.log(item.statusText)
//console.log(item.orderId)
if(this.activeTop==0){//抢单市场
if(item.statusText=='待抢单'){
......@@ -642,7 +642,7 @@
//时间选择器 选择
onShowDatePicker: function (type,item){//显示
console.log('当前工单ID:'+item.orderId)
//console.log('当前工单ID:'+item.orderId)
this.orderId = item.orderId
this.type = type;
this.showPicker = true;
......@@ -662,9 +662,9 @@
this[this.type] = e.value;
this.bookPost(e.value)
//选择的值
console.log('value => '+ e.value);
//console.log('value => '+ e.value);
//原始的Date对象
console.log('date => ' + e.date);
//console.log('date => ' + e.date);
}
}, 1000);
......@@ -681,7 +681,7 @@
dateTime = dateTime.replace("/","-")
dateTime = dateTime.replace("/","-")
//2020/12/25 15:00:12
console.log('预约请求 dateTime'+dateTime)
//console.log('预约请求 dateTime'+dateTime)
uni.showLoading({
title:'加载中'
})
......@@ -703,8 +703,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('预约请求 成功')
console.log(res)
//console.log('预约请求 成功')
//console.log(res)
if(res.statusCode==200){
uni.showToast({
......@@ -731,8 +731,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('预约请求 失败')
console.log(e)
//console.log('预约请求 失败')
//console.log(e)
}
})
},
......
......@@ -78,9 +78,9 @@
//选项点击
itemClick: function (side,item) {
console.log('item 点击')
console.log(side)
console.log(item)
// console.log('item 点击')
// console.log(side)
// console.log(item)
//左边 现象
if(side == 0){
......@@ -130,8 +130,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 故障现象 成功')
console.log(res)
// console.log('获取 故障现象 成功')
// console.log(res)
if(res.statusCode==200){
this.leftList = res.data
......@@ -149,8 +149,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 故障现象 失败')
console.log(e)
// console.log('获取 故障现象 失败')
// console.log(e)
}
})
},
......@@ -178,8 +178,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 查询故障现象 关联的 故障原因 成功')
console.log(res)
// console.log('获取 查询故障现象 关联的 故障原因 成功')
// console.log(res)
if(res.statusCode==200){
this.midList = res.data
......@@ -198,8 +198,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 查询故障现象 关联的 故障原因 失败')
console.log(e)
// console.log('获取 查询故障现象 关联的 故障原因 失败')
// console.log(e)
}
})
},
......@@ -227,8 +227,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 查询故障原因 关联的 服务措施详情以及价格 成功')
console.log(res)
// console.log('获取 查询故障原因 关联的 服务措施详情以及价格 成功')
// console.log(res)
if(res.statusCode==200){
this.rightList = res.data
......@@ -247,8 +247,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 查询故障原因 关联的 服务措施详情以及价格 失败')
console.log(e)
// console.log('获取 查询故障原因 关联的 服务措施详情以及价格 失败')
// console.log(e)
}
})
},
......@@ -277,8 +277,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('最终请求 成功')
console.log(res)
// console.log('最终请求 成功')
// console.log(res)
if(res.statusCode==200){
......@@ -302,8 +302,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('最终请求 失败')
console.log(e)
// console.log('最终请求 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'最终请求失败'
......
......@@ -6,7 +6,7 @@
<view class="nameView">
<text class="titleText">联系人:</text>
<text class="contentText u-m-l-10" v-if="orderInfo.contactName">{{orderInfo.contactName}}</text>
<text class="contentText u-m-l-20 underLine" v-if="orderInfo.contactMobilephone">{{orderInfo.contactMobilephone}}</text>
<text class="contentText u-m-l-20" v-if="orderInfo.contactMobilephone">{{orderInfo.contactMobilephone}}</text>
</view>
</view>
</view>
......@@ -101,7 +101,7 @@
this.orderId = e.orderId
}
this.getTopInfo(e)
//this.getTopInfo(e)
//this.orderId ='10704469'
this.icon_rob = getApp().globalData.icon_rob
this.icon_close = getApp().globalData.icon_close
......@@ -120,8 +120,8 @@
await uni.getStorage({
key: 'token',
success: function (res) {
console.log('抢单页面 本地获取token成功')
console.log(res.data);
// console.log('抢单页面 本地获取token成功')
// console.log(res.data);
getApp().globalData.token = res.data
//that.getData()
......@@ -159,8 +159,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取 抢单详情 成功 成功')
console.log(res)
// console.log('获取 抢单详情 成功 成功')
// console.log(res)
if(res.data.code==200){
......@@ -169,7 +169,7 @@
}else{
console.log('获取 抢单详情 不为200时候')
//console.log('获取 抢单详情 不为200时候')
uni.showToast({
icon:'none',
title:res.data.message
......@@ -182,8 +182,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取 抢单详情 失败')
console.log(e)
// console.log('获取 抢单详情 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'获取抢单详情失败'
......@@ -265,8 +265,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('获取工单详情 成功')
console.log(res)
// console.log('获取工单详情 成功')
// console.log(res)
if(res.data.code==200){
this.orderInfo = res.data.data
......@@ -283,8 +283,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('获取工单详情 失败')
console.log(e)
// console.log('获取工单详情 失败')
// console.log(e)
}
})
},
......@@ -293,7 +293,7 @@
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
console.log('抢单 点击')
//console.log('抢单 点击')
this.checkUserStatus()
}, 1000);
......@@ -307,7 +307,7 @@
//getApp().globalData.checkRobStatus
//检查用户状态
checkUserStatus: function (item) {
console.log('检查用户状态')
//console.log('检查用户状态')
uni.showLoading({
title:'加载中'
})
......@@ -321,8 +321,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('检查用户状态 成功')
console.log(res)
// console.log('检查用户状态 成功')
// console.log(res)
if(res.data.code==200){
this.checkShowModal(res.data.data)
......@@ -343,8 +343,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('检查用户状态 失败')
console.log(e)
// console.log('检查用户状态 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:res.data.message
......@@ -357,8 +357,8 @@
//判断状态显示弹窗
//0 通过 1不是师傅 2没有认证通过 3技能不匹配
checkShowModal: function (data) {
console.log('判断状态显示弹窗')
console.log(data)
// console.log('判断状态显示弹窗')
// console.log(data)
var content = ''
var confirmText = ''
......@@ -448,7 +448,7 @@
//立即入驻
enterNow: function () {
console.log('立即入驻')
//console.log('立即入驻')
uni.navigateTo({
url:'/pages/take/web'
})
......@@ -458,7 +458,7 @@
//立即完善
completeNow: function () {
console.log('立即完善')
//console.log('立即完善')
uni.navigateTo({
url:'/pages/take/web'
})
......@@ -467,7 +467,7 @@
//联系客服
contactService: function () {
console.log('联系客服')
//console.log('联系客服')
uni.makePhoneCall({
phoneNumber:'4008834123'
})
......@@ -482,7 +482,7 @@
uni.showLoading({
title:'请稍候'
})
console.log('抢单请求')
//console.log('抢单请求')
// /wxh-worker-rest/rest/order/revision/applets/{token}/order/acceptAppletsOrder
uni.request({
url: getApp().globalData.domain_Name
......@@ -498,8 +498,8 @@
},
success: (res) => {
uni.hideLoading()
console.log('抢单请求 成功')
console.log(res)
// console.log('抢单请求 成功')
// console.log(res)
if(res.data.code==200){
uni.showToast({
......@@ -521,7 +521,7 @@
// icon:'none',
// title:res.data.message
// })
console.log('抢单不为200时候')
//console.log('抢单不为200时候')
uni.showToast({
icon:'none',
title:res.data.message
......@@ -534,8 +534,8 @@
},
fail: (e) => {
uni.hideLoading()
console.log('抢单请求 失败')
console.log(e)
// console.log('抢单请求 失败')
// console.log(e)
uni.showToast({
icon:'none',
title:'抢单请求失败'
......
......@@ -16,7 +16,7 @@
//https://system.banshouhui.com/weixiuapp/site/index.html#/?pioneerId=40
this.webUrl = getApp().globalData.domain_Name
+ '/weixiuapp/site/index.html#/?pioneerId=40'
console.log(this.webUrl)
//console.log(this.webUrl)
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment