Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
ca190da0
提交
ca190da0
authored
10月 30, 2025
作者:
guolinhua
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(api): 对接首页和农场数据接口
上级
bc9ae4d8
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
371 行增加
和
147 行删除
+371
-147
pont-template.ts
pont-template.ts
+5
-5
home.ts
src/api/model/home.ts
+36
-0
nongchang.ts
src/api/model/nongchang.ts
+52
-0
nongchang.vue
src/pages/nongchang/nongchang.vue
+59
-14
shouye.vue
src/pages/shouye/shouye.vue
+219
-128
没有找到文件。
pont-template.ts
浏览文件 @
ca190da0
...
...
@@ -4,7 +4,7 @@ import { CodeGenerator, Property } from 'pont-engine'
// 接口 API 前缀
// 通常与项目的 env 配置中的 VITE_GLOB_API_URL_PREFIX 相同
const
API_URL_PREFIX
=
'/
api
'
const
API_URL_PREFIX
=
'/
jeecgboot
'
export
default
class
BasicGenerator
extends
CodeGenerator
{
checkJsonParam
(
inter
:
Interface
,
paramsCode
:
string
):
boolean
{
...
...
@@ -60,8 +60,8 @@ export default class BasicGenerator extends CodeGenerator {
sourceResponseType
===
'File'
?
'void'
:
sourceResponseType
===
'defs.ResultString'
?
'string'
:
sourceResponseType
.
replace
(
/defs.Result
(
.*
)
/
,
'defs.$1'
)
?
'string'
:
sourceResponseType
.
replace
(
/defs.Result
(
.*
)
/
,
'defs.$1'
)
return
`
export
${
paramsCode
}
...
...
@@ -127,8 +127,8 @@ export default class BasicGenerator extends CodeGenerator {
requestParams
.
includes
(
'form'
)
?
`headers: { 'Content-Type': 'multipart/form-data;charset=UTF-8' },`
:
isBody
?
`headers: { 'Content-Type': 'application/json' },`
:
''
?
`headers: { 'Content-Type': 'application/json' },`
:
''
}
...config,
...
...
src/api/model/home.ts
浏览文件 @
ca190da0
...
...
@@ -2,6 +2,9 @@ import { otherHttp } from '/@/utils/http/axios'
enum
Api
{
zoneList
=
'/online/cgform/api/getData/01fd687ecb164aea914e92047e144d66'
,
// 金刚区菜单数据
productMarketList
=
'/online/cgform/api/getData/5b71e11020d44366b2d130e200c7a640'
,
// 热门产地行情
serviceStatsList
=
'/online/cgform/api/getData/491863dde351404da63a1a6e8c699c4c'
,
// 服务展示窗
agricultureClassList
=
'/online/cgform/api/getData/311c300e05694ba69a063d04c8572e9e'
,
// 农技课堂
}
/**
...
...
@@ -14,3 +17,36 @@ export function zoneList(params = {}) {
params
,
})
}
/**
* @param params 请求参数
* @description: 热门产地行情数据
*/
export
function
productMarketList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
productMarketList
,
params
,
})
}
/**
* @param params 请求参数
* @description: 服务展示窗数据
*/
export
function
serviceStatsList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
serviceStatsList
,
params
,
})
}
/**
* @param params 请求参数
* @description: 农技课堂数据
*/
export
function
agricultureClassList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
agricultureClassList
,
params
,
})
}
src/api/model/nongchang.ts
0 → 100644
浏览文件 @
ca190da0
import
{
otherHttp
}
from
'/@/utils/http/axios'
enum
Api
{
zoneList
=
'/online/cgform/api/getData/01fd687ecb164aea914e92047e144d66'
,
// 功能菜单数据
agricultureModelsList
=
'/online/cgform/api/getData/7b2983df6ddf416aba68db8b0ab234ab'
,
// 农业模型数据
baseManagementList
=
'/online/cgform/api/getData/3a7fbb877f304b7d83935caa454859c4'
,
// 基地管理数据
commonToolsList
=
'/online/cgform/api/getData/e4e4e6c901254b60b1e7a005097999ec'
,
// 常用工具数据
}
/**
* @param params 请求参数
* @description: 金刚区菜单数据
*/
export
function
zoneList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
zoneList
,
params
,
})
}
/**
* @param params 请求参数
* @description: 农业模型数据
*/
export
function
agricultureModelsList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
agricultureModelsList
,
params
,
})
}
/**
* @param params 请求参数
* @description: 基地管理数据
*/
export
function
baseManagementList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
baseManagementList
,
params
,
})
}
/**
* @param params 请求参数
* @description: 常用工具数据
*/
export
function
commonToolsList
(
params
=
{})
{
return
otherHttp
.
get
({
url
:
Api
.
commonToolsList
,
params
,
})
}
src/pages/nongchang/nongchang.vue
浏览文件 @
ca190da0
<
script
setup
lang=
"ts"
>
import
{
reactive
}
from
'vue'
import
{
onPullDownRefresh
}
from
'@dcloudio/uni-app'
import
{
onPullDownRefresh
,
onShow
}
from
'@dcloudio/uni-app'
import
*
as
NongChangAPI
from
'@/api/model/nongchang'
onShow
(()
=>
{
// 获取金刚区菜单数据
getZoomList
()
// 获取农业模型数据
getAgricultureModelsList
()
// 获取基地管理数据
getBaseManagementList
()
// 获取常用工具数据
getCommonToolsList
()
})
// 下拉刷新
onPullDownRefresh
(()
=>
{
...
...
@@ -20,11 +33,11 @@
// 功能菜单
menuItems
:
[
{
id
:
1
,
name
:
'监测预警'
,
icon
:
'/static/images/codefun/e683f9d10dc21da45abffbfa4c56fffb.png'
},
{
id
:
2
,
name
:
'农业模型'
,
icon
:
'/static/images/codefun/afdf5cf91bb1832ec12b89ba1f8a4a22.png'
},
{
id
:
3
,
name
:
'基地管理'
,
icon
:
'/static/images/codefun/8ce0f7de048a5d10fd901fa4caee40fd.png'
},
{
id
:
4
,
name
:
'信用中心'
,
icon
:
'/static/images/codefun/bc6853d7f464c445f1d6cc5f3b37103d.png'
},
{
id
:
5
,
name
:
'灵活用工'
,
icon
:
'/static/images/codefun/104cbc5dca418b07e6933d2e953db1d8.png'
},
//
{ id: 1, name: '监测预警', icon: '/static/images/codefun/e683f9d10dc21da45abffbfa4c56fffb.png' },
//
{ id: 2, name: '农业模型', icon: '/static/images/codefun/afdf5cf91bb1832ec12b89ba1f8a4a22.png' },
//
{ id: 3, name: '基地管理', icon: '/static/images/codefun/8ce0f7de048a5d10fd901fa4caee40fd.png' },
//
{ id: 4, name: '信用中心', icon: '/static/images/codefun/bc6853d7f464c445f1d6cc5f3b37103d.png' },
//
{ id: 5, name: '灵活用工', icon: '/static/images/codefun/104cbc5dca418b07e6933d2e953db1d8.png' },
],
// 农场信息
...
...
@@ -195,6 +208,40 @@
},
})
function
getZoomList
()
{
NongChangAPI
.
zoneList
({
pageNo
:
1
,
pageSize
:
5
,
status
:
1
,
type
:
2
,
}).
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
menuItems
=
[]
pageData
.
menuItems
=
records
})
}
function
getAgricultureModelsList
()
{
NongChangAPI
.
agricultureModelsList
().
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
agricultureModels
=
[]
pageData
.
agricultureModels
=
records
})
}
function
getBaseManagementList
()
{
NongChangAPI
.
baseManagementList
().
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
baseManagement
=
[]
pageData
.
baseManagement
=
records
})
}
function
getCommonToolsList
()
{
NongChangAPI
.
commonToolsList
().
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
commonTools
=
[]
pageData
.
commonTools
=
records
})
}
// 菜单点击事件
function
onMenuItemClick
(
item
:
any
)
{
console
.
log
(
'点击菜单项:'
,
item
)
...
...
@@ -266,15 +313,9 @@
v-for=
"item in pageData.menuItems"
:key=
"item.id"
class=
"codefun-flex-col codefun-items-center"
:class=
"
{
'equal-division-item': item.id === 1,
'group_3 equal-division-item': item.id === 2 || item.id === 3,
'group_4 equal-division-item_2': item.id === 4,
'equal-division-item_3 group_5': item.id === 5,
}"
@
click=
"onMenuItemClick(item)"
>
<image
class=
"image_6"
:src=
"item.icon"
/>
<image
class=
"image_6"
:src=
"item.icon
_url
"
/>
<text
class=
"font_3 mt-13"
:class=
"`text_$
{item.id + 2}`">
{{
item
.
name
}}
</text>
</view>
</view>
...
...
@@ -742,7 +783,10 @@
}
}
.section_3
{
padding
:
16
rpx
12
rpx
16
rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
16
rpx
24
rpx
16
rpx
;
background-color
:
#ffffff
;
border-radius
:
16
rpx
;
mix-blend-mode
:
NOTTHROUGH
;
...
...
@@ -878,6 +922,7 @@
margin-top
:
16
rpx
;
text-align
:
center
;
width
:
160
rpx
;
height
:
60
rpx
;
}
.text-wrapper_3
{
margin-top
:
36
rpx
;
...
...
src/pages/shouye/shouye.vue
浏览文件 @
ca190da0
...
...
@@ -37,9 +37,14 @@
})
// 查询金刚区数据
HomeAPI
.
zoneList
().
then
((
res
)
=>
{
console
.
log
(
'HomeAPI.zoneList'
,
res
)
})
getServiceItems
()
getMenuItems
()
// 查询热门产地行情
getProductMarketList
()
// 服务展示窗
getServiceStatsList
()
// 农技课堂
getAgricultureClassList
()
})
// 下拉刷新
...
...
@@ -108,20 +113,10 @@
},
// 功能菜单
menuItems
:
[
{
id
:
1
,
name
:
'农业政策'
,
icon
:
'/static/images/codefun/4d9a15cf0dce9c5b1f274f99eb3e4718.png'
},
{
id
:
2
,
name
:
'灵活用工'
,
icon
:
'/static/images/codefun/24864cd4c6f680714e327688c6ee9977.png'
},
{
id
:
3
,
name
:
'可信农资'
,
icon
:
'/static/images/codefun/0c9b2418502708fc8414e7b2c04dc8e2.png'
},
{
id
:
4
,
name
:
'农机租购'
,
icon
:
'/static/images/codefun/15059d8b705006d875ca9460b696a316.png'
},
],
menuItems
:
[],
// 其他服务
serviceItems
:
[
{
id
:
1
,
name
:
'惠农金融'
,
icon
:
'/static/images/codefun/9f300d453071240f6f56ff6f83e223db.png'
},
{
id
:
2
,
name
:
'助农保险'
,
icon
:
'/static/images/codefun/f422ac97718981ce225a7f595779f2be.png'
},
{
id
:
3
,
name
:
'品牌策划'
,
icon
:
'/static/images/codefun/c0669727e6384083a7493979154183a9.png'
},
{
id
:
4
,
name
:
'农知农技'
,
icon
:
'/static/images/codefun/182a345a5e2d417c944035b240ba2e64.png'
},
],
serviceItems
:
[],
// 新闻资讯
newsItems
:
[
...
...
@@ -132,68 +127,125 @@
// 农产品行情
productMarket
:
{
title
:
'热门产地行情'
,
updateTime
:
'08-30日更新'
,
//
updateTime: '08-30日更新',
products
:
[
{
id
:
1
,
name
:
'晚稻13号'
,
price
:
'¥4120'
,
change
:
'+1.2%'
,
isUp
:
true
},
{
id
:
2
,
name
:
'晚稻9号'
,
price
:
'¥3211'
,
change
:
'+1.2%'
,
isUp
:
true
},
{
id
:
3
,
name
:
'晚稻11号'
,
price
:
'¥2120'
,
change
:
'-1.2%'
,
isUp
:
false
},
//
{ id: 1, name: '晚稻13号', price: '¥4120', change: '+1.2%', isUp: true },
//
{ id: 2, name: '晚稻9号', price: '¥3211', change: '+1.2%', isUp: true },
//
{ id: 3, name: '晚稻11号', price: '¥2120', change: '-1.2%', isUp: false },
],
},
// 服务展示窗
serviceStats
:
[
{
id
:
1
,
name
:
'农场入驻'
,
value
:
'2,360'
,
unit
:
'个'
,
icon
:
'/static/images/codefun/15911306636a361a8dc16ce0283f3830.png'
,
},
{
id
:
2
,
name
:
'空闲农机'
,
value
:
'126'
,
unit
:
'台'
,
icon
:
'/static/images/codefun/1d0cd168eeffbaf37a90aa949c6ad806.png'
,
},
{
id
:
3
,
name
:
'产销对接'
,
value
:
'156'
,
unit
:
'笔'
,
icon
:
'/static/images/codefun/24dd00386672f240ef00394b746c2ff0.png'
,
},
{
id
:
4
,
name
:
'服务农户'
,
value
:
'12,580'
,
unit
:
'人'
,
icon
:
'/static/images/codefun/3fd6a50eaf22431687a6151df0581156.png'
,
},
{
id
:
5
,
name
:
'覆盖面积'
,
value
:
'268'
,
unit
:
'km'
,
icon
:
'/static/images/codefun/87773a17a1b64dc686bf935708262002.png'
,
},
{
id
:
6
,
name
:
'覆盖区县'
,
value
:
'21'
,
unit
:
'个'
,
icon
:
'/static/images/codefun/329a4404092545f2924ad095c531cc66.png'
,
},
//
{
//
id: 1,
//
name: '农场入驻',
//
value: '2,360',
//
unit: '个',
//
icon: '/static/images/codefun/15911306636a361a8dc16ce0283f3830.png',
//
},
//
{
//
id: 2,
//
name: '空闲农机',
//
value: '126',
//
unit: '台',
//
icon: '/static/images/codefun/1d0cd168eeffbaf37a90aa949c6ad806.png',
//
},
//
{
//
id: 3,
//
name: '产销对接',
//
value: '156',
//
unit: '笔',
//
icon: '/static/images/codefun/24dd00386672f240ef00394b746c2ff0.png',
//
},
//
{
//
id: 4,
//
name: '服务农户',
//
value: '12,580',
//
unit: '人',
//
icon: '/static/images/codefun/3fd6a50eaf22431687a6151df0581156.png',
//
},
//
{
//
id: 5,
//
name: '覆盖面积',
//
value: '268',
//
unit: 'km',
//
icon: '/static/images/codefun/87773a17a1b64dc686bf935708262002.png',
//
},
//
{
//
id: 6,
//
name: '覆盖区县',
//
value: '21',
//
unit: '个',
//
icon: '/static/images/codefun/329a4404092545f2924ad095c531cc66.png',
//
},
],
// 农技课堂
agricultureClass
:
{
title
:
'专家实录—鸡饲养技术'
,
expert
:
'张教授'
,
info
:
'23:15|2.3万次播放'
,
// expert: '张教授',
time
:
''
,
videoList
:
[],
},
current
:
0
,
})
function
getServiceItems
()
{
HomeAPI
.
zoneList
({
pageNo
:
1
,
pageSize
:
4
,
status
:
1
,
type
:
1
,
}).
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
serviceItems
=
[]
pageData
.
serviceItems
=
records
})
}
function
getMenuItems
()
{
HomeAPI
.
zoneList
({
pageNo
:
1
,
pageSize
:
4
,
status
:
1
,
type
:
2
,
}).
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
menuItems
=
[]
pageData
.
menuItems
=
records
})
}
function
getProductMarketList
()
{
HomeAPI
.
productMarketList
().
then
((
res
)
=>
{
const
{
records
}
=
res
console
.
log
(
res
)
pageData
.
productMarket
.
products
=
records
pageData
.
productMarket
.
products
.
forEach
((
item
:
any
)
=>
{
switch
(
item
.
tendency
)
{
case
1
:
item
.
isUp
=
true
break
case
2
:
item
.
isUp
=
false
break
}
})
})
}
function
getServiceStatsList
()
{
HomeAPI
.
serviceStatsList
().
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
serviceStats
=
records
})
}
function
getAgricultureClassList
()
{
HomeAPI
.
agricultureClassList
().
then
((
res
)
=>
{
const
{
records
}
=
res
pageData
.
agricultureClass
.
videoList
=
records
pageData
.
agricultureClass
.
title
=
records
[
0
]?.
title
})
}
// 菜单点击事件
function
onMenuItemClick
(
item
:
any
)
{
console
.
log
(
'点击菜单项:'
,
item
)
...
...
@@ -211,6 +263,18 @@
console
.
log
(
'查看全部农技课堂'
)
// 在这里添加具体的查看逻辑
}
// 轮播视频切换的时候触发
function
handleChangeVideo
(
e
:
any
)
{
// console.log('切换视频', e.detail.current)
pageData
.
current
=
e
.
detail
.
current
pageData
.
agricultureClass
.
title
=
pageData
.
agricultureClass
.
videoList
[
pageData
.
current
]?.
title
}
// 获取视频时长
function
handleMetadataLoaded
(
e
:
any
)
{
pageData
.
agricultureClass
.
time
=
e
.
target
.
duration
}
</
script
>
<
template
>
...
...
@@ -322,29 +386,32 @@
<view
class=
"codefun-flex-col codefun-relative section_5"
>
<view
class=
"codefun-flex-row"
>
<view
v-show=
"item.status"
v-for=
"item in pageData.menuItems"
:key=
"item.id"
class=
"codefun-flex-col codefun-items-center group_10"
@
click=
"onMenuItemClick(item)"
>
<image
class=
"image_11"
:src=
"item.icon"
/>
<image
class=
"image_11"
:src=
"item.icon
_url
"
/>
<text
class=
"font_2 mt-11"
>
{{
item
.
name
}}
</text>
</view>
</view>
<view
class=
"codefun-flex-col group_11 codefun-mt-20"
>
<view
class=
"codefun-flex-row group_38"
>
<image
v-show=
"service.status"
v-for=
"service in pageData.serviceItems"
:key=
"service.id"
class=
"image_12"
:class=
"
{
'ml-43': service.id > 1,
}"
:src="service.icon"
:src="service.icon
_url
"
/>
</view>
<view
class=
"codefun-flex-row codefun-justify-between mt-13"
>
<text
v-show=
"service.status"
v-for=
"service in pageData.serviceItems"
:key=
"service.id"
class=
"font_2"
...
...
@@ -377,7 +444,7 @@
</view>
<view
class=
"codefun-flex-row codefun-justify-between codefun-items-baseline group_12"
>
<text
class=
"font_6"
>
{{
pageData
.
productMarket
.
title
}}
</text>
<
text
class=
"font_7 text_22"
>
{{
pageData
.
productMarket
.
updateTime
}}
</text
>
<
!--
<text
class=
"font_7 text_22"
>
{{
pageData
.
productMarket
.
updateTime
}}
</text>
--
>
</view>
<view
class=
"codefun-flex-row equal-division section_8"
>
<view
...
...
@@ -399,8 +466,8 @@
}"
>
<text
class=
"font_8 text_23"
>
{{
product
.
name
}}
</text>
<text
class=
"font_9"
:class=
"`pos$
{index > 0 ? `_${index + 1}` : ''}`">
{{
product
.
price
<text
class=
"font_9
text_23
"
:class=
"`pos$
{index > 0 ? `_${index + 1}` : ''}`">
{{
product
.
current_
price
}}
</text>
</view>
<view
...
...
@@ -426,7 +493,7 @@
text_26: !product.isUp,
}"
>
{{
product
.
change
}}
{{
`${product.percent
}
%`
}}
<
/text
>
<
/view
>
<
view
...
...
@@ -445,20 +512,10 @@
<
view
v
-
for
=
"stat in pageData.serviceStats"
:
key
=
"stat.id"
class=
"codefun-flex-col section_12"
:class=
"
{
section_18: stat.id === 1,
section_1: stat.id === 2,
section_19: stat.id > 2,
}"
class
=
"codefun-flex-col section_12 section_19"
>
<
view
class=
"codefun-flex-row codefun-justify-center codefun-items-center codefun-self-stretch codefun-relative"
:class=
"
{
group_25: stat.id === 1,
group_26: stat.id === 2,
group_27: stat.id > 2,
}"
class
=
"codefun-flex-row codefun-justify-center codefun-items-center codefun-self-stretch codefun-relative group_27"
>
<
image
class
=
"image_5 mr-1"
:
class
=
"`pos_${stat.id
}
`"
:
src
=
"stat.icon"
/>
<
text
...
...
@@ -467,22 +524,9 @@
>
{{
stat
.
name
}}
<
/tex
t
>
<
/view
>
<view
class=
"codefun-flex-row codefun-justify-center codefun-items-baseline mt-11"
:class=
"
{
group_28: stat.id === 1,
group_18: stat.id === 2,
group_30: stat.id > 2,
}"
>
<text
class=
"font_12"
:class=
"`text_$
{stat.id === 1 ? 47 : stat.id === 2 ? 48 : 37}`">
{{
stat
.
value
}}
</text>
<text
class=
"font_7"
:class=
"`text_$
{stat.id === 1 ? 49 : stat.id === 2 ? '' : stat.id > 4 ? 31 : 31}`"
>
{{
stat
.
unit
}}
</text
>
<
view
class
=
"codefun-flex-row codefun-justify-center codefun-items-baseline mt-11 group_30"
>
<
text
class
=
"font_12 text_37"
>
{{
stat
.
num
}}
<
/text
>
<
text
class
=
"font_7 text_31"
>
{{
stat
.
unit
}}
<
/text
>
<
/view
>
<
/view
>
<
/view
>
...
...
@@ -491,31 +535,50 @@
<
text
class
=
"font_7 text_33"
@
click
=
"onViewMoreClass"
>
查看全部
<
/text
>
<
/view
>
<
view
class
=
"codefun-flex-col section_13"
>
<text
class=
"codefun-self-start font text_34"
>
{{
pageData
.
agricultureClass
.
title
}}
</text>
<view
class=
"codefun-flex-row codefun-justify-between codefun-items-center codefun-self-stretch mt-13"
<
fui
-
swiper
-
dot
:
items
=
"pageData.agricultureClass.videoList"
:
current
=
"pageData.current"
:
styles
=
"{
height: 10,
activeWidth: 40,
background: '#dff0e2',
activeBackground: '#5db66f',
bottom: 10,
}
"
>
<view
class=
"codefun-flex-row codefun-items-center"
>
<image
class=
"codefun-shrink-0 image_15"
src=
"/static/images/codefun/893f216142f5ca20cf9f2496d9b793c8.png"
/>
<text
class=
"font_14 text_35 ml-5"
>
{{
pageData
.
agricultureClass
.
expert
}}
</text>
</view>
<text
class=
"font_14 text_36"
>
{{
pageData
.
agricultureClass
.
info
}}
</text>
</view>
<view
class=
"codefun-flex-row codefun-justify-center codefun-self-stretch mt-13"
>
<view
class=
"section_14"
/>
<view
class=
"codefun-flex-col codefun-justify-start codefun-items-center image-wrapper codefun-ml-8"
<
swiper
class
=
"fui-banner__wrap"
circular
:
indicator
-
dots
=
"false"
autoplay
:
interval
=
"4000"
:
duration
=
"150"
@
change
=
"handleChangeVideo"
>
<image
class=
"image_16"
src=
"/static/images/codefun/d2f4116cc0ab402e57bdbd7aa4dead94.png"
/>
</view>
<view
class=
"section_15 codefun-ml-8"
/>
<
swiper
-
item
v
-
for
=
"(video, index) in pageData.agricultureClass.videoList"
:
key
=
"index"
>
<
video
:
src
=
"video.media_video"
:
poster
=
"video.cover_image"
:
controls
=
"false"
style
=
"width: 654rpx; height: 358rpx"
@
loadedmetadata
=
"handleMetadataLoaded"
><
/video
>
<
/swiper-item
>
<
/swiper
>
<
/fui-swiper-dot
>
<
view
class
=
"describe"
>
<
text
class
=
"codefun-self-start font text_34"
>
{{
pageData
.
agricultureClass
.
title
}}
<
/text
>
<
view
class=
"codefun-flex-
col codefun-justify-start codefun-items-center image-wrapper codefun-ml-8
"
class
=
"codefun-flex-
row codefun-justify-between codefun-items-center codefun-self-stretch mt-13
"
>
<image
class=
"image_16"
src=
"/static/images/codefun/d2f4116cc0ab402e57bdbd7aa4dead94.png"
/>
<!--
<
view
class
=
"codefun-flex-row codefun-items-center"
>
<
image
class
=
"codefun-shrink-0 image_15"
src
=
"/static/images/codefun/893f216142f5ca20cf9f2496d9b793c8.png"
/>
<
text
class
=
"font_14 text_35 ml-5"
>
{{
pageData
.
agricultureClass
.
expert
}}
<
/text
>
<
/view> --
>
<
text
class
=
"font_14 text_36"
>
{{
pageData
.
agricultureClass
.
time
}}
<
/text
>
<
/view
>
<
/view
>
<
/view
>
...
...
@@ -881,7 +944,8 @@
margin
-
right
:
28
rpx
;
margin
-
top
:
32.72
rpx
;
.
group_13
{
flex
:
1
1
231.34
rpx
;
flex
:
0
0
33.33
%
;
text
-
align
:
center
;
.
group_41
{
padding
:
10
rpx
0
4.92
rpx
;
width
:
106
rpx
;
...
...
@@ -915,7 +979,7 @@
color
:
#
333333
;
}
.
text_23
{
width
:
1
24
rpx
;
width
:
1
00
%
;
}
.
font_9
{
font
-
size
:
36
rpx
;
...
...
@@ -998,7 +1062,7 @@
.
equal
-
division_2
{
margin
-
top
:
32.9
rpx
;
.
section_12
{
flex
:
1
1
216
rpx
;
flex
:
0
0
calc
(
33.33
%
-
14
rpx
)
;
.
group_25
{
padding
:
5.24
rpx
0
4.8
rpx
;
.
pos_4
{
...
...
@@ -1086,7 +1150,7 @@
}
.
group_16
{
flex
-
wrap
:
wrap
;
gap
:
10
px
;
gap
:
20
r
px
;
justify
-
content
:
center
;
align
-
items
:
center
;
margin
-
right
:
10
px
;
...
...
@@ -1113,17 +1177,44 @@
color
:
#
333333
;
}
.
section_13
{
position
:
relative
;
margin
-
right
:
28
rpx
;
margin
-
top
:
32.86
rpx
;
padding
:
271.06
rpx
36.64
rpx
22
rpx
48
rpx
;
height
:
418
rpx
;
// padding: 271.06rpx 36.64rpx 22rpx 48rpx;
padding
:
20
rpx
;
padding
-
bottom
:
0
;
background
-
color
:
#
ffffff
;
border
-
radius
:
16
rpx
;
mix
-
blend
-
mode
:
NOTTHROUGH
;
background-image
:
url('/static/images/codefun/de7f2f0177d74c2b9c784b3825ea9832.png')
;
background-size
:
94%
;
background-repeat
:
no-repeat
;
background-position-x
:
20
rpx
;
background-position-y
:
20
rpx
;
// background-image: url('/static/images/codefun/de7f2f0177d74c2b9c784b3825ea9832.png');
// background-size: 94%;
// background-repeat: no-repeat;
// background-position-x: 20rpx;
// background-position-y: 20rpx;
.
fui
-
banner__item
{
height
:
358
rpx
;
border
-
radius
:
20
rpx
;
}
.
fui
-
banner__wrap
{
height
:
358
rpx
;
:
deep
(.
uni
-
video
-
cover
)
{
.
uni
-
video
-
cover
-
play
-
button
{
width
:
70
rpx
;
height
:
70
rpx
;
line
-
height
:
40
rpx
;
font
-
size
:
56
rpx
;
}
}
}
.
describe
{
width
:
88
%
;
position
:
absolute
;
bottom
:
52
rpx
;
left
:
40
rpx
;
}
.
text_34
{
line
-
height
:
26.58
rpx
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论