Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1ae3228f
authored
Oct 26, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
冲突解决
2 parents
73a5800d
17c81ae8
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
167 additions
and
82 deletions
components/SceneBox/SceneBox.js
components/SceneBox/SceneBox.wxml
components/SceneBox/SceneBox.wxss
components/Tab/Tab.wxml
login/index/components/Box/Box.js
packageOutput/pages/openBusiness/openBusiness.scss
packageOutput/pages/openBusiness/openBusiness.wxml
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/summary.js
packageOutput/pages/summary/summary.scss
packageOutput/pages/summary/summary.wxml
pages/apply/apply.js
pages/apply/apply.scss
pages/apply/apply.wxml
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/tab/output/components/client/client.scss
pages/tab/output/components/client/client.wxml
router/routerBefore.js
utils/network.js
components/SceneBox/SceneBox.js
View file @
1ae3228
...
@@ -13,6 +13,10 @@ Component({
...
@@ -13,6 +13,10 @@ Component({
type
:
Boolean
,
type
:
Boolean
,
value
:
true
value
:
true
},
},
hasLockIcon
:
{
type
:
Boolean
,
value
:
true
},
formData
:
{
formData
:
{
type
:
Object
,
type
:
Object
,
value
:
()
=>
{
}
value
:
()
=>
{
}
...
...
components/SceneBox/SceneBox.wxml
View file @
1ae3228
...
@@ -10,8 +10,11 @@
...
@@ -10,8 +10,11 @@
已开通
已开通
</view>
</view>
<image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
<view wx:else class="no-open-img">
<view class="scene-title {{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)?'':'notOpened'}}">
<image wx:if="{{hasLockIcon}}" class="lock-img" src="{{IMGURL}}output/carlock0{{index + 1}}.png?v={{img_version}}" />
<image wx:else="" class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
</view>
<view class="scene-title {{formData['scene' + (index + 1)] ? '' : 'on-open'}}">
{{item.title}}
{{item.title}}
</view>
</view>
<view>{{item.subTitle}}</view>
<view>{{item.subTitle}}</view>
...
...
components/SceneBox/SceneBox.wxss
View file @
1ae3228
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
color: #8A8C90;
color: #8A8C90;
padding: 32rpx 0 28rpx;
padding: 32rpx 0 28rpx;
border-radius: 12rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
/* margin-bottom: 20rpx; */
}
}
.scene-item:last-child {
.scene-item:last-child {
...
@@ -66,11 +66,12 @@
...
@@ -66,11 +66,12 @@
.active::after {
.active::after {
position: absolute;
position: absolute;
left: 50%;
left: 50%;
bottom: -
7
px;
bottom: -
18r
px;
display: block;
display: block;
content: "";
content: "";
width: 6px;
width: 16rpx;
height: 6px;
height: 16rpx;
/* border-radius: 4rpx; */
border-bottom: 1px solid var(--btnColor);
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
transform: rotate(45deg) translateX(-50%);
...
@@ -81,7 +82,14 @@
...
@@ -81,7 +82,14 @@
.scene-title {
.scene-title {
color: #323436;
color: #323436;
/* font-weight: 600; */
}
.scene-title.on-open {
color: #8A8C90;
}
.no-open-img {
position: relative;
}
}
.scene-img {
.scene-img {
...
@@ -89,6 +97,11 @@
...
@@ -89,6 +97,11 @@
height: 56rpx;
height: 56rpx;
}
}
.lock-img {
width: 92rpx;
height: 64rpx;
}
.total-price {
.total-price {
height: 40rpx;
height: 40rpx;
line-height: 40rpx;
line-height: 40rpx;
...
...
components/Tab/Tab.wxml
View file @
1ae3228
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<block wx:if="{{openScroll}}">
<block wx:if="{{openScroll}}">
<scroll-view
<scroll-view
class="tab-box {{align}} {{outClassName}}"
class="tab-box {{align}} {{outClassName}}"
style="{{productHeight ? 'height:
68
rpx;' : ''}}"
style="{{productHeight ? 'height:
72
rpx;' : ''}}"
scroll-x
scroll-x
enable-flex
enable-flex
scroll-with-animation
scroll-with-animation
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<block wx:for="{{tab}}" wx:key="index">
<block wx:for="{{tab}}" wx:key="index">
<view
<view
class="tab {{index==count?'active':''}}"
class="tab {{index==count?'active':''}}"
style="width:{{itemWidth}}"
style="width:{{itemWidth}}
; {{index == 0 ? 'margin-left: 32rpx;' : ''}}
"
bindtap="click"
bindtap="click"
data-count="{{index}}"
data-count="{{index}}"
>
>
...
...
login/index/components/Box/Box.js
View file @
1ae3228
...
@@ -221,7 +221,10 @@ Component({
...
@@ -221,7 +221,10 @@ Component({
message
message
})
=>
{
})
=>
{
if
(
code
==
'0'
)
this
.
checkLoginUserInfo
(
data
)
if
(
code
==
'0'
)
this
.
checkLoginUserInfo
(
data
)
else
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
else
{
wx
.
$api
.
showToast
(
message
||
'系统异常'
)
this
.
init
()
}
this
.
setBtnLoading
(
false
)
this
.
setBtnLoading
(
false
)
})
})
.
catch
(({
.
catch
(({
...
@@ -229,6 +232,7 @@ Component({
...
@@ -229,6 +232,7 @@ Component({
})
=>
{
})
=>
{
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
wx
.
$api
.
showToast
(
errMsg
||
'系统异常'
)
this
.
setBtnLoading
(
false
)
this
.
setBtnLoading
(
false
)
this
.
init
()
})
})
},
},
/**手机号&微信登录:是否跳转登录列表页 */
/**手机号&微信登录:是否跳转登录列表页 */
...
...
packageOutput/pages/openBusiness/openBusiness.scss
View file @
1ae3228
...
@@ -51,7 +51,7 @@ page {
...
@@ -51,7 +51,7 @@ page {
.box
{
.box
{
&
-title
{
&
-title
{
font-weight
:
600
;
font-weight
:
600
;
padding
:
0
0
16rpx
12rpx
;
padding
:
32rpx
0
16rpx
12rpx
;
}
}
.title-tip
{
.title-tip
{
...
@@ -85,28 +85,30 @@ page {
...
@@ -85,28 +85,30 @@ page {
background
:
#F0F7FF
;
background
:
#F0F7FF
;
border
:
2rpx
solid
#3E71FE
;
border
:
2rpx
solid
#3E71FE
;
color
:
#3666FE
;
color
:
#3666FE
;
border
:
1rpx
solid
#3E71FE
;
}
}
}
}
}
}
.btn
{
.btn
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
16rpx
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
line-height
:
88rpx
;
font-size
:
34rpx
;
color
:
#FFFFFF
;
text-align
:
center
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
}
}
.btn-blue
{
.btn-blue
{
background
:
#3666FE
;
background
:
#3666FE
;
border-radius
:
8rpx
;
}
}
.btn-disabled
{
.btn-disabled
{
background
:
#CCCED1
;
background
:
#CCCED1
;
border-radius
:
8rpx
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/openBusiness/openBusiness.wxml
View file @
1ae3228
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<view class="openBusiness">
<view class="openBusiness">
<image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}"/>
<image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}"
/>
<view class="layout">
<view class="layout">
<view class="form m-b-32">
<view class="form m-b-32">
<text class="label">开通门店:</text>
<text class="label">开通门店:</text>
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{sceneActive != 1}}" class="isFullSucreen btn btn-blue" bindtap="handleConfirm">申请开通</view>
<view class="isFullSucreen btn">
<view wx:else class="btn btn-disabled">申请开通</view>
<view wx:if="{{sceneActive != 1}}" class="btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn-disabled">申请开通</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
1ae3228
...
@@ -10,7 +10,7 @@ Component({
...
@@ -10,7 +10,7 @@ Component({
type
:
Object
,
type
:
Object
,
value
:
()
=>
{
},
value
:
()
=>
{
},
observer
(
n
)
{
observer
(
n
)
{
this
.
dealStaffList
()
n
&&
this
.
dealStaffList
()
}
}
},
},
},
},
...
@@ -25,10 +25,10 @@ Component({
...
@@ -25,10 +25,10 @@ Component({
name
:
'totalNum'
name
:
'totalNum'
},
{
},
{
label
:
'总订单'
,
label
:
'总订单'
,
name
:
'total
Am
ount'
name
:
'total
OrderC
ount'
},
{
},
{
label
:
'成交金额'
,
label
:
'成交金额'
,
name
:
'total
OrderC
ount'
,
name
:
'total
Am
ount'
,
prefix
:
'¥'
prefix
:
'¥'
}],
}],
merchantFormList
:
[{
merchantFormList
:
[{
...
@@ -77,7 +77,7 @@ Component({
...
@@ -77,7 +77,7 @@ Component({
methods
:
{
methods
:
{
dealStaffList
()
{
dealStaffList
()
{
var
list
=
this
.
data
.
orderObj
var
list
=
this
.
data
.
orderObj
list
&&
list
.
activityList
.
forEach
(
item
=>
{
list
&&
list
.
activityList
?
.
forEach
(
item
=>
{
// 0-未开始;1-活动中;2-已结束
// 0-未开始;1-活动中;2-已结束
let
sliceNum
=
item
.
actStatus
==
2
?
3
:
10
let
sliceNum
=
item
.
actStatus
==
2
?
3
:
10
item
.
showStaffList
=
item
.
staffList
.
length
>
sliceNum
?
item
.
staffList
.
slice
(
0
,
sliceNum
)
:
item
.
staffList
item
.
showStaffList
=
item
.
staffList
.
length
>
sliceNum
?
item
.
staffList
.
slice
(
0
,
sliceNum
)
:
item
.
staffList
...
...
packageOutput/pages/summary/summary.js
View file @
1ae3228
...
@@ -74,7 +74,6 @@ Page({
...
@@ -74,7 +74,6 @@ Page({
},
},
setCurActivity
()
{
setCurActivity
()
{
console
.
log
(
this
.
data
.
activityActive
)
this
.
setData
({
this
.
setData
({
activityList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
sceneActivityObj
[
'scene'
+
(
this
.
data
.
sceneActive
)]))
activityList
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
sceneActivityObj
[
'scene'
+
(
this
.
data
.
sceneActive
)]))
})
})
...
@@ -94,8 +93,7 @@ Page({
...
@@ -94,8 +93,7 @@ Page({
this
.
setData
({
this
.
setData
({
[
'searchForm.scene'
+
this
.
data
.
sceneActive
+
'Idx'
]:
res
.
tapIndex
[
'searchForm.scene'
+
this
.
data
.
sceneActive
+
'Idx'
]:
res
.
tapIndex
})
})
this
.
data
.
sceneActive
!=
4
?
this
.
getCustomerDetail
()
:
this
.
getActivityRevenue
()
this
.
data
.
sceneActive
!=
4
?
this
.
getCustomerDetail
(
false
,
false
)
:
this
.
getActivityRevenue
()
console
.
log
(
'调接口---'
)
}
}
})
})
},
},
...
@@ -110,24 +108,31 @@ Page({
...
@@ -110,24 +108,31 @@ Page({
wx
.
$router
.
go
(
'packageOutput.openBusiness'
,
params
)
wx
.
$router
.
go
(
'packageOutput.openBusiness'
,
params
)
},
},
getSceneProStatus
(
sceneCode
)
{
getSceneProStatus
(
sceneCode
,
isFirst
=
false
)
{
var
params
=
{
var
params
=
{
serviceMerchantId
:
this
.
data
.
merchantInfo
.
pMerchantId
,
serviceMerchantId
:
this
.
data
.
merchantInfo
.
pMerchantId
,
merchant4sId
:
this
.
data
.
merchantInfo
.
merchantId
,
merchant4sId
:
this
.
data
.
merchantInfo
.
merchantId
,
sceneCode
:
sceneCode
sceneCode
:
sceneCode
}
}
outputApi
.
getSceneProStatus
(
params
).
then
(
res
=>
{
outputApi
.
getSceneProStatus
(
params
).
then
(
res
=>
{
var
proList
=
res
.
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
//
var proList = res.find(item => item.sceneCode == sceneCode)
// 删---
// 删---
// proList.productList[1].productStatus = 2
// proList.productList[1].productStatus = 2
this
.
setData
({
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
proList
.
productList
[
'sceneActivityObj.scene1'
]:
res
[
0
].
productList
,
[
'sceneActivityObj.scene2'
]:
res
[
1
].
productList
,
[
'sceneActivityObj.scene3'
]:
res
[
2
].
productList
,
[
'sceneActivityObj.scene4'
]:
res
[
3
].
productList
})
})
if
([
2
,
3
].
includes
(
+
this
.
data
.
sceneActive
))
{
if
([
2
,
3
].
includes
(
+
this
.
data
.
sceneActive
))
{
this
.
getCustomerDetail
()
this
.
getCustomerDetail
()
}
else
if
(
this
.
data
.
sceneActive
==
4
)
{
}
else
if
(
this
.
data
.
sceneActive
==
4
)
{
this
.
getActivityRevenue
()
this
.
getActivityRevenue
()
}
else
{
}
else
{
if
(
isFirst
)
{
this
.
getCustomerDetail
(
isFirst
)
this
.
getActivityRevenue
(
isFirst
)
}
this
.
setCurActivity
()
this
.
setCurActivity
()
}
}
})
})
...
@@ -157,15 +162,14 @@ Page({
...
@@ -157,15 +162,14 @@ Page({
/** 1.1和1.2场景产品数据处理
/** 1.1和1.2场景产品数据处理
* 调同一个接口,返回两个服务下面的全部产品的数据
* 调同一个接口,返回两个服务下面的全部产品的数据
*/
*/
getCustomerDetail
()
{
getCustomerDetail
(
isFirst
=
false
,
isChangeOtherTotal
=
true
)
{
var
params
=
this
.
dealSearchTime
()
var
params
=
this
.
dealSearchTime
()
outputApi
.
getCustomerDetail
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
outputApi
.
getCustomerDetail
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
this
.
data
.
sceneActive
]
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
2
:
this
.
data
.
sceneActive
)
]
var
actCodeList
=
actList
.
map
(
item
=>
item
.
productCode
)
var
actCodeList
=
actList
.
map
(
item
=>
item
.
productCode
)
console
.
log
(
actCodeList
)
var
curTotal
=
0
var
curTotal
=
0
var
otherTotal
=
0
var
otherTotal
=
0
var
otherScene
=
this
.
data
.
sceneActive
==
2
?
3
:
2
var
otherScene
=
isFirst
?
2
:
(
this
.
data
.
sceneActive
==
2
?
3
:
2
)
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
var
idx
=
actCodeList
.
findIndex
(
i
=>
i
==
item
.
productCode
)
var
idx
=
actCodeList
.
findIndex
(
i
=>
i
==
item
.
productCode
)
if
(
idx
!=
-
1
)
{
if
(
idx
!=
-
1
)
{
...
@@ -184,14 +188,21 @@ Page({
...
@@ -184,14 +188,21 @@ Page({
otherTotal
=
otherTotal
+
(
item
.
orderTotal
?.
totalSubOrderOrderMoney
||
0
)
otherTotal
=
otherTotal
+
(
item
.
orderTotal
?.
totalSubOrderOrderMoney
||
0
)
}
}
})
})
if
(
!
isFirst
)
{
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
actList
})
}
// 总金额
// 总金额
this
.
setData
({
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
actList
,
[
'scenePriceList['
+
(
isFirst
?
1
:
(
this
.
data
.
sceneActive
-
1
))
+
'].total'
]:
curTotal
[
'scenePriceList['
+
(
this
.
data
.
sceneActive
-
1
)
+
'].total'
]:
curTotal
,
[
'scenePriceList['
+
(
otherScene
-
1
)
+
'].total'
]:
otherTotal
})
})
console
.
log
(
this
.
data
.
sceneActivityObj
[
'scene'
+
this
.
data
.
sceneActive
])
if
(
isChangeOtherTotal
)
{
this
.
setCurActivity
()
this
.
setData
({
[
'scenePriceList['
+
(
isFirst
?
2
:
(
otherScene
-
1
))
+
'].total'
]:
otherTotal
})
}
!
isFirst
&&
this
.
setCurActivity
()
})
})
},
},
...
@@ -218,13 +229,17 @@ Page({
...
@@ -218,13 +229,17 @@ Page({
},
},
/** 查询场景4的产值 */
/** 查询场景4的产值 */
getActivityRevenue
()
{
getActivityRevenue
(
isFirst
=
false
)
{
wx
.
showLoading
()
!
isFirst
&&
wx
.
showLoading
()
var
params
=
this
.
dealSearchStatus
()
var
params
=
this
.
dealSearchStatus
()
outputApi
.
getActivityRevenue
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
outputApi
.
getActivityRevenue
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
// console.log(res)
// console.log(res)
// console.log(this.data.sceneActivityObj, '++++++')
// console.log(this.data.sceneActivityObj, '++++++')
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
this
.
data
.
sceneActive
]
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
4
:
this
.
data
.
sceneActive
)]
var
total
=
0
res
.
forEach
(
item
=>
{
total
=
total
+
item
.
totalAmount
})
actList
.
forEach
((
item
,
idx
)
=>
{
actList
.
forEach
((
item
,
idx
)
=>
{
var
curItem
=
res
.
find
(
k
=>
k
.
goodsCategoryCode
==
item
.
productCode
)
var
curItem
=
res
.
find
(
k
=>
k
.
goodsCategoryCode
==
item
.
productCode
)
if
(
curItem
)
{
if
(
curItem
)
{
...
@@ -270,12 +285,19 @@ Page({
...
@@ -270,12 +285,19 @@ Page({
}
}
})
})
actList
[
idx
].
outputData
=
curItem
actList
[
idx
].
outputData
=
curItem
}
else
{
actList
[
idx
].
outputData
=
[]
}
}
})
})
if
(
!
isFirst
)
{
this
.
setData
({
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
actList
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
actList
})
})
this
.
setCurActivity
()
}
this
.
setData
({
[
'scenePriceList[3].total'
]:
total
})
!
isFirst
&&
this
.
setCurActivity
()
}).
finally
(()
=>
{
}).
finally
(()
=>
{
wx
.
hideLoading
()
wx
.
hideLoading
()
})
})
...
@@ -295,8 +317,8 @@ Page({
...
@@ -295,8 +317,8 @@ Page({
// },
// },
// sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004']
// sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004']
// })
// })
// this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
wx
.
$router
.
getData
(
obj
=>
{
wx
.
$router
.
getData
(
obj
=>
{
var
scene
=
{}
var
scene
=
{}
Object
.
keys
(
this
.
data
.
sceneObj
).
forEach
(
item
=>
{
Object
.
keys
(
this
.
data
.
sceneObj
).
forEach
(
item
=>
{
...
@@ -308,7 +330,7 @@ Page({
...
@@ -308,7 +330,7 @@ Page({
sceneCodeList
:
obj
.
sceneCodeList
sceneCodeList
:
obj
.
sceneCodeList
})
})
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
]
,
true
)
})
})
},
},
...
...
packageOutput/pages/summary/summary.scss
View file @
1ae3228
...
@@ -42,8 +42,17 @@
...
@@ -42,8 +42,17 @@
padding
:
27rpx
0
24rpx
;
padding
:
27rpx
0
24rpx
;
}
}
scroll-view
:
:-
webkit-scrollbar
{
display
:none
;
width
:
0
;
height
:
0
;
color
:transparent
;
}
.activity-box
{
.activity-box
{
width
:
100%
;
height
:
64rpx
;
height
:
64rpx
;
padding
:
32rpx
0
28rpx
;
.activity-item
{
.activity-item
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -115,21 +124,24 @@
...
@@ -115,21 +124,24 @@
.btn
{
.btn
{
position
:
fixed
;
position
:
fixed
;
bottom
:
0
;
bottom
:
16rpx
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
calc
(
100%
-
64rpx
)
;
height
:
88rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
.btn-blue
{
.btn-blue
{
background
:
#3666FE
;
background
:
#3666FE
;
border-radius
:
8rpx
;
}
}
.btn-disabled
{
.btn-disabled
{
background
:
#CCCED1
;
background
:
#CCCED1
;
border-radius
:
8rpx
;
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/summary.wxml
View file @
1ae3228
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</view>
</view>
<!-- 活动 -->
<!-- 活动 -->
<view class="p-rl-20 bg-white">
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}"
class="activity-box"
scroll-left="{{scrollLeft}}">
<scroll-view scroll-x="{{true}}"
enable-flex class="activity-box" scroll-with-animation
scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">{{item.productName}}</view>
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">{{item.productName}}</view>
</view>
</view>
...
...
pages/apply/apply.js
View file @
1ae3228
...
@@ -35,7 +35,7 @@ Page({
...
@@ -35,7 +35,7 @@ Page({
console
.
log
(
'name: '
,
name
)
console
.
log
(
'name: '
,
name
)
if
(
!
name
)
{
if
(
!
name
)
{
wx
.
pro
.
showToast
({
wx
.
pro
.
showToast
({
title
:
'请输入
店名
'
,
title
:
'请输入
开店名称
'
,
icon
:
'error'
icon
:
'error'
})
})
return
return
...
...
pages/apply/apply.scss
View file @
1ae3228
/* pages/apply/apply.wxss */
/* pages/apply/apply.wxss */
page
{
background
:
white
;
height
:
100%
;
position
:
relative
;
}
.apply
{
.apply
{
.head
{
.head
{
width
:
100%
;
width
:
100%
;
}
}
.introduce
{
.introduce
{
height
:
180
px
;
height
:
360r
px
;
}
}
.content
{
.content
{
padding
:
16px
17px
0
;
padding
:
16px
17px
0
;
...
@@ -42,15 +47,22 @@
...
@@ -42,15 +47,22 @@
border
:
1px
solid
#E3E4E8
;
border
:
1px
solid
#E3E4E8
;
border-radius
:
2px
;
border-radius
:
2px
;
}
}
.inp-placeholder
{
font-family
:
PingFangSC-Regular
;
font-size
:
24rpx
;
color
:
#8A8C90
;
}
}
}
}
}
.btn
{
.btn
{
margin-top
:
40px
;
width
:
648rpx
;
width
:
100%
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
17px
;
font-size
:
17px
;
color
:
#ffffff
;
color
:
#ffffff
;
text-align
:
center
;
background
:
var
(
--
btnColor
);
background
:
var
(
--
btnColor
);
position
:
absolute
;
bottom
:
40rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
}
}
}
pages/apply/apply.wxml
View file @
1ae3228
...
@@ -11,27 +11,27 @@
...
@@ -11,27 +11,27 @@
<view class="title" hover-class="none" hover-stop-propagation="false">开通门店账号</view>
<view class="title" hover-class="none" hover-stop-propagation="false">开通门店账号</view>
</view>
</view>
<view class="inp-wrap">
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">
<view class="title" hover-class="none" hover-stop-propagation="false"
style="margin-top: 32rpx;"
>
开店名称
开店名称
<text class="point">*</text>
<text class="point">*</text>
</view>
</view>
<input class="inp" value="{{carObj.name}}" bindinput="bindinputFn" data-name="name" maxlength="{{30}}" placeholder="请输入30个字符以内" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.name}}" bindinput="bindinputFn" data-name="name" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
</view>
<view class="inp-wrap">
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">店面车型</view>
<view class="title" hover-class="none" hover-stop-propagation="false">店面车型</view>
<input class="inp" value="{{carObj.model}}" bindinput="bindinputFn" data-name="model" maxlength="{{30}}" placeholder="请输入30个字符以内" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.model}}" bindinput="bindinputFn" data-name="model" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
</view>
<view class="inp-wrap">
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">店面新车销量/基盘客户</view>
<view class="title" hover-class="none" hover-stop-propagation="false">店面新车销量/基盘客户</view>
<input class="inp" value="{{carObj.selNum}}" bindinput="bindinputFn" data-name="selNum" maxlength="{{30}}" placeholder="请输入30个字符以内" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.selNum}}" bindinput="bindinputFn" data-name="selNum" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
</view>
<view class="inp-wrap">
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">门店联系人</view>
<view class="title" hover-class="none" hover-stop-propagation="false">门店联系人</view>
<input class="inp" value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" placeholder="请输入联系人" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" placeholder="请输入联系人" />
</view>
</view>
<view class="inp-wrap">
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">联系人手机号</view>
<view class="title" hover-class="none" hover-stop-propagation="false">联系人手机号</view>
<input class="inp" value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" placeholder="请输入手机号" />
<input class="inp"
placeholder-class="inp-placeholder"
value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" placeholder="请输入手机号" />
</view>
</view>
</view>
</view>
<button class="btn" bindtap="applyFn">提交开店信息</button>
<button class="btn" bindtap="applyFn">提交开店信息</button>
...
...
pages/tab/index/index.js
View file @
1ae3228
...
@@ -510,6 +510,7 @@ Page({
...
@@ -510,6 +510,7 @@ Page({
filterTypeFn
(
e
)
{
filterTypeFn
(
e
)
{
let
{
typeList
}
=
this
.
data
let
{
typeList
}
=
this
.
data
let
index
=
e
.
currentTarget
.
dataset
.
index
let
index
=
e
.
currentTarget
.
dataset
.
index
// console.log('index: ', index);
// let itemList = []
// let itemList = []
// let params = {
// let params = {
// clueSource: '',
// clueSource: '',
...
@@ -536,12 +537,20 @@ Page({
...
@@ -536,12 +537,20 @@ Page({
success
(
res
)
{
success
(
res
)
{
// 选中全部
// 选中全部
let
selectIndex
=
res
.
tapIndex
let
selectIndex
=
res
.
tapIndex
// console.log('selectIndex: ', selectIndex);
typeList
[
index
].
selectIndex
=
selectIndex
typeList
[
index
].
selectIndex
=
selectIndex
let
params
=
typeList
.
reduce
((
obj
,
item
,
index
)
=>
{
let
params
=
typeList
.
reduce
((
obj
,
item
,
index
)
=>
{
console
.
log
(
' item: '
,
item
);
if
(
item
[
'key'
])
{
if
(
item
[
'key'
])
{
selectIndex
=
index
==
2
?
selectIndex
+
1
:
selectIndex
// selectIndex = index == 2 ? selectIndex + 1 : selectIndex
// console.log('selectIndex: ', selectIndex);
let
itemIndx
=
item
.
selectIndex
let
itemIndx
=
item
.
selectIndex
obj
[
item
[
'key'
]]
=
itemIndx
==
2
?
''
:
itemIndx
// console.log('itemIndx: ', itemIndx);
if
(
index
==
2
){
itemIndx
+=
1
}
obj
[
item
[
'key'
]]
=
(
itemIndx
==
2
||
itemIndx
==
3
)?
''
:
itemIndx
}
}
return
obj
return
obj
},
{})
},
{})
...
...
pages/tab/index/index.scss
View file @
1ae3228
...
@@ -89,7 +89,7 @@ page {
...
@@ -89,7 +89,7 @@ page {
.clue
{
.clue
{
padding
:
0px
10px
0
;
padding
:
0px
10px
0
;
background-color
:
#f2f3f7
;
background-color
:
#f2f3f7
;
margin-top
:
-16rpx
;
.types
{
.types
{
margin-bottom
:
8px
;
margin-bottom
:
8px
;
display
:
flex
;
display
:
flex
;
...
@@ -100,7 +100,7 @@ page {
...
@@ -100,7 +100,7 @@ page {
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
width
:
80
px
;
padding
:
0
16r
px
;
height
:
24px
;
height
:
24px
;
line-height
:
24px
;
line-height
:
24px
;
background
:
#ffffff
;
background
:
#ffffff
;
...
@@ -378,7 +378,7 @@ page {
...
@@ -378,7 +378,7 @@ page {
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
z-index
:
2
;
z-index
:
3
;
}
}
}
}
...
...
pages/tab/index/index.wxml
View file @
1ae3228
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
wx:for="{{typeList}}"
wx:for="{{typeList}}"
wx:key="*this"
wx:key="*this"
data-index="{{index}}"
data-index="{{index}}"
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
bindtap="filterTypeFn">
bindtap="filterTypeFn">
{{item[item['selectIndex']] }}
{{item[item['selectIndex']] }}
<image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
<image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
...
...
pages/tab/output/components/client/client.scss
View file @
1ae3228
...
@@ -43,7 +43,6 @@
...
@@ -43,7 +43,6 @@
.price-txt
{
.price-txt
{
// font-family: 'test';
// font-family: 'test';
// font-family: "test";
font-weight
:
Bold
;
font-weight
:
Bold
;
// font-weight: 600;
// font-weight: 600;
font-size
:
26rpx
;
font-size
:
26rpx
;
...
...
pages/tab/output/components/client/client.wxml
View file @
1ae3228
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
</view>
</view>
<!-- 场景内容 -->
<!-- 场景内容 -->
<view class="box-content">
<view class="box-content">
<scene-box formData="{{item}}" />
<scene-box formData="{{item}}"
hasLockIcon="{{false}}"
/>
<!-- 通知 -->
<!-- 通知 -->
<view class="box-bottom">
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view wx:if="{{item.msgList.length}}" class="flex">
...
...
router/routerBefore.js
View file @
1ae3228
...
@@ -26,12 +26,12 @@ Page = function (options) {
...
@@ -26,12 +26,12 @@ Page = function (options) {
const
oldHide
=
options
.
onHide
const
oldHide
=
options
.
onHide
options
.
onShow
=
function
()
{
options
.
onShow
=
function
()
{
routerBefore
(()
=>
{
routerBefore
(()
=>
{
oldShow
.
apply
(
this
,
arguments
)
oldShow
&&
oldShow
.
apply
(
this
,
arguments
)
})
})
}
}
options
.
onHide
=
function
()
{
options
.
onHide
=
function
()
{
routerAfter
(()
=>
{
routerAfter
(()
=>
{
oldHide
.
apply
(
this
,
arguments
)
oldHide
&&
oldHide
.
apply
(
this
,
arguments
)
})
})
}
}
OldPage
(
options
)
OldPage
(
options
)
...
...
utils/network.js
View file @
1ae3228
...
@@ -24,22 +24,24 @@ class NetWork {
...
@@ -24,22 +24,24 @@ class NetWork {
const
thisPage
=
wx
.
$router
.
getPageInstance
(),
const
thisPage
=
wx
.
$router
.
getPageInstance
(),
options
=
Object
.
keys
(
thisPage
.
options
)
options
=
Object
.
keys
(
thisPage
.
options
)
this
[
ISCOMMECTED
]
=
false
this
[
ISCOMMECTED
]
=
false
if
(
thisPage
.
noPageAuth
)
{
wx
.
showLoading
()
wx
.
showLoading
()
this
.
refreshPage
()
wx
.
hideLoading
()
}
else
{
// if (thisPage.noPageAuth) {
let
url
=
`/
${
thisPage
.
route
}
`
// wx.showLoading()
if
(
options
.
length
)
{
// this.refreshPage()
let
query
=
[]
// } else {
options
.
map
(
key
=>
{
// let url = `/${thisPage.route}`
query
.
push
(
`
${
key
}
=
${
thisPage
.
options
[
key
]}
`
)
// if (options.length) {
})
// let query = []
url
+=
`?
${
query
.
join
(
'&'
)}
`
// options.map(key => {
}
// query.push(`${key}=${thisPage.options[key]}`)
wx
.
$router
.
redirectTo
(
'login.loading'
,
{
// })
url
// url += `?${query.join('&')}`
})
// }
}
// wx.$router.redirectTo('login.loading', {
// url
// })
// }
}
}
}
}
})
})
...
...
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