Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
77407bcf
Commit
77407bcf
authored
May 14, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工单拒单接口修改
删除调试代码
parent
6fe9ef63
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
12 deletions
+26
-12
order.js
src/common/api/order.js
+1
-1
section.vue
src/pages/learn/section.vue
+0
-2
detail.vue
src/pages/order/detail.vue
+7
-4
refuse.vue
src/pages/order/refuse.vue
+18
-5
No files found.
src/common/api/order.js
View file @
77407bcf
...
@@ -155,7 +155,7 @@ let orderApiFun = function(vm){
...
@@ -155,7 +155,7 @@ let orderApiFun = function(vm){
let
listAccessHistory
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
prefix
+
vm
.
vuex_token
+
'/myinfo/access/history'
,
params
,
jsonType
);
let
listAccessHistory
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
prefix
+
vm
.
vuex_token
+
'/myinfo/access/history'
,
params
,
jsonType
);
// 获取我的钱包-资产信息
// 获取我的钱包-资产信息
let
getAssets
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
settle
+
vm
.
vuex_token
+
'/v
2
/total'
,
params
);
let
getAssets
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
settle
+
vm
.
vuex_token
+
'/v
3
/total'
,
params
);
// 获取我的钱包-收入流水
// 获取我的钱包-收入流水
let
listStatement
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
settle
+
vm
.
vuex_token
+
'/v2/statement'
,
params
);
let
listStatement
=
async
(
params
=
{})
=>
await
vm
.
$u
.
get
(
settle
+
vm
.
vuex_token
+
'/v2/statement'
,
params
);
// 获取我的钱包-支付单一览
// 获取我的钱包-支付单一览
...
...
src/pages/learn/section.vue
View file @
77407bcf
...
@@ -138,9 +138,7 @@
...
@@ -138,9 +138,7 @@
this
.
changeActiveAction
()
this
.
changeActiveAction
()
},
},
changeActiveAction
()
{
changeActiveAction
()
{
// debugger
let
activeKey
=
0
let
activeKey
=
0
// debugger
for
(
let
i
in
this
.
sectionList
)
{
for
(
let
i
in
this
.
sectionList
)
{
this
.
sectionList
[
i
].
isActive
=
this
.
section_id
==
this
.
sectionList
[
i
].
id
?
true
:
false
;
this
.
sectionList
[
i
].
isActive
=
this
.
section_id
==
this
.
sectionList
[
i
].
id
?
true
:
false
;
if
(
this
.
sectionList
[
i
].
isActive
){
if
(
this
.
sectionList
[
i
].
isActive
){
...
...
src/pages/order/detail.vue
View file @
77407bcf
...
@@ -294,7 +294,6 @@
...
@@ -294,7 +294,6 @@
// uni.getLocation({
// uni.getLocation({
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度
// type: 'gcj02', //返回可以用于uni.openLocation的经纬度
// success: function (res) {
// success: function (res) {
debugger
const
latitude
=
this
.
contactAddressLatitud
//res.latitude;
const
latitude
=
this
.
contactAddressLatitud
//res.latitude;
const
longitude
=
this
.
contactAddressLongitud
//res.longitude;
const
longitude
=
this
.
contactAddressLongitud
//res.longitude;
uni
.
openLocation
({
uni
.
openLocation
({
...
@@ -690,9 +689,13 @@
...
@@ -690,9 +689,13 @@
var
data
=
{}
var
data
=
{}
this
.
$u
.
api
.
checkRejectable
(
data
).
then
(
res
=>
{
this
.
$u
.
api
.
checkRejectable
(
data
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
if
(
res
.
data
===
true
){
if
(
res
.
data
&&
res
.
data
.
rejectable
){
uni
.
navigateTo
({
this
.
$u
.
route
({
url
:
'pages/order/refuse?orderId='
+
this
.
order
.
orderId
url
:
'pages/order/refuse'
,
params
:
{
orderId
:
this
.
order
.
orderId
,
count
:
res
.
data
.
remainderTimes
}
})
})
}
else
{
}
else
{
this
.
commonToast
(
"本月无拒单机会,请联系客服"
,
"warning"
)
this
.
commonToast
(
"本月无拒单机会,请联系客服"
,
"warning"
)
...
...
src/pages/order/refuse.vue
View file @
77407bcf
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
rejectReason
:
''
,
rejectReason
:
''
,
remark
:
''
remark
:
''
},
},
count
:
0
,
// 剩余次数
count
:
3
,
// 剩余次数
};
};
},
},
computed
:
{
computed
:
{
...
@@ -62,18 +62,31 @@
...
@@ -62,18 +62,31 @@
PopView
PopView
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
e
&&
e
.
orderId
)
{
if
(
e
)
{
if
(
e
.
orderId
)
{
this
.
orderId
=
e
.
orderId
this
.
orderId
=
e
.
orderId
}
else
if
(
e
.
count
)
{
this
.
count
=
e
.
count
}
}
}
if
(
!
this
.
count
)
{
this
.
getRejectCount
()
this
.
getRejectCount
()
}
},
},
methods
:
{
methods
:
{
changeReason
(
reason
)
{
changeReason
(
reason
)
{
this
.
formData
.
rejectReason
=
reason
this
.
formData
.
rejectReason
=
reason
},
},
getRejectCount
()
{
getRejectCount
()
{
let
self
=
this
// 获取拒单次数
// 获取拒单次数
this
.
count
=
3
self
.
$u
.
api
.
checkRejectable
({}).
then
(
res
=>
{
if
(
res
.
code
===
200
&&
res
.
data
&&
res
.
data
.
rejectable
)
{
self
.
count
=
res
.
data
.
remainderTimes
}
else
{
self
.
count
=
0
}
})
},
},
handleClickSubmit
()
{
handleClickSubmit
()
{
...
...
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