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 59d27628
authored
Sep 21, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
冒烟修改
1 parent
d0303068
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
8 deletions
pages/accountItems/accountItems.js
pages/sceneIndex/sceneIndex.js
pages/sceneIndex/sceneIndex.wxml
store/index.js
subvehicleConversion/pages/indexPage/index.js
pages/accountItems/accountItems.js
View file @
59d2762
...
@@ -257,15 +257,14 @@ Page({
...
@@ -257,15 +257,14 @@ Page({
// 获取园区店下4s店数据
// 获取园区店下4s店数据
get4SStoreList
(
loginUserObj
)
{
get4SStoreList
(
loginUserObj
)
{
let
{
merchantId
,
isSuper
,
uuid
}
=
loginUserObj
let
{
merchantId
,
isSuper
,
uuid
}
=
loginUserObj
get4SStoreList
({
merchantId
:
isSuper
?
undefined
:
merchantId
,
staffUUID
:
uuid
}).
then
(
result
=>
{
// 超管/仅一家4s店
let
obj
=
(
result
&&
result
[
0
])
||
{}
// 超管跳过选择4s店页面
// 超管跳过选择4s店页面
if
(
isSuper
)
{
if
(
isSuper
)
{
// this.setShopMerchantObj(obj)
// this.setShopMerchantObj(obj)
wx
.
$router
.
go
(
'pages.sceneIndex'
)
wx
.
$router
.
go
(
'pages.sceneIndex'
)
return
return
}
}
get4SStoreList
({
merchantId
:
isSuper
?
undefined
:
merchantId
,
staffUUID
:
uuid
}).
then
(
result
=>
{
let
obj
=
(
result
&&
result
[
0
])
||
{}
// 仅一家4s店
// 仅一家4s店
if
(
result
?.
length
==
1
)
{
if
(
result
?.
length
==
1
)
{
this
.
setShopMerchantObj
(
obj
)
this
.
setShopMerchantObj
(
obj
)
...
...
pages/sceneIndex/sceneIndex.js
View file @
59d2762
...
@@ -8,7 +8,8 @@ Page({
...
@@ -8,7 +8,8 @@ Page({
*/
*/
data
:
{
data
:
{
sceneList
:
constantData
.
sceneList
,
sceneList
:
constantData
.
sceneList
,
openSceneArr
:
[]
openSceneArr
:
[],
showPage
:
false
},
},
// 选择场景
// 选择场景
...
@@ -57,7 +58,7 @@ Page({
...
@@ -57,7 +58,7 @@ Page({
getSceneArr
()
{
getSceneArr
()
{
// 超管默认开通全部场景
// 超管默认开通全部场景
let
userInfo
=
wx
.
$util
.
getUserInfo
()
let
userInfo
=
wx
.
$util
.
getUserInfo
()
if
(
userInfo
?.
isSuper
)
return
if
(
userInfo
?.
isSuper
)
return
this
.
setData
({
showPage
:
true
})
wx
.
$util
.
showLoading
()
wx
.
$util
.
showLoading
()
// 获取4s店关联场景数据
// 获取4s店关联场景数据
getShopSceneConfig
({
yqMerchantId
:
userInfo
?.
subLoginUser
?.
merchantId
,
merchantId
:
userInfo
?.
isSuper
?
undefined
:
userInfo
?.
shopMerchantId
}).
then
(
result
=>
{
getShopSceneConfig
({
yqMerchantId
:
userInfo
?.
subLoginUser
?.
merchantId
,
merchantId
:
userInfo
?.
isSuper
?
undefined
:
userInfo
?.
shopMerchantId
}).
then
(
result
=>
{
...
@@ -77,7 +78,7 @@ Page({
...
@@ -77,7 +78,7 @@ Page({
})
})
wx
.
$router
.
reLaunch
(
'pages.loading'
)
wx
.
$router
.
reLaunch
(
'pages.loading'
)
}
}
this
.
setData
({
openSceneArr
:
arr
})
this
.
setData
({
openSceneArr
:
arr
,
showPage
:
true
})
})
})
},
},
...
...
pages/sceneIndex/sceneIndex.wxml
View file @
59d2762
<!-- pages/sceneIndex/sceneIndex.wxml -->
<!-- pages/sceneIndex/sceneIndex.wxml -->
<view class="layout">
<view class="layout">
<scroll-view class="scene-box" scroll-y style="height: calc(100vh - 140rpx - {{isFullSucreen ? 34 : 0}}px - 60rpx);">
<scroll-view
wx:if="{{showPage}}"
class="scene-box" scroll-y style="height: calc(100vh - 140rpx - {{isFullSucreen ? 34 : 0}}px - 60rpx);">
<block wx:for="{{sceneList}}" wx:key="index">
<block wx:for="{{sceneList}}" wx:key="index">
<view class="scene-item {{item.actived ? 'active' : ''}}" bindtap="selectScene" data-scene="{{item.sceneType}}" data-index="{{index}}">
<view class="scene-item {{item.actived ? 'active' : ''}}" bindtap="selectScene" data-scene="{{item.sceneType}}" data-index="{{index}}">
<view class="left">
<view class="left">
...
...
store/index.js
View file @
59d2762
...
@@ -259,9 +259,11 @@ export const get4SStoreList = options => {
...
@@ -259,9 +259,11 @@ export const get4SStoreList = options => {
.
getSceneMerchantRefStoreList
(
options
)
.
getSceneMerchantRefStoreList
(
options
)
.
then
(
res
=>
{
.
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
wx
.
$util
.
hideLoading
()
let
{
code
,
data
}
=
res
let
{
code
,
data
,
message
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
resolve
(
data
||
[])
resolve
(
data
||
[])
}
else
{
wx
.
$util
.
showToast
(
message
)
}
}
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
...
...
subvehicleConversion/pages/indexPage/index.js
View file @
59d2762
...
@@ -77,6 +77,10 @@ Component({
...
@@ -77,6 +77,10 @@ Component({
api
.
getHomeStaticData
(
params
).
then
(
res
=>
{
api
.
getHomeStaticData
(
params
).
then
(
res
=>
{
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
// 分转元
if
(
data
.
todayAmount
)
data
.
todayAmount
=
NP
.
divide
(
data
.
todayAmount
,
100
)
if
(
data
.
monthAmount
)
data
.
todayAmount
=
NP
.
divide
(
data
.
monthAmount
,
100
)
if
(
data
.
totalAmount
)
data
.
todayAmount
=
NP
.
divide
(
data
.
totalAmount
,
100
)
this
.
setData
({
this
.
setData
({
staticData
:
data
||
{}
staticData
:
data
||
{}
})
})
...
...
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