Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68fee097
authored
Jul 25, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调修改
1 parent
2caa338c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
69 deletions
tabWorkOrder/pages/confirmOrder/confirmOrder.js
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/orderDetail/orderDetail.js
tabWorkOrder/pages/confirmOrder/confirmOrder.js
View file @
68fee09
...
...
@@ -10,8 +10,7 @@ Page({
data
:
{
...
order_mixins
.
data
,
orderInfo
:
{},
showTips
:
true
,
positionTypeList
:
[]
showTips
:
true
},
closeTips
()
{
this
.
setData
({
...
...
@@ -225,24 +224,15 @@ Page({
setWebSocket
()
},
onRoute
(
options
)
{
this
.
getGoodsPosition
(
options
)
},
// 获取太阳膜类商品部位数据
getGoodsPosition
(
options
)
{
getPositionList
().
then
(
res
=>
{
this
.
setData
({
positionTypeList
:
res
||
[]
})
if
(
options
.
orderCode
)
{
wx
.
$util
.
showLoading
(
'加载中...'
)
this
.
getDetail
(
options
.
orderCode
)
}
})
if
(
options
.
orderCode
)
{
wx
.
$util
.
showLoading
(
'加载中...'
)
this
.
getDetail
(
options
.
orderCode
)
}
},
getDetail
(
orderCode
)
{
async
getDetail
(
orderCode
)
{
// console.log(orderCode)
let
_this
=
this
let
{
positionTypeList
}
=
_this
.
data
const
positionTypeList
=
await
getPositionList
()
||
[]
api
.
getOrderDetail
({
orderCode
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
View file @
68fee09
...
...
@@ -20,8 +20,7 @@ Page({
showTip
:
false
,
warrantyCardVisible
:
true
,
showRatingPopup
:
false
,
showRatingCard
:
true
,
// 显示评价卡片
positionTypeList
:
[]
showRatingCard
:
true
// 显示评价卡片
},
RatingPopupSetting
()
{
this
.
setData
({
...
...
@@ -120,7 +119,13 @@ Page({
onRoute
(
options
)
{
console
.
log
(
options
)
// options.orderCode = '230331185108355'
this
.
getGoodsPosition
(
options
)
if
(
options
.
orderCode
)
{
this
.
setData
({
orderCode
:
options
.
orderCode
})
this
.
getOrderDetail
(
options
.
orderCode
)
// this.getGrass(options.orderCode)
}
},
/**
* 生命周期函数--监听页面加载
...
...
@@ -128,7 +133,9 @@ Page({
onLoad
:
function
(
options
)
{
console
.
log
(
options
)
// debugger
this
.
getGoodsPosition
(
options
)
if
(
options
.
orderCode
)
{
this
.
getOrderDetail
(
options
.
orderCode
)
}
let
o
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
this
.
checkPhoneShow
(
app
.
globalData
.
YQorderSetting
?.
yqPhoneConfig
)
this
.
setData
({
...
...
@@ -137,20 +144,7 @@ Page({
isStaff
:
app
.
globalData
.
isStaff
})
},
// 获取太阳膜类商品部位数据
getGoodsPosition
(
options
)
{
getPositionList
().
then
(
res
=>
{
this
.
setData
({
positionTypeList
:
res
||
[]
})
if
(
options
.
orderCode
)
{
this
.
setData
({
orderCode
:
options
.
orderCode
})
this
.
getOrderDetail
(
options
.
orderCode
)
}
})
},
checkPhoneShow
(
config
)
{
console
.
log
(
'config'
,
config
)
// 有就屏蔽手机号的显示
...
...
@@ -162,9 +156,9 @@ Page({
})
}
},
getOrderDetail
(
orderCode
)
{
async
getOrderDetail
(
orderCode
)
{
let
_this
=
this
let
{
positionTypeList
}
=
_this
.
data
const
positionTypeList
=
await
getPositionList
()
||
[]
wx
.
$util
.
showLoading
(
'加载中...'
)
api
.
getOrderDetail
({
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
68fee09
...
...
@@ -585,10 +585,14 @@ Page({
}
},
getOrderBaseGoodsList
(
merchantId
)
{
let
{
first
,
orderObj
,
positionTypeList
}
=
this
.
data
async
getOrderBaseGoodsList
(
merchantId
)
{
let
{
first
,
orderObj
}
=
this
.
data
let
{
subOrderList
}
=
orderObj
const
selectPayType
=
orderObj
.
selectPayType
==
0
const
positionTypeList
=
await
getPositionList
()
||
[]
this
.
setData
({
positionTypeList
})
api
.
getOrderBaseGoodsList
({
merchantId
,
...
...
@@ -742,21 +746,12 @@ Page({
})
},
// 获取太阳膜类商品部位数据
getGoodsPosition
()
{
getPositionList
().
then
(
res
=>
{
this
.
setData
({
positionTypeList
:
res
||
[]
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
this
.
getConfig
()
this
.
getGoodsPosition
()
},
/**
* 生命周期函数--监听页面显示
...
...
tabWorkOrder/pages/orderDetail/orderDetail.js
View file @
68fee09
...
...
@@ -17,8 +17,7 @@ Page({
defaultCustomerService
:
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/kf.png'
,
failCustomerService
:
'../images/kfrefresh.png'
,
warrantyCardVisible
:
true
,
signatureSwitch
:
false
,
//不需要走签名逻辑 没有开启签名功能或则是战败订单
positionTypeList
:
[]
signatureSwitch
:
false
//不需要走签名逻辑 没有开启签名功能或则是战败订单
},
jumpUserPortrait
(){
wx
.
$router
.
go
(
'tabDate.userPortrait'
,
this
.
data
.
orderInfo
)
...
...
@@ -87,14 +86,24 @@ Page({
},
onRoute
(
options
)
{
// console.log(options)
this
.
getGoodsPosition
(
options
)
if
(
options
.
orderCode
)
{
this
.
getOrderDetail
(
options
.
orderCode
)
this
.
setData
({
orderCode
:
options
.
orderCode
})
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
// console.log(options.orderCode)
this
.
getGoodsPosition
(
options
)
if
(
options
.
orderCode
)
{
this
.
getOrderDetail
(
options
.
orderCode
)
this
.
setData
({
orderCode
:
options
.
orderCode
})
}
let
o
=
wx
.
$util
.
getStorageSync
(
'dj_boutique_user_info'
)
...
...
@@ -107,21 +116,6 @@ Page({
})
},
// 获取太阳膜类商品部位数据
getGoodsPosition
(
options
)
{
getPositionList
().
then
(
res
=>
{
this
.
setData
({
positionTypeList
:
res
||
[]
})
if
(
options
.
orderCode
)
{
this
.
getOrderDetail
(
options
.
orderCode
)
this
.
setData
({
orderCode
:
options
.
orderCode
})
}
})
},
checkPhoneShow
(
config
)
{
// 有就屏蔽手机号的显示
if
(
config
)
{
...
...
@@ -132,10 +126,10 @@ Page({
})
}
},
getOrderDetail
(
orderCode
)
{
async
getOrderDetail
(
orderCode
)
{
// console.log(orderCode)
let
_this
=
this
let
{
positionTypeList
}
=
_this
.
data
const
positionTypeList
=
await
getPositionList
()
||
[]
wx
.
$util
.
showLoading
(
'加载中...'
)
api
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment