Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
uplus-fapai-mp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 65a96f88
authored
Apr 28, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化下架逻辑,修复状态管理,更新详情页跳转参数
1 parent
44f6a776
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
35 deletions
api/module/carlife.js
packageIndex/pages/orderDetail/orderDetail.js
pages/tab/index/index.js
pages/tab/mine/index.js
project.private.config.json
api/module/carlife.js
deleted
100644 → 0
View file @
44f6a77
import
api
from
'../request/http'
module
.
exports
=
{
/**获取集团或者门店详细信息 */
getMerchantDetail
(
data
)
{
return
api
.
post
({
method
:
'scrm.api.carlife.merchant.detail'
,
...
data
})
}
}
\ No newline at end of file
\ No newline at end of file
packageIndex/pages/orderDetail/orderDetail.js
View file @
65a96f8
...
@@ -33,6 +33,7 @@ Page({
...
@@ -33,6 +33,7 @@ Page({
{
name
:
"photoEngine"
,
label
:
"发动机舱"
},
{
name
:
"photoEngine"
,
label
:
"发动机舱"
},
{
name
:
"photoTrunk"
,
label
:
"后备箱"
},
{
name
:
"photoTrunk"
,
label
:
"后备箱"
},
],
],
isOfflining
:
false
,
showOfflineDialog
:
false
,
showOfflineDialog
:
false
,
offlineButtons
:
[
offlineButtons
:
[
{
text
:
"取消"
,
extClass
:
"btn_cancel"
,
eventFn
:
"dialogCancel"
},
{
text
:
"取消"
,
extClass
:
"btn_cancel"
,
eventFn
:
"dialogCancel"
},
...
@@ -43,7 +44,6 @@ Page({
...
@@ -43,7 +44,6 @@ Page({
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
isOfflining
=
false
;
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
title
:
"查看详情"
,
title
:
"查看详情"
,
});
});
...
@@ -239,19 +239,19 @@ Page({
...
@@ -239,19 +239,19 @@ Page({
},
},
onOfflineConfirm
()
{
onOfflineConfirm
()
{
if
(
this
.
isOfflining
)
return
;
if
(
this
.
data
.
isOfflining
)
return
;
this
.
isOfflining
=
true
;
this
.
setData
({
isOfflining
:
true
})
;
wx
.
p
.
wxApi
.
showLoading
(
"操作中..."
);
wx
.
p
.
wxApi
.
showLoading
(
"操作中..."
);
homeApi
homeApi
.
offShelfAuction
({
id
:
this
.
data
.
orderId
})
.
offShelfAuction
({
id
:
this
.
data
.
orderId
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
setData
({
showOfflineDialog
:
false
});
this
.
setData
({
showOfflineDialog
:
false
});
wx
.
hideLoading
();
wx
.
showToast
({
title
:
"下架成功"
,
icon
:
"success"
,
mask
:
true
});
wx
.
showToast
({
title
:
"下架成功"
,
icon
:
"success"
});
this
.
getDetail
();
// 刷新详情
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
isOfflining
=
false
;
wx
.
hideLoading
();
},
600
);
this
.
getDetail
();
// 刷新详情
this
.
setData
({
isOfflining
:
false
});
},
800
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
isOfflining
=
false
;
this
.
isOfflining
=
false
;
...
...
pages/tab/index/index.js
View file @
65a96f8
...
@@ -43,7 +43,6 @@ Page({
...
@@ -43,7 +43,6 @@ Page({
],
],
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
isOfflining
=
false
;
// let { height, padding_bottom } = wx.p.store.get("navBarSystem");
// let { height, padding_bottom } = wx.p.store.get("navBarSystem");
// this.setData({ navHeight: height });
// this.setData({ navHeight: height });
},
},
...
@@ -154,24 +153,23 @@ Page({
...
@@ -154,24 +153,23 @@ Page({
this
.
setData
({
showOfflineDialog
:
true
,
offlineTargetId
:
id
});
this
.
setData
({
showOfflineDialog
:
true
,
offlineTargetId
:
id
});
},
},
onOfflineConfirm
()
{
onOfflineConfirm
()
{
if
(
this
.
isOfflining
)
return
;
if
(
this
.
data
.
isOfflining
)
return
;
this
.
isOfflining
=
true
;
this
.
setData
({
isOfflining
:
true
})
;
wx
.
p
.
wxApi
.
showLoading
(
"操作中..."
);
wx
.
p
.
wxApi
.
showLoading
(
"操作中..."
);
homeApi
homeApi
.
offShelfAuction
({
id
:
this
.
data
.
offlineTargetId
})
.
offShelfAuction
({
id
:
this
.
data
.
offlineTargetId
})
.
then
(()
=>
{
.
then
(()
=>
{
// 这里执行具体的下架逻辑
// 这里执行具体的下架逻辑
this
.
setData
({
showOfflineDialog
:
false
});
this
.
setData
({
showOfflineDialog
:
false
});
wx
.
showToast
({
title
:
"操作成功"
,
icon
:
"success"
});
wx
.
showToast
({
title
:
"下架成功"
,
icon
:
"success"
,
mask
:
true
});
wx
.
hideLoading
();
this
.
onRefresh
();
this
.
setData
({
offlineTargetId
:
null
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
isOfflining
=
false
;
wx
.
hideLoading
();
},
600
);
this
.
onRefresh
();
this
.
setData
({
offlineTargetId
:
null
,
isOfflining
:
false
});
},
800
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
isOfflining
=
false
;
this
.
setData
({
isOfflining
:
false
})
;
wx
.
hideLoading
();
wx
.
hideLoading
();
});
});
},
},
...
...
pages/tab/mine/index.js
View file @
65a96f8
...
@@ -89,22 +89,20 @@ Page({
...
@@ -89,22 +89,20 @@ Page({
onLogoutConfirm
()
{
onLogoutConfirm
()
{
if
(
this
.
data
.
isLogouting
)
return
;
if
(
this
.
data
.
isLogouting
)
return
;
this
.
setData
({
isLogouting
:
true
});
this
.
setData
({
isLogouting
:
true
});
this
.
toggleLogoutDialog
();
wx
.
p
.
wxApi
.
showLoading
(
"加载中..."
);
wx
.
p
.
wxApi
.
showLoading
(
"加载中..."
);
commonApi
commonApi
.
logout
()
.
logout
()
.
then
(()
=>
{
.
then
(()
=>
{
this
.
setData
({
isLogouting
:
false
});
this
.
setData
({
showLogoutDialog
:
false
});
wx
.
p
.
wxApi
.
showLoading
();
wx
.
p
.
storage
.
rm
(
"token"
);
wx
.
p
.
storage
.
rm
(
"token"
);
wx
.
p
.
isLogin
=
false
;
wx
.
p
.
isLogin
=
false
;
wx
.
p
.
storage
.
rm
(
"userInfo"
);
wx
.
p
.
storage
.
rm
(
"userInfo"
);
wx
.
hideLoading
();
wx
.
p
.
router
.
redirectTo
(
"/pages/Login/Login"
);
wx
.
p
.
router
.
redirectTo
(
"/pages/Login/Login"
);
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
setData
({
isLogouting
:
false
});
this
.
setData
({
isLogouting
:
false
});
wx
.
hideLoading
();
})
});
},
},
async
goToInspection
()
{
async
goToInspection
()
{
...
...
project.private.config.json
View file @
65a96f8
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
{
{
"name"
:
"详情"
,
"name"
:
"详情"
,
"pathName"
:
"packageIndex/pages/orderDetail/orderDetail"
,
"pathName"
:
"packageIndex/pages/orderDetail/orderDetail"
,
"query"
:
"id=5
6
"
,
"query"
:
"id=5
9
"
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
},
...
...
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