Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
8dded24c
提交
8dded24c
authored
12月 29, 2025
作者:
王定
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 优化一些细节
上级
054cd02b
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
263 行增加
和
54 行删除
+263
-54
.env.development
.env.development
+4
-4
public.less
src/common/public.less
+17
-0
detail.vue
src/pages/kexinnongzi/detail.vue
+7
-3
farm-form.vue
src/pages/nongjifuwu/farm-form.vue
+68
-11
nongjifuwu.vue
src/pages/nongjifuwu/nongjifuwu.vue
+165
-35
nongmaojiaoyi.vue
src/pages/nongmaojiaoyi/nongmaojiaoyi.vue
+2
-1
没有找到文件。
.env.development
浏览文件 @
8dded24c
# API 接口地址
#
VITE_GLOB_API_URL=http://111.22.182.169:49600
VITE_GLOB_API_URL=http://36.133.16.81:42111
VITE_GLOB_API_URL=http://111.22.182.169:49600
#
VITE_GLOB_API_URL=http://36.133.16.81:42111
# API 接口地址前缀
#
VITE_GLOB_API_URL_PREFIX=/jeecgboot
VITE_GLOB_API_URL_PREFIX=/jeecg-boot
VITE_GLOB_API_URL_PREFIX=/jeecgboot
#
VITE_GLOB_API_URL_PREFIX=/jeecg-boot
src/common/public.less
浏览文件 @
8dded24c
...
...
@@ -74,3 +74,20 @@
.uni-picker-container .uni-picker-action.uni-picker-action-confirm {
color: #5DB66F !important;
}
.yr-select-area {
padding-top: 30rpx;
position: relative;
.fui-title {
font-size: 30rpx;
font-weight: bold;
text-align: center;
padding-bottom: 24rpx;
}
.fui-icon__close {
position: absolute;
top: 24rpx;
right: 24rpx;
}
}
src/pages/kexinnongzi/detail.vue
浏览文件 @
8dded24c
...
...
@@ -248,7 +248,7 @@
}
</
script
>
<
template
>
<view
class=
"w-full
h-95vh
bg-#E6F5E8 detail_page"
>
<view
class=
"w-full bg-#E6F5E8 detail_page"
>
<view
class=
"module_width top_content"
>
<view
class=
"enterprise_logo_view"
><image
class=
"enterprise_logo"
mode=
"heightFix"
:src=
"pageData.data.enterpriseLogoUrl"
/></view>
<view
class=
"enterprise_business"
>
主营:
{{
pageData
.
data
.
businessScope
}}
</view>
...
...
@@ -357,6 +357,7 @@
align-items
:
flex-start
;
align-content
:
flex-start
;
padding-bottom
:
40
rpx
;
min-height
:
calc
(
100vh
-
88
rpx
);
.module_width{
width
:
690
rpx
;
margin-top
:
24
rpx
;
...
...
@@ -454,7 +455,9 @@
}
}
.footer_content
{
margin-bottom
:
100
rpx
;
}
.module_business
{
display
:
flex
;
flex-wrap
:
wrap
;
...
...
@@ -468,8 +471,9 @@
border-radius
:
16
rpx
;
box-sizing
:
border-box
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
background
:
#F9FAFB
;
.business_img{
width
:
310
rpx
;
...
...
src/pages/nongjifuwu/farm-form.vue
浏览文件 @
8dded24c
...
...
@@ -3,6 +3,7 @@
import
{
onLoad
,
onShow
}
from
'@dcloudio/uni-app'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useGlobSetting
}
from
'/@/hooks/setting'
import
*
as
LinghuoyonggongAPI
from
'@/api/model/linghuoyonggong'
import
*
as
nongjifuwu
from
'@/api/model/nongjifuwu'
import
{
getDictData
,
getText
}
from
'@/utils/dict/area'
...
...
@@ -17,15 +18,16 @@
}
else
{
pageData
.
title
=
'新增农活作业'
}
getProvince
(
43
,
null
);
uni
.
setNavigationBarTitle
({
title
:
pageData
.
title
,
})
})
onShow
(()
=>
{
/*
onShow(() => {
// 数据字典赋值
initDict()
})
})
*/
const
pageData
=
reactive
({
title
:
'农活表单'
,
...
...
@@ -35,9 +37,10 @@
time2
:
false
,
address
:
false
,
},
options
:
{
address
:
[],
},
options
:
[],
optionsVal
:[],
optionsValText
:
""
,
form
:
{
id
:
''
,
name
:
''
,
...
...
@@ -91,10 +94,51 @@
})
const
{
show
,
options
,
form
}
=
toRefs
(
pageData
)
async
function
initDict
()
{
pageData
.
options
.
address
=
await
getDictData
()
}
const
areaPopupRef
=
ref
(
null
);
// 选择地区完成
function
selectCompleteArea
(
e
){
let
text
=
e
.
text
;
let
value
=
e
.
value
;
let
areaText
=
""
,
areaVal
=
""
;
for
(
let
i
=
0
;
i
<
(
text
.
length
-
1
);
i
++
){
areaText
+=
text
[
i
]
+
'/'
;
areaVal
+=
value
[
i
]
+
','
;
}
pageData
.
form
.
scope
=
areaVal
.
slice
(
0
,
-
1
);;
// code
pageData
.
optionsValText
=
areaText
.
slice
(
0
,
-
1
);;
pageData
.
show
.
address
=
false
;
}
// 在选择地区
function
changeArea
(
e
){
let
val
=
e
.
value
;
getProvince
(
val
,
e
);
}
// 获取下一级地区
function
getProvince
(
code
,
e
)
{
LinghuoyonggongAPI
.
queryConditions
({
parentCode
:
code
}).
then
(
res
=>
{
if
(
res
.
length
){
let
dataArr
=
[];
for
(
let
i
=
0
;
i
<
res
.
length
;
i
++
){
let
obj
=
{
text
:
""
,
value
:
""
};
obj
.
text
=
res
[
i
].
name
;
obj
.
value
=
res
[
i
].
code
;
dataArr
.
push
(
obj
);
}
if
(
!
pageData
.
options
.
length
){
pageData
.
options
=
dataArr
;
}
else
{
console
.
log
(
"e.layer= "
+
e
.
layer
);
areaPopupRef
.
value
.
setRequestData
(
dataArr
,
e
.
layer
);
if
(
e
.
layer
>=
2
){
areaPopupRef
.
value
.
end
();
}
}
}
else
{
areaPopupRef
.
value
.
end
();
}
})
}
function
getDetails
(
id
)
{
pageData
.
loading
=
true
...
...
@@ -216,7 +260,7 @@
<text
class=
"label"
>
服务范围
</text>
<view
class=
"time-input"
@
click=
"show.address = true"
>
<text
class=
"select-text"
:class=
"
{ placeholder: !pageData.form.scope }">
{{
getText
(
pageData
.
form
.
scope
,
' / '
)
||
'请选择市/区县/乡镇'
}}
{{
pageData
.
optionsValText
||
'请选择市/区县/乡镇'
}}
</text>
</view>
</view>
...
...
@@ -258,7 +302,20 @@
<fui-date-picker
:show=
"show.time2"
type=
"3"
@
change=
"handleChangeTime2"
@
cancel=
"show.time2 = false"
:minDate=
"getCurrentDate()"
/>
<fui-toast
ref=
"toastRef"
/>
<fui-loading
isFixed
v-if=
"pageData.loading"
backgroundColor=
"rgba(0, 0, 0, 0.4)"
/>
<fui-picker
:show=
"show.address"
:options=
"options.address"
:linkage=
"true"
:layer=
"3"
@
change=
"handleChangeAddress"
@
cancel=
"show.address = false"
/>
<!--
<fui-picker
:show=
"show.address"
:options=
"options.address"
:linkage=
"true"
:layer=
"3"
@
change=
"handleChangeAddress"
@
cancel=
"show.address = false"
/>
-->
<fui-bottom-popup
:show=
"pageData.show.address"
>
<view
class=
"fui-scroll__wrap yr-select-area"
>
<view
class=
"fui-title"
>
请选择
</view>
<fui-cascader
ref=
"areaPopupRef"
:value=
"pageData.optionsVal"
stepLoading
@
change=
"changeArea"
@
complete=
"selectCompleteArea"
:options=
"pageData.options"
></fui-cascader>
<view
class=
"fui-icon__close"
@
tap
.
stop=
"pageData.show.address = false"
>
<fui-icon
name=
"close"
:size=
"48"
></fui-icon>
</view>
</view>
</fui-bottom-popup>
</view>
</view>
</
template
>
...
...
src/pages/nongjifuwu/nongjifuwu.vue
浏览文件 @
8dded24c
差异被折叠。
点击展开。
src/pages/nongmaojiaoyi/nongmaojiaoyi.vue
浏览文件 @
8dded24c
...
...
@@ -127,9 +127,10 @@
function
getGoodsList
()
{
NongzhiAPI
.
goodsList
(
pageData
.
search
).
then
((
res
)
=>
{
console
.
log
(
"pageData.products******************"
)
console
.
log
(
res
)
const
{
records
,
total
}
=
res
pageData
.
products
=
[...
pageData
.
products
,
...
records
]
pageData
.
products
=
[...
pageData
.
products
,
...
records
]
;
pageData
.
total
=
total
})
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论