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 94057f7d
authored
Oct 26, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
修复样式
2 parents
001a5f76
1a22e947
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
278 additions
and
86 deletions
components/SceneBox/SceneBox.js
components/SceneBox/SceneBox.wxml
components/SceneBox/SceneBox.wxss
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.wxml
pages/tab/index/components/product/product.scss
pages/tab/index/index.js
pages/tab/mine/mine.wxml
pages/tab/output/components/client/Gotham-Black.otf
pages/tab/output/components/client/client.scss
pages/tab/output/components/client/client.wxml
pages/tab/output/output.js
pages/tab/output/output.scss
router/routerBefore.js
style/common.wxss
style/font/Gotham-Black.otf
utils/network.js
components/SceneBox/SceneBox.js
View file @
94057f7
...
@@ -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 @
94057f7
...
@@ -3,8 +3,11 @@
...
@@ -3,8 +3,11 @@
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</view>
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</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">{{item.title}}</view>
<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}}</view>
<view>{{item.subTitle}}</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">¥ {{scenePriceList[index].total}}</view>
</view>
</view>
...
...
components/SceneBox/SceneBox.wxss
View file @
94057f7
...
@@ -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 {
...
@@ -62,14 +62,16 @@
...
@@ -62,14 +62,16 @@
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
}
}
.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%);
...
@@ -80,7 +82,13 @@
...
@@ -80,7 +82,13 @@
.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 {
...
@@ -88,6 +96,11 @@
...
@@ -88,6 +96,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;
...
...
login/index/components/Box/Box.js
View file @
94057f7
...
@@ -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 @
94057f7
...
@@ -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 @
94057f7
<!--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 @
94057f7
...
@@ -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 @
94057f7
...
@@ -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 @
94057f7
...
@@ -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 @
94057f7
...
@@ -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 @
94057f7
...
@@ -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.wxml
View file @
94057f7
...
@@ -27,11 +27,19 @@
...
@@ -27,11 +27,19 @@
</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>
<<<<<<< HEAD
<input class="inp" placeholder-class="inp-placeholder" 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" placeholder-class="inp-placeholder" 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="请输入手机号" />
=======
<input class="inp" value="{{carObj.contact}}" bindinput="bindinputFn" data-name="contact" maxlength="{{30}}" placeholder="请输入30个字符以内" />
</view>
<view class="inp-wrap">
<view class="title" hover-class="none" hover-stop-propagation="false">联系人手机号</view>
<input class="inp" value="{{carObj.phone}}" bindinput="bindinputFn" data-name="phone" maxlength="{{30}}" placeholder="请输入30个字符以内" />
>>>>>>> 1a22e94703873289917ce13d64d3958c8074005f
</view>
</view>
</view>
</view>
<button class="btn" bindtap="applyFn">提交开店信息</button>
<button class="btn" bindtap="applyFn">提交开店信息</button>
...
...
pages/tab/index/components/product/product.scss
View file @
94057f7
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
background-color
:
#f8fafb
;
background-color
:
#f8fafb
;
border-radius
:
20rpx
20rpx
0
0
;
border-radius
:
20rpx
20rpx
0
0
;
}
}
.prod-wrap
.big-title
{
.prod-wrap
.big-title
{
margin-left
:
32rpx
;
margin-left
:
32rpx
;
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
...
@@ -11,6 +12,7 @@
...
@@ -11,6 +12,7 @@
color
:
#323436
;
color
:
#323436
;
padding-top
:
32rpx
;
padding-top
:
32rpx
;
}
}
.prod-wrap
.nav-wrap
{
.prod-wrap
.nav-wrap
{
white-space
:
nowrap
;
white-space
:
nowrap
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -18,6 +20,7 @@
...
@@ -18,6 +20,7 @@
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
padding-left
:
32rpx
;
padding-left
:
32rpx
;
}
}
.prod-wrap
.nav-wrap
.nav
{
.prod-wrap
.nav-wrap
.nav
{
display
:
inline-block
;
display
:
inline-block
;
height
:
64rpx
;
height
:
64rpx
;
...
@@ -33,6 +36,7 @@
...
@@ -33,6 +36,7 @@
color
:
#323436
;
color
:
#323436
;
padding
:
0
16rpx
;
padding
:
0
16rpx
;
}
}
.prod-wrap
.nav-wrap
.active-nav
{
.prod-wrap
.nav-wrap
.active-nav
{
color
:
#ffffff
;
color
:
#ffffff
;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -42,6 +46,7 @@
...
@@ -42,6 +46,7 @@
// border: 2rpx solid rgba(68,97,240,0.50);
// border: 2rpx solid rgba(68,97,240,0.50);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
}
}
.prod-wrap
.nav-wrap
.nav
:last-child
{
.prod-wrap
.nav-wrap
.nav
:last-child
{
margin-right
:
0
;
margin-right
:
0
;
}
}
...
@@ -71,6 +76,7 @@
...
@@ -71,6 +76,7 @@
flex-shrink
:
0
;
flex-shrink
:
0
;
border-radius
:
4rpx
;
border-radius
:
4rpx
;
}
}
.img-desc
{
.img-desc
{
position
:
absolute
;
position
:
absolute
;
width
:
104rpx
;
width
:
104rpx
;
...
@@ -85,6 +91,7 @@
...
@@ -85,6 +91,7 @@
letter-spacing
:
0
;
letter-spacing
:
0
;
text-align
:
center
;
text-align
:
center
;
}
}
.prod-info
{
.prod-info
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -92,33 +99,39 @@
...
@@ -92,33 +99,39 @@
padding
:
12rpx
0
;
padding
:
12rpx
0
;
margin-left
:
24rpx
;
margin-left
:
24rpx
;
}
}
.prod-info
>
text
{
.prod-info
>
text
{
display
:
block
;
display
:
block
;
white-space
:
nowrap
;
white-space
:
nowrap
;
height
:
40rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
line-height
:
40rpx
;
}
}
.prod-info
.title
{
.prod-info
.title
{
font-family
:
PingFangSC-Medium
;
font-family
:
PingFangSC-Medium
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#323436
;
color
:
#323436
;
}
}
.prod-info
.sale
,
.prod-info
.sale
,
.prod-info
.earnings
{
.prod-info
.earnings
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#7a8299
;
color
:
#7a8299
;
}
}
.prod-info
.sale-num
{
.prod-info
.sale-num
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#323436
;
color
:
#323436
;
}
}
.prod-info
.earnings-num
{
.prod-info
.earnings-num
{
font-size
:
28rpx
;
font-size
:
28rpx
;
font-family
:
DINAlternate-Bold
;
//
font-family: DINAlternate-Bold;
font-weight
:
Bold
;
font-weight
:
Bold
;
color
:
#f35251
;
color
:
#f35251
;
}
}
.share-btn
{
.share-btn
{
height
:
56rpx
;
height
:
56rpx
;
line-height
:
56rpx
;
line-height
:
56rpx
;
...
@@ -136,6 +149,7 @@
...
@@ -136,6 +149,7 @@
top
:
50%
;
top
:
50%
;
transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
}
}
.share-btn
.icon
{
.share-btn
.icon
{
width
:
32rpx
;
width
:
32rpx
;
height
:
32rpx
;
height
:
32rpx
;
...
@@ -147,11 +161,13 @@
...
@@ -147,11 +161,13 @@
}
}
.project-img
{
.project-img
{
// height: 1600rpx;
// height: 1600rpx;
// white-space: nowrap;
// white-space: nowrap;
.img-item
{
.img-item
{
position
:
relative
;
position
:
relative
;
}
}
.more-btn
{
.more-btn
{
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
...
@@ -168,11 +184,13 @@
...
@@ -168,11 +184,13 @@
line-height
:
64rpx
;
line-height
:
64rpx
;
}
}
}
}
.stickyTab
{
.stickyTab
{
position
:
sticky
;
position
:
sticky
;
z-index
:
2
;
z-index
:
2
;
background-color
:
#f5f7fb
;
background-color
:
#f5f7fb
;
}
}
// .out-tab{
// .out-tab{
// .out-text {
// .out-text {
// // color: red !important;
// // color: red !important;
...
@@ -190,22 +208,27 @@
...
@@ -190,22 +208,27 @@
width
:
100%
;
width
:
100%
;
height
:
1110rpx
;
height
:
1110rpx
;
}
}
.img-item12
{
.img-item12
{
width
:
100%
;
width
:
100%
;
height
:
1290rpx
;
height
:
1290rpx
;
}
}
.img-item13
{
.img-item13
{
width
:
100%
;
width
:
100%
;
height
:
596rpx
;
height
:
596rpx
;
}
}
.img-item14
{
.img-item14
{
width
:
100%
;
width
:
100%
;
height
:
744rpx
;
height
:
744rpx
;
}
}
.img-item15
{
.img-item15
{
width
:
100%
;
width
:
100%
;
height
:
490rpx
;
height
:
490rpx
;
}
}
.img-item16
{
.img-item16
{
width
:
100%
;
width
:
100%
;
height
:
1532rpx
;
height
:
1532rpx
;
...
@@ -216,27 +239,34 @@
...
@@ -216,27 +239,34 @@
width
:
100%
;
width
:
100%
;
height
:
2168rpx
;
height
:
2168rpx
;
}
}
.img-item22
{
.img-item22
{
width
:
100%
;
width
:
100%
;
height
:
1290rpx
;
height
:
1290rpx
;
}
}
.img-item23
{
.img-item23
{
width
:
100%
;
width
:
100%
;
height
:
596rpx
;
height
:
596rpx
;
}
}
.img-item24
{
.img-item24
{
width
:
100%
;
width
:
100%
;
height
:
830rpx
;
height
:
830rpx
;
}
}
.img-item25
{
.img-item25
{
width
:
100%
;
width
:
100%
;
height
:
490rpx
;
height
:
490rpx
;
}
}
.img-item26
{
.img-item26
{
height
:
752rpx
;
height
:
752rpx
;
.video-item
{
.video-item
{
width
:
100%
;
width
:
100%
;
video
{
video
{
border-radius
:
16rpx
;
border-radius
:
16rpx
;
height
:
348rpx
;
height
:
348rpx
;
}
}
...
@@ -248,22 +278,27 @@
...
@@ -248,22 +278,27 @@
width
:
100%
;
width
:
100%
;
height
:
1110rpx
;
height
:
1110rpx
;
}
}
.img-item32
{
.img-item32
{
width
:
100%
;
width
:
100%
;
height
:
1290rpx
;
height
:
1290rpx
;
}
}
.img-item33
{
.img-item33
{
width
:
100%
;
width
:
100%
;
height
:
596rpx
;
height
:
596rpx
;
}
}
.img-item34
{
.img-item34
{
width
:
100%
;
width
:
100%
;
height
:
984rpx
;
height
:
984rpx
;
}
}
.img-item35
{
.img-item35
{
width
:
100%
;
width
:
100%
;
height
:
490rpx
;
height
:
490rpx
;
}
}
// .img-item26 {
// .img-item26 {
// width: 100%;
// width: 100%;
// height: 752rpx;
// height: 752rpx;
...
@@ -273,22 +308,27 @@
...
@@ -273,22 +308,27 @@
width
:
100%
;
width
:
100%
;
height
:
678rpx
;
height
:
678rpx
;
}
}
.img-item42
{
.img-item42
{
width
:
100%
;
width
:
100%
;
height
:
1266rpx
;
height
:
1266rpx
;
}
}
.img-item43
{
.img-item43
{
width
:
100%
;
width
:
100%
;
height
:
1398rpx
;
height
:
1398rpx
;
}
}
.img-item44
{
.img-item44
{
width
:
100%
;
width
:
100%
;
height
:
830rpx
;
height
:
830rpx
;
}
}
.img-item45
{
.img-item45
{
width
:
100%
;
width
:
100%
;
height
:
490rpx
;
height
:
490rpx
;
}
}
.img-item46
{
.img-item46
{
width
:
100%
;
width
:
100%
;
height
:
1666rpx
;
height
:
1666rpx
;
...
@@ -299,18 +339,22 @@
...
@@ -299,18 +339,22 @@
width
:
100%
;
width
:
100%
;
height
:
814rpx
;
height
:
814rpx
;
}
}
.img-item52
{
.img-item52
{
width
:
100%
;
width
:
100%
;
height
:
998rpx
;
height
:
998rpx
;
}
}
.img-item53
{
.img-item53
{
width
:
100%
;
width
:
100%
;
height
:
596rpx
;
height
:
596rpx
;
}
}
.img-item54
{
.img-item54
{
width
:
100%
;
width
:
100%
;
height
:
984rpx
;
height
:
984rpx
;
}
}
.img-item55
{
.img-item55
{
width
:
100%
;
width
:
100%
;
height
:
490rpx
;
height
:
490rpx
;
...
@@ -324,6 +368,7 @@
...
@@ -324,6 +368,7 @@
position
:
absolute
;
position
:
absolute
;
top
:
280rpx
;
top
:
280rpx
;
}
}
.video-title
{
.video-title
{
position
:
relative
;
position
:
relative
;
padding
:
96rpx
0
24rpx
;
padding
:
96rpx
0
24rpx
;
...
@@ -334,6 +379,7 @@
...
@@ -334,6 +379,7 @@
letter-spacing
:
0
;
letter-spacing
:
0
;
line-height
:
64rpx
;
line-height
:
64rpx
;
}
}
.
video-title
:
:
after
{
.
video-title
:
:
after
{
content
:
''
;
content
:
''
;
display
:
block
;
display
:
block
;
...
@@ -345,12 +391,14 @@
...
@@ -345,12 +391,14 @@
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
background-color
:
#ffffff
;
background-color
:
#ffffff
;
}
}
.video-list
{
.video-list
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding
:
0rpx
32rpx
;
padding
:
0rpx
32rpx
;
font-size
:
0
;
font-size
:
0
;
}
}
.check-prod
.video-list
{
.check-prod
.video-list
{
padding-bottom
:
140rpx
;
padding-bottom
:
140rpx
;
}
}
...
@@ -359,22 +407,26 @@
...
@@ -359,22 +407,26 @@
width
:
calc
(
50%
-
12rpx
);
width
:
calc
(
50%
-
12rpx
);
margin-bottom
:
32rpx
;
margin-bottom
:
32rpx
;
}
}
.video-item
video
{
.video-item
video
{
width
:
100%
;
width
:
100%
;
height
:
590rpx
;
height
:
590rpx
;
// border: 1rpx dashed #AFB0B2;
// border: 1rpx dashed #AFB0B2;
}
}
.video-item
.download
{
.video-item
.download
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
right
:
2px
;
right
:
2px
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#666
;
color
:
#666
;
z-index
:
1
;
z-index
:
1
;
}
}
.video-item
:nth-child
(
even
)
{
.video-item
:nth-child
(
even
)
{
margin-left
:
22rpx
;
margin-left
:
22rpx
;
}
}
.video-text
{
.video-text
{
margin-top
:
16rpx
;
margin-top
:
16rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
...
@@ -382,10 +434,11 @@
...
@@ -382,10 +434,11 @@
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#343456
;
color
:
#343456
;
}
}
.video-tips
{
.video-tips
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
rgba
(
255
,
255
,
255
,
.
6
);
color
:
rgba
(
255
,
255
,
255
,
.6
);
padding
:
16rpx
0
92rpx
;
padding
:
16rpx
0
92rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.js
View file @
94057f7
...
@@ -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/mine/mine.wxml
View file @
94057f7
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
<image class="headPortrait" src="{{userInfo.userAvatarUrl||IMAGES.userAvatarUrl }}" webp>
头像
头像
</image>
</image>
<view class="name">{{userInfo.merchant
Id
}}</view>
<view class="name">{{userInfo.merchant
Name
}}</view>
<view class="id">账号:{{userInfo.merchantId}}</view>
<view class="id">账号:{{userInfo.merchantId}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
<view class="createTime">创建时间:{{userInfo.createdDate}}</view>
</view>
</view>
...
...
pages/tab/output/components/client/Gotham-Black.otf
0 → 100644
View file @
94057f7
No preview for this file type
pages/tab/output/components/client/client.scss
View file @
94057f7
...
@@ -33,12 +33,18 @@
...
@@ -33,12 +33,18 @@
background-size
:
100%
96rpx
;
background-size
:
100%
96rpx
;
.price-txt
{
.price-txt
{
font-size
:
26rpx
;
// font-family: 'test';
font-size
:
28rpx
;
font-weight
:
Bold
;
// font-size: 26rpx;
}
}
}
}
.price-txt
{
.price-txt
{
font-weight
:
600
;
// font-family: 'test';
font-weight
:
Bold
;
// font-weight: 600;
font-size
:
26rpx
;
color
:
#F35251
;
color
:
#F35251
;
}
}
...
@@ -75,7 +81,7 @@
...
@@ -75,7 +81,7 @@
}
}
.price-txt
{
.price-txt
{
font-size
:
2
2
rpx
;
font-size
:
2
6
rpx
;
}
}
}
}
...
@@ -110,6 +116,7 @@
...
@@ -110,6 +116,7 @@
.tip-link
{
.tip-link
{
color
:
#3E71FE
;
color
:
#3E71FE
;
}
}
.time
{
.time
{
color
:
#8A8C90
;
color
:
#8A8C90
;
;
;
...
@@ -125,3 +132,19 @@
...
@@ -125,3 +132,19 @@
color
:
#CCCED1
;
color
:
#CCCED1
;
padding-bottom
:
60rpx
;
padding-bottom
:
60rpx
;
}
}
@font-face
{
/* 是你封装的名字 */
font-family
:
"test"
;
/* 你字体包的位置 */
/* src: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf'); */
src
:
url('Gotham-Black.otf')
;
/* https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf */
/* format('opentype'); */
}
.test
{
font-family
:
'test'
;
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/client/client.wxml
View file @
94057f7
<!--pages/tab/output/components/client/client.wxml-->
<!-- pages/tab/output/components/client/client.wxml -->
<scroll-view class="client" scroll-y="{{true}}" bindscrolltolower="onReachBottom" lower-threshold='50' scroll-top="{{scrollTop}}">
<scroll-view
class="client"
scroll-y="{{true}}"
bindscrolltolower="onReachBottom"
lower-threshold='50'
scroll-top="{{scrollTop}}">
<!-- <view class="test">1234567890</view> -->
<view class="client-box">
<view class="client-box">
<view class="profit-box flex-between">
<view class="profit-box flex-between">
<text>总收益</text>
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
</view>
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view
class="box"
wx:for="{{list}}"
wx:key="index"
bindtap="handleJump"
data-idx="{{index}}">
<view class="head flex-between">
<view class="head flex-between">
<view class="name text-hide">{{item.merchantName}}</view>
<view class="name text-hide">{{item.merchantName}}</view>
<view class="price-txt
">¥{{item.totalMoney}}</view>
<view class="price-txt
">¥{{item.totalMoney}}</view>
</view>
</view>
<!-- 场景内容 -->
<!-- 场景内容 -->
<view class="box-content">
<view class="box-content">
<scene-box formData="{{item}}"></scene-box
>
<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">
<view class="tip-blue">最新</view>
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="bottom-content">
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view
class="flex-between tip-row"
wx:for="{{item.msgList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view>{{subItem.msg}}</view>
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
...
@@ -28,13 +44,20 @@
...
@@ -28,13 +44,20 @@
<view class="tip-blue">通知</view>
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="bottom-content">
<view class="tip-row">
<view class="tip-row">
<view>运营建议:您的门店尚未开展活动,暂无产值。建议<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>拓展营收范围。</view>
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">到底啦!</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦!
</view>
</view>
</view>
</scroll-view>
</scroll-view>
pages/tab/output/output.js
View file @
94057f7
...
@@ -9,7 +9,7 @@ Page({
...
@@ -9,7 +9,7 @@ Page({
navStyle
:
'background-color: rgba(0,0,0,0);'
,
navStyle
:
'background-color: rgba(0,0,0,0);'
,
loginType
:
0
,
loginType
:
0
,
agree
:
true
,
agree
:
true
,
tabIndx
:
1
,
tabIndx
:
0
,
tabList
:
[
'我的客户'
,
'我的门店'
,
'我的员工'
],
tabList
:
[
'我的客户'
,
'我的门店'
,
'我的员工'
],
popupShow
:
false
,
popupShow
:
false
,
subIndex
:
-
1
,
subIndex
:
-
1
,
...
...
pages/tab/output/output.scss
View file @
94057f7
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
width
:
100%
;
width
:
100%
;
// height: 486rpx;
// height: 486rpx;
height
:
264rpx
;
height
:
264rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.
b
g')
no-repeat
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.
pn
g')
no-repeat
;
background-size
:
100%
264rpx
;
background-size
:
100%
264rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
position
:
absolute
;
position
:
absolute
;
...
...
router/routerBefore.js
View file @
94057f7
...
@@ -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
)
...
...
style/common.wxss
View file @
94057f7
/**app.wxss**/
/**app.wxss**/
/*每个页面公共css */
@font-face {
/* 是你封装的名字 */
font-family: "test";
/* 你字体包的位置 */
/* src: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf'); */
src: url('/static/style/font/Gotham-Black.otf');
/* https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/Gotham-Black.otf */
/* format('opentype'); */
}
.sticky {
.sticky {
position: sticky;
position: sticky;
...
...
style/font/Gotham-Black.otf
0 → 100644
View file @
94057f7
No preview for this file type
utils/network.js
View file @
94057f7
...
@@ -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