Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
77446175
提交
77446175
authored
12月 29, 2025
作者:
王定
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 添加拨打电话功能权限
上级
ab9c9a7a
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
manifest.json
src/manifest.json
+3
-0
pages.json
src/pages.json
+1
-1
yonggongmap.vue
src/pages/linghuoyonggong/components/yonggongmap.vue
+8
-4
components.d.ts
types/components.d.ts
+2
-0
没有找到文件。
src/manifest.json
浏览文件 @
77446175
...
@@ -51,6 +51,9 @@
...
@@ -51,6 +51,9 @@
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CALL_PHONE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
...
...
src/pages.json
浏览文件 @
77446175
...
@@ -454,7 +454,7 @@
...
@@ -454,7 +454,7 @@
{
{
"path"
:
"pages/nongmaojiaoyi/nongmaojiaoyi"
,
"path"
:
"pages/nongmaojiaoyi/nongmaojiaoyi"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"农
贸
交易"
,
"navigationBarTitleText"
:
"农
资
交易"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#5DB66F"
,
"navigationBarBackgroundColor"
:
"#5DB66F"
,
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
...
...
src/pages/linghuoyonggong/components/yonggongmap.vue
浏览文件 @
77446175
...
@@ -143,14 +143,18 @@ function createPopupHTML(employment) {
...
@@ -143,14 +143,18 @@ function createPopupHTML(employment) {
<div>
${
getDistanceText2
(
employment
)}
</div>
<div>
${
getDistanceText2
(
employment
)}
</div>
</div>
</div>
</div>
</div>
<div style="color: #5DB66F;margin-top: 6px;line-height:
20
px;font-size: 12px;display: flex;align-items: center;">
<div style="color: #5DB66F;margin-top: 6px;line-height:
18
px;font-size: 12px;display: flex;align-items: center;">
<image style="width:12px;height:12px;margin-right:7px;" src="./static/images/linghuoyonggong/avatar.png" />
<image style="width:12px;height:12px;margin-right:7px;" src="./static/images/linghuoyonggong/avatar.png" />
<div>待工人数
${
employment
.
workers
}
名</div>
<div>待工人数
${
employment
.
workers
}
名</div>
</div>
</div>
<div style="color: #999999;margin-top: 4px;line-height:
20
px;font-size: 12px;display: flex;align-items: center;">
<div style="color: #999999;margin-top: 4px;line-height:
18
px;font-size: 12px;display: flex;align-items: center;">
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/skill.png" />
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/skill.png" />
<div>技能:
${
employment
.
skills
.
length
?
employment
.
skills
.
join
(
"、"
)
:
'未填写'
}
</div>
<div>技能:
${
employment
.
skills
.
length
?
employment
.
skills
.
join
(
"、"
)
:
'未填写'
}
</div>
</div>
</div>
<div style="color: #999999;margin-top: 4px;line-height: 18px;font-size: 12px;display: flex;align-items: center;">
<image style="width:11px;height:13px;margin-right:7px;" src="./static/images/linghuoyonggong/address.png" />
<div>地址:
${
employment
.
villageFullName
}
</div>
</div>
<a href="#" onclick="window.navigateToDetail('
${
employment
.
id
}
'); return false;" style="margin-top:8px;background: #5DB66F;text-decoration: none;border-radius: 200px;padding: 10px;text-align: center;color: #FFFFFF;font-size: 12px;display: flex;justify-content: center;align-items: center;">电话沟通</a>
<a href="#" onclick="window.navigateToDetail('
${
employment
.
id
}
'); return false;" style="margin-top:8px;background: #5DB66F;text-decoration: none;border-radius: 200px;padding: 10px;text-align: center;color: #FFFFFF;font-size: 12px;display: flex;justify-content: center;align-items: center;">电话沟通</a>
</div>
</div>
`
;
`
;
...
@@ -320,7 +324,7 @@ function onCategoryTabClick(tab: any) {
...
@@ -320,7 +324,7 @@ function onCategoryTabClick(tab: any) {
// 在这里添加具体的分类标签点击逻辑
// 在这里添加具体的分类标签点击逻辑
}
}
function
getEmploymentList
()
{
async
function
getEmploymentList
()
{
// 如果正在加载或没有更多数据,直接返回
// 如果正在加载或没有更多数据,直接返回
if
(
model
.
loading
||
(
model
.
total
>
0
&&
model
.
employmentList
.
length
>=
model
.
total
))
{
if
(
model
.
loading
||
(
model
.
total
>
0
&&
model
.
employmentList
.
length
>=
model
.
total
))
{
return
return
...
@@ -328,7 +332,7 @@ function getEmploymentList() {
...
@@ -328,7 +332,7 @@ function getEmploymentList() {
model
.
loading
=
true
model
.
loading
=
true
try
{
try
{
if
(
model
.
currentEmploymentId
==
2
){
if
(
model
.
currentEmploymentId
==
2
){
LinghuoyonggongAPI
.
getLaborAppList
(
model
.
search
).
then
(
async
(
res
)
=>
{
await
LinghuoyonggongAPI
.
getLaborAppList
(
model
.
search
).
then
(
async
(
res
)
=>
{
const
{
records
,
total
}
=
res
const
{
records
,
total
}
=
res
// 批量处理数据,避免多次DOM操作
// 批量处理数据,避免多次DOM操作
const
processedRecords
=
records
.
map
((
item
)
=>
{
const
processedRecords
=
records
.
map
((
item
)
=>
{
...
...
types/components.d.ts
浏览文件 @
77446175
...
@@ -150,6 +150,8 @@ declare module 'vue' {
...
@@ -150,6 +150,8 @@ declare module 'vue' {
IframeVideo
:
typeof
import
(
'./../src/components/IframeVideo/index.vue'
)[
'default'
]
IframeVideo
:
typeof
import
(
'./../src/components/IframeVideo/index.vue'
)[
'default'
]
Legend
:
typeof
import
(
'./../src/components/Map/Widgets/Legend/src/Legend.vue'
)[
'default'
]
Legend
:
typeof
import
(
'./../src/components/Map/Widgets/Legend/src/Legend.vue'
)[
'default'
]
Mapbox
:
typeof
import
(
'./../src/components/Map/Mapbox/index.vue'
)[
'default'
]
Mapbox
:
typeof
import
(
'./../src/components/Map/Mapbox/index.vue'
)[
'default'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
Src
:
typeof
import
(
'./../src/components/Echarts/src/index.vue'
)[
'default'
]
Src
:
typeof
import
(
'./../src/components/Echarts/src/index.vue'
)[
'default'
]
SuccessfulDialog
:
typeof
import
(
'./../src/components/ConfirmDialog/successfulDialog.vue'
)[
'default'
]
SuccessfulDialog
:
typeof
import
(
'./../src/components/ConfirmDialog/successfulDialog.vue'
)[
'default'
]
Switch
:
typeof
import
(
'./../src/components/Map/Widgets/Switch/src/Switch.vue'
)[
'default'
]
Switch
:
typeof
import
(
'./../src/components/Map/Widgets/Switch/src/Switch.vue'
)[
'default'
]
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论