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 7f91ff47
authored
May 16, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
代码合并
2 parents
554c1dba
108ad2e1
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
612 additions
and
248 deletions
app.json
app.wxss
components/SideSelectPopup/SideSelectPopup.js
components/SideSelectPopup/SideSelectPopup.json
components/SideSelectPopup/SideSelectPopup.wxml
components/SideSelectPopup/SideSelectPopup.wxss
components/navigationBar/navigationBar.js
components/navigationBar/navigationBar.wxml
config.js
packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.js
packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxml
packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxss
packageCrowdFunding/pages/paidOrder/paidOrder.js
packageCrowdFunding/pages/paidOrder/paidOrder.json
packageCrowdFunding/pages/paidOrder/paidOrder.wxml
packageEquity/pages/TabBar/equityPage.js
packageEquity/pages/TabBar/equityPage.json
packageEquity/pages/TabBar/equityPage.wxml
pages/accountItems/accountItems.js
pages/accountItems/accountItems.wxml
pages/accountItems/accountItems.wxss
pages/components/authSetting/authSetting.js
pages/components/authSetting/authSetting.wxml
pages/components/authSetting/authSetting.wxss
pages/constant/data.js
pages/wxLogin/wxLogin.js
pages/wxLogin/wxLogin.json
pages/wxLogin/wxLogin.wxml
pages/wxLogin/wxLogin.wxss
tabIndex/pages/index/index.js
tabIndex/pages/index/index.json
tabIndex/pages/index/index.wxml
app.json
View file @
7f91ff4
...
@@ -120,7 +120,9 @@
...
@@ -120,7 +120,9 @@
"modal"
:
"components/modal/modal"
,
"modal"
:
"components/modal/modal"
,
"tips-bottom"
:
"components/tipsBottom/index"
,
"tips-bottom"
:
"components/tipsBottom/index"
,
"gl-image"
:
"components/GlImage/index"
,
"gl-image"
:
"components/GlImage/index"
,
"van-field"
:
"@vant/weapp/field/index"
"van-field"
:
"@vant/weapp/field/index"
,
"van-popup"
:
"@vant/weapp/popup/index"
,
"van-dialog"
:
"@vant/weapp/dialog/index"
},
},
"resolveAlias"
:
{
"resolveAlias"
:
{
"~/*"
:
"/*"
"~/*"
:
"/*"
...
...
app.wxss
View file @
7f91ff4
@font-face {
font-family: "number";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/dj-car-boutique-work-wechat/font/D-DIN-PRO-500-Medium.ttf");
}
@font-face {
font-family: "numberBold";
src: url("https://img02.glsx.com.cn/weapp/resource/saas/dj-car-boutique-work-wechat/font/D-DIN-PRO-700-Bold.ttf");
}
image {
image {
width: 100%;
width: 100%;
height: 100%;
height: 100%;
...
...
components/SideSelectPopup/SideSelectPopup.js
0 → 100644
View file @
7f91ff4
// components/SideSelectPopup/SideSelectPopup.js
import
constantData
from
'../../pages/constant/data'
Component
({
/**
* 组件的属性列表
*/
properties
:
{
show
:
{
type
:
Boolean
,
value
:
false
,
observer
:
function
(
n
)
{
if
(
n
)
{
let
userInfo
=
wx
.
$util
.
getUserInfo
()
||
{}
let
storageSelectedSceneType
=
userInfo
.
selectedSceneType
this
.
setData
({
storageSelectedSceneType
})
let
{
sceneList
}
=
this
.
data
let
openSceneArr
=
userInfo
?.
openSceneArr
||
[]
// 获取开通业务场景
let
arr
=
sceneList
.
filter
(
v
=>
openSceneArr
.
includes
(
v
.
sceneType
))
this
.
setData
({
sceneList
:
arr
})
}
}
},
hasTabBar
:
{
type
:
Boolean
,
value
:
false
}
},
/**
* 组件的初始数据
*/
data
:
{
sceneList
:
constantData
.
sceneList
,
storageSelectedSceneType
:
''
},
/**
* 组件的方法列表
*/
methods
:
{
closeMenu
(){
this
.
setData
({
show
:
false
})
},
showTabBar
()
{
if
(
this
.
data
.
hasTabBar
)
wx
.
showTabBar
({
animation
:
true
})
},
hideTabBar
()
{
if
(
this
.
data
.
hasTabBar
)
wx
.
hideTabBar
({
animation
:
true
})
},
selectScene
(
e
)
{
let
{
scene
}
=
e
.
currentTarget
.
dataset
let
{
sceneList
}
=
this
.
data
wx
.
$router
.
reLaunch
(
constantData
?.
pageUrl
[
scene
])
sceneList
.
map
(
i
=>
(
i
.
actived
=
false
))
wx
.
$util
.
setUserInfo
({
...
wx
.
$util
.
getUserInfo
(),
selectedSceneType
:
scene
})
},
goMineCenter
()
{
wx
.
$router
.
redirectTo
(
'pages.sceneIndex'
)
}
}
})
components/SideSelectPopup/SideSelectPopup.json
0 → 100644
View file @
7f91ff4
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
components/SideSelectPopup/SideSelectPopup.wxml
0 → 100644
View file @
7f91ff4
<!--components/SideSelectPopup/SideSelectPopup.wxml-->
<van-popup custom-style="height: 100%;width:70%;" z-index="999999" custom-class="popclass" bind:click-overlay="closeMenu" position="left" bind:before-enter="hideTabBar" bind:after-leave="showTabBar" show="{{ show }}">
<view class="wrapper">
<view class="title">业务</view>
<block wx:for="{{sceneList}}" wx:key="index">
<view catch:tap="selectScene" data-scene="{{item.sceneType}}" class="element {{item.sceneType == storageSelectedSceneType ? 'active' : ''}}">
<view class="img"><image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{item.sceneType}}.png"></image></view>
<view class="label">{{item.sceneName}}</view>
</view>
</block>
<view class="title">通用</view>
<view catch:tap="goMineCenter" data-index="" class="element mine">
<view class="flex_box">
<view class="img"><image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/side_mine_icon.png"></image></view>
<view class="label">个人中心</view>
</view>
<view class="right_icon">></view>
</view>
</view>
</van-popup>
components/SideSelectPopup/SideSelectPopup.wxss
0 → 100644
View file @
7f91ff4
/* components/SideSelectPopup/SideSelectPopup.wxss */
.popclass{
background-image: linear-gradient(180deg, #1D243D 0%, #30365C 100%);
border-radius: 0 40rpx 40rpx 0;
z-index: 1999999999999;
box-sizing: border-box;
padding: 88rpx 16rpx;
}
.wrapper .title{
height: 88rpx;
line-height: 88rpx;
padding-left: 16rpx;
font-weight: 600;
font-size: 28rpx;
color: #FFFFFF80;
}
.wrapper .element{
position: relative;
padding: 24rpx 0;
padding-left: 16rpx;
display: flex;
align-items: center;
}
.wrapper .element .label{
font-weight: 500;
font-size: 30rpx;
color: #FFFFFF;
}
.wrapper .element .img{
width: 64rpx;
height: 64rpx;
margin-right: 16rpx;
}
.wrapper .active{
background: #FFFFFF15;
border-radius: 16rpx;
}
.wrapper .mine{
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 -16rpx;
padding: 24rpx 16rpx;
background: #2C3255;
}
.wrapper .mine .flex_box{
display: flex;
align-items: center;
}
.right_icon{
font-size: 36rpx;
color: #AEB2C2;
}
\ No newline at end of file
\ No newline at end of file
components/navigationBar/navigationBar.js
View file @
7f91ff4
...
@@ -8,6 +8,7 @@ Component({
...
@@ -8,6 +8,7 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
navStyle
:
String
,
showBack
:
Boolean
,
showBack
:
Boolean
,
showMenu
:
Boolean
showMenu
:
Boolean
},
},
...
@@ -23,6 +24,9 @@ Component({
...
@@ -23,6 +24,9 @@ Component({
methods
:
{
methods
:
{
back
()
{
back
()
{
this
.
triggerEvent
(
'back'
)
this
.
triggerEvent
(
'back'
)
},
showMenuPopup
()
{
this
.
triggerEvent
(
'showMenuPopup'
)
}
}
},
},
ready
()
{
ready
()
{
...
...
components/navigationBar/navigationBar.wxml
View file @
7f91ff4
<view class='navigation-bar' id='navigation-bar' style='padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px'>
<view class='navigation-bar' id='navigation-bar' style='padding-top:{{statusBarHeight}}px;height:{{navigationBarHeight}}px
;{{navStyle}}
'>
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<!-- hidden="{{!showNavBar}}" wx:if="{{showNavBar}}" -->
<view class="navigation-bar-box" style="{{navigationBarStyle}}">
<view class="navigation-bar-box" style="{{navigationBarStyle}}">
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
<view class="navigation-bar-titleText" style="{{navigationBarTextWidth}}">
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</view>
</view>
</block>
</block>
<block wx:if="{{showMenu}}">
<block wx:if="{{showMenu}}">
<view class="menu-box" bindtap="
back
">
<view class="menu-box" bindtap="
showMenuPopup
">
<view class="menu-class">
<view class="menu-class">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation-bar-menu.png" />
</view>
</view>
...
...
config.js
View file @
7f91ff4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* 2测试
* 2测试
* 3生产环境
* 3生产环境
*/
*/
let
index
=
4
let
index
=
1
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
accountInfo
=
wx
.
getAccountInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
const
systemInfo
=
wx
.
getSystemInfoSync
()
...
...
packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.js
View file @
7f91ff4
...
@@ -72,11 +72,12 @@ Component({
...
@@ -72,11 +72,12 @@ Component({
})
})
this
.
getWaitinputorder
()
this
.
getWaitinputorder
()
},
},
getWaitinputorder
()
{
getWaitinputorder
(
e
)
{
let
{
currentPage
,
pageSize
,
orderNoList
,
orderInfo
}
=
this
.
data
let
{
currentPage
,
pageSize
,
orderNoList
,
orderInfo
}
=
this
.
data
// totalFee 根据商品众筹价筛选交易流水号
// totalFee 根据商品众筹价筛选交易流水号
let
totalFee
=
e
?
''
:
orderInfo
.
totalFee
api
api
.
waitinputorder
({
currentPage
,
pageSize
,
totalFee
:
orderInfo
.
totalFee
})
.
waitinputorder
({
currentPage
,
pageSize
,
totalFee
})
.
then
(
result
=>
{
.
then
(
result
=>
{
let
{
code
,
data
}
=
result
let
{
code
,
data
}
=
result
if
(
code
==
0
)
{
if
(
code
==
0
)
{
...
...
packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxml
View file @
7f91ff4
<!--packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxml-->
<!--packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxml-->
<wxs src="index.wxs" module="filter" />
<wxs src="index.wxs" module="filter" />
<popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" height="60%">
<popup show="{{show}}" bindconfirm="confirm" bindcancel="cancel" height="60%">
<view class="sub-title text-center">{{title}}</view>
<view class="sub-title">
<view>{{title}}</view>
<view class="all_btn" bindtap="getWaitinputorder" data-target="true">全部</view>
</view>
<scroll-view
<scroll-view
class="order_no_box"
class="order_no_box"
scroll-y
scroll-y
...
...
packageCrowdFunding/components/OrderNoPopup/OrderNoPopup.wxss
View file @
7f91ff4
...
@@ -2,12 +2,23 @@
...
@@ -2,12 +2,23 @@
height: 100rpx;
height: 100rpx;
font-size: 32rpx;
font-size: 32rpx;
color: #222222;
color: #222222;
font-weight: 600;
position: sticky;
position: sticky;
left: 0;
left: 0;
top: 0;
top: 0;
background-color: #fff;
background-color: #fff;
z-index: 2;
z-index: 2;
border-bottom: 1rpx solid #EDEDED;
border-bottom: 1rpx solid #EDEDED;
display: flex;
align-items: center;
justify-content: center;
}
.sub-title .all_btn{
position: absolute;
right: 20rpx;
font-size: 24rpx;
color: #9B9B9E;
font-weight: 400;
}
}
.text-hide {
.text-hide {
white-space:nowrap;
white-space:nowrap;
...
...
packageCrowdFunding/pages/paidOrder/paidOrder.js
View file @
7f91ff4
...
@@ -12,7 +12,8 @@ Page({
...
@@ -12,7 +12,8 @@ Page({
label
:
'merchantName'
,
label
:
'merchantName'
,
placeholder
:
'门店'
placeholder
:
'门店'
},
},
defaultSelectInfo
:
{}
defaultSelectInfo
:
{},
shopSideSelectPopup
:
false
},
},
init
(
userInfo
)
{
init
(
userInfo
)
{
...
@@ -93,6 +94,13 @@ Page({
...
@@ -93,6 +94,13 @@ Page({
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
},
},
showMenuPopup
()
{
console
.
log
(
'123123'
)
this
.
setData
({
shopSideSelectPopup
:
true
})
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
...
packageCrowdFunding/pages/paidOrder/paidOrder.json
View file @
7f91ff4
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"order-list"
:
"../../components/orderList/orderList"
,
"order-list"
:
"../../components/orderList/orderList"
,
"top-select-picker"
:
"../../components/topSelectPicker/topSelectPicker"
"top-select-picker"
:
"../../components/topSelectPicker/topSelectPicker"
,
"side-select-popup"
:
"../../../components/SideSelectPopup/SideSelectPopup"
},
},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
packageCrowdFunding/pages/paidOrder/paidOrder.wxml
View file @
7f91ff4
<!--packageCrowdFunding/pages/paidOrder/paidOrder.wxml-->
<!--packageCrowdFunding/pages/paidOrder/paidOrder.wxml-->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{true}}" bindback="back">
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{true}}" bindback="back"
bindshowMenuPopup="showMenuPopup"
>
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo_crowdFunding && userInfo.default4SStoreInfo_crowdFunding.merchantName}}</view>
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo_crowdFunding && userInfo.default4SStoreInfo_crowdFunding.merchantName}}</view>
<view class="arrow">
<view class="arrow">
...
@@ -14,4 +14,5 @@
...
@@ -14,4 +14,5 @@
<top-select-picker show="{{showStorePicker}}" selectObj="{{selectObj}}" bindsearch="getStoreList" defaultSelectInfo="{{defaultSelectInfo}}" items="{{storeListRange}}" bindconfirm="changePicker"></top-select-picker>
<top-select-picker show="{{showStorePicker}}" selectObj="{{selectObj}}" bindsearch="getStoreList" defaultSelectInfo="{{defaultSelectInfo}}" items="{{storeListRange}}" bindconfirm="changePicker"></top-select-picker>
<side-select-popup show="{{shopSideSelectPopup}}" />
packageEquity/pages/TabBar/equityPage.js
View file @
7f91ff4
...
@@ -22,7 +22,8 @@ Page({
...
@@ -22,7 +22,8 @@ Page({
navBarHeight
:
0
,
navBarHeight
:
0
,
showPicker
:
false
,
showPicker
:
false
,
userInfo
:
{},
userInfo
:
{},
selectStroeIndex
:
0
selectStroeIndex
:
0
,
shopSideSelectPopup
:
false
},
},
init
(
userInfo
)
{
init
(
userInfo
)
{
...
@@ -110,6 +111,12 @@ Page({
...
@@ -110,6 +111,12 @@ Page({
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
},
},
showMenuPopup
()
{
this
.
setData
({
shopSideSelectPopup
:
true
})
},
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
navBarHeight
=
e
.
detail
.
height
let
navBarHeight
=
e
.
detail
.
height
this
.
setData
({
this
.
setData
({
...
...
packageEquity/pages/TabBar/equityPage.json
View file @
7f91ff4
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
"custom-tabBar"
:
"../components/CustomTabBar/CustomTabBar"
,
"custom-tabBar"
:
"../components/CustomTabBar/CustomTabBar"
,
"quotation-list"
:
"../carQuotation/index/index"
,
"quotation-list"
:
"../carQuotation/index/index"
,
"equity-list"
:
"../carEquity/components/EquityList/EquityList"
,
"equity-list"
:
"../carEquity/components/EquityList/EquityList"
,
"store-picker"
:
"../../components/storePicker/storePicker"
"store-picker"
:
"../../components/storePicker/storePicker"
,
"side-select-popup"
:
"../../../components/SideSelectPopup/SideSelectPopup"
},
},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
packageEquity/pages/TabBar/equityPage.wxml
View file @
7f91ff4
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
class="navigation-header"
class="navigation-header"
bindnavbarReady="navbarReady"
bindnavbarReady="navbarReady"
showMenu="{{true}}"
showMenu="{{true}}"
bindback="back">
bindback="back"
bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title" bindtap="showStorePicker">
<view class="navigation-title-text text-hide">
<view class="navigation-title-text text-hide">
{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}
{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}
...
@@ -35,4 +36,5 @@
...
@@ -35,4 +36,5 @@
show="{{showPicker}}"
show="{{showPicker}}"
bindsearch="getStoreList"
bindsearch="getStoreList"
bindconfirm="changePicker" />
bindconfirm="changePicker" />
<side-select-popup show="{{shopSideSelectPopup}}" />
pages/accountItems/accountItems.js
View file @
7f91ff4
...
@@ -10,6 +10,9 @@ Page({
...
@@ -10,6 +10,9 @@ Page({
*/
*/
data
:
{
data
:
{
/**accountLevel 1工厂。2省 ,3市。4门店 */
/**accountLevel 1工厂。2省 ,3市。4门店 */
searchValue
:
''
,
edit
:
false
,
copyLoginUserInfoList
:
[]
},
},
/**
/**
...
@@ -24,6 +27,59 @@ Page({
...
@@ -24,6 +27,59 @@ Page({
id
?
this
.
qrCodeScene
(
id
)
:
this
.
getListSelectAccount
()
id
?
this
.
qrCodeScene
(
id
)
:
this
.
getListSelectAccount
()
// this.getListSelectAccount()
// this.getListSelectAccount()
},
},
open
()
{
this
.
setData
({
edit
:
true
,
inputFocus
:
true
})
},
setValue
(
value
)
{
if
(
this
.
properties
.
filterEmoji
)
{
if
(
wx
.
$util
.
haveEmoji
(
value
))
value
=
wx
.
$util
.
replaceEmoji
(
value
)
}
console
.
log
(
value
)
this
.
setData
({
searchValue
:
value
})
},
input
(
e
)
{
let
{
value
}
=
e
.
detail
this
.
setValue
(
value
)
},
inputBlur
(
e
)
{
this
.
emit
(
e
)
},
inputConfifm
(
e
)
{
this
.
emit
(
e
)
},
emit
(
e
)
{
let
{
detail
:{
value
}
}
=
e
this
.
setData
({
edit
:
false
,
searchValue
:
value
})
this
.
setValue
(
value
)
this
.
searchEvent
()
},
// 搜索过滤
searchEvent
()
{
let
{
searchValue
,
copyLoginUserInfoList
}
=
this
.
data
let
filterArr
=
copyLoginUserInfoList
.
filter
(
val
=>
val
.
merchantName
.
includes
(
searchValue
)
||
val
.
merchantId
==
searchValue
)
||
[]
this
.
setData
({
loginUserInfoList
:
filterArr
})
if
(
!
searchValue
)
{
this
.
setData
({
loginUserInfoList
:
copyLoginUserInfoList
})
}
},
// 免登录逻辑
// 免登录逻辑
qrCodeScene
(
id
)
{
qrCodeScene
(
id
)
{
api
api
...
@@ -81,7 +137,8 @@ Page({
...
@@ -81,7 +137,8 @@ Page({
})
})
that
.
setData
(
that
.
setData
(
{
{
loginUserInfoList
loginUserInfoList
,
copyLoginUserInfoList
:
loginUserInfoList
},
},
()
=>
{
()
=>
{
that
.
choiceAccountLogin
()
that
.
choiceAccountLogin
()
...
@@ -116,7 +173,8 @@ Page({
...
@@ -116,7 +173,8 @@ Page({
let
{
loginUserInfoList
,
sessionId
}
=
data
let
{
loginUserInfoList
,
sessionId
}
=
data
wx
.
$util
.
setSessionId
(
sessionId
)
wx
.
$util
.
setSessionId
(
sessionId
)
this
.
setData
({
this
.
setData
({
loginUserInfoList
loginUserInfoList
,
copyLoginUserInfoList
:
loginUserInfoList
})
})
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
...
...
pages/accountItems/accountItems.wxml
View file @
7f91ff4
<view class="layout" style="padding-bottom:{{isFullSucreen?'224rpx':'160rpx'}}">
<view class="layout" style="padding-bottom:{{isFullSucreen?'224rpx':'160rpx'}}">
<view class="title">请选择登录的账号</view>
<view class="title">请选择登录的账号</view>
<view class="list">
<view class="search-box" wx:if="{{copyLoginUserInfoList && copyLoginUserInfoList.length >= 10}}">
<view class="search-input">
<block wx:if="{{!edit}}">
<view class="input {{searchValue?'':'placeholder'}}" bindtap="open">
<block wx:if="{{searchValue}}">
{{searchValue}}
</block>
<block wx:else>
<image src="../../images/search.png" class="icon"></image>
请输入门店名称/商户号搜索
</block>
</view>
</block>
<block wx:else>
<input type="text" class="input" value='{{searchValue}}' focus='{{inputFocus}}' confirm-type="search" bindinput='input' bindblur="inputBlur" bindconfirm="inputConfifm"/>
</block>
</view>
</view>
<scroll-view class="list" scroll-y style="height: calc(100% - {{copyLoginUserInfoList && copyLoginUserInfoList.length >= 10 ? 120 : 50}}rpx);">
<block wx:if="{{flag}}">
<block wx:if="{{flag}}">
<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}}">
<view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}">
<view class="left">
<view class="name">
<view class="name">
{{item.merchantName}}{{item.isSuper==true?'(超管)':item.userType==1?'(商户号)':'(员工号)'}}
{{item.merchantName}}
</view>
<view class="shop_no">
商户号:{{item.merchantId}}
</view>
</view>
<view class="right">
<view class="midle {{item.isSuper==true?'midle_1':item.userType==1?'midle_2':'midle_3'}}">
{{item.isSuper==true?'超管':item.userType==1?'商户号':'驻店员工'}}
</view>
</view>
<view class="icon">
<view class="icon">
<image src="/images/active-arc.png" />
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow-left.png" />
</view>
</view>
</view>
<view class='radio' />
</view>
</view>
</block>
</block>
</block>
</block>
...
@@ -21,7 +48,8 @@
...
@@ -21,7 +48,8 @@
</view>
</view>
</block>
</block>
</block>
</block>
</view>
<view class="scrollSpase"></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>
...
...
pages/accountItems/accountItems.wxss
View file @
7f91ff4
/* pages/accountItems/accountItems.wxss */
/* pages/accountItems/accountItems.wxss */
.layout {
.layout {
margin
: 40rpx 40rpx 0;
padding
: 40rpx 40rpx 0;
font-size: 28rpx;
font-size: 28rpx;
color: #333;
color: #333;
letter-spacing: 0;
letter-spacing: 0;
background: #F8F9F9;
box-sizing: border-box;
height: 100vh;
}
}
.title {
.title {
margin-bottom: 32rpx;
margin-bottom: 32rpx;
font-weight: 600;
}
}
.search-box .search-input {
width: 100%;
height: 72rpx;
background: #fff;
border-radius: 38rpx;
padding-left: 24rpx;
box-sizing: border-box;
margin-bottom: 32rpx;
color: #333;
}
.search-input .input{
display: flex;
align-items: center;
height: 100%;
width: 100%;
}
.search-input .icon{
width: 28rpx;
height: 28rpx;
margin-right: 10rpx;
}
.search-input .placeholder{
color: #C8C9CC;
}
.list .scrollSpase{
height: 70rpx;
}
.items:first-child{
margin-top: 0;
}
.items {
.items {
width: 100%;
width: 100%;
min-height: 104rpx;
background: #FFFFFF;
box-shadow: 0 0 8rpx 0 rgba(0, 0, 0, 0.15);
border-radius: 16rpx;
margin-top: 32rpx;
padding: 32rpx;
padding: 32rpx;
margin-bottom: 40rpx;
background-color: #fff;
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 .name{
.items {
width: calc(100% - 70rpx);
display: flex;
box-sizing: border-box;
}
}
.items
:last-of-type
{
.items
.active
{
margin-bottom: 0
;
border: 6rpx solid #3582EE
;
}
}
.items .left{
.radio {
display: flex;
width: 32rpx;
flex-flow: column;
height: 32rpx;
border: 2rpx solid #cccccc;
border-radius: 100%;
transition: all .2s;
}
}
.items .left .name{
font-weight: 500;
.icon {
font-size: 14px;
width: 36rpx;
color: #1B233D;
height: 36rpx;
transition: all .2s;
display: none;
}
}
.items .left .shop_no{
.active .icon {
font-weight: 400;
display: block;
font-size: 22epx;
color: #9299AD;
}
.items .right{
flex-shrink: 0;
display: flex;
align-items: center;
}
.items .right .midle{
font-size: 24rpx;
height: 44rpx;
border-radius: 2px;
line-height: 44rpx;
padding: 0 16rpx;
margin-right: 26rpx;
}
/* 超管 */
.items .right .midle_1{
color: #F24724;
border: 2rpx solid #F24724;
background-color: #F2472410;
}
/* 商户号 */
.items .right .midle_2{
color: #FF9D0A;
border: 2rpx solid #FF9D0A;
background-color: #FF9D0A10;
}
/* 驻店员工 */
.items .right .midle_3{
color: #35C376;
border: 2rpx solid #35C376;
background-color: #35C37610;
}
}
.active .radio{
.items .right .icon{
display: none;
width: 40rpx;
height: 40rpx;
}
}
.btn-box {
.btn-box {
position: fixed;
position: fixed;
...
...
pages/components/authSetting/authSetting.js
View file @
7f91ff4
...
@@ -27,13 +27,13 @@ Component({
...
@@ -27,13 +27,13 @@ Component({
// type: Boolean,
// type: Boolean,
// value: false
// value: false
// }
// }
agree
:
Boolean
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
agree
:
false
// auth: true,
// auth: true,
// type: true,
// type: true,
// appLogo: '',
// appLogo: '',
...
...
pages/components/authSetting/authSetting.wxml
View file @
7f91ff4
<view class='tips'>
<view class='tips'>
<view class='choose-box' bindtap="choose">
<view class='choose-box' bindtap="choose">
<view class='icon'>
<view class='icon'>
<image src="{{agree?'
./images/ok.png':'./images/box
.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>
</view>
</view>
pages/components/authSetting/authSetting.wxss
View file @
7f91ff4
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
}
}
.tips text {
.tips text {
color: #
ff600f
;
color: #
5092FF
;
}
}
.tips .icon {
.tips .icon {
...
...
pages/constant/data.js
View file @
7f91ff4
...
@@ -16,6 +16,12 @@ const sceneList = [
...
@@ -16,6 +16,12 @@ const sceneList = [
sceneDesc
:
'门店存量客户众筹下单'
,
sceneDesc
:
'门店存量客户众筹下单'
,
sceneType
:
3
,
sceneType
:
3
,
actived
:
false
actived
:
false
},
{
sceneName
:
'次新车转化'
,
sceneDesc
:
'次新车用户领取套餐包转化'
,
sceneType
:
2
,
actived
:
false
}
}
]
]
...
...
pages/wxLogin/wxLogin.js
View file @
7f91ff4
...
@@ -25,6 +25,7 @@ Page({
...
@@ -25,6 +25,7 @@ Page({
},
},
changeLoginType
(
e
)
{
changeLoginType
(
e
)
{
let
{
type
}
=
e
.
currentTarget
.
dataset
let
{
type
}
=
e
.
currentTarget
.
dataset
wx
.
vibrateShort
()
this
.
setData
({
this
.
setData
({
loginType
:
type
loginType
:
type
})
})
...
@@ -60,7 +61,7 @@ Page({
...
@@ -60,7 +61,7 @@ Page({
},
},
getSms
()
{
getSms
()
{
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
let
{
mobile
}
=
this
.
data
let
{
mobile
,
countDown
}
=
this
.
data
if
(
!
mobile
)
{
if
(
!
mobile
)
{
wx
.
$util
.
showToast
(
'请输入手机号'
)
wx
.
$util
.
showToast
(
'请输入手机号'
)
return
return
...
@@ -69,6 +70,7 @@ Page({
...
@@ -69,6 +70,7 @@ Page({
wx
.
$util
.
showToast
(
'请输入正确的手机号'
)
wx
.
$util
.
showToast
(
'请输入正确的手机号'
)
return
return
}
}
if
(
countDown
)
return
api
api
.
getSMS
({
.
getSMS
({
mobile
mobile
...
@@ -172,15 +174,30 @@ Page({
...
@@ -172,15 +174,30 @@ Page({
})
})
},
1
*
1000
)
},
1
*
1000
)
},
},
agreeEvent
()
{
this
.
setData
({
agree
:
true
})
},
checkAgree
()
{
checkAgree
()
{
let
{
agree
}
=
this
.
data
let
{
agree
}
=
this
.
data
console
.
log
(
'agree'
,
agree
)
console
.
log
(
'agree'
,
agree
)
if
(
!
agree
)
{
if
(
!
agree
)
{
wx
.
$util
.
showToast
(
'请同意用户协议'
)
this
.
setData
({
showAuthDialog
:
true
})
return
true
return
true
}
}
return
false
return
false
},
},
jump
(
e
)
{
let
{
url
}
=
e
.
currentTarget
.
dataset
const
baseUrl
=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/html/'
const
path
=
`
${
baseUrl
}${
url
}
.html`
wx
.
navigateTo
({
url
:
`/pages/webView/webView?url=
${
encodeURIComponent
(
path
)}
`
})
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
...
...
pages/wxLogin/wxLogin.json
View file @
7f91ff4
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"auth-setting"
:
"../components/authSetting/authSetting"
"auth-setting"
:
"../components/authSetting/authSetting"
}
},
"navigationStyle"
:
"custom"
}
}
pages/wxLogin/wxLogin.wxml
View file @
7f91ff4
<view class='layout'>
<view class="layout {{loginType == 1?'phone_login_layout':''}}">
<navigation-bar navStyle="background-color: rgba(0,0,0,0);box-shadow:none;">生意助手员工版</navigation-bar>
<view class="box_content">
<!-- 登录区域 -->
<view class="box">
<!-- 微信登录 -->
<block wx:if="{{loginType == 3}}">
<view class="wx opacity-view">
<view class="title">
您好
</view>
<view class="subtitle">
欢迎登录生意助手员工版
</view>
<image class="img" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/login_box.png" />
</view>
<view class="login-btn {{loginType == 3?'mini':''}}">
<button
size="default"
hidden="{{loginType != 3 || !agree}}"
open-type="getPhoneNumber"
bindgetphonenumber="getPhoneNumber" />
<view hidden="{{loginType !=3 }}" bindtap="checkAgree">微信登录</view>
</view>
<view
class="mobile_btn"
bindtap="changeLoginType"
data-type="1"
wx:if="{{loginType != 1}}">手机号登录 </view>
</block>
<!-- 手机号登录 -->
<block wx:if="{{loginType == 1}}">
<block wx:if="{{loginType == 1}}">
<view class="phone_login">
<view class="title">手机号码登录</view>
<view class='login-form'>
<view class='login-form'>
<view class='input'>
<view class='input'>
<input
<input
...
@@ -12,14 +44,13 @@
...
@@ -12,14 +44,13 @@
value="{{mobile}}"
value="{{mobile}}"
maxlength="11" />
maxlength="11" />
<view
<view
class='clear y-cente
r'
class='clea
r'
hidden="{{!mobile}}"
hidden="{{!mobile}}"
bindtap="clear"
bindtap="clear"
data-name='mobile'>
data-name='mobile'>
<image src="/images/clear.png" />
<image src="/images/clear.png" />
</view>
</view>
</view>
</view>
<view class="sms-box">
<view class='input'>
<view class='input'>
<input
<input
placeholder="请输入验证码"
placeholder="请输入验证码"
...
@@ -31,93 +62,45 @@
...
@@ -31,93 +62,45 @@
value='{{code}}'
value='{{code}}'
maxlength="4" />
maxlength="4" />
<view
<view
class='clear y-center'
class='clear'
style="right:50rpx;"
hidden="{{!code}}"
hidden="{{!code}}"
bindtap="clear"
bindtap="clear"
data-name='code'>
data-name='code'>
<image src="/images/clear.png" />
<image src="/images/clear.png" />
</view>
</view>
</view>
<view class="sms {{countDown?'code-disabled':''}}" bindtap="getSms">
<view class="sms {{countDown?'code-disabled':''}}" bindtap="getSms">
<block wx:if="{{countDown}}">{{count}}秒后获取</block
>
<view wx:if="{{countDown}}">重新发送({{count}})</view
>
<block wx:else>获取验证码</block
>
<view wx:else>获取验证码</view
>
</view>
</view>
</view>
</view>
</view>
<view class="login_btn" bindtap="smsLogin">登录</view>
</block>
<view class="wx_login">或<text bindtap="changeLoginType" data-type="3">微信登录</text></view>
<block wx:if="{{loginType == 2}}">
<view class='login-form'>
<view class='input'>
<input
placeholder="请输入账号"
type="number"
placeholder-style="color:#999;"
style="width:calc(100% - 50rpx);"
bindinput="input"
data-name='accountNumber'
value="{{accountNumber}}" />
<view
class='clear y-center'
hidden="{{!accountNumber}}"
bindtap="clear"
data-name='accountNumber'>
<image src="/images/clear.png" />
</view>
</view>
<view class='input'>
<input
placeholder="请输入密码"
type="password"
placeholder-style="color:#999;"
style="width:calc(100% - 50rpx);"
bindinput="input"
data-name='password'
value='{{password}}' />
<view
class='clear y-center'
hidden="{{!password}}"
bindtap="clear"
data-name='password'>
<image src="/images/clear.png" />
</view>
</view>
</view>
</view>
</view>
</block>
</block>
<view class='box'>
<!-- <view class='box' style="top:{{loginType?'-264rpx':'0'}}"> -->
<view class="agree" bindtap="agree" wx:if="{{loginType == 2}}">
<view class="icon {{agree}}">
<image src="../../components/images/radio.png" />
</view>
<block>30天免登录</block>
</view>
<view class="login-btn {{loginType == 3?'mini':''}}">
<button
size="default"
hidden="{{loginType != 3 || !agree}}"
open-type="getPhoneNumber"
bindgetphonenumber="getPhoneNumber" />
<view hidden="{{loginType !=3 }}" bindtap="checkAgree">微信登录</view>
<view hidden="{{loginType == 3}}" bindtap="smsLogin">登录</view>
</view>
<view
class='tips'
bindtap="changeLoginType"
data-type="1"
wx:if="{{loginType != 1}}">
{{"手机号登录"}}
</view>
<!-- 暂时不做密码登录 -->
<!-- <view class='tips' bindtap="changeLoginType" data-type="2" wx:if="{{loginType != 2}}">{{"账号密码登录"}}</view> -->
<view
class='tips'
bindtap="changeLoginType"
data-type="3"
wx:if="{{loginType != 3}}">
{{"微信登录"}}
</view>
</view>
<auth-setting bind:choose="authChoose" />
<!-- 协议 -->
<auth-setting bind:choose="authChoose" agree="{{agree}}"/>
</view>
</view>
<!-- -->
</view>
</view>
<!-- 未同意协议弹窗提示 -->
<van-dialog
use-slot
title="隐私协议与用户协议"
show="{{ showAuthDialog }}"
class="auth-dialog-class"
width="552rpx"
show-cancel-button
confirmButtonText="同意"
confirm-button-color="#5092FF"
bind:confirm="agreeEvent"
bind:close="onClose"
>
<view class="message-box">
<view class="message">为保障你的合法权益,请阅读并同意</view>
<text catchtap="jump" data-url="privacy">《隐私协议》</text>和
<text catchtap="jump" data-url="agreement">《用户协议》</text>
</view>
</van-dialog>
pages/wxLogin/wxLogin.wxss
View file @
7f91ff4
...
@@ -3,162 +3,166 @@ page{
...
@@ -3,162 +3,166 @@ page{
background: #fff;
background: #fff;
}
}
.layout{
.layout{
padding-top: 160rpx;
padding: 0 80rpx;
}
.box {
height: 264rpx;
position: relative;
position: relative;
z-index: 9;
height: 100vh;
/* top: -264rpx; */
background: #fff;
transition: all 0.5s;
}
}
.layout::before {
.login-form {
content: '';
padding: 0 40rpx;
}
.login-form .input {
height: 40rpx;
line-height: 40rpx;
width: 100%;
width: 100%;
position: relative;
height: 100%;
margin-bottom: 92rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/ligin_bg.png') no-repeat;
font-size: 28rpx;
background-size: 100% 100%;
box-sizing: border-box;
position: fixed;
padding-left: 66rpx;
left: 0;
color: #333;
top: 0;
}
z-index: -1;
.login-form .sms-box{
display: flex;
align-items: center;
margin-bottom: 92rpx;
}
.login-form .sms-box .input{
width: 70%;
margin-bottom: 0;
}
.login-form .sms-box .sms{
width: 30%;
font-size: 24rpx;
color: #3582EE;
}
}
.
login-form .input::after
{
.
phone_login_layout::after
{
content: '';
content: '';
position: absolute;
left: 0;
bottom: -26rpx;
width: 100%;
width: 100%;
height: 2rpx;
height: 100%;
background: #eee;
background: #fff;
}
position: fixed;
.login-form .input .icon {
width: 36rpx;
height: 36rpx;
position: absolute;
left: 0;
left: 0;
top: 0;
z-index: -1;
}
}
.navigation-header{
.login-form .password-box{
background-color: transparent;
position: relative;
}
}
.clear
{
.wx .title
{
position: absolute
;
font-weight: 600
;
right: 0
;
font-size: 60rpx
;
width: 36rpx
;
color: #323436
;
height: 36
rpx;
padding: 216rpx 0 24
rpx;
}
}
.login-form .input .icon-eye {
.wx .subtitle {
width: 36rpx;
font-size: 44rpx;
height: 36rpx;
color: #323436;
position: absolute;
margin-bottom: 76rpx;
right: 0;
}
}
.input .clear {
.wx .img {
position: absolute;
width: 378rpx;
right: 0;
height: 336rpx;
display: block;
margin: 0 auto;
}
}
.opacity-view {
animation: opacity-view .5s forwards;
}
.login-btn {
.login-btn {
background-color: #3582EE;
margin: 144rpx 0 28rpx;
border-radius: 40rpx;
background-image: linear-gradient(125deg, #65B8F8 0%, #3582EE 100%);
border-radius: 12rpx;
text-align: center;
text-align: center;
font-size: 32rpx;
font-size: 32rpx;
color: #fff;
color: #fff;
letter-spacing: 13.72rpx;
letter-spacing: 13.72rpx;
height: 80rpx;
height: 100rpx;
line-height: 80rpx;
line-height: 100rpx;
width: 670rpx;
width: 594rpx;
margin: 0 auto;
font-weight: normal;
font-weight: normal;
transition: all .5s;
transition: all .5s;
position: relative;
position: relative;
}
}
.
box
button{
.
login-btn
button{
opacity: 0;
opacity: 0;
position: absolute;
position: absolute;
top: 0;
top: 0;
left: 0;
left: 0;
padding: 0;
padding: 0;
width: 100% !important;
width: 100% !important;
height: 100
%
;
height: 100
rpx
;
box-sizing: border-box;
box-sizing: border-box;
}
}
.mini{
width: 368rpx;
.mobile_btn{
}
width: 594rpx;
.tips {
height: 100rpx;
font-size: 24rpx;
background: #E6F0FD;
border-radius: 12rpx;
color: #3582EE;
color: #3582EE;
letter-spacing: 1.72rpx;
margin-top: 76rpx;
text-align: center;
text-align: center;
line-height: 100rpx;
}
}
.auth-dialog-class{
.tip {
position: fixed;
left: 0;
bottom: 40rpx;
width: 100%;
font-size: 24rpx;
color: #999;
letter-spacing: 2rpx;
text-align: center;
text-align: center;
font-size: 28rpx;
font-weight: 400;
}
}
.auth-dialog-class .van-dialog__header{
.code-disabled {
font-size: 36rpx;
color: #999 !important;
font-weight: 500;
color: #333333;
}
.message-box text {
color: #5092FF;
}
.message-box {
margin: 20rpx 0 30rpx;
color: #666666;
text-align: center;
font-size: 28rpx;
}
.message-box .message{
padding: 8px 0;
}
.phone_login .title{
font-weight: 600;
font-size: 48rpx;
color: #333333;
padding: 300rpx 0 110rpx;
}
}
.agree {
.login-form .input {
width: 100%;
display: flex;
display: flex;
justify-content: center;
align-items: center;
align-items: center;
margin: 20rpx 0;
margin-top: 33rpx;
padding: 26rpx 40rpx;
background: #F7F8FA;
border-radius: 12rpx;
}
.login-form .input .clear{
flex-shrink: 0;
width: 36rpx;
height: 36rpx;
padding: 0 20rpx;
}
.login-form .sms{
flex-shrink: 0;
font-size: 24rpx;
font-size: 24rpx;
color: #9B9B9E;
padding: 0;
text-align: right;
transition: all 0.25s;
color: #3582EE;
}
}
.agree .icon {
.login-form .code-disabled{
border: 2rpx solid #8A8C90;
color: #A5A5A7;
border-radius: 100%;
width: 24rpx;
height: 24rpx;
box-sizing: border-box;
margin-right: 8rpx;
}
}
.agree .icon image {
.login-form .login_btn{
display: none;
width: 100%;
height: 100rpx;
background-image: linear-gradient(125deg, #65B8F8 0%, #3582EE 100%);
border-radius: 12rpx;
color: #fff;
text-align: center;
line-height: 100rpx;
margin: 94rpx 0 40rpx;
}
}
.agree .icon.true {
border: none;
.login-form .wx_login{
text-align: center;
font-size: 28rpx;
color: #888888;
}
}
.agree .icon.true image {
display: block;
.login-form .wx_login text{
color: #3582EE;
margin-left: 20rpx;
}
}
tabIndex/pages/index/index.js
View file @
7f91ff4
...
@@ -52,7 +52,8 @@ Page({
...
@@ -52,7 +52,8 @@ Page({
showTips
:
true
,
showTips
:
true
,
type
:
2
,
type
:
2
,
typeText
:
'补录订单'
typeText
:
'补录订单'
}
},
shopSideSelectPopup
:
false
},
},
tipsEvent
()
{
tipsEvent
()
{
this
.
setData
({
this
.
setData
({
...
@@ -134,6 +135,12 @@ Page({
...
@@ -134,6 +135,12 @@ Page({
back
()
{
back
()
{
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
wx
.
$router
.
reLaunch
(
'pages.sceneIndex'
)
},
},
showMenuPopup
()
{
this
.
setData
({
shopSideSelectPopup
:
true
})
// wx.hideTabBar()
},
tapPicker
()
{
tapPicker
()
{
this
.
setData
({
this
.
setData
({
moveArrow
:
!
this
.
data
.
moveArrow
moveArrow
:
!
this
.
data
.
moveArrow
...
@@ -249,7 +256,7 @@ Page({
...
@@ -249,7 +256,7 @@ Page({
let
_this
=
this
let
_this
=
this
time
=
setTimeout
(()
=>
{
time
=
setTimeout
(()
=>
{
// console.log(_this.getWaitOrder)
// console.log(_this.getWaitOrder)
_this
.
getWaitOrder
()
//
_this.getWaitOrder()
},
10
*
1000
)
},
10
*
1000
)
},
},
// 10s轮询一次待补录
// 10s轮询一次待补录
...
...
tabIndex/pages/index/index.json
View file @
7f91ff4
{
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"usingComponents"
:
{
"usingComponents"
:
{
"order-switchPopup"
:
"/components/orderSwitchPopup/orderSwitchPopup"
"order-switchPopup"
:
"/components/orderSwitchPopup/orderSwitchPopup"
,
"side-select-popup"
:
"/components/SideSelectPopup/SideSelectPopup"
}
}
}
}
tabIndex/pages/index/index.wxml
View file @
7f91ff4
<view class="layout {{flag?'opacity':''}}">
<view class="layout {{flag?'opacity':''}}">
<navigation-bar bindnavbarReady="navbarReady" showMenu="{{true}}" bindback="back">
<navigation-bar bindnavbarReady="navbarReady" showMenu="{{true}}" bindback="back"
bindshowMenuPopup="showMenuPopup"
>
<picker
<picker
range="{{merchantRange}}"
range="{{merchantRange}}"
value="{{subIndex}}"
value="{{subIndex}}"
...
@@ -256,4 +256,5 @@
...
@@ -256,4 +256,5 @@
title="{{'请选择支付订单号'}}"
title="{{'请选择支付订单号'}}"
wx:if="{{showOrderpop}}"
wx:if="{{showOrderpop}}"
flag="{{showOrderpop}}" />
flag="{{showOrderpop}}" />
<side-select-popup show="{{shopSideSelectPopup}}" hasTabBar="true" />
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