diff --git a/packageB/center/center.vue b/packageB/center/center.vue
index 2fbe064..cc6d8aa 100644
--- a/packageB/center/center.vue
+++ b/packageB/center/center.vue
@@ -9,7 +9,7 @@
-
+
{{item.label}}
@@ -17,7 +17,7 @@
-
+
{{item.label}}
@@ -25,7 +25,7 @@
-
+
{{item.label}}
@@ -33,7 +33,7 @@
-
+
{{item.label}}
@@ -51,6 +51,16 @@
+
@@ -61,6 +71,15 @@
},
data() {
return {
+ actionSheetShow: false, // 选择其他还是网站的选项卡
+ actionSheetList: [
+ {
+ name: '网站类型举报',
+ },
+ {
+ name: '其他类型举报',
+ }
+ ],
TypeList1: [
{
id: '1',
@@ -155,7 +174,8 @@
// span: '12',
// style: 'width: 53px;height: 60px;'
// },
- ]
+ ],
+ tempParamForm: {}
}
},
methods: {
@@ -164,6 +184,31 @@
url: `/packageB/report/report?reportTypeValue=${reportTypeValue}&icon=` + encodeURIComponent(icon) + '&label=' + encodeURIComponent(label) + `&reportType=${type}`
})
},
+ goSelectActionSheet(reportTypeValue, icon, label, type) {
+ this.tempParamForm = {
+ reportTypeValue: reportTypeValue,
+ icon: icon,
+ label: label,
+ }
+ this.actionSheetShow = true
+ },
+ // 选择好
+ selectClick(val) {
+ console.log(val)
+ let type = 'web'
+ if(val.name === '网站类型举报') {
+ type = 'web'
+ } else {
+ type = 'other'
+ }
+ wx.navigateTo({
+ url: `/packageB/report/report?reportTypeValue=${this.tempParamForm.reportTypeValue}&icon=` + encodeURIComponent(this.tempParamForm.icon) + '&label=' + encodeURIComponent(this.tempParamForm.label) + `&reportType=${type}`
+ })
+ },
+ // 点取消按钮
+ closeActionSheet() {
+ this.actionSheetShow = false
+ }
}
}