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