Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-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 58980f87
authored
Nov 03, 2022
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.0' of
http://192.168.3.233:8090/saas_plus/store-assistant
into feat_v3.0
2 parents
e26b4398
77674756
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
111 additions
and
135 deletions
components/Tab/Tab.wxss
components/sharePopup/sharePopup.js
components/sharePopup/sharePopup.wxml
packageActivity/pages/applyActivity/applyActivity.js
packageActivity/pages/applyActivity/applyActivity.scss
packageActivity/pages/applyActivity/applyActivity.wxml
pages/authentication/customerService/customerService.scss
pages/checkProduct/checkProduct.scss
pages/tab/discovery/components/product/product.js
pages/tab/discovery/components/product/product.scss
pages/tab/discovery/components/product/product.wxml
pages/tab/discovery/constant/data.js
pages/tab/discovery/discovery.scss
pages/tab/discovery/discovery.wxml
pages/tab/index/components/activeBox/activeBox.js
pages/tab/index/components/activityDiagnosis/activityDiagnosis.js
utils/request/environment.js
utils/request/request.js
utils/share.js
components/Tab/Tab.wxss
View file @
58980f8
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
.tab-box {
.tab-box {
display: flex;
display: flex;
width: 100%;
width: 100%;
height:
46
px;
height:
92r
px;
box-sizing: border-box;
box-sizing: border-box;
border-bottom: 1rpx solid #EAEBEF;
border-bottom: 1rpx solid #EAEBEF;
}
}
...
...
components/sharePopup/sharePopup.js
View file @
58980f8
...
@@ -54,6 +54,7 @@ Component({
...
@@ -54,6 +54,7 @@ Component({
*/
*/
methods
:
{
methods
:
{
async
init
(
n
)
{
async
init
(
n
)
{
n
.
activityName
=
n
.
activityName
.
length
>
12
?
`
${
n
.
activityName
.
substring
(
0
,
12
)}
...`
:
n
.
activityName
const
drawfun
=
new
Draw
({
const
drawfun
=
new
Draw
({
width
:
279
,
width
:
279
,
height
:
n
.
postersImageHeight
+
76
,
height
:
n
.
postersImageHeight
+
76
,
...
@@ -96,7 +97,7 @@ Component({
...
@@ -96,7 +97,7 @@ Component({
textBaseline
:
'top'
textBaseline
:
'top'
},
},
{
{
x
:
44
+
drawfun
.
getTextWidth
(
userInfo
.
name
,
14
),
x
:
50
+
drawfun
.
getTextWidth
(
userInfo
.
name
,
14
),
y
:
15
,
y
:
15
,
fontSize
:
12
,
fontSize
:
12
,
color
:
'#6E6E7A'
,
color
:
'#6E6E7A'
,
...
@@ -113,16 +114,17 @@ Component({
...
@@ -113,16 +114,17 @@ Component({
fontWeight
:
500
fontWeight
:
500
},
},
{
{
x
:
4
4
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
9
,
x
:
4
8
+
drawfun
.
getTextWidth
(
n
.
activityName
,
14
)
+
9
,
y
:
39
,
y
:
39
,
fontSize
:
10
,
fontSize
:
10
,
color
:
'#4466F0'
,
color
:
'#4466F0'
,
text
:
'众筹'
,
text
:
'众筹'
,
textBaseline
:
'top'
,
border
:
{
border
:
{
width
:
1
,
width
:
1
,
color
:
'#8FA5FF'
,
color
:
'#8FA5FF'
,
radius
:
2
,
radius
:
2
,
padding
:
[
5
,
5
]
padding
:
[
4
,
5
]
}
}
},
},
],
],
...
...
components/sharePopup/sharePopup.wxml
View file @
58980f8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</view>
</view>
</view>
</view>
<view class="share-popup-content" style="max-height: {{postersBoxHeight}}px;">
<view class="share-popup-content" style="max-height: {{postersBoxHeight}}px;">
<image
style="height: {{postersImageHeight + 76}}px;
" src="{{poster}}"></image>
<image
mode="widthFix
" src="{{poster}}"></image>
</view>
</view>
<view class="btn-box">
<view class="btn-box">
<view class="btn" bind:tap="saveImage">保存至相册</view>
<view class="btn" bind:tap="saveImage">保存至相册</view>
...
...
packageActivity/pages/applyActivity/applyActivity.js
View file @
58980f8
...
@@ -36,6 +36,9 @@ Page({
...
@@ -36,6 +36,9 @@ Page({
const
{
const
{
USERINFO
USERINFO
}
=
this
.
getCommonData
()
}
=
this
.
getCommonData
()
this
.
setData
({
product
:
arr
})
ActivityApi
.
getNotOpenProductsList
({
merchantId
:
USERINFO
.
merchantId
,
sceneCode
:
code
}).
then
(
res
=>
{
// 默认选中第一个业务场景 获取可用产品/活动
ActivityApi
.
getNotOpenProductsList
({
merchantId
:
USERINFO
.
merchantId
,
sceneCode
:
code
}).
then
(
res
=>
{
// 默认选中第一个业务场景 获取可用产品/活动
res
.
forEach
(
item
=>
{
res
.
forEach
(
item
=>
{
item
.
isSelect
=
false
item
.
isSelect
=
false
...
...
packageActivity/pages/applyActivity/applyActivity.scss
View file @
58980f8
...
@@ -12,7 +12,7 @@ page {
...
@@ -12,7 +12,7 @@ page {
// left: 50%;
// left: 50%;
// transform: translateX(-50%);
// transform: translateX(-50%);
width
:
100%
;
width
:
100%
;
padding
:
0
24
rpx
;
padding
:
0
10
rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
...
@@ -65,16 +65,14 @@ page {
...
@@ -65,16 +65,14 @@ page {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-left
:
32rpx
;
padding-left
:
32rpx
;
}
}
.widget
{
.widget
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
16rp
x
;
display
:
fle
x
;
display
:
fle
x
;
padding
:
0
10rp
x
;
.element
{
.element
{
flex
:
0
0
23%
;
width
:
25%
;
// width: 154rpx;
height
:
180rpx
;
height
:
180rpx
;
margin-right
:
2%
;
margin-right
:
4rpx
;
background
:
#F7F8FA
;
background
:
#F7F8FA
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
display
:
flex
;
display
:
flex
;
...
@@ -97,14 +95,18 @@ page {
...
@@ -97,14 +95,18 @@ page {
.tip
{
.tip
{
font-size
:
18rpx
;
font-size
:
18rpx
;
color
:
#8A8C90
;
color
:
#323436
;
line-height
:
24rpx
;
line-height
:
24rpx
;
font-weight
:
500
;
}
}
.active_color
{
.active_color
{
color
:
#4466F0
;
color
:
#4466F0
;
}
}
}
}
:last-child
{
margin
:
0
;
}
.active
{
.active
{
background-image
:
linear-gradient
(
145deg
,
#E6E6FF
0%
,
#FFFFFF
73%
);
background-image
:
linear-gradient
(
145deg
,
#E6E6FF
0%
,
#FFFFFF
73%
);
...
...
packageActivity/pages/applyActivity/applyActivity.wxml
View file @
58980f8
...
@@ -12,8 +12,8 @@
...
@@ -12,8 +12,8 @@
<view class="label">开通门店活动产品/活动</view>
<view class="label">开通门店活动产品/活动</view>
</view>
</view>
<view class="sinceTitle">业务场景</view>
<view class="sinceTitle">业务场景</view>
<view class="widget">
<view class="widget">
<block wx:for="{{list}}" wx:key="index">
<block wx:for="{{list}}" wx:key="index">
<view bind:tap="select" data-index="{{index}}" data-item="{{item}}" class="element {{currentIndex==index?'active':''}}">
<view bind:tap="select" data-index="{{index}}" data-item="{{item}}" class="element {{currentIndex==index?'active':''}}">
<image webp mode="widthFix" class="icon" src="{{IMGURL}}apply_activity_icon_{{index+1}}.png" />
<image webp mode="widthFix" class="icon" src="{{IMGURL}}apply_activity_icon_{{index+1}}.png" />
<view class="name {{currentIndex==index?'active_color':''}}">
<view class="name {{currentIndex==index?'active_color':''}}">
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<!-- <view class="triangle-down_temp"></view> -->
<!-- <view class="triangle-down_temp"></view> -->
</view>
</view>
</block>
</block>
</view>
</view>
<view class="title_tip">
<view class="title_tip">
产品/活动
产品/活动
<text class="tips">(可多选)</text>
<text class="tips">(可多选)</text>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</block>
</block>
<block wx:else>
<block wx:else>
<view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
<view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
<image src="{{IMGURL}}toLink.png" style="height: 400rpx;width: 400rpx;"></image>
<image
webp
src="{{IMGURL}}toLink.png" style="height: 400rpx;width: 400rpx;"></image>
<view class="tip">
<view class="tip">
<view>您的门店尚未开通业务场景,</view>
<view>您的门店尚未开通业务场景,</view>
<view>请联系在线客服进行咨询,谢谢。</view>
<view>请联系在线客服进行咨询,谢谢。</view>
...
...
pages/authentication/customerService/customerService.scss
View file @
58980f8
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
.container
{
.container
{
background-color
:
#F6F8FA
;
background-color
:
#F6F8FA
;
padding
:
180rpx
32rpx
;
padding
:
180rpx
32rpx
;
height
:
100vh
;
.service-wrap
{
.service-wrap
{
width
:
100%
;
width
:
100%
;
background-color
:
#fff
;
background-color
:
#fff
;
...
...
pages/checkProduct/checkProduct.scss
View file @
58980f8
...
@@ -79,7 +79,7 @@ page{
...
@@ -79,7 +79,7 @@ page{
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
8px
8
px
0
0
;
border-radius
:
16rpx
16r
px
0
0
;
z-index
:
5
;
z-index
:
5
;
.top
{
.top
{
display
:
flex
;
display
:
flex
;
...
@@ -88,9 +88,9 @@ page{
...
@@ -88,9 +88,9 @@ page{
height
:
130rpx
;
height
:
130rpx
;
.img
{
.img
{
display
:
block
;
display
:
block
;
margin
:
0
auto
8
px
;
margin
:
0
auto
16r
px
;
width
:
40
px
;
width
:
80r
px
;
height
:
40
px
;
height
:
80r
px
;
}
}
// .name {
// .name {
// font-size: 12px;
// font-size: 12px;
...
@@ -124,12 +124,12 @@ page{
...
@@ -124,12 +124,12 @@ page{
}
}
}
}
.btom
{
.btom
{
margin
:
18
px
auto
0
;
margin
:
36r
px
auto
0
;
width
:
343
px
;
width
:
686r
px
;
height
:
44
px
;
height
:
88r
px
;
line-height
:
44
px
;
line-height
:
88r
px
;
border
:
1px
solid
#eeeeee
;
border
:
1px
solid
#eeeeee
;
border-radius
:
4
px
;
border-radius
:
8r
px
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/discovery/components/product/product.js
View file @
58980f8
...
@@ -21,7 +21,6 @@ Component({
...
@@ -21,7 +21,6 @@ Component({
navList
:[
'数字无忧权益卡'
],
navList
:[
'数字无忧权益卡'
],
activeNavIdx
:
0
,
//特色产品
activeNavIdx
:
0
,
//特色产品
tab
:[
'适用场景'
,
'营销链路'
,
'项目亮点'
,
'转化漏斗'
,
'合作流程'
,
'合作案例'
],
tab
:[
'适用场景'
,
'营销链路'
,
'项目亮点'
,
'转化漏斗'
,
'合作流程'
,
'合作案例'
],
heightArr
:[],
curTabIdx
:
0
,
//适用产品
curTabIdx
:
0
,
//适用产品
actNum
:
0
,
//场景
actNum
:
0
,
//场景
showAuth
:
false
,
showAuth
:
false
,
...
@@ -29,24 +28,26 @@ Component({
...
@@ -29,24 +28,26 @@ Component({
},
},
lifetimes
:{
lifetimes
:{
ready
:
function
(){
ready
:
function
(){
this
.
getImgHeight
()
wx
.
$eventbus
.
on
(
'evt_page_scroll'
,(
e
)
=>
{
wx
.
$eventbus
.
on
(
'evt_page_scroll'
,
async
(
e
)
=>
{
// console.log(e)
// console.log(e)
let
heightTop
=
this
.
data
.
headerHeight
// 90 场景高度,8 场景margin-bottom
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
wx
.
$util
.
getViewInfo
(
'.header'
,
async
(
res
)
=>
{
heightTop
+=
prodArr
[
0
].
height
let
heightTop
=
res
.
height
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
let
imgHeightArr
=
[]
heightTop
+=
prodArr
[
0
].
height
imgArr
.
reduce
((
pre
,
cur
,
index
)
=>
{
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
imgHeightArr
.
push
(
pre
+
cur
.
height
)
let
imgHeightArr
=
[]
return
pre
+
cur
.
height
imgArr
.
reduce
((
pre
,
cur
,
index
)
=>
{
},
heightTop
)
imgHeightArr
.
push
(
pre
+
cur
.
height
)
let
idx
=
imgHeightArr
.
findIndex
(
item
=>
item
>
e
.
scrollTop
)
return
pre
+
cur
.
height
if
(
idx
>-
1
&&
!
this
.
data
.
throttle
){
},
heightTop
)
this
.
setData
({
let
idx
=
imgHeightArr
.
findIndex
(
item
=>
item
>
e
.
scrollTop
)
curTabIdx
:
idx
if
(
idx
>-
1
&&
!
this
.
data
.
throttle
){
})
this
.
setData
({
}
curTabIdx
:
idx
})
}
})
})
})
},
},
},
},
...
@@ -85,31 +86,32 @@ Component({
...
@@ -85,31 +86,32 @@ Component({
activeNavIdx
:
this
.
data
.
isShare
?
this
.
data
.
navIdx
:
0
,
activeNavIdx
:
this
.
data
.
isShare
?
this
.
data
.
navIdx
:
0
,
tab
tab
})
})
this
.
getImgHeight
();
},
},
},
},
methods
:
{
methods
:
{
async
changeTab
(
e
){
changeTab
(
e
){
let
{
idx
}
=
e
.
currentTarget
.
dataset
let
{
idx
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
this
.
setData
({
curTabIdx
:
idx
curTabIdx
:
idx
})
})
this
.
data
.
throttle
=
true
this
.
data
.
throttle
=
true
let
heightTop
=
this
.
data
.
headerHeight
+
90
-
16
-
46
// 90 场景高度,16 可能是误差 , 46 tab高度
wx
.
$util
.
getViewInfo
(
'.header'
,
async
(
res
)
=>
{
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
let
heightTop
=
res
.
height
heightTop
+=
prodArr
[
0
].
height
let
prodArr
=
await
this
.
getHeight
(
'.prod-wrap'
)
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
heightTop
+=
prodArr
[
0
].
height
for
(
let
i
=
0
;
i
<
idx
;
i
++
){
let
imgArr
=
await
this
.
getHeight
(
'.img-item'
)
heightTop
+=
imgArr
[
i
].
height
for
(
let
i
=
0
;
i
<
idx
;
i
++
){
}
heightTop
+=
imgArr
[
i
].
height
wx
.
pageScrollTo
({
}
scrollTop
:
heightTop
,
wx
.
pageScrollTo
({
duration
:
0
scrollTop
:
heightTop
,
})
duration
:
0
setTimeout
(()
=>
{
})
this
.
data
.
throttle
=
false
setTimeout
(()
=>
{
},
500
)
this
.
data
.
throttle
=
false
},
500
)
})
},
},
getHeight
(
cla
){
getHeight
(
cla
){
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
...
@@ -118,7 +120,6 @@ Component({
...
@@ -118,7 +120,6 @@ Component({
resolve
(
rect
)
resolve
(
rect
)
}).
exec
()
}).
exec
()
})
})
},
},
changeNav
(
event
){
changeNav
(
event
){
this
.
setData
({
this
.
setData
({
...
@@ -168,59 +169,6 @@ Component({
...
@@ -168,59 +169,6 @@ Component({
authSuccess
(){
authSuccess
(){
this
.
toDown
()
this
.
toDown
()
},
},
toSetting
(){
return
new
Promise
((
resolve
,
reject
)
=>
{
wx
.
getSetting
({
success
:
(
res
)
=>
{
if
(
res
.
authSetting
[
'scope.writePhotosAlbum'
]){
resolve
(
true
)
}
else
{
wx
.
openSetting
({
success
:(
resp
)
=>
{
if
(
resp
.
authSetting
[
'scope.writePhotosAlbum'
]){
resolve
(
true
)
}
else
{
wx
.
showToast
({
title
:
"下载视频前需要您授权'添加到相册'权限"
,
icon
:
"none"
,
duration
:
2500
,
});
}
}
})
}
}
})
})
},
getImgHeight
(){
let
query
=
wx
.
createSelectorQuery
().
in
(
this
)
let
heightArr
=
[]
let
s
=
0
query
.
selectAll
(
'.img-item'
).
boundingClientRect
((
react
)
=>
{
react
.
forEach
(
item
=>
{
s
+=
item
.
height
heightArr
.
push
(
s
)
})
this
.
data
.
heightArr
=
heightArr
}).
exec
()
},
getImgHeight
()
{
let
query
=
wx
.
createSelectorQuery
().
in
(
this
);
let
heightArr
=
[];
let
s
=
0
;
query
.
selectAll
(
".img-item"
)
.
boundingClientRect
((
react
)
=>
{
react
.
forEach
((
item
)
=>
{
s
+=
item
.
height
;
heightArr
.
push
(
s
);
});
this
.
data
.
heightArr
=
heightArr
;
this
.
data
.
allHeight
=
heightArr
[
heightArr
.
length
-
1
];
})
.
exec
();
},
toSharePage
()
{
toSharePage
()
{
let
{
actNum
,
activeNavIdx
,
senceData
}
=
this
.
data
;
let
{
actNum
,
activeNavIdx
,
senceData
}
=
this
.
data
;
wx
.
$router
.
go
(
"checkProduct"
,
{
actNum
,
activeNavIdx
,
senceData
,
fromLocal
:
1
});
wx
.
$router
.
go
(
"checkProduct"
,
{
actNum
,
activeNavIdx
,
senceData
,
fromLocal
:
1
});
...
...
pages/tab/discovery/components/product/product.scss
View file @
58980f8
...
@@ -151,6 +151,12 @@
...
@@ -151,6 +151,12 @@
.project-wrap
{
.project-wrap
{
background-color
:
#F5F7FB
;
background-color
:
#F5F7FB
;
.sticky-area
{
position
:
sticky
;
position
:
-
webkit-sticky
;
z-index
:
2
;
background-color
:
#F5F7FB
;
}
}
}
.project-img
{
.project-img
{
...
@@ -337,7 +343,7 @@
...
@@ -337,7 +343,7 @@
.tab-box
{
.tab-box
{
display
:
flex
;
display
:
flex
;
width
:
100%
;
width
:
100%
;
height
:
46
px
;
height
:
92r
px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-bottom
:
1rpx
solid
#EAEBEF
;
border-bottom
:
1rpx
solid
#EAEBEF
;
.tab
{
.tab
{
...
...
pages/tab/discovery/components/product/product.wxml
View file @
58980f8
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<view class="prod-card">
<view class="prod-card">
<view class="card-img">
<view class="card-img">
<!-- <text class="img-desc">轻改类</text> -->
<!-- <text class="img-desc">轻改类</text> -->
<image src="{{IMGURL}}prod/{{senceData[actNum].productList[activeNavIdx].img}}.png"></image>
<image src="{{IMGURL}}prod/{{senceData[actNum].productList[activeNavIdx].img}}.png
?v={{img_version}}
"></image>
</view>
</view>
<view class="prod-info">
<view class="prod-info">
...
@@ -22,13 +22,13 @@
...
@@ -22,13 +22,13 @@
<view class="share-btn" wx:if="{{!isShare}}" bindtap="toSharePage">
<view class="share-btn" wx:if="{{!isShare}}" bindtap="toSharePage">
<image class="icon" src="{{IMGURL}}share.png"></image>
<image class="icon" src="{{IMGURL}}share.png"></image>
<text>分享</text>
<text>
去
分享</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="project-wrap">
<view class="project-wrap">
<view
style="position: sticky;top: {{headerHeight}}px ;z-index: 2;background-color: #F5F7FB;
">
<view
class="sticky-area" style="top: {{headerHeight}}px
">
<!-- <tab openScroll="{{true}}" tab="{{tab}}" index="{{curTabIdx}}" bindclick="changeTab"></tab> -->
<!-- <tab openScroll="{{true}}" tab="{{tab}}" index="{{curTabIdx}}" bindclick="changeTab"></tab> -->
<scroll-view enhanced="{{true}}" show-scrollbar="{{false}}" scroll-left="{{curTabIdx*46}}" class="tab-box" scroll-x enable-flex scroll-with-animation >
<scroll-view enhanced="{{true}}" show-scrollbar="{{false}}" scroll-left="{{curTabIdx*46}}" class="tab-box" scroll-x enable-flex scroll-with-animation >
<block wx:for="{{tab}}" wx:key="index">
<block wx:for="{{tab}}" wx:key="index">
...
...
pages/tab/discovery/constant/data.js
View file @
58980f8
...
@@ -73,7 +73,7 @@ var senceData = [
...
@@ -73,7 +73,7 @@ var senceData = [
]
]
},
},
{
{
name
:
'0-
12
个月'
,
name
:
'0-
6
个月'
,
img
:
'scene_within_12mth.png'
,
img
:
'scene_within_12mth.png'
,
active
:
'icon-car21'
,
active
:
'icon-car21'
,
playImg
:
'img2'
,
playImg
:
'img2'
,
...
@@ -107,7 +107,7 @@ var senceData = [
...
@@ -107,7 +107,7 @@ var senceData = [
]
]
},
},
{
{
name
:
'
12
个月以上'
,
name
:
'
6
个月以上'
,
img
:
'scene_more_12mth.png'
,
img
:
'scene_more_12mth.png'
,
active
:
'icon-car31'
,
active
:
'icon-car31'
,
playImg
:
'img3'
,
playImg
:
'img3'
,
...
...
pages/tab/discovery/discovery.scss
View file @
58980f8
...
@@ -14,7 +14,7 @@ page{
...
@@ -14,7 +14,7 @@ page{
}
}
.scene-wrap
{
.scene-wrap
{
white-space
:
nowrap
;
white-space
:
nowrap
;
height
:
90
px
;
height
:
180r
px
;
.scene-img
{
.scene-img
{
width
:
100%
;
width
:
100%
;
}
}
...
@@ -32,22 +32,24 @@ page{
...
@@ -32,22 +32,24 @@ page{
.chat
,
.applyAct
{
.chat
,
.applyAct
{
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
0
;
top
:
900rpx
;
top
:
50%
;
width
:
64px
;
transform
:
translateY
(
-50%
);
height
:
64px
;
width
:
128rpx
;
height
:
128rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
z-index
:
3
;
z-index
:
3
;
right
:
15rpx
;
right
:
15rpx
;
}
}
.
cha
t
{
.
applyAc
t
{
top
:
750rpx
;
top
:
calc
(
50%
+
200rpx
);
}
}
/* 测算 */
/* 测算 */
.calculate
{
.calculate
{
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
0
;
top
:
1050rpx
;
top
:
calc
(
50%
+
400rpx
);
transform
:
translateY
(
-50%
);
z-index
:
3
;
z-index
:
3
;
}
}
...
...
pages/tab/discovery/discovery.wxml
View file @
58980f8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<swiper bindchange="changeSwiper" current="{{currentId}}" class="scene-wrap" previousMargin="40rpx" nextMargin="40rpx">
<swiper bindchange="changeSwiper" current="{{currentId}}" class="scene-wrap" previousMargin="40rpx" nextMargin="40rpx">
<block wx:for="{{senceData}}" wx:key="index">
<block wx:for="{{senceData}}" wx:key="index">
<swiper-item item-id="{{index}}" wx:if="{{item.show}}">
<swiper-item item-id="{{index}}" wx:if="{{item.show}}">
<image
webp class="scene-img" src="{{IMGURL}}{{item.img
}}"></image>
<image
mode="widthFix" webp class="scene-img" src="{{IMGURL}}{{item.img}}?v={{img_version
}}"></image>
</swiper-item>
</swiper-item>
</block>
</block>
</swiper>
</swiper>
...
...
pages/tab/index/components/activeBox/activeBox.js
View file @
58980f8
...
@@ -96,6 +96,12 @@ Component({
...
@@ -96,6 +96,12 @@ Component({
this
.
setData
({
this
.
setData
({
[
itemVal
]:
val
[
itemVal
]:
val
})
})
}).
catch
(
err
=>
{
val
.
isloading
=
false
let
itemVal
=
'activeList['
+
idx
+
']'
this
.
setData
({
[
itemVal
]:
val
})
})
})
}
else
if
(
flag
&&
val
.
missionList
)
{
// 已请求数据 展开默认选中当天
}
else
if
(
flag
&&
val
.
missionList
)
{
// 已请求数据 展开默认选中当天
val
.
newtaskCalenderList
=
this
.
calenderFilter
(
JSON
.
parse
(
JSON
.
stringify
(
val
.
missionList
))
||
[],
7
)
val
.
newtaskCalenderList
=
this
.
calenderFilter
(
JSON
.
parse
(
JSON
.
stringify
(
val
.
missionList
))
||
[],
7
)
...
...
pages/tab/index/components/activityDiagnosis/activityDiagnosis.js
View file @
58980f8
...
@@ -70,6 +70,12 @@ Component({
...
@@ -70,6 +70,12 @@ Component({
this
.
setData
({
this
.
setData
({
[
itemVal
]:
val
[
itemVal
]:
val
})
})
}).
catch
(
err
=>
{
val
.
isloading
=
false
let
itemVal
=
'activityList['
+
ind
+
']'
this
.
setData
({
[
itemVal
]:
val
})
})
})
}
else
{
}
else
{
val
.
isCollapse
=
!
flag
val
.
isCollapse
=
!
flag
...
...
utils/request/environment.js
View file @
58980f8
...
@@ -39,7 +39,7 @@ const domain = {
...
@@ -39,7 +39,7 @@ const domain = {
商城: 192.168.2.3:8558 */
商城: 192.168.2.3:8558 */
dev
:
'https://scrm.dev.glsx.com.cn'
,
dev
:
'https://scrm.dev.glsx.com.cn'
,
uat
:
'https://scrm.test.glsx.com.cn'
,
uat
:
'https://scrm.test.glsx.com.cn'
,
//
uat: 'https://scrm.beta.glsx.com.cn',
//
uat: 'https://scrm.beta.glsx.com.cn',
prod
:
'https://scrm.glsx.com.cn'
prod
:
'https://scrm.glsx.com.cn'
}[
target
[
index
]]
}[
target
[
index
]]
...
...
utils/request/request.js
View file @
58980f8
...
@@ -68,11 +68,11 @@ class Request {
...
@@ -68,11 +68,11 @@ class Request {
if
(
code
==
'0'
)
{
if
(
code
==
'0'
)
{
resolve
(
data
.
data
)
resolve
(
data
.
data
)
}
else
{
}
else
{
console
.
log
(
data
)
wx
.
showToast
({
wx
.
showToast
({
title
:
message
||
'系统异常'
,
title
:
message
||
'系统异常'
,
icon
:
'none'
icon
:
'none'
})
})
reject
(
data
)
}
}
}
}
},
},
...
@@ -87,7 +87,9 @@ class Request {
...
@@ -87,7 +87,9 @@ class Request {
},
},
complete
()
{
complete
()
{
requestTimes
--
;
requestTimes
--
;
if
(
requestTimes
==
0
)
wx
.
hideLoading
();
if
(
requestTimes
==
0
)
{
wx
.
hideLoading
()
}
wx
.
stopPullDownRefresh
()
wx
.
stopPullDownRefresh
()
wx
.
hideNavigationBarLoading
()
wx
.
hideNavigationBarLoading
()
}
}
...
...
utils/share.js
View file @
58980f8
...
@@ -51,7 +51,7 @@ pageLeaveProxy(page) {
...
@@ -51,7 +51,7 @@ pageLeaveProxy(page) {
// path += that.setCommonShareQuery()
// path += that.setCommonShareQuery()
if
(
shareQuery
)
path
+=
`?
${
shareQuery
}
`
if
(
shareQuery
)
path
+=
`?
${
shareQuery
}
`
if
(
!
noPageAuth
)
path
=
`/
logi
n/loading/loading?url=
${
encodeURIComponent
(
path
)}
`
if
(
!
noPageAuth
)
path
=
`/
pages/authenticatio
n/loading/loading?url=
${
encodeURIComponent
(
path
)}
`
if
(
shareFun
)
shareFun
()
if
(
shareFun
)
shareFun
()
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
if
(
shareTrackData
)
that
.
reportShareData
(
shareTrackData
)
console
.
log
(
'::'
,
path
)
console
.
log
(
'::'
,
path
)
...
...
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