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 fbcbc166
authored
Sep 14, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
e3b1bba8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
510 additions
and
271 deletions
components/SideSelectPopup/SideSelectPopup.js
components/SideSelectPopup/SideSelectPopup.wxss
components/TabMine/TabMine.wxml
components/TabMine/TabMine.wxss
components/navigationBar/navigationBar.js
packageCrowdFunding/pages/TabBar/crowdFundingPage.js
packageCrowdFunding/pages/homePage/index/index.js
packageCrowdFunding/pages/homePage/index/index.wxml
packageCrowdFunding/pages/homePage/index/index.wxss
pages/accountItems/accountItems.js
pages/accountItems/accountItems.wxml
pages/accountItems/accountItems.wxss
pages/components/authNoLogin/authNoLogin.wxss
pages/components/authSetting/authSetting.wxml
pages/components/authSetting/authSetting.wxss
pages/loading/loading.js
pages/merchantList/merchantList.js
pages/merchantList/merchantList.json
pages/merchantList/merchantList.wxml
pages/wxLogin/wxLogin.js
pages/wxLogin/wxLogin.wxml
pages/wxLogin/wxLogin.wxss
store/index.js
subvehicleConversion/pages/indexPage/index.js
subvehicleConversion/pages/indexPage/index.sass
subvehicleConversion/pages/indexPage/index.wxml
tabIndex/pages/index/index.js
tabIndex/pages/index/index.sass
tabIndex/pages/index/index.wxml
tabIndex/pages/index/index_mixins.js
tabMine/pages/index/index.wxml
tabMine/pages/index/index.wxss
tabOperating/pages/index/index.scss
tabOperating/pages/index/index.wxml
tabOperating/pages/index/index_mixins.js
components/SideSelectPopup/SideSelectPopup.js
View file @
fbcbc16
// components/SideSelectPopup/SideSelectPopup.js
// components/SideSelectPopup/SideSelectPopup.js
import
constantData
from
'../../pages/constant/data'
import
constantData
from
'../../pages/constant/data'
import
api
from
'~/api/api'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat'
Component
({
Component
({
/**
/**
...
@@ -72,7 +73,6 @@ Component({
...
@@ -72,7 +73,6 @@ Component({
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
userInfo
,
storeList
}
=
this
.
data
let
{
userInfo
,
storeList
}
=
this
.
data
if
(
item
?.
merchantId
==
userInfo
?.
selectedMerchantId
)
return
this
.
closeMenu
()
if
(
item
?.
merchantId
==
userInfo
?.
selectedMerchantId
)
return
this
.
closeMenu
()
const
thisPage
=
wx
.
$router
.
getPageInstance
()
storeList
?.
map
(
val
=>
{
storeList
?.
map
(
val
=>
{
val
.
actived
=
false
val
.
actived
=
false
if
(
val
.
merchantId
==
userInfo
?.
selectedMerchantId
)
val
.
actived
=
true
if
(
val
.
merchantId
==
userInfo
?.
selectedMerchantId
)
val
.
actived
=
true
...
@@ -81,7 +81,23 @@ Component({
...
@@ -81,7 +81,23 @@ Component({
this
.
setData
({
this
.
setData
({
storeList
storeList
})
})
this
.
closeMenu
()
api
.
selectAccountLogin
({
id
:
userInfo
?.
uuid
,
loginStoreId
:
item
.
merchantId
})
.
then
(
res
=>
{
let
{
data
,
message
}
=
res
if
(
data
)
{
wx
.
$util
.
setUserInfo
({...
wx
.
$util
.
getUserInfo
(),
...
data
.
loginUserInfoList
[
0
]})
wx
.
$util
.
hideLoading
()
this
.
eventCallback
(
item
)
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
eventCallback
(
item
)
{
const
thisPage
=
wx
.
$router
.
getPageInstance
()
wx
.
$util
.
setUserInfo
({
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
...
wx
.
$util
.
getUserInfo
(),
selectedMerchantName
:
item
.
merchantName
,
selectedMerchantName
:
item
.
merchantName
,
...
@@ -118,13 +134,10 @@ Component({
...
@@ -118,13 +134,10 @@ Component({
}
}
}})
}})
// 除精品升级外 切换门店刷新数据
// 除精品升级外 切换门店刷新数据
console
.
log
(
thisPage
.
initList
)
thisPage
.
initList
&&
thisPage
.
initList
()
thisPage
.
initList
&&
thisPage
.
initList
()
// wx.$util.pointRecord(item.recordId)
// 精品升级首页数据刷新
thisPage
.
initData
&&
thisPage
.
initData
()
this
.
closeMenu
()
}
}
// goMineCenter() {
// wx.$util.pointRecord(5)
// wx.$router.redirectTo('pages.sceneIndex')
// }
}
}
})
})
components/SideSelectPopup/SideSelectPopup.wxss
View file @
fbcbc16
...
@@ -25,12 +25,17 @@
...
@@ -25,12 +25,17 @@
font-weight: 500;
font-weight: 500;
font-size: 30rpx;
font-size: 30rpx;
color: #FFFFFF;
color: #FFFFFF;
max-width: 440rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.wrapper .element .img,.gap_icon{
.wrapper .element .img,.gap_icon{
width: 64rpx;
width: 64rpx;
height: 64rpx;
height: 64rpx;
margin-right: 16rpx;
margin-right: 16rpx;
flex-shrink: 0;
}
}
.wrapper .active{
.wrapper .active{
...
...
components/TabMine/TabMine.wxml
View file @
fbcbc16
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
</view>
</view>
</view>
</view>
<block >
<block >
<view class="scene_box">
<
!-- <
view class="scene_box">
<view class="title">场景</view>
<view class="title">场景</view>
<view class="select_item">
<view class="select_item">
<view class="scene_message">
<view class="scene_message">
...
@@ -45,26 +45,34 @@
...
@@ -45,26 +45,34 @@
</view>
</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
</view>
</view>
</view>
</view>
-->
<
!-- <
view class="set_box">
<view class="set_box">
<view class="set_item item_1" bindtap="showWork">
<
!-- <
view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置<image class="arrow_icon" src="
../..
/images/arrow_icon.png" mode=""/></view>
<view class="title">工位设置<image class="arrow_icon" src="
/tabMine
/images/arrow_icon.png" mode=""/></view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
</view>
</view>
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="title">录单设置<image class="arrow_icon" src="
../..
/images/arrow_icon.png" mode=""/></view>
<view class="title">录单设置<image class="arrow_icon" src="
/tabMine
/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">设置录单必填项</view>
<view class="set_tips">设置录单必填项</view>
</view> -->
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">{{selectedSceneName}}</view>
</view>
</view>
</view> -->
<view class="set_item item_4" bindtap="goVersionPage">
<view class="version_box" bindtap="goVersionPage">
<view class="title">更新日志<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">最新{{versionData.version}}版</view>
</view>
</view>
<!-- <view class="version_box" bindtap="goVersionPage">
<view class="item">
<view class="item">
<view class="icon_box">
<view class="icon_box">
<view class="is_new" hidden="{{!versionData.isNew}}">NEW</view>
<view class="is_new" hidden="{{!versionData.isNew}}">NEW</view>
</view>
</view>
<view>更新日志</view>
<view>更新日志</view>
</view>
</view>
</view>
</view>
-->
</block>
</block>
<view class="logout text-center" bindtap="logout">退出账号</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
</view>
...
...
components/TabMine/TabMine.wxss
View file @
fbcbc16
/* tabComponents/pages/index/index.wxss */
/* tabComponents/pages/index/index.wxss */
.
main
{
.
pagedetail
{
position: relative;
}
}
.bg {
.bg {
...
@@ -134,11 +134,12 @@
...
@@ -134,11 +134,12 @@
}
}
.set_box{
.set_box{
margin: 20rpx;
margin-top: 48rpx;
display: grid;
display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
margin: 20rpx;
}
}
.set_box .set_item{
.set_box .set_item{
...
@@ -150,6 +151,7 @@
...
@@ -150,6 +151,7 @@
flex-flow: column;
flex-flow: column;
justify-content: center;
justify-content: center;
padding: 32rpx;
padding: 32rpx;
margin-bottom: 20rpx;
}
}
.set_box .set_item .title .arrow_icon{
.set_box .set_item .title .arrow_icon{
...
@@ -165,6 +167,14 @@
...
@@ -165,6 +167,14 @@
background: #F8F9FF;
background: #F8F9FF;
}
}
.set_box .item_3{
background: #F6FCFE;
}
.set_box .item_4{
background: #FFF8F8;
}
.set_box .set_item .title{
.set_box .set_item .title{
font-weight: 500;
font-weight: 500;
font-size: 28rpx;
font-size: 28rpx;
...
@@ -230,7 +240,10 @@
...
@@ -230,7 +240,10 @@
}
}
.logout {
.logout {
margin: 94rpx auto;
position: absolute;
bottom: 106rpx;
left: 50%;
transform: translateX(-50%);
width: 326rpx;
width: 326rpx;
height: 80rpx;
height: 80rpx;
background: #FFFFFF;
background: #FFFFFF;
...
...
components/navigationBar/navigationBar.js
View file @
fbcbc16
...
@@ -54,6 +54,7 @@ Component({
...
@@ -54,6 +54,7 @@ Component({
util
.
getViewInfo
(
util
.
getViewInfo
(
'#navigation-bar'
,
'#navigation-bar'
,
res
=>
{
res
=>
{
console
.
log
(
'123123'
)
_this
.
triggerEvent
(
'navbarReady'
,
res
)
_this
.
triggerEvent
(
'navbarReady'
,
res
)
_this
.
setData
({
_this
.
setData
({
showNavBar
:
true
showNavBar
:
true
...
...
packageCrowdFunding/pages/TabBar/crowdFundingPage.js
View file @
fbcbc16
...
@@ -15,7 +15,7 @@ Page({
...
@@ -15,7 +15,7 @@ Page({
selectedIconPath
:
'/images/tab-staging-active.png'
selectedIconPath
:
'/images/tab-staging-active.png'
},
},
{
{
name
:
'活动'
,
name
:
'活动
管理
'
,
iconPath
:
'/images/tab-quited.png'
,
iconPath
:
'/images/tab-quited.png'
,
selectedIconPath
:
'/images/tab-quited-active.png'
selectedIconPath
:
'/images/tab-quited-active.png'
},
},
...
...
packageCrowdFunding/pages/homePage/index/index.js
View file @
fbcbc16
// packageCrowdFunding/pages/homePage/index/index.js
// packageCrowdFunding/pages/homePage/index/index.js
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/crowdFunding/'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -11,6 +12,7 @@ Component({
...
@@ -11,6 +12,7 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
IMG_URL
,
staticDataList
:
[{
staticDataList
:
[{
label
:
'今日营业额'
,
label
:
'今日营业额'
,
value
:
0
,
value
:
0
,
...
@@ -52,6 +54,27 @@ Component({
...
@@ -52,6 +54,27 @@ Component({
value
:
0
,
value
:
0
,
icon
:
''
icon
:
''
}],
}],
menuList
:
[{
menuText
:
'调查问卷'
,
icon
:
'questionnaire'
,
path
:
''
},
{
menuText
:
'营销素材'
,
icon
:
'marketing_materials'
,
path
:
''
},
{
menuText
:
'业务申请'
,
icon
:
'business_application'
,
path
:
''
},
{
menuText
:
'活动管理'
,
icon
:
'event_management'
,
path
:
''
},
{
menuText
:
'话术库'
,
icon
:
'script _library'
,
path
:
''
}],
loginRoleLabel
:
{
loginRoleLabel
:
{
1
:
'超管'
,
1
:
'超管'
,
2
:
'商户管理员'
,
2
:
'商户管理员'
,
...
@@ -79,6 +102,11 @@ Component({
...
@@ -79,6 +102,11 @@ Component({
methods
:
{
methods
:
{
onLoad
()
{
onLoad
()
{
}
},
navGo
(
e
)
{
console
.
log
(
e
)
let
{
item
}
=
e
.
currentTarget
.
dataset
if
(
!
item
.
path
)
wx
.
$util
.
showToast
(
'模块暂未开通\r\n敬请期待'
)
},
}
}
})
})
packageCrowdFunding/pages/homePage/index/index.wxml
View file @
fbcbc16
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<view class="top_box">
<view class="top_box">
<view class="top_item" wx:for="{{staticDataList}}" wx:key="index">
<view class="top_item" wx:for="{{staticDataList}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<view class="value">{{item.value}}</view>
<view class="value">
<text style="font-size: 28rpx;margin-right: 4rpx;">¥</text>
{{item.value}}</view>
<view class="tips_box">
<view class="tips_box">
<text>{{item.tipsLabel}}</text>
<text>{{item.tipsLabel}}</text>
<text class="num_text">{{item.tipsValue}}</text>
<text class="num_text">{{item.tipsValue}}</text>
...
@@ -16,12 +16,19 @@
...
@@ -16,12 +16,19 @@
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
</view>
</view>
<view class="static_box">
<view class="static_box">
<view class="static_item" wx:for="{{itemDataList}}" wx:key="index">
<view class="static_item" wx:for="{{itemDataList}}" wx:key="index"
wx:for-index="index"
>
<view class="label">
<view class="label">
<image src="" mode=""/>
<image src="" mode=""/>
<text>{{item.label}}</text>
<text>{{item.label}}</text>
</view>
</view>
<view class="value">{{item.value}}</view>
<view class="value"><text wx:if="{{index == 2 || index == 5}}" style="font-size: 24rpx;margin-right: 4rpx;">¥</text>{{item.value}}</view>
</view>
</view>
<view class="title">展业工具</view>
<view class="menu_box">
<view class="menu_item" wx:for="{{menuList}}" wx:key="index" bindtap="navGo" data-item="{{item}}">
<view class="icon"><image src="{{IMG_URL}}{{item.icon}}.png" mode="widthFix"/></view>
<view class="text">{{item.menuText}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
...
packageCrowdFunding/pages/homePage/index/index.wxss
View file @
fbcbc16
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
.layout_box{
.layout_box{
width: 100%;
width: 100%;
height: 100vh;
height: 100vh;
background: #F
6FA
FF;
background: #F
AFB
FF;
padding-top: 6rpx;
padding-top: 6rpx;
overflow: scroll;
}
}
.top_box{
.top_box{
width: calc(100% - 24rpx);
width: calc(100% - 24rpx);
...
@@ -29,6 +30,7 @@
...
@@ -29,6 +30,7 @@
font-size: 40rpx;
font-size: 40rpx;
margin: 4rpx 0 12rpx 0;
margin: 4rpx 0 12rpx 0;
font-weight: 700;
font-weight: 700;
font-family: 'numberBold';
}
}
.top_item .tips_box{
.top_item .tips_box{
...
@@ -45,6 +47,7 @@
...
@@ -45,6 +47,7 @@
.top_item .tips_box .num_text{
.top_item .tips_box .num_text{
font-size: 28rpx;
font-size: 28rpx;
margin: 0;
margin: 0;
font-family: 'numberBold';
}
}
.content_box{
.content_box{
...
@@ -99,4 +102,27 @@
...
@@ -99,4 +102,27 @@
color: #2D2D33;
color: #2D2D33;
font-weight: 700;
font-weight: 700;
margin-top: 8rpx;
margin-top: 8rpx;
font-family: 'numberBold';
}
.content_box .title{
font-weight: 600;
font-size: 28rpx;
color: #323436;
margin: 20rpx 0;
}
.menu_box{
display: grid;
grid-template-columns: repeat(4, 100rpx);
justify-content: space-between;
align-items: center;
}
.menu_box .menu_item{
margin-bottom: 40rpx;
}
.menu_box .menu_item .icon{
width: 100rpx;
height: 100rpx;
}
}
pages/accountItems/accountItems.js
View file @
fbcbc16
// pages/accountItems/accountItems.js
// pages/accountItems/accountItems.js
import
api
from
'
../../api/api.js
'
import
api
from
'
~/api/api
'
const
app
=
getApp
()
const
app
=
getApp
()
import
{
getYQorderInfo
,
get4SStoreList
}
from
'~/store/index'
import
{
getYQorderInfo
,
get4SStoreList
}
from
'~/store/index'
import
constantData
from
'../constant/data'
import
constantData
from
'../constant/data'
...
@@ -209,6 +209,7 @@ Page({
...
@@ -209,6 +209,7 @@ Page({
loginUserInfoList
,
loginUserInfoList
,
selectedUuid
:
item
.
uuid
selectedUuid
:
item
.
uuid
})
})
this
.
choiceAccountLogin
()
},
},
sceneHandle
()
{
sceneHandle
()
{
...
@@ -257,7 +258,7 @@ Page({
...
@@ -257,7 +258,7 @@ Page({
})
})
})
})
},
},
async
getYqMerchantSceneConfig
(
{
yqMerchantId
,
isSuper
,
result
}
)
{
async
getYqMerchantSceneConfig
(
yqMerchantId
,
isSuper
,
result
,
loginInfo
)
{
// 先取消掉
// 先取消掉
// let checkAgree = await this.checkAgree()
// let checkAgree = await this.checkAgree()
// if (!checkAgree) return false
// if (!checkAgree) return false
...
@@ -300,6 +301,10 @@ Page({
...
@@ -300,6 +301,10 @@ Page({
if
(
!
openSceneArr
.
length
)
{
if
(
!
openSceneArr
.
length
)
{
wx
.
$util
.
showToast
(
'暂无开通业务,请联系总部管理员'
)
wx
.
$util
.
showToast
(
'暂无开通业务,请联系总部管理员'
)
}
else
{
}
else
{
if
(
loginInfo
?.
subLoginUser
?.
selectedMerchantId
)
{
// 记录上次登录选择的4s店
let
{
selectedMerchantId
,
selectedMerchantName
}
=
loginInfo
?.
subLoginUser
this
.
jumpPage
(
openSceneArr
,
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
})
}
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
openSceneArr
})
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
openSceneArr
})
if
(
result
?.
length
==
1
)
this
.
jumpPage
(
openSceneArr
,
result
[
0
])
if
(
result
?.
length
==
1
)
this
.
jumpPage
(
openSceneArr
,
result
[
0
])
else
wx
.
$router
.
reLaunch
(
'pages.merchantList'
)
else
wx
.
$router
.
reLaunch
(
'pages.merchantList'
)
...
@@ -381,7 +386,7 @@ Page({
...
@@ -381,7 +386,7 @@ Page({
app
.
globalData
.
yqdInfo
.
merchantRange
=
null
app
.
globalData
.
yqdInfo
.
merchantRange
=
null
app
.
globalData
.
YQorderSetting
=
null
app
.
globalData
.
YQorderSetting
=
null
wx
.
$util
.
hideLoading
()
wx
.
$util
.
hideLoading
()
console
.
log
(
app
);
wx
.
$util
.
setUserInfo
(
data
.
loginUserInfoList
[
0
])
wx
.
$util
.
setUserInfo
(
data
.
loginUserInfoList
[
0
])
app
.
gobalCheckYqdSuper
(
data
.
loginUserInfoList
[
0
])
app
.
gobalCheckYqdSuper
(
data
.
loginUserInfoList
[
0
])
// checkYqdSuper(app, data.loginUserInfoList[0])
// checkYqdSuper(app, data.loginUserInfoList[0])
...
@@ -390,7 +395,7 @@ Page({
...
@@ -390,7 +395,7 @@ Page({
const
SCENE
=
wx
.
$SCENE
const
SCENE
=
wx
.
$SCENE
// debugger
// debugger
// 有场景信息就跳转对应页面 没有就登录场景
// 有场景信息就跳转对应页面 没有就登录场景
SCENE
&&
SCENE
.
path
!=
'pages/accountItems/accountItems'
?
this
.
sceneHandle
()
:
this
.
getYqMerchantSceneConfig
(
{
yqMerchantId
,
isSuper
,
result
}
)
SCENE
&&
SCENE
.
path
!=
'pages/accountItems/accountItems'
?
this
.
sceneHandle
()
:
this
.
getYqMerchantSceneConfig
(
yqMerchantId
,
isSuper
,
result
,
data
.
loginUserInfoList
[
0
]
)
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
}
}
...
...
pages/accountItems/accountItems.wxml
View file @
fbcbc16
<view class="layout" style="padding-bottom:{{isFullSucreen?'224rpx':'160rpx'}}">
<!-- style="padding-bottom:{{isFullSucreen?'224rpx':'160rpx'}}" -->
<view class="title">请选择登录的账号</view>
<view class="layout">
<!-- <view class="title">请选择登录的账号</view> -->
<view class="search-box" wx:if="{{copyLoginUserInfoList && copyLoginUserInfoList.length >= 10}}">
<view class="search-box" wx:if="{{copyLoginUserInfoList && copyLoginUserInfoList.length >= 10}}">
<view class="search-input">
<view class="search-input">
<block wx:if="{{!edit}}">
<block wx:if="{{!edit}}">
...
@@ -23,6 +24,11 @@
...
@@ -23,6 +24,11 @@
<block wx:if="{{loginUserInfoList}}">
<block wx:if="{{loginUserInfoList}}">
<block wx:for="{{loginUserInfoList}}" wx:key="index">
<block wx:for="{{loginUserInfoList}}" wx:key="index">
<view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}" data-item="{{item}}">
<view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}" data-item="{{item}}">
<view class="right">
<view class="midle {{item.isSuper==true?'midle_1':item.userType==1?'midle_2':(item.loginRole == 3 ?'midle_3' : item.loginRole == 4 ? 'midle_4' : 'midle_5')}}">
{{item.isSuper==true?'超管':item.userType==1?'商户':(item.loginRole == 3 ? '督导' : item.loginRole == 4 ? '驻店' : '员工')}}
</view>
</view>
<view class="left">
<view class="left">
<view class="name">
<view class="name">
{{item.merchantName}}
{{item.merchantName}}
...
@@ -32,15 +38,14 @@
...
@@ -32,15 +38,14 @@
</view>
</view>
</view>
</view>
<!-- userType 1商户号 2员工号 loginRole细化员工号角色 3区域督导 4驻店负责人 -->
<!-- userType 1商户号 2员工号 loginRole细化员工号角色 3区域督导 4驻店负责人 -->
<view class="right">
<
!-- <
view class="right">
<view class="midle {{item.isSuper==true?'midle_1':item.userType==1?'midle_2':(item.loginRole == 3 ?'midle_3' : item.loginRole == 4 ? 'midle_4' : 'midle_5')}}">
<view class="midle {{item.isSuper==true?'midle_1':item.userType==1?'midle_2':(item.loginRole == 3 ?'midle_3' : item.loginRole == 4 ? 'midle_4' : 'midle_5')}}">
{{item.isSuper==true?'超管':item.userType==1?'商户号':(item.loginRole == 3 ? '区域督导' : item.loginRole == 4 ? '驻店负责人' : '员工号')}}
{{item.isSuper==true?'超管':item.userType==1?'商户号':(item.loginRole == 3 ? '区域督导' : item.loginRole == 4 ? '驻店负责人' : '员工号')}}
<!-- {{ loginRole[item.loginRole]||'员工号'}} -->
</view>
</view>
<view class="icon">
<view class="icon">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow-left.png" />
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow-left.png" />
</view>
</view>
</view>
</view>
-->
</view>
</view>
</block>
</block>
</block>
</block>
...
@@ -52,8 +57,8 @@
...
@@ -52,8 +57,8 @@
</block>
</block>
<view class="scrollSpase"></view>
<view class="scrollSpase"></view>
</scroll-view >
</scroll-view >
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<
!-- <
view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class='btn' bindtap="choiceAccountLogin">确定</view>
<view class='btn' bindtap="choiceAccountLogin">确定</view>
</view>
</view>
-->
</view>
</view>
pages/accountItems/accountItems.wxss
View file @
fbcbc16
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
padding: 32rpx;
padding: 32rpx;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: space-between;
/* justify-content: space-between; */
box-sizing: border-box;
box-sizing: border-box;
}
}
.items {
.items {
...
@@ -75,14 +75,14 @@
...
@@ -75,14 +75,14 @@
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
white-space: nowrap;
white-space: nowrap;
font-size:
14
px;
font-size:
28r
px;
color: #1
B233D
;
color: #1
81A1F
;
}
}
.items .left .shop_no{
.items .left .shop_no{
font-weight: 400;
font-weight: 400;
font-size: 24rpx;
font-size: 24rpx;
margin-top: 4rpx;
margin-top: 4rpx;
color: #9
299AD
;
color: #9
99EA8
;
}
}
.items .right{
.items .right{
flex-shrink: 0;
flex-shrink: 0;
...
@@ -91,42 +91,44 @@
...
@@ -91,42 +91,44 @@
}
}
.items .right .midle{
.items .right .midle{
font-size: 24rpx;
font-size: 24rpx;
height: 44rpx;
width: 96rpx;
height: 96rpx;
border-radius: 4rpx;
border-radius: 4rpx;
line-height: 44rpx;
margin-right: 30rpx;
padding: 0 16rpx;
display: flex;
margin-right: 26rpx;
align-items: center;
justify-content: center;
}
}
/* 超管 */
/* 超管 */
.items .right .midle_1{
.items .right .midle_1{
color: #F24724;
color: #F24724;
border: 2rpx solid #F24724;
/* border: 2rpx solid #F24724; */
background-color: #
F2472410
;
background-color: #
f247241a
;
}
}
/* 商户号 */
/* 商户号 */
.items .right .midle_2{
.items .right .midle_2{
color: #FF9D0A;
color: #FF9D0A;
border: 2rpx solid #FF9D0A;
/* border: 2rpx solid #FF9D0A; */
background-color: #
FF9D0A10
;
background-color: #
ff9d0a1a
;
}
}
/* 区域督导 */
/* 区域督导 */
.items .right .midle_3{
.items .right .midle_3{
color: #3582EE;
color: #3582EE;
border: 2rpx solid #3582EE;
/* border: 2rpx solid #3582EE; */
background-color: #3
582EE10
;
background-color: #3
47bff1a
;
}
}
/* 驻店负责人 */
/* 驻店负责人 */
.items .right .midle_4{
.items .right .midle_4{
color: #35C376;
color: #35C376;
border: 2rpx solid #35C376;
/* border: 2rpx solid #35C376; */
background-color: #35
C37610
;
background-color: #35
c3761a
;
}
}
/* 员工号 */
/* 员工号 */
.items .right .midle_5{
.items .right .midle_5{
color: #35C376;
color: #35C376;
border: 2rpx solid #35C376;
/* border: 2rpx solid #35C376; */
background-color: #35
C37610
;
background-color: #35
c3761a
;
}
}
.items .right .icon{
.items .right .icon{
width: 40rpx;
width: 40rpx;
...
...
pages/components/authNoLogin/authNoLogin.wxss
View file @
fbcbc16
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
box-sizing: border-box;
box-sizing: border-box;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center
;
padding-left: 90rpx
;
}
}
/* .tips text {
/* .tips text {
...
@@ -37,9 +37,8 @@
...
@@ -37,9 +37,8 @@
}
}
.tips .choose-box {
.tips .choose-box {
width:
8
0rpx;
width:
5
0rpx;
height:
8
0rpx;
height:
5
0rpx;
position: relative;
position: relative;
z-index: 10;
z-index: 10;
margin-right: -18rpx;
}
}
\ No newline at end of file
\ No newline at end of file
pages/components/authSetting/authSetting.wxml
View file @
fbcbc16
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<image src="{{agree?'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_checked.png':'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_check.png'}}" class='check-img' />
<image src="{{agree?'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_checked.png':'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_check.png'}}" class='check-img' />
</view>
</view>
</view>
</view>
阅读并同意以下协议
我已阅读并同意
<!-- <text catchtap="jump" data-url="agree">《服务协议》</text> -->
<!-- <text catchtap="jump" data-url="agree">《服务协议》</text> -->
<text catchtap="jump" data-url="privacy">《隐私协议》</text>和
<text catchtap="jump" data-url="privacy">《隐私协议》</text>和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
<text catchtap="jump" data-url="agreement">《用户协议》</text>
...
...
pages/components/authSetting/authSetting.wxss
View file @
fbcbc16
/* components/authSetting/authSetting.wxss */
/* components/authSetting/authSetting.wxss */
.tips {
.tips {
position: fixed;
/* position: fixed; */
width: 100%;
width: 100%;
left: 0;
left: 0;
bottom: 60rpx;
bottom: 60rpx;
font-size: 24rpx;
font-size: 24rpx;
color: #999;
color: #999;
letter-spacing: 2rpx;
letter-spacing: 2rpx;
padding-left: 28rpx;
box-sizing: border-box;
box-sizing: border-box;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: center
;
padding-left: 90rpx
;
}
}
.tips text {
.tips text {
...
@@ -37,9 +36,8 @@
...
@@ -37,9 +36,8 @@
}
}
.tips .choose-box {
.tips .choose-box {
width:
8
0rpx;
width:
5
0rpx;
height:
8
0rpx;
height:
5
0rpx;
position: relative;
position: relative;
z-index: 10;
z-index: 10;
margin-right: -18rpx;
}
}
\ No newline at end of file
\ No newline at end of file
pages/loading/loading.js
View file @
fbcbc16
...
@@ -51,7 +51,7 @@ Page({
...
@@ -51,7 +51,7 @@ Page({
wx
.
nextTick
(()
=>
{
wx
.
nextTick
(()
=>
{
// 没有登录信息 或无开通场景 退出登录
// 没有登录信息 或无开通场景 退出登录
if
(
!
userInfo
||
!
Object
.
keys
(
userInfo
).
length
||
!
userInfo
.
openSceneArr
?.
length
)
{
if
(
!
userInfo
||
!
Object
.
keys
(
userInfo
).
length
||
!
userInfo
.
openSceneArr
?.
length
)
{
return
app
.
login
(
tru
e
,
'请重新登录'
)
return
app
.
login
(
fals
e
,
'请重新登录'
)
}
}
// 未选择4s店
// 未选择4s店
if
((
userInfo
?.
selectedMerchantId
??
''
)
===
''
)
return
wx
.
$router
.
reLaunch
(
'pages.accountItems'
)
if
((
userInfo
?.
selectedMerchantId
??
''
)
===
''
)
return
wx
.
$router
.
reLaunch
(
'pages.accountItems'
)
...
...
pages/merchantList/merchantList.js
View file @
fbcbc16
// pages/accountItems/accountItems.js
// pages/accountItems/accountItems.js
const
app
=
getApp
()
import
api
from
'~/api/api'
import
{
get4SStoreList
}
from
'~/store/index'
import
{
get4SStoreList
}
from
'~/store/index'
import
constantData
from
'../constant/data'
import
constantData
from
'../constant/data'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
...
@@ -46,8 +46,28 @@ Page({
...
@@ -46,8 +46,28 @@ Page({
.
catch
(
err
=>
{})
.
catch
(
err
=>
{})
},
},
jumpPage
()
{
jumpPage
()
{
console
.
log
(
123123
)
let
userInfo
=
wx
.
$util
.
getUserInfo
()
let
userInfo
=
wx
.
$util
.
getUserInfo
()
let
openSceneArr
=
userInfo
?.
openSceneArr
||
[]
let
openSceneArr
=
userInfo
?.
openSceneArr
||
[]
let
{
selectedMerchantName
,
selectedMerchantId
}
=
this
.
data
console
.
log
(
userInfo
)
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
selectedMerchantName
,
selectedMerchantId
,
default4SStoreInfo
:
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
},
default4SStoreInfo_crowdFunding
:
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
},
default4SStoreInfo_newCarConversion
:
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
}
})
// 只开通一个场景直接跳转页面
// 只开通一个场景直接跳转页面
if
(
openSceneArr
.
length
===
1
)
{
if
(
openSceneArr
.
length
===
1
)
{
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
selectedSceneType
:
openSceneArr
[
0
]
})
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
selectedSceneType
:
openSceneArr
[
0
]
})
...
@@ -111,6 +131,7 @@ Page({
...
@@ -111,6 +131,7 @@ Page({
chooseAccount
(
e
)
{
chooseAccount
(
e
)
{
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
item
}
=
e
.
currentTarget
.
dataset
let
{
loginUserInfoList
}
=
this
.
data
let
{
loginUserInfoList
}
=
this
.
data
let
userInfo
=
wx
.
$util
.
getUserInfo
()
loginUserInfoList
.
map
(
i
=>
{
loginUserInfoList
.
map
(
i
=>
{
i
.
active
=
false
i
.
active
=
false
if
(
i
.
merchantId
==
item
?.
merchantId
)
{
if
(
i
.
merchantId
==
item
?.
merchantId
)
{
...
@@ -123,29 +144,27 @@ Page({
...
@@ -123,29 +144,27 @@ Page({
selectedMerchantId
:
item
.
merchantId
,
selectedMerchantId
:
item
.
merchantId
,
selectedMerchantName
:
item
.
merchantName
selectedMerchantName
:
item
.
merchantName
})
})
api
.
selectAccountLogin
({
id
:
userInfo
?.
uuid
,
loginStoreId
:
item
.
merchantId
})
.
then
(
res
=>
{
let
{
data
,
message
}
=
res
if
(
data
)
{
wx
.
$util
.
setUserInfo
({...
wx
.
$util
.
getUserInfo
(),
...
data
.
loginUserInfoList
[
0
]})
wx
.
$util
.
hideLoading
()
console
.
log
(
data
)
this
.
jumpPage
()
}
else
{
wx
.
$util
.
showToast
(
message
)
}
})
},
},
choiceAccountLogin
()
{
choiceAccountLogin
()
{
let
{
selectedMerchantName
,
selectedMerchantId
}
=
this
.
data
let
{
selectedMerchantName
,
selectedMerchantId
}
=
this
.
data
if
(
!
selectedMerchantId
)
return
wx
.
$util
.
showToast
(
'请选择4S店'
)
if
(
!
selectedMerchantId
)
return
wx
.
$util
.
showToast
(
'请选择4S店'
)
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
selectedMerchantName
,
selectedMerchantId
,
default4SStoreInfo
:
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
},
default4SStoreInfo_crowdFunding
:
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
},
default4SStoreInfo_newCarConversion
:
{
merchantId
:
selectedMerchantId
,
merchantName
:
selectedMerchantName
}
})
this
.
jumpPage
()
},
},
/**
/**
...
...
pages/merchantList/merchantList.json
View file @
fbcbc16
{
{
"navigationBarTitleText"
:
"选择
账号
"
"navigationBarTitleText"
:
"选择
4S店
"
}
}
\ No newline at end of file
\ No newline at end of file
pages/merchantList/merchantList.wxml
View file @
fbcbc16
<view class="layout" style="padding-bottom:{{isFullSucreen?'224rpx':'160rpx'}}">
<!-- style="padding-bottom:{{isFullSucreen?'224rpx':'160rpx'}}" -->
<view class="layout">
<view class="title">请选择4S店</view>
<view class="title">请选择4S店</view>
<view class="search-box" wx:if="{{copyLoginUserInfoList && copyLoginUserInfoList.length >= 10}}">
<view class="search-box" wx:if="{{copyLoginUserInfoList && copyLoginUserInfoList.length >= 10}}">
<view class="search-input">
<view class="search-input">
...
@@ -32,12 +33,12 @@
...
@@ -32,12 +33,12 @@
</view>
</view>
</view>
</view>
<!-- userType 1商户号 2员工号 loginRole细化员工号角色 3区域督导 4驻店负责人 -->
<!-- userType 1商户号 2员工号 loginRole细化员工号角色 3区域督导 4驻店负责人 -->
<view class="right">
<
!-- <
view class="right">
<view class="icon">
<view class="icon">
<image src="/images/active-arc.png" />
<image src="/images/active-arc.png" />
</view>
</view>
<view class='radio' />
<view class='radio' />
</view>
</view>
-->
</view>
</view>
</block>
</block>
</block>
</block>
...
@@ -49,8 +50,8 @@
...
@@ -49,8 +50,8 @@
</block>
</block>
<view class="scrollSpase"></view>
<view class="scrollSpase"></view>
</scroll-view >
</scroll-view >
<view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<
!-- <
view class="btn-box {{isFullSucreen?'isFullSucreen-btn':''}}">
<view class='btn' bindtap="choiceAccountLogin">确定</view>
<view class='btn' bindtap="choiceAccountLogin">确定</view>
</view>
</view>
-->
</view>
</view>
pages/wxLogin/wxLogin.js
View file @
fbcbc16
...
@@ -11,9 +11,10 @@ Page({
...
@@ -11,9 +11,10 @@ Page({
userName
:
''
,
userName
:
''
,
count
:
60
,
count
:
60
,
verificationCount
:
''
,
verificationCount
:
''
,
loginType
:
3
,
loginType
:
1
,
agree
:
false
,
agree
:
false
,
noLoginAgree
:
false
noLoginAgree
:
false
,
navBarHeight
:
0
},
},
onRoute
(
loginToken
)
{
onRoute
(
loginToken
)
{
...
@@ -21,6 +22,13 @@ Page({
...
@@ -21,6 +22,13 @@ Page({
loginToken
loginToken
})
})
},
},
navbarReady
(
e
)
{
console
.
log
(
e
)
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
navBarHeight
})
},
noLoginAgreeChoose
(
e
)
{
noLoginAgreeChoose
(
e
)
{
let
{
detail
:
agree
}
=
e
let
{
detail
:
agree
}
=
e
this
.
setData
({
this
.
setData
({
...
...
pages/wxLogin/wxLogin.wxml
View file @
fbcbc16
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="layout {{ loginType == 1?'phone_login_layout':'' }}">
<view class="layout {{ loginType == 1?'phone_login_layout':'' }}">
<navigation-bar navStyle="background-color: rgba(0,0,0,0);box-shadow:none;">生意助手员工版</navigation-bar>
<navigation-bar navStyle="background-color: rgba(0,0,0,0);box-shadow:none;"
bindnavbarReady="navbarReady"
>生意助手员工版</navigation-bar>
<view class="box_content">
<view class="box_content"
style="margin-top: {{navBarHeight}}px;"
>
<!-- 登录区域 -->
<!-- 登录区域 -->
<view class="box">
<view class="box">
<!-- 微信登录 -->
<!-- 微信登录 -->
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
<!-- <view hidden="{{ loginType !=3 }}" bindtap="checkAgree">微信登录</view> -->
<!-- <view hidden="{{ loginType !=3 }}" bindtap="checkAgree">微信登录</view> -->
</view>
</view>
<view class="mobile_btn" bindtap="changeLoginType" data-type="1" wx:if="{{ loginType != 1 }}">手机号登录</view>
<view class="mobile_btn" bindtap="changeLoginType" data-type="1" wx:if="{{ loginType != 1 }}">手机号登录</view>
<auth-noLogin bind:choose="noLoginAgreeChoose" agree="{{ noLoginAgree }}"></auth-noLogin>
</block>
</block>
<!-- 手机号登录 -->
<!-- 手机号登录 -->
<block wx:if="{{ loginType == 1 }}">
<block wx:if="{{ loginType == 1 }}">
...
@@ -65,12 +64,16 @@
...
@@ -65,12 +64,16 @@
<text bindtap="changeLoginType" data-type="3">授权登录</text>
<text bindtap="changeLoginType" data-type="3">授权登录</text>
</view>
</view>
</view>
</view>
</view>
</view>
<autoLogin-btn></autoLogin-btn>
<autoLogin-btn></autoLogin-btn>
</block>
</block>
<view class="auth_box">
<!-- 协议 -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" />
<!-- 30天免登录 -->
<auth-noLogin bind:choose="noLoginAgreeChoose" agree="{{ noLoginAgree }}"></auth-noLogin>
</view>
</view>
</view>
<!-- 协议 -->
<auth-setting bind:choose="authChoose" agree="{{ agree }}" />
</view>
</view>
<!-- -->
<!-- -->
</view>
</view>
...
...
pages/wxLogin/wxLogin.wxss
View file @
fbcbc16
...
@@ -4,8 +4,10 @@ page {
...
@@ -4,8 +4,10 @@ page {
}
}
.layout {
.layout {
padding: 0 80rpx;
/* padding: 0 80rpx; */
position: relative;
position: relative;
display: flex;
justify-content: center;
height: 100vh;
height: 100vh;
}
}
...
@@ -38,14 +40,14 @@ page {
...
@@ -38,14 +40,14 @@ page {
.wx .title {
.wx .title {
font-weight: 600;
font-weight: 600;
font-size:
60
rpx;
font-size:
52
rpx;
color: #
323436
;
color: #
181A1F
;
padding
: 216rpx 0 24
rpx;
padding
-top: 68
rpx;
}
}
.wx .subtitle {
.wx .subtitle {
font-size: 4
4
rpx;
font-size: 4
0
rpx;
color: #
323436
;
color: #
181A1F
;
margin-bottom: 76rpx;
margin-bottom: 76rpx;
}
}
...
@@ -92,7 +94,7 @@ page {
...
@@ -92,7 +94,7 @@ page {
height: 100rpx;
height: 100rpx;
background: #E6F0FD;
background: #E6F0FD;
border-radius: 12rpx;
border-radius: 12rpx;
color: #3
582EE
;
color: #3
47BFF
;
text-align: center;
text-align: center;
line-height: 100rpx;
line-height: 100rpx;
}
}
...
@@ -124,17 +126,23 @@ page {
...
@@ -124,17 +126,23 @@ page {
padding: 8px 0;
padding: 8px 0;
}
}
.phone_login{
width: 100%;
}
.phone_login .title {
.phone_login .title {
font-weight: 600;
font-weight: 600;
font-size: 48rpx;
font-size: 48rpx;
color: #333333;
color: #181A1F;
padding: 300rpx 0 110rpx;
padding: 194rpx 0 158rpx;
display: flex;
justify-content: center;
}
}
.login-form .input {
.login-form .input {
display: flex;
display: flex;
align-items: center;
align-items: center;
margin-top:
33
rpx;
margin-top:
20
rpx;
padding: 26rpx 40rpx;
padding: 26rpx 40rpx;
background: #F7F8FA;
background: #F7F8FA;
border-radius: 12rpx;
border-radius: 12rpx;
...
@@ -161,7 +169,7 @@ page {
...
@@ -161,7 +169,7 @@ page {
}
}
.login-form .login_btn {
.login-form .login_btn {
width:
100%
;
width:
594rpx
;
height: 100rpx;
height: 100rpx;
background-image: linear-gradient(125deg, #65B8F8 0%, #3582EE 100%);
background-image: linear-gradient(125deg, #65B8F8 0%, #3582EE 100%);
border-radius: 12rpx;
border-radius: 12rpx;
...
@@ -180,4 +188,12 @@ page {
...
@@ -180,4 +188,12 @@ page {
.login-form .wx_login text {
.login-form .wx_login text {
color: #3582EE;
color: #3582EE;
margin-left: 20rpx;
margin-left: 20rpx;
}
.auth_box{
position: fixed;
width: 100%;
left: 50%;
bottom: 368rpx;
transform: translateX(-50%);
}
}
\ No newline at end of file
\ No newline at end of file
store/index.js
View file @
fbcbc16
...
@@ -258,12 +258,15 @@ export const get4SStoreList = options => {
...
@@ -258,12 +258,15 @@ export const get4SStoreList = options => {
console
.
log
(
options
,
'options'
)
console
.
log
(
options
,
'options'
)
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
app
=
getApp
()
const
app
=
getApp
()
wx
.
showLoading
()
if
(
app
.
globalData
.
storeListRange
?.
length
)
{
if
(
app
.
globalData
.
storeListRange
?.
length
)
{
wx
.
hideLoading
()
return
resolve
(
app
.
globalData
.
storeListRange
)
return
resolve
(
app
.
globalData
.
storeListRange
)
}
}
api
api
.
getSceneMerchantRefStoreList
(
options
)
.
getSceneMerchantRefStoreList
(
options
)
.
then
(
res
=>
{
.
then
(
res
=>
{
wx
.
hideLoading
()
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
app
.
globalData
.
storeListRange
=
data
app
.
globalData
.
storeListRange
=
data
...
...
subvehicleConversion/pages/indexPage/index.js
View file @
fbcbc16
import
api
from
'~/subvehicleConversion/api'
import
api
from
'~/subvehicleConversion/api'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/crowdFunding/'
Component
({
Component
({
properties
:
{
properties
:
{
navBarHeight
:
Number
navBarHeight
:
Number
},
},
data
:
{
data
:
{
IMG_URL
,
productionValueList
:
[
productionValueList
:
[
{
title
:
'当日访客'
,
num
:
'2'
,
imgName
:
'dayVisitor'
,
valueName
:
'todayFansCount'
},
{
title
:
'当日访客'
,
num
:
'2'
,
imgName
:
'dayVisitor'
,
valueName
:
'todayFansCount'
},
{
title
:
'当日订单'
,
num
:
'3'
,
imgName
:
'dayOrder'
,
valueName
:
'todayOrderCount'
},
{
title
:
'当日订单'
,
num
:
'3'
,
imgName
:
'dayOrder'
,
valueName
:
'todayOrderCount'
},
...
@@ -19,10 +21,29 @@ Component({
...
@@ -19,10 +21,29 @@ Component({
{
title
:
'业务申请'
,
imgName
:
'businessApplication'
,
isOpen
:
false
},
{
title
:
'业务申请'
,
imgName
:
'businessApplication'
,
isOpen
:
false
},
],
],
exhibitionToolsList
:
[
exhibitionToolsList
:
[
{
title
:
'活动管理'
,
imgName
:
'managementOfActivities'
,
isOpen
:
true
,
path
:
'activityManagement'
},
{
title
:
'调查问卷'
,
icon
:
'questionnaire'
,
isOpen
:
false
},
{
title
:
'话术库'
,
imgName
:
'speechLibrary'
,
isOpen
:
false
},
{
title
:
'营销素材'
,
icon
:
'marketing_materials'
,
isOpen
:
false
},
{
title
:
'业务申请'
,
icon
:
'business_application'
,
isOpen
:
false
},
{
title
:
'活动管理'
,
icon
:
'event_management'
,
isOpen
:
true
,
path
:
'activityManagement'
},
{
title
:
'话术库'
,
icon
:
'script _library'
,
isOpen
:
false
},
// {title: '订单补录', imgName: 'supplementary_order', isOpen: true, path: 'supplementaryOrderList'}
// {title: '订单补录', imgName: 'supplementary_order', isOpen: true, path: 'supplementaryOrderList'}
],
],
staticDataList
:
[{
label
:
'今日营业额'
,
value
:
0
,
tipsLabel
:
'今日成交量'
,
tipsValue
:
0
},
{
label
:
'本月营业额'
,
value
:
0
,
tipsLabel
:
'本月成交量'
,
tipsValue
:
0
},
{
label
:
'累计营业额'
,
value
:
0
,
tipsLabel
:
'累计成交量'
,
tipsValue
:
0
}],
conversionList
:
{}
conversionList
:
{}
},
},
lifetimes
:
{
lifetimes
:
{
...
...
subvehicleConversion/pages/indexPage/index.sass
View file @
fbcbc16
.conversion-list-wrap
{
.conversion-list-wrap
{
padding
:
0
30rpx
;
width
:
100%
;
height
:
100vh
;
background
:
#FAFBFF
;
padding-top
:
6rpx
;
overflow
:
scroll
;
.top_box
{
width
:
calc
(
100%
-
24rpx
)
;
height
:
212rpx
;
box-sizing
:
border-box
;
margin
:
0
12rpx
20rpx
12rpx
;
background
:
linear-gradient
(
0deg
,
#347BFF
0%
,
#3B8FFE
100%
)
;
border-radius
:
32rpx
;
color
:
#FFFFFF
;
padding
:
32rpx
24rpx
;
display
:
flex
;
.top_item
{
width
:
33%
;
.label
{
font-size
:
24rpx
;
}
.value
{
font-size
:
40rpx
;
margin
:
4rpx
0
12rpx
0
;
font-weight
:
700
;
font-family
:
'numberBold'
;
}
.tips_box
{
display
:
flex
;
align-items
:
center
;
word-break
:
break-all
;
text
{
font-size
:
20rpx
;
margin-right
:
12rpx
;
}
.num_text
{
font-size
:
28rpx
;
margin
:
0
;
font-family
:
'numberBold'
;
}
}
}
}
.content_box
{
width
:
100%
;
box-sizing
:
border-box
;
background
:
#FFFFFF
;
box-shadow
:
0
4rpx
20rpx
0
#000000
1a
;
border-radius
:
32rpx
32rpx
0
0
;
height
:
calc
(
100%
-
238rpx
)
;
padding
:
30rpx
36rpx
;
}
.production-list
{
.production-list
{
.title
{
.title
{
font-weight
:
600
;
font-weight
:
600
;
...
@@ -10,29 +59,34 @@
...
@@ -10,29 +59,34 @@
margin-bottom
:
24rpx
;
}
margin-bottom
:
24rpx
;
}
.overview-wrap
{
.overview-wrap
{
background
:
#FAFBFC
;
border-radius
:
6px
;
display
:
grid
;
display
:
grid
;
grid-template-columns
:
33
.3%
33
.3%
33
.3%
;
grid-template-columns
:
repeat
(
auto-fill
,
216rpx
)
;
padding-top
:
20rpx
;
justify-content
:
space-between
;
padding-bottom
:
10rpx
;
align-items
:
center
;
//margin-bottom: 50rpx;
.overview-list
{
.overview-list
{
display
:
flex
;
background
:
#F6FCFE
;
justify-content
:
space-around
;
border-radius
:
12rpx
;
margin-bottom
:
20rpx
;
margin-bottom
:
18rpx
;
padding
:
24rpx
8rpx
;
.overview-left
{
.overview-left
{
.overview-title
{
.overview-title
{
display
:
flex
;
align-items
:
center
;
font-size
:
22rpx
;
color
:
#5A6066
;
color
:
#5A6066
;
font-size
:
26rpx
;
image
{
width
:
36rpx
;
height
:
36rpx
;
}
}
}
.overview-num
{
.overview-num
{
margin-top
:
24rpx
;
margin-left
:
44rpx
;
font-size
:
36rpx
;
color
:
#2D2D33
;
color
:
#2D2D33
;
font-size
:
32rpx
;
font-weight
:
700
;
font-weight
:
600
;
margin-top
:
8rpx
;
font-family
:
'numberBold'
;
}
}
}
}
...
@@ -58,8 +112,8 @@
...
@@ -58,8 +112,8 @@
grid-template-columns
:
25%
25%
25%
25%
;
grid-template-columns
:
25%
25%
25%
25%
;
text-align
:
center
;
text-align
:
center
;
.business-img
{
.business-img
{
width
:
62
px
;
width
:
100r
px
;
height
:
62
px
;
height
:
100r
px
;
}
}
.business-title
{
.business-title
{
//text-align: center;
//text-align: center;
...
...
subvehicleConversion/pages/indexPage/index.wxml
View file @
fbcbc16
<view class="conversion-list-wrap">
<view class="conversion-list-wrap">
<!--产值总览-->
<view class="top_box">
<view class="top_item" wx:for="{{staticDataList}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="value"><text style="font-size: 28rpx;margin-right: 4rpx;">¥</text>{{item.value}}</view>
<view class="tips_box">
<text>{{item.tipsLabel}}</text>
<text class="num_text">{{item.tipsValue}}</text>
</view>
</view>
</view>
<!--产值总览-->
<view class="content_box">
<view class="production-list">
<view class="production-list">
<view class="title">产值总览</view>
<!-- <view class="title">产值总览</view> -->
<view class="overview-wrap">
<view class="overview-wrap">
<view class="overview-list" wx:for="{{productionValueList}}" wx:key="index">
<view class="overview-list" wx:for="{{productionValueList}}" wx:key="index">
<view class="overview-left">
<view class="overview-left">
<view class="overview-title">{{item.title}}</view>
<view class="overview-title"><image class="overview-img" src="{{IMG_URL}}{{item.icon}}.png"></image>{{item.title}}</view>
<view class="overview-num">{{conversionList[item.valueName]}}</view>
<view class="overview-num">{{conversionList[item.valueName]}}</view>
</view>
</view>
<block class="overview-right">
<image class="overview-img" src="../../images/{{item.imgName}}.png"></image>
</block>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 业务拓展-->
<view class="business-list">
<view class="business-list">
<view class="title">业务拓展</view>
<view class="title">展业工具</view>
<view class="business-wrap">
<view class="business-wrap">
<block wx:for="{{exhibitionToolsList}}" wx:key="index">
<block wx:for="{{businessDevelopmentList}}" wx:key="index" >
<view class="business-content" bindtap="clickTap" data-item="{{item}}">
<view class="business-content" bindtap="clickTap" data-item="{{item}}">
<image class="business-img" src="
../../images/{{item.imgName
}}.png"></image>
<image class="business-img" src="
{{IMG_URL}}{{item.icon
}}.png"></image>
<view class="business-title">{{item.title}}</view>
<view class="business-title">{{item.title}}</view>
</view>
</view>
</block>
</block>
</view>
</view>
</view>
</view>
</view>
<!-- 业务拓展-->
<!-- <view class="business-list">
<view class="title">业务拓展</view>
<!-- 展业工具-->
<view class="business-wrap">
<!-- <view class="instrument-list">-->
<block wx:for="{{businessDevelopmentList}}" wx:key="index" >
<!-- <view class="title">展业工具</view>-->
<view class="business-content" bindtap="clickTap" data-item="{{item}}">
<!-- </view>-->
<image class="business-img" src="../../images/{{item.imgName}}.png"></image>
<!--</view>-->
<view class="business-title">{{item.title}}</view>
</view>
</block>
</view>
<view class="business-list">
</view> -->
<view class="title">展业工具</view>
<view class="business-wrap">
<block wx:for="{{exhibitionToolsList}}" wx:key="index">
<view class="business-content" bindtap="clickTap" data-item="{{item}}">
<image class="business-img" src="../../images/{{item.imgName}}.png"></image>
<view class="business-title">{{item.title}}</view>
</view>
</block>
</view>
</view>
</view>
</view>
tabIndex/pages/index/index.js
View file @
fbcbc16
This diff is collapsed.
Click to expand it.
tabIndex/pages/index/index.sass
View file @
fbcbc16
This diff is collapsed.
Click to expand it.
tabIndex/pages/index/index.wxml
View file @
fbcbc16
...
@@ -2,41 +2,44 @@
...
@@ -2,41 +2,44 @@
<wxs src="../index.wxs" module="filter" />
<wxs src="../index.wxs" module="filter" />
<navigation-bar
<navigation-bar
bindnavbarReady="navbarReady"
bindnavbarReady="navbarReady"
showMenu="{{ true }}"
showMenu="{{
userInfo.isSuper ? false :
true }}"
bindback="back"
bindback="back"
bindshowMenuPopup="showMenuPopup"
bindshowMenuPopup="showMenuPopup"
navStyle="{{ navStyle }}"
navStyle="{{ navStyle }}"
>
>
<!-- <picker range="{{ merchantRange }}" value="{{ subIndex }}" range-key="merchantName" bindchange="changePicker" bindtap="tapPicker" bindcancel="tapPicker" disabled="{{ merchantRange.length < 2 }}"> -->
<!-- bindtap="showStorePicker" -->
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title-text text-hide">{{userInfo.selectedMerchantName || merchantRange[subIndex].merchantName}}</view>
<view class="navigation-title-text text-hide">{{userInfo.isSuper ? merchantRange[subIndex].merchantName : userInfo.selectedMerchantName}}</view>
<!-- {{ moveArrow?'move':'' }} -->
<view class="arrow" wx:if="{{ userInfo.isSuper }}">
<view class="arrow" wx:if="{{ userInfo.isSuper }}">
<image src="/images/arrow-bottom.png" />
<image src="/images/arrow-bottom.png" />
</view>
</view>
</view>
</view>
<!-- </picker> -->
</navigation-bar>
</navigation-bar>
<view class="bg"></view>
<view
<view
class="layout {{ flag?'opacity':''}} {{waitInputCount?'mtTips':'' }}"
class="layout {{ flag?'opacity':''}} {{waitInputCount?'mtTips':'' }}"
style="height:100vh; padding-top:{{ navBarHeight + 'px' }}"
style="height:100vh; padding-top:{{ navBarHeight + 'px' }}"
>
>
<!-- <scroll-view style="height:100%;" scroll-x="false" scroll-y="false" upper-threshold="50" lower-threshold="50"> height:calc(100vh - {{ navBarHeight - 18}}rpx) -->
<block wx:if="{{ navBarHeight > 0 }}">
<block wx:if="{{ navBarHeight > 0 }}">
<view class="top_box">
<view class="top_item" wx:for="{{staticDataList}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="value"><text style="font-size: 28rpx;margin-right: 4rpx;">¥</text>{{item.value}}</view>
<view class="tips_box">
<text>{{item.tipsLabel}}</text>
<text class="num_text">{{item.tipsValue}}</text>
</view>
</view>
</view>
<view class="main">
<view class="main">
<view class="tips">
<view class="tips">
<view class="tips-text text-hide">
<view class="tips-text text-hide">
你好,
你好,
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
</view>
</view>
<!-- <view class="tips-fixed">您的累计贡献产值</view> -->
</view>
</view>
<view class="StatisticsCon">
<view class="StatisticsCon">
<view class="totalCon">
<view class="totalCon">
<view class="item">
<view class="item">
<view class="label">
累计
产值</view>
<view class="label">
个人
产值</view>
<veiw class="number">
<veiw class="number">
<text class="unit">¥ </text>
<text class="unit">¥ </text>
{{userStat.totalOrderMoney||0}}
{{userStat.totalOrderMoney||0}}
...
@@ -49,14 +52,17 @@
...
@@ -49,14 +52,17 @@
</view>
</view>
<view class="customStatistic">
<view class="customStatistic">
<veiw class="customItem" wx:for="{{ totalList }}" data-item="{{item}}" bindtap="navTabPage" wx:key="index">
<veiw class="customItem" wx:for="{{ totalList }}" data-item="{{item}}" bindtap="navTabPage" wx:key="index">
<veiw class="label">{{item.name}}</veiw>
<veiw class="label">
<view class="icon">
<image src="../../images/customIcon0{{ item.index }}.png" mode="" binderror="" bindload=""></image>
</view>
{{item.name}}
</veiw>
<view class="number">
<view class="number">
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
<text class="unit" wx:if="{{ item.unit }}">{{item.unit}}</text>
{{userStat[item.itemName]||0}}
{{userStat[item.itemName]||0}}
</view>
</view>
<view class="icon">
<image src="../../images/customIcon0{{ item.index }}.png" mode="" binderror="" bindload=""></image>
</view>
</veiw>
</veiw>
</view>
</view>
</view>
</view>
...
@@ -65,7 +71,18 @@
...
@@ -65,7 +71,18 @@
<div class="menu">
<div class="menu">
<block wx:for="{{ menu }}" wx:key="index">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="../../images/tabIcon0{{ index+1 }}.png" />
<image src="{{IMG_URL}}{{item.icon}}.png" />
<view class="label">{{item.name}}</view>
</view>
</block>
</div>
</block>
<block wx:if="{{ isNoStaff }}">
<view class="conTitle utils">展业工具</view>
<div class="menu noStaff">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="{{IMG_URL}}{{item.icon}}.png" />
<view class="label">{{item.name}}</view>
<view class="label">{{item.name}}</view>
</view>
</view>
</block>
</block>
...
@@ -118,7 +135,6 @@
...
@@ -118,7 +135,6 @@
</view>
</view>
</view>
</view>
<view class="line"></view>
<view class="line"></view>
<!-- <van-progress class="progress" pivot-text="{{outputValueObj.totalOutputValue||0}}" percentage="{{outputValueObj.rateValue>100?100:outputValueObj.rateValue}}" /> -->
<view class="lableBox">
<view class="lableBox">
<view class="label">当月目标</view>
<view class="label">当月目标</view>
<view class="value">
<view class="value">
...
@@ -140,7 +156,6 @@
...
@@ -140,7 +156,6 @@
<view>产值完成比</view>
<view>产值完成比</view>
<view class="value">{{item.rateValuePercent}}</view>
<view class="value">{{item.rateValuePercent}}</view>
</view>
</view>
<!-- <view class="chart">¥ 0</view> -->
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<view class="target">
<view class="target">
<view class="value">
<view class="value">
...
@@ -165,7 +180,6 @@
...
@@ -165,7 +180,6 @@
<view>产值完成比</view>
<view>产值完成比</view>
<view class="value">{{item.rateValuePercent}}</view>
<view class="value">{{item.rateValuePercent}}</view>
</view>
</view>
<!-- <view class="chart">¥ 0</view> -->
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<van-progress class="progress" pivot-text="{{ item.outputValue }}" percentage="{{ item.rateValue>100?100:item.rateValue }}" />
<view class="target">
<view class="target">
<view class="value">
<view class="value">
...
@@ -185,17 +199,6 @@
...
@@ -185,17 +199,6 @@
</view>
</view>
</view>
</view>
</view>
</view>
<block wx:if="{{ isNoStaff }}">
<view class="conTitle utils">展业工具</view>
<div class="menu noStaff">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="jump" data-item="{{ item }}" data-type="{{ userInfo.userType }}">
<image src="../../images/tabIcon0{{ index+1 }}.png" />
<view class="label">{{item.name}}</view>
</view>
</block>
</div>
</block>
<!-- 员工不给看统计数据 -->
<!-- 员工不给看统计数据 -->
<view class="content" wx:if="{{ userInfo.loginRole&&userInfo.loginRole!=4 }}">
<view class="content" wx:if="{{ userInfo.loginRole&&userInfo.loginRole!=4 }}">
<view class="box table">
<view class="box table">
...
@@ -224,10 +227,8 @@
...
@@ -224,10 +227,8 @@
</block>
</block>
</view>
</view>
</view>
</view>
<!-- class="table" -->
<ScrollView scroll-x scroll-y show-scrollbar="{{ false }}" bindscrolltolower="handleScrollToLower" class="table">
<ScrollView scroll-x scroll-y show-scrollbar="{{ false }}" bindscrolltolower="handleScrollToLower" class="table">
<view class="table-box">
<view class="table-box">
<!-- top:{{navBarHeight}}px; -->
<view class="table-header" style="width:{{ tableWidth }}rpx">
<view class="table-header" style="width:{{ tableWidth }}rpx">
<view class="label">合作门店</view>
<view class="label">合作门店</view>
<view class="values">
<view class="values">
...
@@ -241,7 +242,6 @@
...
@@ -241,7 +242,6 @@
>
>
<view class="lable">
<view class="lable">
<view class="name">{{item.name}}{{item.unit}}</view>
<view class="name">{{item.name}}{{item.unit}}</view>
<!-- <view class="unit">{{item.unit}}</view> -->
</view>
</view>
<view class="sort-list">
<view class="sort-list">
<view class="up {{ item.sort?'sort-active':'' }}" />
<view class="up {{ item.sort?'sort-active':'' }}" />
...
@@ -255,11 +255,7 @@
...
@@ -255,11 +255,7 @@
<view class="totalLabel average">累计</view>
<view class="totalLabel average">累计</view>
<view class="values">
<view class="values">
<block wx:for="{{ totalTableSum }}" wx:for-index="index" wx:key="index" wx:for-item="item">
<block wx:for="{{ totalTableSum }}" wx:for-index="index" wx:key="index" wx:for-item="item">
<!-- font-size:{{item.total>9999&&item.total<10000000?'20rpx':''}}; -->
<view class="th" style="width:{{ tableObj[index]['width'] }};">
<view class="th" style="width:{{ tableObj[index]['width'] }};">
<!-- {{item.total?item.total:'0'}} -->
<!-- <block wx:if="{{item.total >100000000}}">1亿+</block>
<block wx:elif="{{item.total > 10000000 }}">1000万+</block> -->
<block wx:if="{{ item.name == 'upgradeRateSum' }}">{{item.total || 0}}%</block>
<block wx:if="{{ item.name == 'upgradeRateSum' }}">{{item.total || 0}}%</block>
<block wx:else>{{item.total || 0}}</block>
<block wx:else>{{item.total || 0}}</block>
</view>
</view>
...
@@ -276,7 +272,6 @@
...
@@ -276,7 +272,6 @@
</view>
</view>
<view class="values">
<view class="values">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:for="{{ tableObj }}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<!-- font-size:{{item[i.key]>9999&&item[i.key]<10000000?'20rpx':''}}; ind==4||ind==5? '124rpx':'100rpx' -->
<view class="td text-center" style="width: {{ tableObj[ind]['width'] }};">
<view class="td text-center" style="width: {{ tableObj[ind]['width'] }};">
<block wx:if="{{ i.key == 'filmTimes' }}">
<block wx:if="{{ i.key == 'filmTimes' }}">
<view
<view
...
@@ -286,8 +281,6 @@
...
@@ -286,8 +281,6 @@
bindtap="changeTableData"
bindtap="changeTableData"
>{{item[i.key] || 0}}</view>
>{{item[i.key] || 0}}</view>
</block>
</block>
<!-- <block wx:elif="{{item[i.key] >100000000}}">1亿+</block>
<block wx:elif="{{item[i.key] > 10000000 }}">1000万+</block> -->
<block wx:elif="{{ i.key == 'upgradeRate' }}">{{item[i.key] || 0}}%</block>
<block wx:elif="{{ i.key == 'upgradeRate' }}">{{item[i.key] || 0}}%</block>
<block wx:else>{{item[i.key] || 0}}</block>
<block wx:else>{{item[i.key] || 0}}</block>
</view>
</view>
...
@@ -303,44 +296,11 @@
...
@@ -303,44 +296,11 @@
<block wx:if="{{ table.length <= 0 }}">
<block wx:if="{{ table.length <= 0 }}">
<view class="nothing">暂无数据</view>
<view class="nothing">暂无数据</view>
</block>
</block>
<!-- <ScrollView
class="table"
scroll-x
scroll-y
bindscrolltolower="handleScrollToLower">
<View class="sticky-box" style="height:{{tableHeight}}rpx;">
<View class="table__head" style="width:{{tableWidth}}rpx;">
<View
class="table__head__td"
wx:for="{{dataAttribute}}"
wx:key="attrIndex"
wx:for-index="attrIndex"
wx:for-item="attrItem">
<Text class="table__head__td__text">{{attrItem.title}}</Text>
</View>
</View>
<View
class="table__row"
wx:for="{{data}}"
wx:key="dataIndex"
wx:for-index="dataIndex"
wx:for-item="dataItem"
style="width:{{tableWidth}}rpx;">
<Text class="table__row__td" wx:for="{{dataAttribute}}" wx:key="dataIndex" wx:for-index="attrIndex" wx:for-item="attrItem">
{{dataItem[attrItem.key] || '-'}}
</Text>
</View>
</View>
</ScrollView> -->
</view>
</view>
<!-- <block wx:if="{{ table.length > 0 }}">
<view class="table-tips">到底了~</view>
</block> -->
</view>
</view>
</view>
</view>
</block>
</block>
<!-- </scroll-view> -->
</view>
</view>
<view class="waitOrderCon" wx:if="{{ waitInputCount }}">
<view class="waitOrderCon" wx:if="{{ waitInputCount }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
...
@@ -371,9 +331,4 @@
...
@@ -371,9 +331,4 @@
show="{{ showPicker }}"
show="{{ showPicker }}"
bindsearch="getStoreList"
bindsearch="getStoreList"
bindconfirm="changePicker"
bindconfirm="changePicker"
/>
<!-- <store-picker
items="{{storeListRange}}"
show="{{showPicker}}"
bindsearch="getStoreList"
bindconfirm="changePicker" /> -->
\ No newline at end of file
\ No newline at end of file
/>
\ No newline at end of file
\ No newline at end of file
tabIndex/pages/index/index_mixins.js
View file @
fbcbc16
export
default
{
export
default
{
data
:
{
data
:
{
navStyle
:
'background-color:
rgba(0,0,0,0)
;box-shadow:none;'
,
navStyle
:
'background-color:
#ffffff
;box-shadow:none;'
,
subIndex
:
0
,
subIndex
:
0
,
staticDataList
:
[{
label
:
'今日营业额'
,
value
:
0
,
tipsLabel
:
'今日成交量'
,
tipsValue
:
0
},
{
label
:
'本月营业额'
,
value
:
0
,
tipsLabel
:
'本月成交量'
,
tipsValue
:
0
},
{
label
:
'累计营业额'
,
value
:
0
,
tipsLabel
:
'累计成交量'
,
tipsValue
:
0
}],
menu
:
[
menu
:
[
{
{
name
:
'新建工单'
,
name
:
'新建工单'
,
url
:
'tabWorkOrder.createOrder'
,
url
:
'tabWorkOrder.createOrder'
,
recordId
:
6
recordId
:
6
,
icon
:
'create_newworkorder'
},
},
{
{
name
:
'扫码下单'
,
name
:
'扫码下单'
,
url
:
'tabWorkOrder.createOrder'
,
url
:
'tabWorkOrder.createOrder'
,
type
:
'scanCode'
,
type
:
'scanCode'
,
recordId
:
7
recordId
:
7
,
icon
:
'scancode_verification'
},
},
{
{
name
:
'预约管理'
,
name
:
'预约管理'
,
url
:
'tabDate.index'
,
url
:
'tabDate.index'
,
recordId
:
9
recordId
:
9
,
icon
:
'booking_management'
},
},
{
{
name
:
'经营数据'
,
name
:
'经营数据'
,
url
:
'tabOperating.index'
,
url
:
'tabOperating.index'
,
recordId
:
11
recordId
:
11
,
icon
:
'business_data'
},
},
{
{
name
:
'客户建档'
,
name
:
'客户建档'
,
// name: '战败下单',
// name: '战败下单',
url
:
'tabWorkOrder.createArchives'
,
url
:
'tabWorkOrder.createArchives'
,
recordId
:
8
recordId
:
8
,
icon
:
'customer_filing'
}
}
],
],
totalTableSum
:
[
totalTableSum
:
[
...
@@ -64,12 +85,12 @@ export default {
...
@@ -64,12 +85,12 @@ export default {
typeText
:
'补录订单'
typeText
:
'补录订单'
},
},
totalList
:
[
totalList
:
[
{
//
{
name
:
'服务客户'
,
//
name: '服务客户',
itemName
:
'totalCustomer'
,
//
itemName: 'totalCustomer',
index
:
1
,
//
index: 1,
url
:
'tabOperating.index'
//
url: 'tabOperating.index'
},
//
},
{
{
name
:
'已预约客户'
,
name
:
'已预约客户'
,
itemName
:
'totalInvited'
,
itemName
:
'totalInvited'
,
...
...
tabMine/pages/index/index.wxml
View file @
fbcbc16
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</view>
</view>
</view>
</view>
<block >
<block >
<view class="scene_box">
<
!-- <
view class="scene_box">
<view class="title">场景</view>
<view class="title">场景</view>
<view class="select_item">
<view class="select_item">
<view class="scene_message">
<view class="scene_message">
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</view>
</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
</view>
</view>
</view>
</view>
-->
<view class="set_box">
<view class="set_box">
<view class="set_item item_1" bindtap="showWork">
<view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">工位设置<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
...
@@ -57,15 +57,23 @@
...
@@ -57,15 +57,23 @@
<view class="title">录单设置<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="title">录单设置<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="set_tips">设置录单必填项</view>
<view class="set_tips">设置录单必填项</view>
</view>
</view>
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="set_tips">{{selectedSceneName}}</view>
</view>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="title">更新日志<image class="arrow_icon" src="../../images/arrow_icon.png" mode=""/></view>
<view class="set_tips">最新{{versionData.version}}版</view>
</view>
</view>
</view>
<view class="version_box" bindtap="goVersionPage">
<
!-- <
view class="version_box" bindtap="goVersionPage">
<view class="item">
<view class="item">
<view class="icon_box">
<view class="icon_box">
<view class="is_new" hidden="{{!versionData.isNew}}">NEW</view>
<view class="is_new" hidden="{{!versionData.isNew}}">NEW</view>
</view>
</view>
<view>更新日志</view>
<view>更新日志</view>
</view>
</view>
</view>
</view>
-->
</block>
</block>
<view class="logout text-center" bindtap="logout">退出账号</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
</view>
...
...
tabMine/pages/index/index.wxss
View file @
fbcbc16
...
@@ -134,11 +134,12 @@
...
@@ -134,11 +134,12 @@
}
}
.set_box{
.set_box{
margin: 20rpx;
margin-top: 48rpx;
display: grid;
display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
justify-content: space-between;
align-items: center;
align-items: center;
margin: 20rpx;
}
}
.set_box .set_item{
.set_box .set_item{
...
@@ -150,6 +151,7 @@
...
@@ -150,6 +151,7 @@
flex-flow: column;
flex-flow: column;
justify-content: center;
justify-content: center;
padding: 32rpx;
padding: 32rpx;
margin-bottom: 20rpx;
}
}
.set_box .set_item .title .arrow_icon{
.set_box .set_item .title .arrow_icon{
...
@@ -165,6 +167,14 @@
...
@@ -165,6 +167,14 @@
background: #F8F9FF;
background: #F8F9FF;
}
}
.set_box .item_3{
background: #F6FCFE;
}
.set_box .item_4{
background: #FFF8F8;
}
.set_box .set_item .title{
.set_box .set_item .title{
font-weight: 500;
font-weight: 500;
font-size: 28rpx;
font-size: 28rpx;
...
@@ -369,7 +379,10 @@
...
@@ -369,7 +379,10 @@
}
}
.logout {
.logout {
margin: 94rpx auto;
position: fixed;
bottom: 106rpx;
left: 50%;
transform: translateX(-50%);
width: 326rpx;
width: 326rpx;
height: 80rpx;
height: 80rpx;
background: #FFFFFF;
background: #FFFFFF;
...
...
tabOperating/pages/index/index.scss
View file @
fbcbc16
...
@@ -24,7 +24,8 @@ page {
...
@@ -24,7 +24,8 @@ page {
.headerContainer
{
.headerContainer
{
height
:
306rpx
;
height
:
306rpx
;
background-color
:
#3582EE
;
background-image
:
linear-gradient
(
0deg
,
#347BFF
0%
,
#3B8FFE
100%
);
box-shadow
:
inset
-1px
-1px
2px
0
#0064f0
99
,
inset
0
-1px
6px
0
#1BB1FE
;
width
:
100%
;
width
:
100%
;
.businessDataContainer
{
.businessDataContainer
{
...
@@ -50,13 +51,14 @@ page {
...
@@ -50,13 +51,14 @@ page {
// height: 60rpx;
// height: 60rpx;
margin-bottom
:
10rpx
;
margin-bottom
:
10rpx
;
// display: inline;
// display: inline;
font-size
:
4
4
rpx
;
font-size
:
4
8
rpx
;
font-weight
:
600
;
font-weight
:
600
;
}
}
.lab
{
.lab
{
// height: 42rpx;
// height: 42rpx;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
rgba
(
255
,
255
,
255
,
.5
);
}
}
}
}
...
...
tabOperating/pages/index/index.wxml
View file @
fbcbc16
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<!-- wx:for-index="index" -->
<!-- wx:for-index="index" -->
<block wx:for="{{ menu }}" wx:key="index">
<block wx:for="{{ menu }}" wx:key="index">
<view class="item" bindtap="menuJump" data-item="{{ item }}" data-index="{{ index }}">
<view class="item" bindtap="menuJump" data-item="{{ item }}" data-index="{{ index }}">
<image src="
../../images/navIcon{{
index }}.png" />
<image src="
{{IMG_URL}}static_{{
index }}.png" />
{{item.name}}
{{item.name}}
</view>
</view>
</block>
</block>
...
...
tabOperating/pages/index/index_mixins.js
View file @
fbcbc16
import
{
env
,
envIndex
}
from
'~/config'
import
{
env
,
envIndex
}
from
'~/config'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/upgrade/'
export
default
{
export
default
{
data
:
{
data
:
{
IMG_URL
,
menu
:
[
menu
:
[
{
{
name
:
'累计营收'
,
name
:
'累计营收'
,
...
...
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