Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
e1feb94d
提交
e1feb94d
authored
11月 11, 2025
作者:
吴佳伟
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitlab.yiring.com/digital-agri/agri-app
into dev
上级
f2429b35
8cd4b403
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
363 行增加
和
253 行删除
+363
-253
package.json
package.json
+1
-1
index.vue
src/components/IframeVideo/index.vue
+19
-0
manifest.json
src/manifest.json
+128
-119
pages.json
src/pages.json
+11
-14
chanxiao.vue
src/pages/chanxiao/chanxiao.vue
+9
-16
supplyXuQiu.vue
src/pages/chanxiao/supplyXuQiu.vue
+3
-2
fuwu.vue
src/pages/fuwu/fuwu.vue
+3
-4
register.vue
src/pages/login/register.vue
+2
-2
index.vue
src/pages/mine/index.vue
+9
-11
nongchang.vue
src/pages/nongchang/nongchang.vue
+74
-36
shouye.vue
src/pages/shouye/shouye.vue
+100
-45
wode.vue
src/pages/wode/wode.vue
+1
-1
icon.png
src/static/images/home/icon.png
+0
-0
proxy.ts
src/utils/proxy.ts
+1
-1
index.ts
src/utils/upgrade/index.ts
+1
-1
components.d.ts
types/components.d.ts
+1
-0
没有找到文件。
package.json
浏览文件 @
e1feb94d
{
{
"name"
:
"
数字农服
"
,
"name"
:
"
数字农服
"
,
"version"
:
"1.0.1
0
"
,
"version"
:
"1.0.1
4
"
,
"description"
:
"数字农服"
,
"description"
:
"数字农服"
,
"keywords"
:
[
"keywords"
:
[
"app"
,
"app"
,
...
...
src/components/IframeVideo/index.vue
0 → 100644
浏览文件 @
e1feb94d
<
template
>
<iframe
:onload=
"onloadCode"
style=
"width: 100%; height: 100%; border: 1px solid #fff; background: #000"
></iframe>
</
template
>
<
script
>
export
default
{
props
:
{
src
:
{},
},
data
()
{
return
{
onloadCode
:
''
,
}
},
created
()
{
this
.
onloadCode
=
`this.contentWindow.document.body.innerHTML = '<video style="width: 100%;height: 100%" controls="controls" src="
${
this
.
src
}
"></video>';`
},
}
</
script
>
<
style
lang=
"scss"
></
style
>
src/manifest.json
浏览文件 @
e1feb94d
{
{
"name"
:
"数字农服"
,
"name"
:
"数字农服"
,
"appid"
:
"__UNI__FD09823"
,
"appid"
:
"__UNI__FD09823"
,
"description"
:
"数字农服 APP"
,
"description"
:
"数字农服 APP"
,
"versionName"
:
"1.0.10
"
,
"versionName"
:
"1.0.14
"
,
"versionCode"
:
10010
,
"versionCode"
:
10014
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"locale"
:
"zh-Hans"
,
"locale"
:
"zh-Hans"
,
"vueVersion"
:
"3"
,
"vueVersion"
:
"3"
,
/*
5
+App特有相关
*///
配置文件详细说明
/*
5
+App特有相关
*/
//
配置文件详细说明
//
https
:
//uniapp.dcloud.net.cn/collocation/manifest-app.html#full-manifest
//
https
:
//uniapp.dcloud.net.cn/collocation/manifest-app.html#full-manifest
"app-plus"
:
{
"app-plus"
:
{
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueCompiler"
:
"uni-app"
,
"nvueCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueLaunchMode"
:
"fast"
,
"nvueLaunchMode"
:
"fast"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
false
,
"alwaysShowBeforeRender"
:
false
,
"autoclose"
:
false
,
"autoclose"
:
false
,
"waiting"
:
true
"waiting"
:
true
},
},
"screenOrientation"
:
[
"portrait-primary"
,
"landscape-primary"
],
"screenOrientation"
:
[
"compatible"
:
{
"portrait-primary"
,
"landscape-primary"
],
"compatible"
:
{
//
忽略版本提示
//
忽略版本提示
"ignoreVersion"
:
true
"ignoreVersion"
:
true
},
},
/*
模块配置
*/
/*
模块配置
*/
"modules"
:
{
"modules"
:
{
"Geolocation"
:
{},
"Geolocation"
:
{},
"Camera"
:
{},
"Camera"
:
{},
"VideoPlayer"
:
{},
"VideoPlayer"
:
{},
"Barcode"
:
{},
"Barcode"
:
{},
"Bluetooth"
:
{}
"Bluetooth"
:
{}
},
},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
...
@@ -54,120 +57,126 @@
...
@@ -54,120 +57,126 @@
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
],
],
"permissionPhoneState"
:
{
"permissionPhoneState"
:
{
//
app首次启动关闭权限申请
//
app首次启动关闭权限申请
"request"
:
"none"
"request"
:
"none"
},
},
"minSdkVersion"
:
23
,
"minSdkVersion"
:
23
,
"targetSdkVersion"
:
30
,
"targetSdkVersion"
:
30
,
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
]
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
]
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
"dSYMs"
:
false
,
"dSYMs"
:
false
,
"privacyDescription"
:
{
"privacyDescription"
:
{
"NSUserTrackingUsageDescription"
:
"请放心,开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全与提示浏览体验"
,
"NSUserTrackingUsageDescription"
:
"请放心,开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全与提示浏览体验"
,
"NSLocationAlwaysAndWhenInUseUsageDescription"
:
"该应用需要你的地理位置,以便检查你当前位置信息"
,
"NSLocationAlwaysAndWhenInUseUsageDescription"
:
"该应用需要你的地理位置,以便检查你当前位置信息"
,
"NSLocationAlwaysUsageDescription"
:
"该应用需要你的地理位置,以便检查你当前位置信息"
,
"NSLocationAlwaysUsageDescription"
:
"该应用需要你的地理位置,以便检查你当前位置信息"
,
"NSLocationWhenInUseUsageDescription"
:
"该应用需要你的地理位置,以便检查你当前位置信息"
,
"NSLocationWhenInUseUsageDescription"
:
"该应用需要你的地理位置,以便检查你当前位置信息"
,
"NSPhotoLibraryUsageDescription"
:
"请允许访问您的照片图库,以便能够上传应用异常问题的截图"
"NSPhotoLibraryUsageDescription"
:
"请允许访问您的照片图库,以便能够上传应用异常问题的截图"
}
}
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"ad"
:
{},
"ad"
:
{},
"statics"
:
{},
"statics"
:
{},
"geolocation"
:
{
"geolocation"
:
{
"system"
:
{
"system"
:
{
"__platform__"
:
[
"ios"
,
"android"
]
"__platform__"
:
[
"ios"
,
"android"
]
}
}
}
}
},
},
"icons"
:
{
"icons"
:
{
"android"
:
{
"android"
:
{
"hdpi"
:
"unpackage/res/icons/72x72.png"
,
"hdpi"
:
"unpackage/res/icons/72x72.png"
,
"xhdpi"
:
"unpackage/res/icons/96x96.png"
,
"xhdpi"
:
"unpackage/res/icons/96x96.png"
,
"xxhdpi"
:
"unpackage/res/icons/144x144.png"
,
"xxhdpi"
:
"unpackage/res/icons/144x144.png"
,
"xxxhdpi"
:
"unpackage/res/icons/192x192.png"
"xxxhdpi"
:
"unpackage/res/icons/192x192.png"
},
},
"ios"
:
{
"ios"
:
{
"appstore"
:
"unpackage/res/icons/1024x1024.png"
,
"appstore"
:
"unpackage/res/icons/1024x1024.png"
,
"ipad"
:
{
"ipad"
:
{
"app"
:
"unpackage/res/icons/76x76.png"
,
"app"
:
"unpackage/res/icons/76x76.png"
,
"app@2x"
:
"unpackage/res/icons/152x152.png"
,
"app@2x"
:
"unpackage/res/icons/152x152.png"
,
"notification"
:
"unpackage/res/icons/20x20.png"
,
"notification"
:
"unpackage/res/icons/20x20.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"proapp@2x"
:
"unpackage/res/icons/167x167.png"
,
"proapp@2x"
:
"unpackage/res/icons/167x167.png"
,
"settings"
:
"unpackage/res/icons/29x29.png"
,
"settings"
:
"unpackage/res/icons/29x29.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"spotlight"
:
"unpackage/res/icons/40x40.png"
,
"spotlight"
:
"unpackage/res/icons/40x40.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
},
},
"iphone"
:
{
"iphone"
:
{
"app@2x"
:
"unpackage/res/icons/120x120.png"
,
"app@2x"
:
"unpackage/res/icons/120x120.png"
,
"app@3x"
:
"unpackage/res/icons/180x180.png"
,
"app@3x"
:
"unpackage/res/icons/180x180.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@3x"
:
"unpackage/res/icons/60x60.png"
,
"notification@3x"
:
"unpackage/res/icons/60x60.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@3x"
:
"unpackage/res/icons/87x87.png"
,
"settings@3x"
:
"unpackage/res/icons/87x87.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
,
"spotlight@3x"
:
"unpackage/res/icons/120x120.png"
"spotlight@3x"
:
"unpackage/res/icons/120x120.png"
}
}
}
}
},
},
"splashscreen"
:
{
"splashscreen"
:
{
"useOriginalMsgbox"
:
true
"useOriginalMsgbox"
:
true
}
}
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
true
"enable"
:
true
},
},
"nativePlugins"
:
{
"nativePlugins"
:
{
"lemonjk-FileSelect"
:
{
"lemonjk-FileSelect"
:
{
"appid_android"
:
"com.yiring.app.agri"
,
"appid_android"
:
"com.yiring.app.agri"
,
"__plugin_info__"
:
{
"__plugin_info__"
:
{
"name"
:
"FileSelect"
,
"name"
:
"FileSelect"
,
"description"
:
"文件选取插件"
,
"description"
:
"文件选取插件"
,
"platforms"
:
"Android,iOS"
,
"platforms"
:
"Android,iOS"
,
"url"
:
""
,
"url"
:
""
,
"android_package_name"
:
""
,
"android_package_name"
:
""
,
"ios_bundle_id"
:
"com.yiring.app.agri"
,
"ios_bundle_id"
:
"com.yiring.app.agri"
,
"isCloud"
:
false
,
"isCloud"
:
false
,
"bought"
:
-1
,
"bought"
:
-1
,
"pid"
:
""
,
"pid"
:
""
,
"parameters"
:
{
"parameters"
:
{
"appid_android"
:
{
"appid_android"
:
{
"des"
:
"请填写你当前应用的包名,必需填写,否则可能无法使用。(在菜单中->发行->原生App-云打包中可以查看包名信息)"
,
"des"
:
"请填写你当前应用的包名,必需填写,否则可能无法使用。(在菜单中->发行->原生App-云打包中可以查看包名信息)"
,
"key"
:
""
,
"key"
:
""
,
"value"
:
""
"value"
:
""
}
}
}
}
}
}
}
}
}
}
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
true
,
"enable"
:
true
,
"version"
:
"2"
,
"version"
:
"2"
,
"debug"
:
false
"debug"
:
false
},
},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
""
,
"appid"
:
""
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
}
}
}
}
src/pages.json
浏览文件 @
e1feb94d
...
@@ -40,12 +40,12 @@
...
@@ -40,12 +40,12 @@
{
{
"path"
:
"pages/nongchang/nongchang"
,
"path"
:
"pages/nongchang/nongchang"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
农场
"
,
"backgroundColorTop"
:
"#e6f5e8"
,
"backgroundColorTop"
:
"#e6f5e8"
,
"backgroundColorBottom"
:
"#e6f5e8"
,
"backgroundColorBottom"
:
"#e6f5e8"
,
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
fals
e
,
"titleNView"
:
tru
e
,
"bounce"
:
false
"bounce"
:
false
}
}
}
}
...
@@ -65,13 +65,13 @@
...
@@ -65,13 +65,13 @@
{
{
"path"
:
"pages/chanxiao/chanxiao"
,
"path"
:
"pages/chanxiao/chanxiao"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
产销
"
,
"backgroundColorTop"
:
"#e6f5e8"
,
"backgroundColorTop"
:
"#e6f5e8"
,
"backgroundColorBottom"
:
"#e6f5e8"
,
"backgroundColorBottom"
:
"#e6f5e8"
,
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
,
"onReachBottomDistance"
:
50
,
"onReachBottomDistance"
:
50
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
fals
e
,
"titleNView"
:
tru
e
,
"bounce"
:
false
"bounce"
:
false
}
}
}
}
...
@@ -118,12 +118,12 @@
...
@@ -118,12 +118,12 @@
{
{
"path"
:
"pages/fuwu/fuwu"
,
"path"
:
"pages/fuwu/fuwu"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
服务
"
,
"backgroundColorTop"
:
"#e6f5e8"
,
"backgroundColorTop"
:
"#e6f5e8"
,
"backgroundColorBottom"
:
"#e6f5e8"
,
"backgroundColorBottom"
:
"#e6f5e8"
,
"enablePullDownRefresh"
:
true
,
"enablePullDownRefresh"
:
true
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
fals
e
,
"titleNView"
:
tru
e
,
"bounce"
:
false
"bounce"
:
false
}
}
}
}
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"我的"
,
"navigationBarTitleText"
:
"我的"
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
fals
e
,
"titleNView"
:
tru
e
,
"bounce"
:
false
"bounce"
:
false
}
}
}
}
...
@@ -292,13 +292,12 @@
...
@@ -292,13 +292,12 @@
"backgroundColorBottom"
:
"#F2F2F2"
,
"backgroundColorBottom"
:
"#F2F2F2"
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
{
"titleNView"
:
{
"titleSize"
:
"20"
,
"buttons"
:
[
"buttons"
:
[
{
{
"text"
:
"+ 添加基地"
,
"text"
:
"+ 添加基地"
,
"fontSrc"
:
"/static/uni.ttf"
,
"fontSrc"
:
"/static/uni.ttf"
,
"color"
:
"#fff"
,
"color"
:
"#fff"
,
"fontSize"
:
"2
8
rpx"
,
"fontSize"
:
"2
6
rpx"
,
"width"
:
"auto"
"width"
:
"auto"
}
}
]
]
...
@@ -408,13 +407,12 @@
...
@@ -408,13 +407,12 @@
"backgroundColorBottom"
:
"#F2F2F2"
,
"backgroundColorBottom"
:
"#F2F2F2"
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
{
"titleNView"
:
{
"titleSize"
:
"20"
,
"buttons"
:
[
"buttons"
:
[
{
{
"text"
:
"+ 添加设备"
,
"text"
:
"+ 添加设备"
,
"fontSrc"
:
"/static/uni.ttf"
,
"fontSrc"
:
"/static/uni.ttf"
,
"color"
:
"#fff"
,
"color"
:
"#fff"
,
"fontSize"
:
"2
8
rpx"
,
"fontSize"
:
"2
6
rpx"
,
"width"
:
"auto"
"width"
:
"auto"
}
}
]
]
...
@@ -432,13 +430,12 @@
...
@@ -432,13 +430,12 @@
"backgroundColorBottom"
:
"#F2F2F2"
,
"backgroundColorBottom"
:
"#F2F2F2"
,
"app-plus"
:
{
"app-plus"
:
{
"titleNView"
:
{
"titleNView"
:
{
"titleSize"
:
"20"
,
"buttons"
:
[
"buttons"
:
[
{
{
"text"
:
"+ 添加资源"
,
"text"
:
"+ 添加资源"
,
"fontSrc"
:
"/static/uni.ttf"
,
"fontSrc"
:
"/static/uni.ttf"
,
"color"
:
"#fff"
,
"color"
:
"#fff"
,
"fontSize"
:
"2
8
rpx"
,
"fontSize"
:
"2
6
rpx"
,
"width"
:
"auto"
"width"
:
"auto"
}
}
]
]
...
@@ -469,7 +466,7 @@
...
@@ -469,7 +466,7 @@
"app-plus"
:
{
"app-plus"
:
{
"scrollIndicator"
:
"none"
,
"scrollIndicator"
:
"none"
,
"titleNView"
:
{
"titleNView"
:
{
"titleSize"
:
"
20
"
"titleSize"
:
"
18
"
}
}
}
}
},
},
...
...
src/pages/chanxiao/chanxiao.vue
浏览文件 @
e1feb94d
...
@@ -129,10 +129,8 @@
...
@@ -129,10 +129,8 @@
pageData
.
search
.
pageNo
=
1
pageData
.
search
.
pageNo
=
1
pageData
.
purchaseDemands
=
[]
pageData
.
purchaseDemands
=
[]
pageData
.
supplyInfos
=
[]
pageData
.
supplyInfos
=
[]
if
(
pageData
.
currentTransactionTab
===
1
)
if
(
pageData
.
currentTransactionTab
===
1
)
getPurchaseList
()
getPurchaseList
()
if
(
pageData
.
currentTransactionTab
===
2
)
getSupplyList
()
if
(
pageData
.
currentTransactionTab
===
2
)
getSupplyList
()
}
}
// 采购/供应标签点击事件
// 采购/供应标签点击事件
...
@@ -142,10 +140,8 @@ getSupplyList()
...
@@ -142,10 +140,8 @@ getSupplyList()
pageData
.
search
.
pageNo
=
1
pageData
.
search
.
pageNo
=
1
pageData
.
purchaseDemands
=
[]
pageData
.
purchaseDemands
=
[]
pageData
.
supplyInfos
=
[]
pageData
.
supplyInfos
=
[]
if
(
pageData
.
currentTransactionTab
===
1
)
if
(
pageData
.
currentTransactionTab
===
1
)
getPurchaseList
()
getPurchaseList
()
if
(
pageData
.
currentTransactionTab
===
2
)
getSupplyList
()
if
(
pageData
.
currentTransactionTab
===
2
)
getSupplyList
()
}
}
// 新需求提醒点击事件
// 新需求提醒点击事件
...
@@ -190,14 +186,12 @@ getSupplyList()
...
@@ -190,14 +186,12 @@ getSupplyList()
onReachBottom
(()
=>
{
onReachBottom
(()
=>
{
console
.
log
(
'触底了'
)
console
.
log
(
'触底了'
)
if
(
pageData
.
currentTransactionTab
===
1
)
{
if
(
pageData
.
currentTransactionTab
===
1
)
{
if
(
pageData
.
total
<=
pageData
.
purchaseDemands
.
length
)
if
(
pageData
.
total
<=
pageData
.
purchaseDemands
.
length
)
return
return
pageData
.
search
.
pageNo
++
pageData
.
search
.
pageNo
++
getPurchaseList
()
getPurchaseList
()
}
}
if
(
pageData
.
currentTransactionTab
===
2
)
{
if
(
pageData
.
currentTransactionTab
===
2
)
{
if
(
pageData
.
total
<=
pageData
.
supplyInfos
.
length
)
if
(
pageData
.
total
<=
pageData
.
supplyInfos
.
length
)
return
return
pageData
.
search
.
pageNo
++
pageData
.
search
.
pageNo
++
getSupplyList
()
getSupplyList
()
}
}
...
@@ -207,9 +201,8 @@ return
...
@@ -207,9 +201,8 @@ return
<
template
>
<
template
>
<view
class=
"codefun-flex-col page"
>
<view
class=
"codefun-flex-col page"
>
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-mt-22 codefun-flex-col"
>
<view
class=
"codefun-flex-col"
>
<text
class=
"codefun-self-center text"
>
{{
pageData
.
header
.
title
}}
</text>
<view
class=
"codefun-flex-col codefun-self-stretch"
>
<view
class=
"codefun-mt-22 codefun-flex-col codefun-self-stretch"
>
<image
class=
"image_5"
:src=
"pageData.header.bannerImage"
/>
<image
class=
"image_5"
:src=
"pageData.header.bannerImage"
/>
<view
class=
"codefun-mt-14 codefun-flex-row gap-1"
>
<view
class=
"codefun-mt-14 codefun-flex-row gap-1"
>
<view
<view
...
@@ -439,7 +432,7 @@ return
...
@@ -439,7 +432,7 @@ return
overflow
-
x
:
hidden
;
overflow
-
x
:
hidden
;
padding
-
bottom
:
32
rpx
;
padding
-
bottom
:
32
rpx
;
.
section
{
.
section
{
padding
:
28
rpx
28
rpx
8
rpx
;
padding
:
0
28
rpx
8
rpx
;
background
-
image
:
url
(
'/static/images/codefun/7a5dc4ee864fe55da98b41c14ee3b931.png'
);
background
-
image
:
url
(
'/static/images/codefun/7a5dc4ee864fe55da98b41c14ee3b931.png'
);
background
-
size
:
100
%
100
%
;
background
-
size
:
100
%
100
%
;
background
-
repeat
:
no
-
repeat
;
background
-
repeat
:
no
-
repeat
;
...
...
src/pages/chanxiao/supplyXuQiu.vue
浏览文件 @
e1feb94d
...
@@ -142,8 +142,7 @@
...
@@ -142,8 +142,7 @@
}
}
function
getCurrentAddressInfo
()
{
function
getCurrentAddressInfo
()
{
if
(
!
uni
.
getStorageSync
(
'location'
))
if
(
!
uni
.
getStorageSync
(
'location'
))
return
return
const
{
lon
,
lat
}
=
uni
.
getStorageSync
(
'location'
)
const
{
lon
,
lat
}
=
uni
.
getStorageSync
(
'location'
)
UserInfoAPI
.
location
({
UserInfoAPI
.
location
({
...
@@ -722,4 +721,6 @@ return
...
@@ -722,4 +721,6 @@ return
margin-bottom
:
0
;
margin-bottom
:
0
;
padding
:
0
;
padding
:
0
;
}
}
}
}
</
style
>
</
style
>
src/pages/fuwu/fuwu.vue
浏览文件 @
e1feb94d
...
@@ -296,7 +296,7 @@
...
@@ -296,7 +296,7 @@
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-flex-col group_2"
>
<view
class=
"codefun-flex-col group_2"
>
<view
class=
"codefun-flex-col"
>
<view
class=
"codefun-flex-col"
>
<view
<
!--
<
view
class=
"codefun-flex-row codefun-justify-center codefun-items-center codefun-relative group_3"
class=
"codefun-flex-row codefun-justify-center codefun-items-center codefun-relative group_3"
>
>
<text
class=
"font text"
>
{{
pageData
.
header
.
title
}}
</text>
<text
class=
"font text"
>
{{
pageData
.
header
.
title
}}
</text>
...
@@ -304,8 +304,8 @@
...
@@ -304,8 +304,8 @@
class=
"image_6 pos_2"
class=
"image_6 pos_2"
src=
"/static/images/codefun/2d7ca3ba49afaa9f885afb0ba601a403.png"
src=
"/static/images/codefun/2d7ca3ba49afaa9f885afb0ba601a403.png"
/>
/>
</view>
</view>
-->
<view
class=
"codefun-flex-col
mt-15
"
>
<view
class=
"codefun-flex-col"
>
<view
class=
"codefun-flex-row codefun-items-center section_2"
>
<view
class=
"codefun-flex-row codefun-items-center section_2"
>
<text
class=
"codefun-shrink-0 font_2"
>
岗位
</text>
<text
class=
"codefun-shrink-0 font_2"
>
岗位
</text>
<text
class=
"codefun-shrink-0 font_3 codefun-ml-2"
>
{{
<text
class=
"codefun-shrink-0 font_3 codefun-ml-2"
>
{{
...
@@ -747,7 +747,6 @@
...
@@ -747,7 +747,6 @@
}
}
}
}
.group_2
{
.group_2
{
margin-top
:
74
rpx
;
.group_3
{
.group_3
{
padding
:
9.04
rpx
0
5.46
rpx
;
padding
:
9.04
rpx
0
5.46
rpx
;
.text
{
.text
{
...
...
src/pages/login/register.vue
浏览文件 @
e1feb94d
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
],
],
data
:
{
data
:
{
phone
:
''
,
phone
:
''
,
password
:
''
,
password
:
'
123@2025
'
,
code
:
''
,
code
:
''
,
},
},
},
},
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
// 注册参数
// 注册参数
const
params
=
{
const
params
=
{
phone
:
model
.
form
.
data
.
phone
,
phone
:
model
.
form
.
data
.
phone
,
password
:
model
.
form
.
data
.
password
||
'123@2025'
,
password
:
model
.
form
.
data
.
password
,
code
:
model
.
form
.
data
.
code
,
code
:
model
.
form
.
data
.
code
,
}
}
...
...
src/pages/mine/index.vue
浏览文件 @
e1feb94d
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
<
template
>
<
template
>
<view
class=
"main page-bg"
>
<view
class=
"main page-bg"
>
<view
class=
"w-full h-
250 flex flex-row items-center avatar pt-44px
pl-6"
>
<view
class=
"w-full h-
170 flex flex-row items-center avatar
pl-6"
>
<CacheImage
<CacheImage
:src=
"model.avatar"
:src=
"model.avatar"
width=
"150"
width=
"150"
...
@@ -232,14 +232,14 @@
...
@@ -232,14 +232,14 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"px-6 pt-
6
"
>
<view
class=
"px-6 pt-
4
"
>
<fui-list
class=
"rd-3 overflow-hidden shadow"
:top-border=
"false"
>
<fui-list
class=
"rd-3 overflow-hidden shadow"
:top-border=
"false"
>
<fui-list-cell
<fui-list-cell
arrow
arrow
v-for=
"(item, index) in items.slice(0, 2)"
v-for=
"(item, index) in items.slice(0, 2)"
:key=
"index"
:key=
"index"
:bottom-border=
"false"
:bottom-border=
"false"
:class=
"
{ disabled: item.disabled }"
:class=
"
{ disabled: item.disabled
, '!hidden': index === 1
&&
pageData.farmsListTotal === 0
}"
v-show="item.show"
v-show="item.show"
@tap="item.handle(item)"
@tap="item.handle(item)"
>
>
...
@@ -249,13 +249,11 @@
...
@@ -249,13 +249,11 @@
height="42"
height="42"
background="transparent"
background="transparent"
/>
/>
<text
class=
"ml-3.5 text-30 text-#67c17a font-bold"
>
{{
item
.
title
}}
</text>
<text
class=
"ml-3.5 text-30"
>
{{
item
.
title
}}
</text>
<text
v-show=
"index === 0 && pageData.farmsListTotal === 0"
class=
"text-red"
<text
v-show=
"index === 0"
class=
"text-#67c17a text-28 font-bold"
style=
"letter-spacing: 4rpx"
>
>
(
{{
pageData
.
farmsListTotal
||
0
}}
)
</text
(
{{
pageData
.
farmsListTotal
||
0
}}
)
>
</text>
<view
v-show=
"index === 0 && pageData.farmsListTotal === 0"
class=
"text-red flex-1 text-right"
<view
v-show=
"index === 0"
class=
"text-#67c17a flex-1 text-right text-28"
>
去添加
</view>
>
去添加
</view>
</fui-list-cell>
</fui-list-cell>
</fui-list>
</fui-list>
<fui-list
class=
"rd-3 overflow-hidden shadow !mt-20rpx"
:top-border=
"false"
>
<fui-list
class=
"rd-3 overflow-hidden shadow !mt-20rpx"
:top-border=
"false"
>
...
@@ -309,7 +307,7 @@
...
@@ -309,7 +307,7 @@
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
//
#ifdef
H5
//
#ifdef
H5
height
:
calc
(
100vh
-
60px
);
height
:
calc
(
100vh
-
60px
-
44px
);
//
#endif
//
#endif
}
}
...
...
src/pages/nongchang/nongchang.vue
浏览文件 @
e1feb94d
...
@@ -355,34 +355,35 @@
...
@@ -355,34 +355,35 @@
// 轮播视频切换的时候触发
// 轮播视频切换的时候触发
function
handleChangeVideo
(
e
:
any
)
{
function
handleChangeVideo
(
e
:
any
)
{
const
currentIndex
=
e
.
detail
.
current
const
currentIndex
=
e
.
detail
.
current
const
prevIndex
=
pageData
.
current
pageData
.
current
=
currentIndex
pageData
.
current
=
currentIndex
pageData
.
agricultureClass
.
title
=
pageData
.
agricultureClass
.
videoList
[
currentIndex
]?.
title
pageData
.
agricultureClass
.
title
=
pageData
.
agricultureClass
.
videoList
[
currentIndex
]?.
title
// 延迟处理视频切换,避免卡顿
console
.
log
(
'当前索引:'
,
currentIndex
)
setTimeout
(()
=>
{
// 停止所有其他视频的播放(只暂停,不重置位置)
// // 延迟处理视频切换,避免卡顿
pageData
.
agricultureClass
.
videoList
.
forEach
((
_
,
index
)
=>
{
// setTimeout(() => {
if
(
index
!==
currentIndex
)
{
// // 停止所有其他视频的播放(只暂停,不重置位置)
try
{
// pageData.agricultureClass.videoList.forEach((_, index) => {
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
// if (index !== currentIndex) {
videoContext
.
pause
()
// try {
// 不重置到开头,保留播放位置
// const videoContext = uni.createVideoContext(`video${index}`)
}
catch
(
error
)
{
// videoContext.pause()
console
.
log
(
'停止视频失败:'
,
error
)
// // 不重置到开头,保留播放位置
}
// } catch (error) {
}
else
{
// console.log('停止视频失败:', error)
// 当前视频:尝试播放
// }
try
{
// } else {
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
// // 当前视频:尝试播放
// 自动播放当前视频
// try {
videoContext
.
play
()
// const videoContext = uni.createVideoContext(`video${index}`)
}
catch
(
error
)
{
// // 自动播放当前视频
console
.
log
(
'播放视频失败:'
,
error
)
// videoContext.play()
}
// } catch (error) {
}
// console.log('播放视频失败:', error)
})
// }
},
100
)
// }
// })
// }, 100)
}
}
// 处理swiper过渡动画
// 处理swiper过渡动画
...
@@ -414,20 +415,47 @@
...
@@ -414,20 +415,47 @@
function
handleVideoPause
(
currentIndex
)
{
function
handleVideoPause
(
currentIndex
)
{
console
.
log
(
`视频
${
currentIndex
}
暂停`
)
console
.
log
(
`视频
${
currentIndex
}
暂停`
)
}
}
function
playVideo
(
index
)
{
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
videoContext
.
requestFullScreen
()
videoContext
.
play
()
}
function
handleFullscreenChange
(
e
:
any
,
index
)
{
console
.
log
(
`视频
${
index
}
全屏状态改变`
)
if
(
!
e
.
detail
.
fullScreen
)
{
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
videoContext
.
pause
()
}
}
onHide
(()
=>
{
// 停止所有其他视频的播放(只暂停,不重置位置)
pageData
.
agricultureClass
.
videoList
.
forEach
((
_
,
index
)
=>
{
try
{
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
videoContext
.
pause
()
// 不重置到开头,保留播放位置
}
catch
(
error
)
{
console
.
log
(
'停止视频失败:'
,
error
)
}
})
})
</
script
>
</
script
>
<
template
>
<
template
>
<view
class=
"codefun-flex-col page"
>
<view
class=
"codefun-flex-col page"
>
<view
class=
"codefun-flex-col group"
>
<view
class=
"codefun-flex-col group"
>
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-flex-col
mt-52rpx
"
>
<view
class=
"codefun-flex-col"
>
<
text
class=
"codefun-self-center font text"
>
{{
pageData
.
header
.
title
}}
</text
>
<
!--
<text
class=
"codefun-self-center font text"
>
{{
pageData
.
header
.
title
}}
</text>
--
>
<view
class=
"codefun-flex-col codefun-self-stretch
mt-19
"
>
<view
class=
"codefun-flex-col codefun-self-stretch"
>
<!--
<view
class=
"codefun-flex-row codefun-items-center section_2"
>
<!--
<view
class=
"codefun-flex-row codefun-items-center section_2"
>
<image
class=
"image_5"
src=
"/static/images/codefun/b8d30fcc0b08b881a41c8b3e35b7f8ac.png"
/>
<image
class=
"image_5"
src=
"/static/images/codefun/b8d30fcc0b08b881a41c8b3e35b7f8ac.png"
/>
<text
class=
"codefun-ml-8 font_2 text_2"
>
{{
pageData
.
header
.
searchPlaceholder
}}
</text>
<text
class=
"codefun-ml-8 font_2 text_2"
>
{{
pageData
.
header
.
searchPlaceholder
}}
</text>
</view>
-->
</view>
-->
<view
class=
"codefun-
mt-14 codefun-
flex-row equal-division section_3"
>
<view
class=
"codefun-flex-row equal-division section_3"
>
<view
<view
v-for=
"item in pageData.menuItems"
v-for=
"item in pageData.menuItems"
:key=
"item.id"
:key=
"item.id"
...
@@ -717,7 +745,7 @@
...
@@ -717,7 +745,7 @@
<text
class=
"font text_66"
>
农技学习
</text>
<text
class=
"font text_66"
>
农技学习
</text>
<text
class=
"font_6 text_43 text_67"
@
click=
"onViewMoreClass"
>
查看更多
</text>
<text
class=
"font_6 text_43 text_67"
@
click=
"onViewMoreClass"
>
查看更多
</text>
</view>
</view>
<view
class=
"codefun-flex-col section_20"
>
<view
class=
"codefun-flex-col section_20
!relative
"
>
<fui-swiper-dot
<fui-swiper-dot
:items=
"pageData.agricultureClass.videoList"
:items=
"pageData.agricultureClass.videoList"
:current=
"pageData.current"
:current=
"pageData.current"
...
@@ -743,23 +771,32 @@
...
@@ -743,23 +771,32 @@
@
transition=
"handleTransition"
@
transition=
"handleTransition"
>
>
<swiper-item
v-for=
"(video, index) in pageData.agricultureClass.videoList"
:key=
"index"
>
<swiper-item
v-for=
"(video, index) in pageData.agricultureClass.videoList"
:key=
"index"
>
<image
:src=
"video.cover_image"
mode=
"scaleToFill"
class=
"w-654rpx h-358rpx"
@
click=
"playVideo(index)"
/>
<video
<video
:id=
"`video${index}`"
:id=
"`video${index}`"
:src=
"video.media_video"
:src=
"video.media_video"
:poster=
"video.cover_image"
:poster=
"video.cover_image"
:controls=
"false"
:title=
"video.title"
:controls=
"true"
style=
"width: 654rpx; height: 358rpx"
style=
"width: 654rpx; height: 358rpx"
:autoplay=
"
fals
e"
:autoplay=
"
tru
e"
:muted=
"false"
:muted=
"false"
:loop=
"
fals
e"
:loop=
"
tru
e"
:show-play-btn=
"true"
:show-play-btn=
"true"
:show-center-play-btn=
"true"
:show-center-play-btn=
"true"
:enable-progress-gesture=
"
fals
e"
:enable-progress-gesture=
"
tru
e"
:show-progress=
"
fals
e"
:show-progress=
"
tru
e"
object-fit=
"contain"
object-fit=
"contain"
@
loadedmetadata=
"handleMetadataLoaded"
@
loadedmetadata=
"handleMetadataLoaded"
@
play=
"handleVideoPlay(index)"
@
play=
"handleVideoPlay(index)"
@
pause=
"handleVideoPause(index)"
@
pause=
"handleVideoPause(index)"
@
fullscreenchange=
"handleFullscreenChange($event, index)"
class=
"!hidden"
></video>
></video>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
...
@@ -885,7 +922,7 @@
...
@@ -885,7 +922,7 @@
.group
{
.group
{
.section
{
.section
{
padding
:
28
rpx
28
rpx
116
rpx
;
padding
:
0
28
rpx
116
rpx
;
background-image
:
url('/static/images/codefun/7a5dc4ee864fe55da98b41c14ee3b931.png')
;
background-image
:
url('/static/images/codefun/7a5dc4ee864fe55da98b41c14ee3b931.png')
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
...
@@ -1836,6 +1873,7 @@
...
@@ -1836,6 +1873,7 @@
position
:
absolute
;
position
:
absolute
;
bottom
:
52
rpx
;
bottom
:
52
rpx
;
left
:
40
rpx
;
left
:
40
rpx
;
z-index
:
1
;
.text_34
{
.text_34
{
color
:
#ffffff
;
color
:
#ffffff
;
...
...
src/pages/shouye/shouye.vue
浏览文件 @
e1feb94d
...
@@ -361,6 +361,8 @@
...
@@ -361,6 +361,8 @@
function
onMenuItemClick
(
item
:
any
)
{
function
onMenuItemClick
(
item
:
any
)
{
console
.
log
(
'点击菜单项:'
,
item
)
console
.
log
(
'点击菜单项:'
,
item
)
// 在这里添加具体的菜单点击逻辑
// 在这里添加具体的菜单点击逻辑
Message
.
toast
(
item
.
name
)
}
}
// 农产品关注点击事件
// 农产品关注点击事件
...
@@ -378,34 +380,35 @@
...
@@ -378,34 +380,35 @@
// 轮播视频切换的时候触发
// 轮播视频切换的时候触发
function
handleChangeVideo
(
e
:
any
)
{
function
handleChangeVideo
(
e
:
any
)
{
const
currentIndex
=
e
.
detail
.
current
const
currentIndex
=
e
.
detail
.
current
const
prevIndex
=
pageData
.
current
pageData
.
current
=
currentIndex
pageData
.
current
=
currentIndex
pageData
.
agricultureClass
.
title
=
pageData
.
agricultureClass
.
videoList
[
currentIndex
]?.
title
pageData
.
agricultureClass
.
title
=
pageData
.
agricultureClass
.
videoList
[
currentIndex
]?.
title
// 延迟处理视频切换,避免卡顿
console
.
log
(
'当前索引:'
,
currentIndex
)
setTimeout
(()
=>
{
// 停止所有其他视频的播放(只暂停,不重置位置)
// // 延迟处理视频切换,避免卡顿
pageData
.
agricultureClass
.
videoList
.
forEach
((
_
,
index
)
=>
{
// setTimeout(() => {
if
(
index
!==
currentIndex
)
{
// // 停止所有其他视频的播放(只暂停,不重置位置)
try
{
// pageData.agricultureClass.videoList.forEach((_, index) => {
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
// if (index !== currentIndex) {
videoContext
.
pause
()
// try {
// 不重置到开头,保留播放位置
// const videoContext = uni.createVideoContext(`video${index}`)
}
catch
(
error
)
{
// videoContext.pause()
console
.
log
(
'停止视频失败:'
,
error
)
// // 不重置到开头,保留播放位置
}
// } catch (error) {
}
else
{
// console.log('停止视频失败:', error)
// 当前视频:尝试播放
// }
try
{
// } else {
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
// // 当前视频:尝试播放
// 自动播放当前视频
// try {
videoContext
.
play
()
// const videoContext = uni.createVideoContext(`video${index}`)
}
catch
(
error
)
{
// // 自动播放当前视频
console
.
log
(
'播放视频失败:'
,
error
)
// videoContext.play()
}
// } catch (error) {
}
// console.log('播放视频失败:', error)
})
// }
},
100
)
// }
// })
// }, 100)
}
}
// 处理swiper过渡动画
// 处理swiper过渡动画
...
@@ -419,6 +422,14 @@
...
@@ -419,6 +422,14 @@
console
.
log
(
`视频
${
currentIndex
}
暂停`
)
console
.
log
(
`视频
${
currentIndex
}
暂停`
)
}
}
function
handleFullscreenChange
(
e
:
any
,
index
)
{
console
.
log
(
`视频
${
index
}
全屏状态改变`
)
if
(
!
e
.
detail
.
fullScreen
)
{
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
videoContext
.
pause
()
}
}
// 获取视频时长
// 获取视频时长
function
handleMetadataLoaded
(
e
:
any
)
{
function
handleMetadataLoaded
(
e
:
any
)
{
pageData
.
agricultureClass
.
time
=
e
.
target
.
duration
pageData
.
agricultureClass
.
time
=
e
.
target
.
duration
...
@@ -432,17 +443,36 @@
...
@@ -432,17 +443,36 @@
}
}
})
})
}
}
function
playVideo
(
index
)
{
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
videoContext
.
requestFullScreen
()
videoContext
.
play
()
}
onHide
(()
=>
{
// 停止所有其他视频的播放(只暂停,不重置位置)
pageData
.
agricultureClass
.
videoList
.
forEach
((
_
,
index
)
=>
{
try
{
const
videoContext
=
uni
.
createVideoContext
(
`video
${
index
}
`
)
videoContext
.
pause
()
// 不重置到开头,保留播放位置
}
catch
(
error
)
{
console
.
log
(
'停止视频失败:'
,
error
)
}
})
})
</
script
>
</
script
>
<
template
>
<
template
>
<view
class=
"codefun-flex-col page"
>
<view
class=
"codefun-flex-col page"
>
<view
class=
"codefun-flex-col group"
>
<view
class=
"codefun-flex-col group"
>
<view
class=
"codefun-flex-col section"
>
<view
class=
"codefun-flex-row flex-center section justify-between"
>
<text
class=
"codefun-self-start text pb-2"
>
{{
pageData
.
header
.
title
}}
</text>
<view
class=
"flex-center gap-2"
>
<view
class=
"codefun-flex-row codefun-items-center codefun-self-stretch section_2"
v-show=
"false"
>
<image
class=
"w-64 h-64"
src=
"/static/images/home/icon.png"
/>
<image
class=
"image_5"
src=
"/static/images/codefun/b8d30fcc0b08b881a41c8b3e35b7f8ac.png"
/>
<text
class=
"text"
>
{{
pageData
.
header
.
title
}}
</text>
<text
class=
"font text_2 codefun-ml-8"
>
{{
pageData
.
header
.
searchPlaceholder
}}
</text>
</view>
</view>
<text
class=
"text"
style=
"font-family: alimamashuheiti"
>
湖南省
</text>
</view>
</view>
<view
class=
"codefun-flex-col codefun-relative group_3"
>
<view
class=
"codefun-flex-col codefun-relative group_3"
>
<view
class=
"codefun-flex-col"
>
<view
class=
"codefun-flex-col"
>
...
@@ -548,7 +578,18 @@
...
@@ -548,7 +578,18 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"codefun-flex-row section_4"
v-if=
"pageData.weather.warning"
>
<view
class=
"mt-2 mb-3"
v-if=
"pageData.weather.warning"
>
<fui-notice-bar
:content=
"pageData.weather.warning"
scrollable
:padding=
"['0', '32rpx']"
>
<view
class=
"fui-icon__box"
>
<fui-icon
name=
"notice"
:size=
"36"
color=
"#FF2B2B"
/>
</view>
</fui-notice-bar>
</view>
<!--
<view
class=
"codefun-flex-row section_4"
v-if=
"pageData.weather.warning"
>
<image
<image
class=
"codefun-shrink-0 image_10"
class=
"codefun-shrink-0 image_10"
src=
"/static/images/codefun/344155285176a7ac7ccd670a2a1daf19.png"
src=
"/static/images/codefun/344155285176a7ac7ccd670a2a1daf19.png"
...
@@ -559,6 +600,7 @@
...
@@ -559,6 +600,7 @@
<text
class=
"text_12"
>
{{
pageData
.
weather
.
warning
}}
</text>
<text
class=
"text_12"
>
{{
pageData
.
weather
.
warning
}}
</text>
</view>
</view>
</view>
</view>
</view>
-->
</view>
</view>
<view
class=
"codefun-flex-row section_5"
>
<view
class=
"codefun-flex-row section_5"
>
<view
<view
...
@@ -591,7 +633,12 @@
...
@@ -591,7 +633,12 @@
<view
class=
"font_5 text_17"
>
最新预警
</view>
<view
class=
"font_5 text_17"
>
最新预警
</view>
<view
<view
class=
"codefun-flex-row"
class=
"codefun-flex-row"
style=
"flex-flow: column; justify-content: space-around; height: 90rpx; width: calc(100% - 110rpx)"
style=
"
flex-flow: column;
justify-content: space-around;
height: 90rpx;
width: calc(100% - 110rpx);
"
>
>
<view
<view
class=
"font_2 text_18 ml-11"
class=
"font_2 text_18 ml-11"
...
@@ -696,7 +743,7 @@
...
@@ -696,7 +743,7 @@
<
text
class
=
"font_6 text_32"
>
农技课堂
<
/text
>
<
text
class
=
"font_6 text_32"
>
农技课堂
<
/text
>
<!--
<
text
class
=
"font_7 text_33"
@
click
=
"onViewMoreClass"
>
查看全部
<
/text> --
>
<!--
<
text
class
=
"font_7 text_33"
@
click
=
"onViewMoreClass"
>
查看全部
<
/text> --
>
<
/view
>
<
/view
>
<
view
class
=
"codefun-flex-col section_13"
>
<
view
class
=
"codefun-flex-col section_13
!relative
"
>
<
fui
-
swiper
-
dot
<
fui
-
swiper
-
dot
:
items
=
"pageData.agricultureClass.videoList"
:
items
=
"pageData.agricultureClass.videoList"
:
current
=
"pageData.current"
:
current
=
"pageData.current"
...
@@ -722,23 +769,32 @@
...
@@ -722,23 +769,32 @@
@
transition
=
"handleTransition"
@
transition
=
"handleTransition"
>
>
<
swiper
-
item
v
-
for
=
"(video, index) in pageData.agricultureClass.videoList"
:
key
=
"index"
>
<
swiper
-
item
v
-
for
=
"(video, index) in pageData.agricultureClass.videoList"
:
key
=
"index"
>
<
image
:
src
=
"video.cover_image"
mode
=
"scaleToFill"
class
=
"w-654rpx h-358rpx"
@
click
=
"playVideo(index)"
/>
<
video
<
video
:
id
=
"`video${index
}
`"
:
id
=
"`video${index
}
`"
:
src
=
"video.media_video"
:
src
=
"video.media_video"
:
poster
=
"video.cover_image"
:
poster
=
"video.cover_image"
:
controls
=
"false"
:
title
=
"video.title"
:
controls
=
"true"
style
=
"width: 654rpx; height: 358rpx"
style
=
"width: 654rpx; height: 358rpx"
:
autoplay
=
"
fals
e"
:
autoplay
=
"
tru
e"
:
muted
=
"false"
:
muted
=
"false"
:
loop
=
"
fals
e"
:
loop
=
"
tru
e"
:
show
-
play
-
btn
=
"true"
:
show
-
play
-
btn
=
"true"
:
show
-
center
-
play
-
btn
=
"true"
:
show
-
center
-
play
-
btn
=
"true"
:
enable
-
progress
-
gesture
=
"
fals
e"
:
enable
-
progress
-
gesture
=
"
tru
e"
:
show
-
progress
=
"
fals
e"
:
show
-
progress
=
"
tru
e"
object
-
fit
=
"contain"
object
-
fit
=
"contain"
@
loadedmetadata
=
"handleMetadataLoaded"
@
loadedmetadata
=
"handleMetadataLoaded"
@
play
=
"handleVideoPlay(index)"
@
play
=
"handleVideoPlay(index)"
@
pause
=
"handleVideoPause(index)"
@
pause
=
"handleVideoPause(index)"
@
fullscreenchange
=
"handleFullscreenChange($event, index)"
class
=
"!hidden"
><
/video
>
><
/video
>
<
/swiper-item
>
<
/swiper-item
>
<
/swiper
>
<
/swiper
>
...
@@ -812,7 +868,8 @@
...
@@ -812,7 +868,8 @@
.
group
{
.
group
{
.
section
{
.
section
{
padding
:
48
rpx
28
rpx
220
rpx
;
padding
:
10
rpx
28
rpx
220
rpx
;
padding
-
top
:
calc
(
10
rpx
+
var
(
--
status
-
bar
-
height
));
background
-
image
:
url
(
'/static/images/codefun/1086a098c06f7f52e77bd7a646747a13.png'
);
background
-
image
:
url
(
'/static/images/codefun/1086a098c06f7f52e77bd7a646747a13.png'
);
background
-
size
:
100
%
100
%
;
background
-
size
:
100
%
100
%
;
background
-
repeat
:
no
-
repeat
;
background
-
repeat
:
no
-
repeat
;
...
@@ -845,11 +902,8 @@
...
@@ -845,11 +902,8 @@
}
}
.
text
{
.
text
{
margin
-
left
:
5.3
rpx
;
margin
-
top
:
37.62
rpx
;
color
:
#
ffffffe6
;
color
:
#
ffffffe6
;
font
-
size
:
36
rpx
;
font
-
size
:
36
rpx
;
line
-
height
:
33.58
rpx
;
letter
-
spacing
:
4.32
rpx
;
letter
-
spacing
:
4.32
rpx
;
font
-
family
:
meixin
;
font
-
family
:
meixin
;
}
}
...
@@ -869,7 +923,7 @@
...
@@ -869,7 +923,7 @@
}
}
.
group_3
{
.
group_3
{
margin
-
top
:
-
188
rpx
;
margin
-
top
:
-
200
rpx
;
padding
-
left
:
28
rpx
;
padding
-
left
:
28
rpx
;
.
group_4
{
.
group_4
{
...
@@ -1513,10 +1567,10 @@
...
@@ -1513,10 +1567,10 @@
position
:
relative
;
position
:
relative
;
margin
-
right
:
28
rpx
;
margin
-
right
:
28
rpx
;
margin
-
top
:
32.86
rpx
;
margin
-
top
:
32.86
rpx
;
height
:
4
1
8
rpx
;
height
:
4
2
8
rpx
;
// padding: 271.06rpx 36.64rpx 22rpx 48rpx;
// padding: 271.06rpx 36.64rpx 22rpx 48rpx;
padding
:
20
rpx
;
padding
:
20
rpx
;
padding
-
bottom
:
0
;
padding
-
bottom
:
10
rpx
;
background
-
color
:
#
ffffff
;
background
-
color
:
#
ffffff
;
border
-
radius
:
16
rpx
;
border
-
radius
:
16
rpx
;
mix
-
blend
-
mode
:
NOTTHROUGH
;
mix
-
blend
-
mode
:
NOTTHROUGH
;
...
@@ -1549,6 +1603,7 @@
...
@@ -1549,6 +1603,7 @@
position
:
absolute
;
position
:
absolute
;
bottom
:
52
rpx
;
bottom
:
52
rpx
;
left
:
40
rpx
;
left
:
40
rpx
;
z
-
index
:
1
;
}
}
.
text_34
{
.
text_34
{
...
...
src/pages/wode/wode.vue
浏览文件 @
e1feb94d
...
@@ -478,7 +478,7 @@
...
@@ -478,7 +478,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"codefun-flex-col section_9 codefun-mt-12"
>
<view
class=
"codefun-flex-col section_9 codefun-mt-12
!hidden
"
>
<view
<view
class=
"codefun-flex-row codefun-justify-between codefun-items-center"
class=
"codefun-flex-row codefun-justify-between codefun-items-center"
v-for=
"service in pageData.support.services"
v-for=
"service in pageData.support.services"
...
...
src/static/images/home/icon.png
0 → 100644
浏览文件 @
e1feb94d
2.7 KB
src/utils/proxy.ts
浏览文件 @
e1feb94d
...
@@ -11,7 +11,7 @@ const PROXY_LIST: [[string, string]?] = [
...
@@ -11,7 +11,7 @@ const PROXY_LIST: [[string, string]?] = [
// [`http://192.168.0.100:18100`, `https://oss.beta.app.yiring.com`],
// [`http://192.168.0.100:18100`, `https://oss.beta.app.yiring.com`],
// 开发环境(预览)
// 开发环境(预览)
[
`http://192.168.0.156:18100`
,
`http://
36.133.16.81:42112
`
],
[
`http://192.168.0.156:18100`
,
`http://
111.22.182.169:49091
`
],
]
]
/**
/**
...
...
src/utils/upgrade/index.ts
浏览文件 @
e1feb94d
...
@@ -44,7 +44,7 @@ export function closeSplashscreenAndChechUpgrade() {
...
@@ -44,7 +44,7 @@ export function closeSplashscreenAndChechUpgrade() {
reject
(
e
)
reject
(
e
)
}
}
},
},
isAndroid
?
10
00
:
50
,
isAndroid
?
2
00
:
50
,
)
)
})
})
// #endif
// #endif
...
...
types/components.d.ts
浏览文件 @
e1feb94d
...
@@ -144,6 +144,7 @@ declare module 'vue' {
...
@@ -144,6 +144,7 @@ declare module 'vue' {
FuiWhiteSpace
:
typeof
import
(
'./../src/components/FirstUI/fui-white-space/fui-white-space.vue'
)[
'default'
]
FuiWhiteSpace
:
typeof
import
(
'./../src/components/FirstUI/fui-white-space/fui-white-space.vue'
)[
'default'
]
FuiWingBlank
:
typeof
import
(
'./../src/components/FirstUI/fui-wing-blank/fui-wing-blank.vue'
)[
'default'
]
FuiWingBlank
:
typeof
import
(
'./../src/components/FirstUI/fui-wing-blank/fui-wing-blank.vue'
)[
'default'
]
Icon
:
typeof
import
(
'./../src/components/Icon/index.vue'
)[
'default'
]
Icon
:
typeof
import
(
'./../src/components/Icon/index.vue'
)[
'default'
]
IframeVideo
:
typeof
import
(
'./../src/components/IframeVideo/index.vue'
)[
'default'
]
ThumbnailPreview
:
typeof
import
(
'./../src/components/ThumbnailPreview/index.vue'
)[
'default'
]
ThumbnailPreview
:
typeof
import
(
'./../src/components/ThumbnailPreview/index.vue'
)[
'default'
]
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论