Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ujia
/
uj-admin
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 e51b7481
authored
Nov 11, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 店总版,新增“敬请期待”页面及相关样式
1 parent
348b7738
Pipeline
#398
for
e51b7481
failed
in 0 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
564 deletions
apps/mp/store/images/discovery-coming-soon.jpg
apps/mp/store/pages/tab/discovery/discovery.js
apps/mp/store/pages/tab/discovery/discovery.json
apps/mp/store/pages/tab/discovery/discovery.scss
apps/mp/store/pages/tab/discovery/discovery.wxml
apps/mp/store/pages/tab/discovery/discovery.wxss
apps/mp/store/images/discovery-coming-soon.jpg
0 → 100644
View file @
e51b748
31.2 KB
apps/mp/store/pages/tab/discovery/discovery.js
View file @
e51b748
// pages/tab/output/output.js
// const navStyle = "background-color: transparent;";
// import { subscriptionBannerUrl, subscriptionSystemData } from './constant/systemData'
// import {scenceList} from "./constant/data"
import
ActivityApi
from
"~/api/activityApi/index"
;
import
{
getActivityRecord
}
from
'~/api/viewprod'
import
{
IMG_VERSION
}
from
"~/utils/constantData"
;
import
{
imgUrlMixin
}
from
"~/mixins/index"
;
const
IMG_URL
=
wx
.
$imgUrl
;
let
leftMenuIndex
=
0
Page
({
Page
({
// behaviors: [imgUrlMixin],
data
:
{
// navList: ["增值服务", "客户数字化"],
myTabIdx
:
0
,
IMG_URL
,
// subscriptionBannerUrl: Object.freeze(subscriptionBannerUrl),
// subscriptionSystemData: Object.freeze(subscriptionSystemData),
activityList
:
[],
resScenceList
:
[],
curTabIdx
:
0
,
curTabId
:
0
,
img_version
:
IMG_VERSION
(),
headerHeight
:
0
,
actNum
:
0
,
// navStyle,
sceneCodeList
:
[],
showPage
:
false
,
systemData
:
[],
productData
:
[],
},
// 产品点击事件
proClick
(
e
)
{
//登录的用户手机号
let
userInfo
=
wx
.
$storage
.
get
(
"userInfo"
);
const
{
info
,
sceneCode
}
=
e
.
detail
let
obj
=
{
phone
:
userInfo
.
phone
,
id
:
info
.
id
,
sceneCode
}
wx
.
$router
.
go
(
'/packagesList/packageDiscovery/pages/productDetail/productDetail'
,
obj
)
},
sysMenuClick
(
e
)
{
const
{
id
}
=
e
.
detail
;
leftMenuIndex
=
id
;
},
// 视频点击事件
videoClick
(
e
)
{
const
{
info
,
sceneCode
}
=
e
.
detail
// 一级菜单ID
const
typeId
=
this
.
data
.
myTabIdx
==
0
?
this
.
data
.
productDataId
:
this
.
data
.
systemDataId
const
obj
=
{
hasPhoneNumber
:
this
.
data
.
hasPhoneNumber
,
id
:
info
.
info
.
id
,
tabsActive
:
info
.
tabsActive
,
sceneCode
,
typeId
}
wx
.
$router
.
go
(
'/packagesList/packageDiscovery/pages/videoDetail/videoDetail'
,
obj
)
},
leftClick
(
e
)
{
const
{
sceneid
}
=
e
.
detail
const
idx
=
this
.
data
.
resScenceList
?.
findIndex
(
item
=>
item
.
sceneid
==
sceneid
)
||
0
this
.
setData
({
curTabId
:
sceneid
,
curTabIdx
:
idx
})
},
senceClick
(
e
)
{
// const { scenIndex } = e.detail
// wx.$router.go('/packageStoreAssistant/packageDiscovery/pages/scenarioDetail/scenarioDetail', {
// actNum: scenIndex
// })
// 如果没有sceneCode,或者没有配置banner跳转 isBannerLink 2-没有配置 1-有配置
if
(
!
e
.
detail
.
sceneCode
||
e
.
detail
.
isBannerLink
!=
1
)
return
const
{
hasPhoneNumber
}
=
this
.
data
// 获取场景
let
systemItem
=
this
.
data
.
systemData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
productItem
=
this
.
data
.
productData
.
find
(
item
=>
item
.
sceneCode
==
e
.
detail
.
sceneCode
)
let
id
=
''
if
(
systemItem
)
{
id
=
systemItem
.
subList
.
length
?
systemItem
.
subList
[
0
].
productList
[
0
]?.
id
:
systemItem
.
productList
[
0
].
id
}
else
{
id
=
productItem
.
subList
.
length
?
productItem
.
subList
[
0
].
productList
[
0
]?.
id
:
productItem
.
productList
[
0
].
id
}
if
(
!
id
)
return
wx
.
$router
.
go
(
'/packagesList/packageDiscovery/pages/productDetail/productDetail'
,
{
hasPhoneNumber
,
id
,
sceneCode
:
e
.
detail
.
sceneCode
})
},
activityClick
(
e
)
{
const
id
=
e
.
detail
wx
.
$router
.
go
(
"/packagesList/packageDiscovery/pages/activityDetail/activityDetail"
,
{
id
}
);
},
// 获取全部活动列表
getActivityRecord
()
{
getActivityRecord
({}).
then
(({
data
,
code
,
message
})
=>
{
if
(
code
==
-
1
)
{
wx
.
showToast
({
title
:
message
,
icon
:
'none'
,
duration
:
2000
})
}
this
.
setData
({
activityList
:
data
})
})
},
changeMyTab
(
e
)
{
const
{
id
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
myTabIdx
:
id
});
},
onShow
()
{
onShow
()
{
if
(
typeof
this
.
getTabBar
===
'function'
)
{
if
(
typeof
this
.
getTabBar
===
'function'
)
{
this
.
getTabBar
((
tabBar
)
=>
{
this
.
getTabBar
((
tabBar
)
=>
{
tabBar
.
setData
({
tabBar
.
setData
({
active
:
1
active
:
1
...
@@ -157,139 +8,4 @@ Page({
...
@@ -157,139 +8,4 @@ Page({
})
})
}
}
},
},
onLoad
(
option
)
{
// this.setData({
// tabIndex: option?.tabIndex || 0
// })
this
.
getActivityRecord
()
const
app
=
getApp
()
app
.
getBaseData
().
then
(
res
=>
{
const
productData
=
res
[
0
].
subList
const
systemData
=
res
[
1
].
subList
// this.getSceneData(productData)
this
.
setData
({
[
`tabList[0].name`
]:
res
[
0
].
name
,
[
`tabList[1]name`
]:
res
[
1
].
name
,
systemData
,
systemDataId
:
res
[
1
].
id
,
productData
,
productDataId
:
res
[
0
].
id
,
})
})
},
emitUserInfo
(
options
)
{
},
getSceneData
(
list
)
{
const
{
merchantId
}
=
wx
.
$storage
.
get
(
"userInfo"
);
wx
.
showLoading
({
title
:
"加载中..."
,
});
ActivityApi
.
getOpenSceneList
({
merchantId
,
})
.
then
((
res
)
=>
{
wx
.
hideLoading
();
let
productData
=
[]
if
(
res
.
code
==
21
)
{
wx
.
$router
.
reLaunch
(
'/packageStoreAssistant/packageAuth/pages/authentication/login/login'
)
return
;
}
if
(
res
?.
data
?.
length
>
0
)
{
// let res ={
// data: [
// {
// sceneCode: "SC001",
// status: 1,
// },
// {
// sceneCode: "SC002",
// status: 1,
// },
// {
// sceneCode: "SC003",
// status: 1,
// },
// {
// sceneCode: "SC004",
// status: 1,
// },
// {
// sceneCode: "SC005",
// status: 1,
// },
// ]
// }
let
openList
=
[]
res
.
data
.
forEach
(
item
=>
{
if
(
item
.
status
==
1
)
{
openList
.
push
(
item
.
sceneCode
)
}
})
productData
=
list
.
filter
(
item
=>
openList
.
includes
(
item
.
sceneCode
))
}
})
.
catch
((
err
)
=>
{
this
.
setData
({
showPage
:
true
,
});
});
},
navbarReady
(
e
)
{
let
{
height
}
=
e
.
detail
;
this
.
setData
({
headerHeight
:
height
,
});
},
onPageScroll
(
scrollTop
)
{
let
opacity
=
scrollTop
/
100
;
let
color
=
`rgba(255,255,255
${
opacity
>
1
?
1
:
opacity
}
)`
;
// this.setData({
// navStyle: scrollTop == 0 ? navStyle : `background-color:${color};`
// })
wx
.
$eventbus
.
emit
(
"evt_page_scroll"
,
{
scrollTop
});
},
changeSwiper
(
e
)
{
this
.
setData
({
actNum
:
e
.
detail
.
currentItemId
,
});
},
// 跳转咨询页面
goConsult
()
{
wx
.
openCustomerServiceChat
({
extInfo
:
{
url
:
"https://work.weixin.qq.com/kfid/kfcf7b721472201345e"
},
corpId
:
"ww047bdc0f1e76cc13"
,
complete
:
(
r
)
=>
{},
});
},
applyActivity
()
{
wx
.
$router
.
go
(
"/packagesList/packageActivity/pages/applyActivity/applyActivity"
);
},
// 显示测算弹窗
showCalculate
()
{
wx
.
$router
.
go
(
"/packagesList/packageDiscovery/pages/measure/measure/measure"
);
},
attached
()
{
this
.
setData
({
isFullSucreen
:
wx
.
$api
.
isFullSucreen
(),
});
},
});
});
apps/mp/store/pages/tab/discovery/discovery.json
View file @
e51b748
{
{
"usingComponents"
:
{
"gl-scenario"
:
"glsx-applet-component/scenario/index"
,
"gl-subscription"
:
"glsx-applet-component/subscription/index"
},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
apps/mp/store/pages/tab/discovery/discovery.scss
View file @
e51b748
/* pages/tab/output/output.wxss */
page
{
page
{
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.topBg
{
.coming-soon
{
position
:
sticky
;
top
:
0
;
width
:
100%
;
background-size
:
100%
100%
;
z-index
:
2
;
}
.pro-head
{
// .pro-head-hidden{
// visibility: hidden;
// }
color
:
#3666fe
;
.van-tabs__line
{
width
:
40rpx
!
important
;
height
:
8rpx
;
background
:
#5969F4
;
border-radius
:
4rpx
;
}
.van-ellipsis
{
overflow
:
visible
;
text-overflow
:
auto
;
}
.van-tab--active
{
.van-ellipsis
{
font-weight
:
600
;
font-size
:
40rpx
;
color
:
#323436
;
overflow
:
visible
;
text-overflow
:
auto
;
}
}
.pro-banner
{
display
:
block
;
margin
:
8rpx
auto
20rpx
;
width
:
710rpx
;
height
:
254rpx
;
border-radius
:
20rpx
;
}
}
.my-tab
{
display
:
flex
;
display
:
flex
;
.my-tab-item
{
min-height
:
100vh
;
font-weight
:
400
;
box-sizing
:
border-box
;
font-size
:
28rpx
;
padding-bottom
:
120rpx
;
color
:
#8A8C90
;
flex-direction
:
column
;
text-align
:
center
;
align-items
:
center
;
height
:
52rpx
;
justify-content
:
center
;
display
:
inline-block
;
line-height
:
52rpx
;
margin-right
:
30rpx
;
&
:last-child
{
margin-right
:
0
;
}
}
.tab-item-active
{
font-weight
:
600
;
font-size
:
34rpx
;
color
:
#323436
;
}
}
.container
{
position
:
relative
;
.bar-text
{
font-weight
:
600
;
font-size
:
34rpx
;
color
:
#2D2D2E
;
}
.header
{
padding-bottom
:
16rpx
;
}
.scene-wrap
{
white-space
:
nowrap
;
height
:
180rpx
;
.scene-img
{
width
:
100%
;
}
}
.bg-img
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
304rpx
;
box-shadow
:
0
16rpx
16rpx
0
rgba
(
230
,
236
,
245
,
0
.6
);
}
}
.novideo-img
{
height
:
480rpx
!
important
;
}
.chat
,
.applyAct
{
position
:
fixed
;
right
:
0
;
top
:
50%
;
transform
:
translateY
(
-50%
);
width
:
128rpx
;
height
:
128rpx
;
border-radius
:
50%
;
z-index
:
3
;
right
:
5rpx
;
}
.applyAct
{
top
:
calc
(
50%
+
200rpx
);
.icon
{
width
:
128rpx
;
height
:
128rpx
;
}
}
/* 测算 */
.calculate
{
position
:
fixed
;
right
:
0
;
top
:
calc
(
50%
+
150rpx
);
transform
:
translateY
(
-50%
);
z-index
:
3
;
}
}
.
icon-calculat
e
{
.
coming-soon-imag
e
{
width
:
15
0rpx
;
width
:
36
0rpx
;
height
:
15
0rpx
;
height
:
36
0rpx
;
}
}
/* 测算弹窗 */
.coming-soon-text
{
.dialog-wrapper
{
margin-top
:
32rpx
;
position
:
fixed
;
height
:
100vh
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
background-color
:
rgba
(
45
,
45
,
51
,
0
.50
);
z-index
:
4
;
.dialog-box
{
position
:
fixed
;
bottom
:
0
;
width
:
100%
;
height
:
844rpx
;
background-color
:
#fff
;
box-shadow
:
0
-8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
border-radius
:
32rpx
32rpx
0
0
;
}
.dialog-header
{
display
:
flex
;
justify-content
:
space-between
;
padding
:
32rpx
48rpx
;
border-bottom
:
1rpx
solid
#eee
;
}
.header-btn
{
display
:
inline-block
;
font-size
:
32rpx
;
font-size
:
32rpx
;
line-height
:
48rpx
;
}
.btn-gray
{
color
:
#6C737A
;
}
.btn-primary
{
background-color
:
#fff
;
border
:
none
;
margin
:
0
;
padding
:
0
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#5850FF
;
color
:
#8a8c90
;
}
.
btn-primary
:
:
after
{
border
:
none
;
}
.dialog-content
{
padding
:
40rpx
24rpx
60rpx
;
}
.dialog-title
{
font-weight
:
600
;
font-size
:
36rpx
;
color
:
#333333
;
letter-spacing
:
0
;
text-align
:
center
;
line-height
:
56rpx
;
margin-bottom
:
24rpx
;
}
.dialog-form
{
width
:
100%
;
height
:
384rpx
;
background-image
:
linear-gradient
(
179deg
,
rgba
(
123
,
112
,
255
,
0
.02
)
15%
,
rgba
(
99
,
92
,
255
,
0
.10
)
100%
);
border-radius
:
8rpx
;
padding
:
32rpx
;
box-sizing
:
border-box
;
}
.form-item
{
display
:
flex
;
align-items
:
center
;
height
:
80rpx
;
margin-bottom
:
24rpx
;
justify-content
:
space-between
;
}
.form-label
{
width
:
256rpx
;
font-size
:
28rpx
;
color
:
#2D2D33
;
}
.form-input
{
width
:
216rpx
;
padding
:
16rpx
20rpx
;
border
:
2rpx
solid
#E6E6E6
;
border-radius
:
4rpx
;
margin-left
:
64rpx
;
margin-right
:
16rpx
;
}
.form-unit
{
font-size
:
28rpx
;
color
:
#6E6E7A
;
}
.dialog-btn
{
width
:
100%
;
padding
:
24rpx
0
;
box-sizing
:
border-box
;
background
:
#5850FF
;
border-radius
:
8rpx
;
font-weight
:
500
;
font-size
:
32rpx
;
color
:
#FFFFFF
;
letter-spacing
:
0
.8rpx
;
text-align
:
center
;
line-height
:
48rpx
;
margin-top
:
40rpx
;
}
}
.emptyData
{
width
:
100%
;
text-align
:
center
;
.tip
{
margin-top
:
16rpx
;
font-size
:
28rpx
;
color
:
#7A8299
;
text-align
:
center
;
}
.nodata_icon
{
width
:
400rpx
;
height
:
400rpx
;
}
}
}
apps/mp/store/pages/tab/discovery/discovery.wxml
View file @
e51b748
<view class="container" style="padding-bottom: calc(150rpx + {{isFullSucreen ? '34' : 0}}px);">
<view class="coming-soon">
<navigation-bar bindnavbarReady="navbarReady">
<image
<view class="my-tab">
class="coming-soon-image"
<view wx:for="{{tabList}}" wx:key="index" bindtap="changeMyTab" data-id="{{index}}" class='my-tab-item {{myTabIdx==index ? "tab-item-active": ""}}'>{{item.name}}</view>
mode="aspectFit"
</view>
src="/images/discovery-coming-soon.jpg"
</navigation-bar>
/>
<view class="topBg" style="height:{{headerHeight}}px; background-image: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/mine_center_bg.png?v=1.0.3')"></view>
<view class="coming-soon-text">敬请期待</view>
<!-- 系统订阅 -->
<block wx:if="{{myTabIdx == 1}}">
<!-- <gl-subscription list="{{subscriptionSystemData}}" bindmenuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind:proClick="proClick" bindcurrentScen="getCurrentScen" data-name="客户数字化" bind:videoClick="videoClick" /> -->
<gl-subscription list="{{systemData}}" novideo-img="novideo-img" bindmenuClick="sysMenuClick" bind:proClick="proClick" data-name="客户数字化" bind:videoClick="videoClick" bindsenceClick="senceClick" />
</block>
<!-- 增值服务 -->
<block wx:if="{{myTabIdx==0}}">
<!-- <gl-scenario discoverIndex="{{curTabIdx}}" currentScenIndex="{{curTabId}}" novideo-img="novideo-img" list="{{resScenceList}}" activityList="{{activityList}}" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" activityList="{{activityList}}" bindleftClick="leftClick"></gl-scenario> -->
<gl-scenario list="{{productData}}" activityList="{{activityList}}" novideo-img="novideo-img" bindactivityClick="activityClick" bindproClick="proClick" bind:videoClick="videoClick" bindsenceClick="senceClick" bindleftClick="leftClick" bindcurrentScen="getCurrentScen"></gl-scenario>
</block>
<!-- 测算按钮 -->
<block wx:if="{{myTabIdx==1 || myTabIdx==0 && resScenceList.length && showPage}}">
<view class="calculate" bindtap="showCalculate">
<glsx-image class="icon-calculate" webp src="store-assistant/calc.png"></glsx-image>
</view>
</block>
<!-- 增值服务无数据时展示 -->
<block wx:if="{{myTabIdx==0 && productData.length<=0 && showPage}}">
<view class="emptyData" style="margin-top: {{headerHeight+32}}px;">
<glsx-image webp src="store-assistant/toLink.png" class="nodata_icon"></glsx-image>
<view class="tip">
<view>您的门店尚未开通业务场景,</view>
<view>请联系在线客服进行咨询,谢谢。</view>
</view>
</view>
</block>
</view>
</view>
<!-- 在线客服 -->
<glsx-image webp mode="aspectFit" wx:if="{{showPage}}" class="chat" src="store-assistant/kefu.png" bindtap="goConsult" />
\ No newline at end of file
\ No newline at end of file
apps/mp/store/pages/tab/discovery/discovery.wxss
0 → 100644
View file @
e51b748
page {
background-color: #fff;
}
.coming-soon {
display: flex;
min-height: 100vh;
box-sizing: border-box;
padding-bottom: 120rpx;
flex-direction: column;
align-items: center;
justify-content: center;
}
.coming-soon-image {
width: 360rpx;
height: 360rpx;
}
.coming-soon-text {
margin-top: 32rpx;
font-size: 32rpx;
font-weight: 500;
color: #8a8c90;
}
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