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 44014e3c
authored
Mar 21, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v4.17.0' into dev_v4.17.1
2 parents
6dcd842c
d40cbd1c
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
29 deletions
app.json
packageEquity/pages/carEquity/components/EquityList/EquityList.js
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
pages/accountItems/accountItems.js
pages/constant/data.js
pages/sceneIndex/sceneIndex.js
app.json
View file @
44014e3
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"backgroundTextStyle"
:
"light"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTitleText"
:
"
精品升级
"
,
"navigationBarTitleText"
:
"
生意助手员工版
"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
},
},
"tabBar"
:
{
"tabBar"
:
{
...
...
packageEquity/pages/carEquity/components/EquityList/EquityList.js
View file @
44014e3
...
@@ -66,13 +66,15 @@ Component({
...
@@ -66,13 +66,15 @@ Component({
},
},
triggered
:
false
,
triggered
:
false
,
scrollTop
:
0
,
scrollTop
:
0
,
isShowTips
:
true
isShowTips
:
true
,
userInfo
:
{}
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
setData
({
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
})
this
.
onLoad
(
true
)
this
.
onLoad
(
true
)
}
}
...
...
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
View file @
44014e3
...
@@ -66,8 +66,11 @@
...
@@ -66,8 +66,11 @@
<!-- footer -->
<!-- footer -->
<view class="item-footer">
<view class="item-footer">
<view>{{item.createdDate}}</view>
<view>{{item.createdDate}}</view>
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<view wx:if="{{item.orderStatus == '2'}}" class="order-btn default-btn" bindtap="handlePreviewContract" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
<view wx:else class="order-btn" bindtap="handleRecordOrder" data-target="{{item}}">{{btnTxt[item.orderStatus]}}</view>
</block>
</view>
</view>
</view>
</view>
<block wx:if="{{nothing}}">
<block wx:if="{{nothing}}">
...
...
packageEquity/pages/carQuotation/index/index.js
View file @
44014e3
...
@@ -61,14 +61,17 @@ Component({
...
@@ -61,14 +61,17 @@ Component({
total
:
0
,
total
:
0
,
storeInfo
:
{},
storeInfo
:
{},
triggered
:
false
,
triggered
:
false
,
scrollTop
:
0
scrollTop
:
0
,
userInfo
:
{}
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
this
.
setData
({
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
})
console
.
log
(
this
.
data
.
userInfo
)
this
.
onLoad
(
true
)
this
.
onLoad
(
true
)
}
}
},
},
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
44014e3
...
@@ -125,14 +125,17 @@
...
@@ -125,14 +125,17 @@
</view>
</view>
<view wx:else>创建时间:{{item.createdTime}}</view>
<view wx:else>创建时间:{{item.createdTime}}</view>
</view>
</view>
<view wx:if="{{item.orderStatus != '4'}}">
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
{{btnTxt[item.orderStatus]}}
<view wx:if="{{item.orderStatus != '4'}}">
</view>
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
<view wx:else class="order-btn default-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
{{btnTxt[item.orderStatus]}}
</view>
<view wx:else class="order-btn default-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
</view>
</view>
</
view
>
</
block
>
</view>
</view>
</view>
</view>
<block wx:if="{{nothing}}">
<block wx:if="{{nothing}}">
...
@@ -145,5 +148,6 @@
...
@@ -145,5 +148,6 @@
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</view>
<image data-target="addOrder" bind:tap="handleClickOrderBtn" class="addOrder" src="/packageEquity/images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<image data-target="addOrder" wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}" bind:tap="handleClickOrderBtn" class="addOrder" src="/packageEquity/images/addOrder.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" binderror="" bindload="" />
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/accountItems/accountItems.js
View file @
44014e3
...
@@ -3,6 +3,7 @@ import api from '../../api/api.js'
...
@@ -3,6 +3,7 @@ import api from '../../api/api.js'
const
app
=
getApp
()
const
app
=
getApp
()
import
{
getYQorderInfo
}
from
'~/store/index'
import
{
getYQorderInfo
}
from
'~/store/index'
import
{
checkYqdSuper
}
from
'~/store/index'
import
{
checkYqdSuper
}
from
'~/store/index'
import
constantData
from
'../constant/data'
Page
({
Page
({
/**
/**
* 页面的初始数据
* 页面的初始数据
...
@@ -139,10 +140,12 @@ Page({
...
@@ -139,10 +140,12 @@ Page({
let
{
loginUserInfoList
}
=
this
.
data
let
{
loginUserInfoList
}
=
this
.
data
let
id
=
null
let
id
=
null
let
yqMerchantId
=
null
let
yqMerchantId
=
null
let
isSuper
=
null
loginUserInfoList
.
map
(
e
=>
{
loginUserInfoList
.
map
(
e
=>
{
if
(
e
.
active
)
{
if
(
e
.
active
)
{
yqMerchantId
=
e
.
merchantId
yqMerchantId
=
e
.
merchantId
id
=
e
.
uuid
id
=
e
.
uuid
isSuper
=
e
.
isSuper
}
}
})
})
if
(
!
id
)
{
if
(
!
id
)
{
...
@@ -174,6 +177,14 @@ Page({
...
@@ -174,6 +177,14 @@ Page({
wx
.
$router
.
reLaunch
(
`
${
target
}
.
${
name
}
`
,
query
)
wx
.
$router
.
reLaunch
(
`
${
target
}
.
${
name
}
`
,
query
)
wx
.
$SCENE
=
null
wx
.
$SCENE
=
null
}
else
{
}
else
{
// 超管默认开通所有场景
if
(
isSuper
)
{
// 0 会员权益/升级 1 精品升级
let
openSceneArr
=
constantData
.
sceneList
.
map
(
val
=>
{
return
val
?.
sceneType
})
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
openSceneArr
})
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
return
}
// 获取开通的业务场景
// 获取开通的业务场景
api
.
getYqMerchantSceneConfigAPI
({
yqMerchantId
:
yqMerchantId
}).
then
(
res
=>
{
api
.
getYqMerchantSceneConfigAPI
({
yqMerchantId
:
yqMerchantId
}).
then
(
res
=>
{
let
{
data
,
message
,
code
}
=
res
let
{
data
,
message
,
code
}
=
res
...
...
pages/constant/data.js
0 → 100644
View file @
44014e3
const
sceneList
=
[
{
sceneName
:
'精品升级'
,
sceneDesc
:
'太阳膜升级转化下单'
,
sceneType
:
1
,
actived
:
false
},
{
sceneName
:
'会员权益/升级'
,
sceneDesc
:
'新车车损险下单'
,
sceneType
:
0
,
actived
:
false
}
]
export
default
{
sceneList
}
\ No newline at end of file
\ No newline at end of file
pages/sceneIndex/sceneIndex.js
View file @
44014e3
// pages/sceneIndex/sceneIndex.js
// pages/sceneIndex/sceneIndex.js
import
logOutAPI
from
'../../tabMine/api'
import
logOutAPI
from
'../../tabMine/api'
import
constantData
from
'../constant/data'
const
app
=
getApp
()
const
app
=
getApp
()
Page
({
Page
({
/**
/**
...
@@ -7,20 +8,7 @@ Page({
...
@@ -7,20 +8,7 @@ Page({
*/
*/
data
:
{
data
:
{
timeState
:
''
,
timeState
:
''
,
sceneList
:
[
sceneList
:
constantData
.
sceneList
,
{
sceneName
:
'精品升级'
,
sceneDesc
:
'太阳膜升级转化下单'
,
sceneType
:
1
,
actived
:
false
},
{
sceneName
:
'会员权益/升级'
,
sceneDesc
:
'新车车损险下单'
,
sceneType
:
0
,
actived
:
false
}
],
isShow
:
false
isShow
:
false
},
},
...
...
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