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 f01f640d
authored
Mar 21, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
合并线上代码
2 parents
6d47207d
1c3c4812
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
65 additions
and
35 deletions
api/api.js
app.json
packageEquity/pages/carEquity/components/EquityList/EquityList.js
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
packageEquity/pages/carQuotation/fullSignture/fullSignture.js
packageEquity/pages/carQuotation/index/index.js
packageEquity/pages/carQuotation/index/index.wxml
packageEquity/pages/carQuotation/signature/signature.js
pages/accountItems/accountItems.js
pages/constant/data.js
pages/sceneIndex/sceneIndex.js
api/api.js
View file @
f01f640
...
...
@@ -82,10 +82,10 @@ module.exports = {
return
api
.
post
(
'dj.api.smartcarlife.config.list'
,
data
)
},
/
/ /
** 获取指定商户指定日期范围的邀约统计 */
//
getInviteDateList(data) {
//
return api.post('dj.api.smartcarlife.inviteStat.merchant.list', data)
//
},
/** 获取指定商户指定日期范围的邀约统计 */
getInviteDateList
(
data
)
{
return
api
.
post
(
'dj.api.smartcarlife.inviteStat.merchant.list'
,
data
)
},
/** 获取WebSocket地址 */
getWsUrl
()
{
return
api
.
post
(
'dj.api.smartcarlife.getWsUrl'
)
...
...
app.json
View file @
f01f640
...
...
@@ -20,7 +20,7 @@
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"navigationBarBackgroundColor"
:
"#fff"
,
"navigationBarTitleText"
:
"
精品升级
"
,
"navigationBarTitleText"
:
"
生意助手员工版
"
,
"navigationBarTextStyle"
:
"black"
},
"tabBar"
:
{
...
...
packageEquity/pages/carEquity/components/EquityList/EquityList.js
View file @
f01f640
...
...
@@ -66,13 +66,15 @@ Component({
},
triggered
:
false
,
scrollTop
:
0
,
isShowTips
:
true
isShowTips
:
true
,
userInfo
:
{}
},
lifetimes
:
{
attached
()
{
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
this
.
onLoad
(
true
)
}
...
...
packageEquity/pages/carEquity/components/EquityList/EquityList.wxml
View file @
f01f640
...
...
@@ -66,8 +66,11 @@
<!-- footer -->
<view class="item-footer">
<view>{{item.createdDate}}</view>
<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>
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<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>
<block wx:if="{{nothing}}">
...
...
packageEquity/pages/carQuotation/fullSignture/fullSignture.js
View file @
f01f640
...
...
@@ -196,7 +196,7 @@ Page({
quotationUpgrade
(
para
).
then
(
res
=>
{
wx
.
$util
.
hideLoading
()
let
{
code
,
data
}
=
res
code
==
0
&&
wx
.
$router
.
re
Launch
(
'CarQuotationPay'
,
{
data
,
id
})
code
==
0
&&
wx
.
$router
.
re
directTo
(
'CarQuotationPay'
,
{
data
,
id
})
})
}
})
packageEquity/pages/carQuotation/index/index.js
View file @
f01f640
...
...
@@ -61,14 +61,17 @@ Component({
total
:
0
,
storeInfo
:
{},
triggered
:
false
,
scrollTop
:
0
scrollTop
:
0
,
userInfo
:
{}
},
lifetimes
:
{
attached
()
{
this
.
setData
({
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{}
storeInfo
:
wx
.
$util
.
getUserInfo
()?.
default4SStoreInfo
||
{},
userInfo
:
wx
.
$util
.
getUserInfo
()
||
{}
})
console
.
log
(
this
.
data
.
userInfo
)
this
.
onLoad
(
true
)
}
},
...
...
packageEquity/pages/carQuotation/index/index.wxml
View file @
f01f640
...
...
@@ -125,14 +125,17 @@
</view>
<view wx:else>创建时间:{{item.createdTime}}</view>
</view>
<view wx:if="{{item.orderStatus != '4'}}">
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
<view wx:else class="order-btn default-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
<!-- 超管isSuper/商户类型 userType 1账号不可操作 -->
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2}}">
<view wx:if="{{item.orderStatus != '4'}}">
<view wx:if="{{item.orderStatus == '-1' || item.orderStatus == '0'}}" class="order-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
<view wx:else class="order-btn default-btn" bindtap="handleClickBtn" data-target="{{item}}">
{{btnTxt[item.orderStatus]}}
</view>
</view>
</
view
>
</
block
>
</view>
</view>
<block wx:if="{{nothing}}">
...
...
@@ -145,5 +148,6 @@
</view>
</scroll-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>
\ No newline at end of file
packageEquity/pages/carQuotation/signature/signature.js
View file @
f01f640
...
...
@@ -219,7 +219,7 @@ Page({
wx
.
$util
.
hideLoading
()
console
.
log
(
res
,
'res'
)
let
{
code
,
data
}
=
res
code
==
0
&&
wx
.
$router
.
re
Launch
(
'CarQuotationPay'
,
{
data
,
id
})
code
==
0
&&
wx
.
$router
.
re
directTo
(
'CarQuotationPay'
,
{
data
,
id
})
})
}
})
pages/accountItems/accountItems.js
View file @
f01f640
...
...
@@ -3,6 +3,7 @@ import api from '../../api/api.js'
const
app
=
getApp
()
import
{
getYQorderInfo
}
from
'~/store/index'
import
{
checkYqdSuper
}
from
'~/store/index'
import
constantData
from
'../constant/data'
Page
({
/**
* 页面的初始数据
...
...
@@ -139,10 +140,12 @@ Page({
let
{
loginUserInfoList
}
=
this
.
data
let
id
=
null
let
yqMerchantId
=
null
let
isSuper
=
null
loginUserInfoList
.
map
(
e
=>
{
if
(
e
.
active
)
{
yqMerchantId
=
e
.
merchantId
id
=
e
.
uuid
isSuper
=
e
.
isSuper
}
})
if
(
!
id
)
{
...
...
@@ -157,6 +160,7 @@ Page({
.
then
(
res
=>
{
let
{
data
,
message
}
=
res
if
(
data
)
{
app
.
globalData
.
YQorderSetting
=
null
wx
.
$util
.
setUserInfo
(
data
.
loginUserInfoList
[
0
])
// console.log(data.loginUserInfoList[0])
checkYqdSuper
(
app
,
data
.
loginUserInfoList
[
0
])
...
...
@@ -174,6 +178,14 @@ Page({
wx
.
$router
.
reLaunch
(
`
${
target
}
.
${
name
}
`
,
query
)
wx
.
$SCENE
=
null
}
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
=>
{
let
{
data
,
message
,
code
}
=
res
...
...
pages/constant/data.js
0 → 100644
View file @
f01f640
const
sceneList
=
[
{
sceneName
:
'精品升级'
,
sceneDesc
:
'太阳膜升级转化下单'
,
sceneType
:
1
,
actived
:
false
},
{
sceneName
:
'会员权益/升级'
,
sceneDesc
:
'新车车损险下单'
,
sceneType
:
0
,
actived
:
false
}
]
export
default
{
sceneList
}
\ No newline at end of file
pages/sceneIndex/sceneIndex.js
View file @
f01f640
// pages/sceneIndex/sceneIndex.js
import
logOutAPI
from
'../../tabMine/api'
import
constantData
from
'../constant/data'
const
app
=
getApp
()
Page
({
/**
...
...
@@ -7,20 +8,7 @@ Page({
*/
data
:
{
timeState
:
''
,
sceneList
:
[
{
sceneName
:
'精品升级'
,
sceneDesc
:
'太阳膜升级转化下单'
,
sceneType
:
1
,
actived
:
false
},
{
sceneName
:
'会员权益/升级'
,
sceneDesc
:
'新车车损险下单'
,
sceneType
:
0
,
actived
:
false
}
],
sceneList
:
constantData
.
sceneList
,
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