Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
08366a35
提交
08366a35
authored
2月 07, 2026
作者:
王定
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 调整产销中发布与采购页面中的文字
上级
a24fd139
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
13 行删除
+19
-13
purchaseXuQiu.vue
src/pages/chanxiao/purchaseXuQiu.vue
+8
-5
supplyXuQiu.vue
src/pages/chanxiao/supplyXuQiu.vue
+9
-6
create-nongchang-form.vue
src/pages/nongchang/create-nongchang-form.vue
+1
-1
shouye.vue
src/pages/shouye/shouye.vue
+1
-1
没有找到文件。
src/pages/chanxiao/purchaseXuQiu.vue
浏览文件 @
08366a35
...
...
@@ -12,6 +12,7 @@
const
userStore
=
useUserStore
()
const
globSetting
=
useGlobSetting
()
const
isSave
=
ref
(
false
)
const
pageText
=
ref
(
'采购'
)
onLoad
((
option
)
=>
{
// 获取数据详情
if
(
option
.
id
)
{
...
...
@@ -20,6 +21,7 @@
uni
.
setNavigationBarTitle
({
title
:
'采购需求'
,
})
pageText
.
value
=
'采购'
}
else
{
isSave
.
value
=
true
// 获取当前位置
...
...
@@ -27,6 +29,7 @@
uni
.
setNavigationBarTitle
({
title
:
'发布供应需求'
,
})
pageText
.
value
=
'供应'
}
})
...
...
@@ -270,15 +273,15 @@ return
<view
class=
"mt20"
>
<view
class=
"form-section"
style=
"padding: 0 10rpx"
>
<view
class=
"form-item required flex align-center"
>
<text
class=
"label"
>
采购
类别
</text>
<text
class=
"label"
>
{{
pageText
}}
类别
</text>
<view
class=
"time-input"
:style=
"isSave ? '' : 'pointer-events: none'"
@
click=
"show.classify = true"
>
<text
class=
"select-text"
:class=
"
{ placeholder: !form.classifyText }">
{{
form
.
classifyText
||
'请选择采购类别'
}}
{{
form
.
classifyText
||
`请选择${pageText
}
类别`
}}
<
/text
>
<
/view
>
<
/view
>
<
/view
>
<fui-input
:disabled=
"!isSave"
required
label=
"采购标题"
placeholder=
"请输入需求名称
"
v-model=
"form.title"
labelSize=
"28"
label-width=
"180"
maxlength=
"16"
size=
"28"
/>
<
fui
-
input
:
disabled
=
"!isSave"
required
:
label
=
"`${pageText
}
标题`"
:
placeholder
=
"`请输入${pageText
}
标题`
"
v
-
model
=
"form.title"
labelSize
=
"28"
label
-
width
=
"180"
maxlength
=
"16"
size
=
"28"
/>
<
/view
>
<
view
class
=
"mt20"
>
<!--
价格区间
-->
...
...
@@ -294,7 +297,7 @@ return
<
/view
>
<
/view
>
<
/view
>
<fui-input
:disabled=
"!isSave"
type=
"number"
required
label=
"采购数量"
placeholder=
"请输入采购数量
"
v-model=
"form.count"
labelSize=
"28"
label-width=
"180"
maxlength=
"8"
size=
"28"
/>
<
fui
-
input
:
disabled
=
"!isSave"
type
=
"number"
required
:
label
=
"`${pageText
}
数量`"
:
placeholder
=
"`请输入${pageText
}
数量`
"
v
-
model
=
"form.count"
labelSize
=
"28"
label
-
width
=
"180"
maxlength
=
"8"
size
=
"28"
/>
<
fui
-
input
:
disabled
=
"!isSave"
required
label
=
"单位"
placeholder
=
"请输入单位(如:个、kg、袋等)"
v
-
model
=
"form.unit"
labelSize
=
"28"
label
-
width
=
"180"
maxlength
=
"4"
size
=
"28"
/>
<
view
class
=
"form-item required flex align-center"
style
=
"padding: 20rpx 10rpx"
>
<
text
class
=
"label"
>
区域
<
/text
>
...
...
@@ -312,7 +315,7 @@ return
<
text
class
=
"label"
>
截止时间
<
/text
>
<
view
class
=
"time-input"
:
style
=
"isSave ? '' : 'pointer-events: none'"
@
click
=
"show.time = true"
>
<
text
class
=
"time-text"
:
class
=
"{ placeholder: !form.deadLine
}
"
>
{{
form
.
deadLine
||
'请选择采购截止时间'
}}
{{
form
.
deadLine
||
`请选择${pageText
}
截止时间`
}}
<
/text
>
<
/view
>
<
/view
>
...
...
src/pages/chanxiao/supplyXuQiu.vue
浏览文件 @
08366a35
...
...
@@ -12,6 +12,7 @@
const
userStore
=
useUserStore
()
const
globSetting
=
useGlobSetting
()
const
isSave
=
ref
(
false
)
const
pageText
=
ref
(
'采购'
)
onLoad
((
option
)
=>
{
// 获取数据详情
if
(
option
.
id
)
{
...
...
@@ -20,13 +21,15 @@
uni
.
setNavigationBarTitle
({
title
:
'采购需求'
,
})
pageText
.
value
=
'采购'
}
else
{
isSave
.
value
=
true
// 获取当前位置
getCurrentAddressInfo
()
uni
.
setNavigationBarTitle
({
title
:
'发布
采购
需求'
,
title
:
'发布
供应
需求'
,
})
pageText
.
value
=
'供应'
}
})
...
...
@@ -297,8 +300,8 @@
<view
class=
"mt20"
>
<fui-input
:disabled=
"!isSave"
label=
"供应标题
"
placeholder=
"请输入供应标题
"
:label=
"`$
{pageText}标题`
"
:placeholder="`请输入${pageText}标题`
"
placeholderStyle="font-size: 26rpx"
v-model="form.title"
labelSize="28"
...
...
@@ -366,8 +369,8 @@
<fui-input
:disabled=
"!isSave"
required
label=
"供应数量
"
placeholder=
"请输入供应数量
"
:label=
"`$
{pageText}数量`
"
:placeholder="`请输入${pageText}数量`
"
placeholderStyle="font-size: 26rpx"
v-model="form.supplyQuantity"
labelSize="28"
...
...
@@ -413,7 +416,7 @@
<!-- 供应时间 -->
<view
class=
"form-section"
style=
"padding: 0 30rpx"
>
<view
class=
"form-item flex align-center"
>
<text
class=
"label"
style=
"font-size: 28rpx"
>
供应
时间
</text>
<text
class=
"label"
style=
"font-size: 28rpx"
>
{{
pageText
}}
时间
</text>
<view
class=
"time-range"
>
<view
class=
"time-input"
...
...
src/pages/nongchang/create-nongchang-form.vue
浏览文件 @
08366a35
...
...
@@ -422,7 +422,7 @@ function submit() {
</view>
<view
class=
"submit-btn-box"
>
<fui-button
:text=
"pageData.form.id ? '保存修改' : '添加
基地
'"
bold
radius=
"96rpx"
@
click=
"submit"
/>
<fui-button
:text=
"pageData.form.id ? '保存修改' : '添加'"
bold
radius=
"96rpx"
@
click=
"submit"
/>
</view>
</fui-form>
</view>
...
...
src/pages/shouye/shouye.vue
浏览文件 @
08366a35
...
...
@@ -19,7 +19,7 @@ const model = reactive({
// 湖南省人民政府
location
:
'112.982931,28.116698'
,
})
console
.
log
(
userStore
.
getUserInfo
);
// 位置获取频率控制
const
lastLocationTime
=
ref
(
0
)
const
LOCATION_CACHE_TIME
=
5
*
60
*
1000
// 5分钟缓存时间
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论