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 03a08936
authored
Jun 30, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权益补单 参数处理错误
1 parent
807dc5cc
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
77 additions
and
15 deletions
components/Popup/Popup.js
components/Popup/Popup.wxml
components/Popup/Popup.wxss
components/storePicker/storePicker.js
components/storePicker/storePicker.wxml
components/storePicker/storePicker.wxss
packageEquity/pages/TabBar/equityPage.js
packageEquity/pages/TabBar/equityPage.wxml
packageEquity/pages/carEquity/components/EquityList/EquityList.js
packageEquity/pages/carEquity/components/constant/data.js
project.private.config.json
tabWorkOrder/pages/additionRecordOrder/additionRecordOrder.js
utils/request/request.js
components/Popup/Popup.js
View file @
03a0893
// tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js
// tabWorkOrder/pages/createOrder/createOrderComponents/Popup/Popup.js
Component
({
Component
({
externalClasses
:
[
'popup-slot-class'
],
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
...
...
components/Popup/Popup.wxml
View file @
03a0893
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<block wx:if="{{ title }}">
<block wx:if="{{ title }}">
<view class="popup-title text-center">{{title}}</view>
<view class="popup-title text-center">{{title}}</view>
</block>
</block>
<view class="popup-slot {{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}">
<view class="popup-slot
popup-slot-class
{{ isFullSucreen?title?'isFullSucreen':'isFullSucreen-notitle':'' }}">
<slot></slot>
<slot></slot>
</view>
</view>
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="popup-footer {{ isFullSucreen?'isFullSucreen':'' }}">
...
...
components/Popup/Popup.wxss
View file @
03a0893
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
}
}
.popup-slot {
.popup-slot {
height: calc(100% -
1
00rpx);
height: calc(100% -
2
00rpx);
}
}
.popup-slot.isFullSucreen {
.popup-slot.isFullSucreen {
...
...
components/storePicker/storePicker.js
View file @
03a0893
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Component
({
Component
({
options
:
{
options
:
{
// 在组件定义时的选项中启用多slot支持
// 在组件定义时的选项中启用多slot支持
multipleSlots
:
true
multipleSlots
:
true
,
},
},
/**
/**
* 组件的属性列表
* 组件的属性列表
...
...
components/storePicker/storePicker.wxml
View file @
03a0893
<!--packageEquity/components/storePicker/storePicker.wxml-->
<!--packageEquity/components/storePicker/storePicker.wxml-->
<popup class="date-background" show="{{ show }}" bindconfirm="confirm" height="800rpx">
<popup class="date-background"
popup-slot-class="popup-style"
show="{{ show }}" bindconfirm="confirm" height="800rpx">
<view class="date-container">
<view class="date-container">
<view class="date-confirm">
<view class="date-confirm">
<view class="search-box">
<view class="search-box">
...
...
components/storePicker/storePicker.wxss
View file @
03a0893
...
@@ -58,4 +58,8 @@
...
@@ -58,4 +58,8 @@
white-space: nowrap;
white-space: nowrap;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
}
.popup-style{
height: calc(100% - 100rpx)!important;
}
}
\ No newline at end of file
\ No newline at end of file
packageEquity/pages/TabBar/equityPage.js
View file @
03a0893
...
@@ -124,9 +124,9 @@ Page({
...
@@ -124,9 +124,9 @@ Page({
changeTabBar
(
e
)
{
changeTabBar
(
e
)
{
let
{
pageShow
}
=
this
.
data
,
let
{
pageShow
}
=
this
.
data
,
tabIndex
=
e
.
detail
tabIndex
=
e
.
detail
this
.
setData
({
//
this.setData({
tabIndex
//
tabIndex
})
//
})
console
.
log
(
pageShow
[
tabIndex
])
console
.
log
(
pageShow
[
tabIndex
])
// if (!pageShow[tabIndex]) {
// if (!pageShow[tabIndex]) {
// this.getComponentPage().onLoad && this.getComponentPage().onLoad()
// this.getComponentPage().onLoad && this.getComponentPage().onLoad()
...
...
packageEquity/pages/TabBar/equityPage.wxml
View file @
03a0893
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 0?'':'hide'}}" mode="{{mode}}" />
<quotation-list id="page-0" navBarHeight="{{navBarHeight}}" class="pagedetail {{tabIndex == 0?'':'hide'}}" mode="{{mode}}" />
<equity-list
<equity-list
id="page-1"
id="page-1"
t
abIndex="{{tabIndex}}"
outT
abIndex="{{tabIndex}}"
navBarHeight="{{navBarHeight}}"
navBarHeight="{{navBarHeight}}"
class="pagedetail {{tabIndex == 1?'':'hide'}}" />
class="pagedetail {{tabIndex == 1?'':'hide'}}" />
</block>
</block>
...
...
packageEquity/pages/carEquity/components/EquityList/EquityList.js
View file @
03a0893
...
@@ -10,7 +10,7 @@ Component({
...
@@ -10,7 +10,7 @@ Component({
type
:
Number
,
type
:
Number
,
value
:
0
value
:
0
},
},
t
abIndex
:
{
outT
abIndex
:
{
type
:
Number
,
type
:
Number
,
observer
(
val
)
{
observer
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
...
...
packageEquity/pages/carEquity/components/constant/data.js
View file @
03a0893
...
@@ -6,7 +6,12 @@ const equityStatusObj = {
...
@@ -6,7 +6,12 @@ const equityStatusObj = {
'2'
:
'提单成功'
,
'2'
:
'提单成功'
,
'3'
:
'提单失败'
'3'
:
'提单失败'
}
}
const
equityStatusList
=
[{
const
equityStatusList
=
[
{
confName
:
'全部'
,
confId
:
''
},
{
confName
:
'待补单'
,
confName
:
'待补单'
,
confId
:
'0'
confId
:
'0'
},
{
},
{
...
...
project.private.config.json
View file @
03a0893
...
@@ -340,6 +340,20 @@
...
@@ -340,6 +340,20 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"1.1 首页"
,
"pathName"
:
"tabIndex/pages/index/index"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
"订单补录"
,
"pathName"
:
"tabWorkOrder/pages/additionRecordOrder/additionRecordOrder"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
tabWorkOrder/pages/additionRecordOrder/additionRecordOrder.js
View file @
03a0893
...
@@ -406,14 +406,45 @@ Page({
...
@@ -406,14 +406,45 @@ Page({
this
.
setData
({
this
.
setData
({
disabled
:
true
disabled
:
true
})
})
// console.log(object);
// const orderObj = {
// couponName: "流程测试新建001",
// customer: {customerName: "张立顺",
// customerPhone: "15817639334",
// customerSex: "2",
// experienceFlag: "Y",
// plateNumber: "",
// standNo: ""},
// customerCouponCode: "GH151S",
// employeeName: "刘伟",
// merchantCouponId: 11385,
// merchantId: 44211116,
// merchantName: "流程测试4s店",
// outTradeNo: "0120230630676252458305200128",
// remark: "",
// selectPayType: 2,
// sellerMerchantId: 44211025,
// sellerMerchantName: "流程测试园区门店",
// sellerName: "zhangls",
// sellerUserId: "bfe4919ab01143e5844846ef92aa3db3",
// subOrderList: [
// {baseGoodsId: null, totalPrice: 0.1, number: 1, merchantGoodsId: 7213},
// {baseGoodsId: null, totalPrice: 0.1, number: 1, merchantGoodsId: 5897}
// ],
// subShopMerchantId: 44211746,
// subShopMerchantName: "test_xjq03",
// // userId: "cbe5621e7afa4ccaac1b279c2a2ee98d",
// }
console
.
log
(
orderObj
);
// return
// return
api
api
.
supplementOrder
(
orderObj
)
.
supplementOrder
(
orderObj
)
.
then
(
res
=>
{
.
then
(
res
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
// console.log(orderObj, res)
// console.log(orderObj, res)
let
{
code
,
data
,
message
}
=
res
let
{
code
,
data
,
message
,
subErrors
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
if
(
save
)
{
if
(
save
)
{
wx
.
showModal
({
wx
.
showModal
({
...
@@ -439,7 +470,8 @@ Page({
...
@@ -439,7 +470,8 @@ Page({
}
}
}
else
{
}
else
{
this
.
showToast
(
message
)
this
.
showToast
(
message
)
throw
message
// console.log(subErrors);
throw
subErrors
}
}
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
...
...
utils/request/request.js
View file @
03a0893
...
@@ -36,7 +36,7 @@ class Request {
...
@@ -36,7 +36,7 @@ class Request {
success
(
response
)
{
success
(
response
)
{
/**业务代码 */
/**业务代码 */
let
{
let
{
data
:
{
code
,
message
},
data
:
{
code
,
message
,
subErrors
},
data
data
}
=
response
}
=
response
...
@@ -47,7 +47,13 @@ class Request {
...
@@ -47,7 +47,13 @@ class Request {
if
(
thisPage
.
route
!=
'pages/wxLogin/wxLogin'
)
{
if
(
thisPage
.
route
!=
'pages/wxLogin/wxLogin'
)
{
getApp
().
login
(
true
)
getApp
().
login
(
true
)
}
}
}
else
if
(
code
==
-
1
)
{
}
// else if (code == 32){
// resolve(data)
// // console.log(subErrors);
// throw subErrors
// }
else
if
(
code
==
-
1
)
{
wx
.
showToast
({
wx
.
showToast
({
title
:
message
||
'网络请求失败'
,
title
:
message
||
'网络请求失败'
,
icon
:
'none'
icon
:
'none'
...
...
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