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:'接单请求失败'
......
This diff is collapsed.
......@@ -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