Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
csssp-xcx-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
劳广强
csssp-xcx-h5
Commits
67739955
提交
67739955
authored
12月 30, 2022
作者:
劳广强
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复 选择上报类型 第一次弹出举报说明弹窗
上级
bfd2b50a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
51 行增加
和
1 行删除
+51
-1
index.vue
pages/record-type/index.vue
+28
-0
index.vue
pages/record/index.vue
+22
-0
request.js
utils/request.js
+1
-1
没有找到文件。
pages/record-type/index.vue
浏览文件 @
67739955
...
...
@@ -36,6 +36,9 @@ export default {
list
:
[],
content
:
''
,
showReport
:
false
,
isFirstRecordType
:
0
,
isFirstRecordTypeId
:
0
,
};
},
...
...
@@ -51,6 +54,10 @@ export default {
this
.
fetchPhotoTaskTypeDetail
();
},
onShow
(
options
)
{
this
.
isFirstRecordType
=
this
.
getIsFirstRecordType
();
},
methods
:
{
async
fetchPhotoTaskTypeData
()
{
const
{
list
}
=
await
uni
.
$u
.
http
.
get
(
'/api/app/phototasktype/list'
,
{
params
:
{
parent_id
:
this
.
query
.
id
}
});
...
...
@@ -68,10 +75,25 @@ export default {
},
async
onReportConfirm
()
{
if
(
!
this
.
isFirstRecordType
)
{
this
.
showReport
=
false
;
uni
.
$u
.
route
({
url
:
'pages/record-content/index'
,
params
:
{
parent_id
:
this
.
query
.
id
,
detail_id
:
this
.
isFirstRecordTypeId
,
},
});
}
this
.
showReport
=
false
;
},
onListClick
(
item
,
index
)
{
if
(
!
this
.
isFirstRecordType
)
{
this
.
isFirstRecordTypeId
=
item
.
id
;
this
.
showReport
=
true
;
return
;
}
uni
.
$u
.
route
({
url
:
'pages/record-content/index'
,
params
:
{
...
...
@@ -80,6 +102,12 @@ export default {
},
});
},
getIsFirstRecordType
()
{
const
isFirstRecordType
=
uni
.
getStorageSync
(
'isFirstRecordType'
);
if
(
!
isFirstRecordType
)
uni
.
setStorageSync
(
'isFirstRecordType'
,
1
);
return
isFirstRecordType
;
},
},
};
</
script
>
...
...
pages/record/index.vue
浏览文件 @
67739955
...
...
@@ -53,6 +53,9 @@ export default {
content
:
'1.本平台仅接收荣县行政区域内的交通违法网上举报,且违法行为发生后30日内举报有效。
\
n2.举报人不得在驾驶过程中或其他有碍交通安全的情况下进行举报。
\
n3.举报人提供的照片和视频应当客观真实,并通过合法途径、合法方式取得。举报人应当如实描述违法行为发生时间、地点,违法机动车号牌、外观和具体违法行为,并能够与举报视频相互印证。缺乏上述要素的,公安交警部门依法不予以受理
\
n4.对多次举报失实,恶意举报的举报人,经查证属实的,公安机关交通管理部门不再受理其举报。故意捏造违法事实陷害他人、以举报为手段敲诈勒索的,将按相关规定纳入公民社会征信体系。涉嫌违法犯罪的,依法追究法律责任。
\
n5.不属于本平台接受范围的交通违法举报以及对交通执法管理的意见建议,可以联系属地公安交警部。
\
n6.举报人在拍摄交通违法视频前,应当仔细阅读各类违法举报的拍摄要点及要求,拍摄的视频文件大小不超过50M。
\
n7.如使用行车记录仪视频进行举报,切勿进行压缩、转码等操作,应剪辑行车记录仪设备存储卡内原始视频后上传,以确保上传视频清晰。'
,
showReport
:
false
,
isFirstRecord
:
0
,
isFirstRecordId
:
0
,
};
},
...
...
@@ -67,6 +70,10 @@ export default {
// this.fetchPhotoTaskTypeDetail();
},
onShow
(
options
)
{
this
.
isFirstRecord
=
this
.
getIsFirstRecord
();
},
methods
:
{
async
fetchPhotoTaskTypeData
()
{
const
{
list
}
=
await
uni
.
$u
.
http
.
get
(
'/api/app/phototasktype/list'
,
{
params
:
{
parent_id
:
0
}
});
...
...
@@ -84,12 +91,27 @@ export default {
},
async
onReportConfirm
()
{
if
(
!
this
.
isFirstRecord
)
{
this
.
showReport
=
false
;
uni
.
$u
.
route
({
url
:
'pages/record-type/index'
,
params
:
{
id
:
this
.
isFirstRecordId
}
});
}
this
.
showReport
=
false
;
},
onListClick
(
item
,
index
)
{
if
(
!
this
.
isFirstRecord
)
{
this
.
isFirstRecordId
=
item
.
id
;
this
.
showReport
=
true
;
return
;
}
uni
.
$u
.
route
({
url
:
'pages/record-type/index'
,
params
:
{
id
:
item
.
id
}
});
},
getIsFirstRecord
()
{
const
isFirstRecord
=
uni
.
getStorageSync
(
'isFirstRecord'
);
if
(
!
isFirstRecord
)
uni
.
setStorageSync
(
'isFirstRecord'
,
1
);
return
isFirstRecord
;
},
},
};
</
script
>
...
...
utils/request.js
浏览文件 @
67739955
...
...
@@ -10,7 +10,7 @@ module.exports = (vm) => {
(
config
)
=>
{
config
.
data
=
config
.
data
||
{};
config
.
params
.
token
=
'
1234qwer1234
'
;
config
.
params
.
token
=
'
d957a00e9a9834b7fda7578f334cb67e
'
;
return
config
;
},
(
config
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论