Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 8e11554a
authored
Feb 08, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
系统订阅修改
1 parent
29aa4f55
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
520 additions
and
9 deletions
components/scene/scene.js
package-lock.json
packagesList/pages/accessRecord/accessRecord.js
packagesList/pages/accessRecord/accessRecord.scss
packagesList/pages/accessRecord/accessRecord.wxml
pages/tab/index/constant/systemData.js
components/scene/scene.js
View file @
8e11554
...
@@ -37,7 +37,7 @@ Component({
...
@@ -37,7 +37,7 @@ Component({
{
{
id
:
"2"
,
id
:
"2"
,
name
:
"scene3"
,
name
:
"scene3"
,
title
:
"
膨胀金活动
"
,
title
:
"
客户线上化
"
,
url
:
"car2"
,
url
:
"car2"
,
},
},
{
{
...
...
package-lock.json
View file @
8e11554
...
@@ -11,8 +11,8 @@
...
@@ -11,8 +11,8 @@
},
},
"glsx-applet-component"
:
{
"glsx-applet-component"
:
{
"version"
:
"1.0.44"
,
"version"
:
"1.0.44"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.4
0
.tgz"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.4
4
.tgz"
,
"integrity"
:
"sha512-
ZqThscIToW/UfNWN1XYRa/+9C0P5J0UJYAuF0kiLjfyQx0ToaBEwfsXOO66EXZKxmDf9mOh+GoDEddLxcJ/6/w
=="
"integrity"
:
"sha512-
GEgRy/WYEFjWljh1CAkleW2gRy3/Ss1dk1+z+0O0M29euwR++KS0jwlh3unEIm72c04D3u0FwYiE2vPmgR8qwQ
=="
}
}
}
}
}
}
packagesList/pages/accessRecord/accessRecord.js
View file @
8e11554
...
@@ -5,7 +5,373 @@ Page({
...
@@ -5,7 +5,373 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
tabData
:
[
'访问记录'
,
'活动申请'
]
tabData
:
[
'访问记录'
,
'活动申请'
],
tabIndex
:
0
,
fruitTypeList
:
[{
"fruitTypeId"
:
1
,
"typeName"
:
"苹果"
},
{
"fruitTypeId"
:
2
,
"typeName"
:
"香蕉"
},
{
"fruitTypeId"
:
3
,
"typeName"
:
"橙子"
},
{
"fruitTypeId"
:
4
,
"typeName"
:
"山竹"
},
{
"fruitTypeId"
:
5
,
"typeName"
:
"荔枝"
},
{
"fruitTypeId"
:
6
,
"typeName"
:
"芒果"
},
{
"fruitTypeId"
:
7
,
"typeName"
:
"西瓜"
},
{
"fruitTypeId"
:
8
,
"typeName"
:
"草莓"
},
{
"fruitTypeId"
:
9
,
"typeName"
:
"水蜜桃"
},
{
"fruitTypeId"
:
10
,
"typeName"
:
"李子"
},
{
"fruitTypeId"
:
11
,
"typeName"
:
"榴莲"
},
{
"fruitTypeId"
:
12
,
"typeName"
:
"蓝莓"
},
{
"fruitTypeId"
:
13
,
"typeName"
:
"柚子"
},
{
"fruitTypeId"
:
14
,
"typeName"
:
"木瓜"
},
],
fruitList
:
[{
"name"
:
"果唯伊水果"
,
"list"
:
[{
"pkId"
:
1
,
"price"
:
"5.8"
,
"typeName"
:
"苹果"
},
{
"pkId"
:
2
,
"price"
:
"2.08"
,
"typeName"
:
"香蕉"
},
{
"pkId"
:
3
,
"price"
:
"6.00"
,
"typeName"
:
"橙子"
},
{
"pkId"
:
4
,
"price"
:
"8.40"
,
"typeName"
:
"山竹"
},
{
"pkId"
:
5
,
"price"
:
"15"
,
"typeName"
:
"荔枝"
},
{
"pkId"
:
6
,
"price"
:
"5.8"
,
"typeName"
:
"芒果"
},
{
"pkId"
:
7
,
"price"
:
"2.10"
,
"typeName"
:
"西瓜"
},
{
"pkId"
:
8
,
"price"
:
"6.00"
,
"typeName"
:
"草莓"
},
{
"pkId"
:
9
,
"price"
:
"8.00"
,
"typeName"
:
"水蜜桃"
},
{
"pkId"
:
10
,
"price"
:
"7.80"
,
"typeName"
:
"李子"
},
{
"pkId"
:
11
,
"price"
:
"缺货"
,
"typeName"
:
"榴莲"
},
{
"pkId"
:
12
,
"price"
:
"4.08"
,
"typeName"
:
"蓝莓"
},
{
"pkId"
:
13
,
"price"
:
"2.80"
,
"typeName"
:
"柚子"
},
{
"pkId"
:
14
,
"price"
:
"8.00"
,
"typeName"
:
"木瓜"
},
]
},
{
"name"
:
"恋果"
,
"list"
:
[{
"pkId"
:
1
,
"price"
:
"5.40"
,
"typeName"
:
"苹果"
},
{
"pkId"
:
2
,
"price"
:
"2.20"
,
"typeName"
:
"香蕉"
},
{
"pkId"
:
3
,
"price"
:
"缺货"
,
"typeName"
:
"橙子"
},
{
"pkId"
:
4
,
"price"
:
"9.00"
,
"typeName"
:
"山竹"
},
{
"pkId"
:
5
,
"price"
:
"14.00"
,
"typeName"
:
"荔枝"
},
{
"pkId"
:
6
,
"price"
:
"5.50"
,
"typeName"
:
"芒果"
},
{
"pkId"
:
7
,
"price"
:
"1.89"
,
"typeName"
:
"西瓜"
},
{
"pkId"
:
8
,
"price"
:
"6.35"
,
"typeName"
:
"草莓"
},
{
"pkId"
:
9
,
"price"
:
"8.20"
,
"typeName"
:
"水蜜桃"
},
{
"pkId"
:
10
,
"price"
:
"8.60"
,
"typeName"
:
"李子"
},
{
"pkId"
:
11
,
"price"
:
"24.60"
,
"typeName"
:
"榴莲"
},
{
"pkId"
:
12
,
"price"
:
"4.56"
,
"typeName"
:
"蓝莓"
},
{
"pkId"
:
13
,
"price"
:
"3.60"
,
"typeName"
:
"柚子"
},
{
"pkId"
:
14
,
"price"
:
"7.20"
,
"typeName"
:
"木瓜"
},
],
},
{
"name"
:
"百果园"
,
"list"
:
[{
"pkId"
:
1
,
"price"
:
"6.10"
,
"typeName"
:
"苹果"
},
{
"pkId"
:
2
,
"price"
:
"2.30"
,
"typeName"
:
"香蕉"
},
{
"pkId"
:
3
,
"price"
:
"缺货"
,
"typeName"
:
"橙子"
},
{
"pkId"
:
4
,
"price"
:
"9.00"
,
"typeName"
:
"山竹"
},
{
"pkId"
:
5
,
"price"
:
"14.30"
,
"typeName"
:
"荔枝"
},
{
"pkId"
:
6
,
"price"
:
"5.65"
,
"typeName"
:
"芒果"
},
{
"pkId"
:
7
,
"price"
:
"2.08"
,
"typeName"
:
"西瓜"
},
{
"pkId"
:
8
,
"price"
:
"6.60"
,
"typeName"
:
"草莓"
},
{
"pkId"
:
9
,
"price"
:
"7.80"
,
"typeName"
:
"水蜜桃"
},
{
"pkId"
:
10
,
"price"
:
"8.2"
,
"typeName"
:
"李子"
},
{
"pkId"
:
11
,
"price"
:
"23.8"
,
"typeName"
:
"榴莲"
},
{
"pkId"
:
12
,
"price"
:
"4.36"
,
"typeName"
:
"蓝莓"
},
{
"pkId"
:
13
,
"price"
:
"3.20"
,
"typeName"
:
"柚子"
},
{
"pkId"
:
14
,
"price"
:
"8.00"
,
"typeName"
:
"木瓜"
},
]
},
{
"name"
:
"鲜丰水果"
,
"list"
:
[{
"pkId"
:
1
,
"price"
:
"4.80"
,
"typeName"
:
"苹果"
},
{
"pkId"
:
2
,
"price"
:
"1.98"
,
"typeName"
:
"香蕉"
},
{
"pkId"
:
3
,
"price"
:
"5.20"
,
"typeName"
:
"橙子"
},
{
"pkId"
:
4
,
"price"
:
"8.25"
,
"typeName"
:
"山竹"
},
{
"pkId"
:
5
,
"price"
:
"缺货"
,
"typeName"
:
"荔枝"
},
{
"pkId"
:
6
,
"price"
:
"5.8"
,
"typeName"
:
"芒果"
},
{
"pkId"
:
7
,
"price"
:
"2.28"
,
"typeName"
:
"西瓜"
},
{
"pkId"
:
8
,
"price"
:
"6.40"
,
"typeName"
:
"草莓"
},
{
"pkId"
:
9
,
"price"
:
"8.60"
,
"typeName"
:
"水蜜桃"
},
{
"pkId"
:
10
,
"price"
:
"15"
,
"typeName"
:
"李子"
},
{
"pkId"
:
11
,
"price"
:
"29.6"
,
"typeName"
:
"榴莲"
},
{
"pkId"
:
12
,
"price"
:
"缺货"
,
"typeName"
:
"蓝莓"
},
{
"pkId"
:
13
,
"price"
:
"4.10"
,
"typeName"
:
"柚子"
},
{
"pkId"
:
14
,
"price"
:
"6.80"
,
"typeName"
:
"木瓜"
},
]
}
]
},
// tab切换
selectTab
(
e
)
{
console
.
log
(
e
);
this
.
setData
({
tabIndex
:
e
.
currentTarget
.
dataset
.
index
})
},
},
/**
/**
...
...
packagesList/pages/accessRecord/accessRecord.scss
View file @
8e11554
/* packagesList/pages/accessRecord/accessRecord.wxss */
\ No newline at end of file
\ No newline at end of file
/* packagesList/pages/accessRecord/accessRecord.wxss */
.main-content
{
background
:
#F5F5F7
;
}
.page-top
{
display
:
flex
;
justify-content
:
space-around
;
width
:
100%
;
height
:
88rpx
;
background
:
#FFFFFF
;
margin-bottom
:
12rpx
;
.tab-title
{
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#666666
;
line-height
:
88rpx
;
}
.tab-title-active
{
font-weight
:
500
;
color
:
#5850FF
;
}
.
tab-title-active
:
:
after
{
content
:
""
;
display
:block
;
//块级元素
width
:
48rpx
;
height
:
6rpx
;
background
:
#5850FF
;
border-radius
:
0
.8rpx
;
margin-left
:
50%
;
transform
:
translateX
(
-50%
);
}
}
.table
{
display
:
flex
;
background
:
white
;
border
:
1rpx
solid
rgba
(
218
,
217
,
217
,
1
);
border-bottom
:
0
;
}
.table_left_column
{
min-width
:
150rpx
;
height
:
auto
;
display
:
flex
;
flex-direction
:
column
;
}
.left_col_item
{
width
:
100%
;
height
:
90rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
text-align
:
center
;
border-bottom
:
1rpx
solid
#e5e5e5
;
color
:
#000
;
font-weight
:
bolder
;
}
.table_right_scroll_box
{
display
:
flex
;
white-space
:
nowrap
;
overflow-x
:
scroll
;
border-left
:
1rpx
solid
#e5e5e5
;
font-weight
:
normal
;
/* border: 1px solid red; */
}
.flex_direction_column_item
{
min-width
:
200rpx
;
display
:
inline-block
;
/* border: 1px solid #000; */
}
.item_name
{
min-width
:
200rpx
;
height
:
90rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
28rpx
;
font-weight
:
bolder
;
color
:
rebeccapurple
;
border-right
:
1rpx
solid
#e5e5e5
;
border-bottom
:
1rpx
solid
#e5e5e5
;
}
.item_price
{
color
:
#7c2929
;
letter-spacing
:
1rpx
;
}
\ No newline at end of file
\ No newline at end of file
packagesList/pages/accessRecord/accessRecord.wxml
View file @
8e11554
<!--packagesList/pages/accessRecord/accessRecord.wxml-->
<!--packagesList/pages/accessRecord/accessRecord.wxml-->
<view>
<view class="main-content">
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{item.value == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{item.value}}">
<view class="page-top">
{{item.name}}
<view wx:for="{{tabData}}" wx:key="index" class="tab-title {{index == tabIndex ? 'tab-title-active' : ''}}" bindtap="selectTab" data-index="{{index}}">
{{item}}
</view>
</view>
</view>
<view class='table'>
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='left_col_item'>品种</view>
<view class='left_col_item' wx:for="{{fruitTypeList}}" wx:for-index="index" wx:key="index">{{item.typeName}}</view>
</view>
<!-- 右侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{fruitList}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_price'>
<block wx:if="{{litem.price !='缺货'}}">¥{{litem.price}}/斤</block>
<block wx:else>缺货</block>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/index/constant/systemData.js
View file @
8e11554
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
const
IMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
const
videoBaseUrl
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const
subscriptionIMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/subscription/'
const
subscriptionIMG_URL
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/subscription/'
const
IMG_URL2
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const
IMG_URL2
=
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
const
subscriptionBannerUrl
=
IMG_URL2
+
'banner/banner4.webp'
const
subscriptionBannerUrl
=
IMG_URL2
+
'banner/banner4.webp'
...
@@ -32,6 +33,19 @@ const videoList1 = [
...
@@ -32,6 +33,19 @@ const videoList1 = [
view
:
1320
view
:
1320
}
}
]
]
// 膨胀金
const
sceneImgs4
=
[
`
${
IMG_URL
}
index/productImgs/product70.webp`
,
`
${
IMG_URL
}
index/productImgs/product71.webp`
,
`
${
IMG_URL
}
index/productImgs/product72.webp`
,
`
${
IMG_URL
}
index/productImgs/product73.webp`
,
`
${
IMG_URL
}
index/productImgs/product74.webp`
,
`
${
IMG_URL
}
index/productImgs/product75.webp`
]
const
productImgs4
=
[
`
${
IMG_URL
}
index/productImgs/product70.webp`
,
`
${
IMG_URL
}
index/productImgs/product71.webp`
,
`
${
IMG_URL
}
index/productImgs/product72.webp`
,
`
${
IMG_URL
}
index/productImgs/product73.webp`
,
`
${
IMG_URL
}
index/productImgs/product74.webp`
,
`
${
IMG_URL
}
index/productImgs/product75.webp`
]
const
videoList4
=
[
{
videoUrl
:
`
${
videoBaseUrl
}
video/expansive.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/expansive_activity.png`
,
name
:
'数字化营销增值服务-膨胀金活动'
,
manufacturer
:
'嘀加智慧'
,
view
:
3298
}
]
const
subscriptionSystemData
=
[
const
subscriptionSystemData
=
[
{
{
name
:
'客户沉淀'
,
name
:
'客户沉淀'
,
...
@@ -155,8 +169,27 @@ const subscriptionSystemData = [
...
@@ -155,8 +169,27 @@ const subscriptionSystemData = [
// posterList: posterList0
// posterList: posterList0
},
},
{
{
name
:
'膨胀金活动'
,
//场景详情图片
sceneImgs
:
sceneImgs4
,
// 产品详情图片
productImgs
:
productImgs4
,
productList
:
[
{
id
:
0
,
currentIndex
:
0
,
proName
:
'膨胀金'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-0.png`
,
tabList
:
[
'项目介绍'
,
'活动方案'
,
'销售场景'
,
'合作案例'
,
'合作说明'
,
'FAQ'
],
sceneImgs
:
sceneImgs4
}
],
videoList
:
videoList4
// posterList: posterList0
},
{
name
:
'数字化转型案例'
,
name
:
'数字化转型案例'
,
videoList
:
videoList0
.
concat
(
videoList1
)
videoList
:
videoList0
.
concat
(
videoList1
)
.
concat
(
videoList4
)
}
}
]
]
...
...
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