|
@@ -95,25 +95,25 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- collectTypeList: [],
|
|
|
+ whichDay: "",
|
|
|
+ activityTypeId: "",
|
|
|
+ chartPermissionIds: "",
|
|
|
chartPermissionName: "所有行业",
|
|
|
+ isGetJurisdiction: 0,
|
|
|
+ isrefresh: true,
|
|
|
+ isShowJurisdiction: false, //
|
|
|
haveData: true,
|
|
|
+ listChartPermission: [],
|
|
|
+ listChartPermissionInit: [],
|
|
|
+ collectTypeList: [],
|
|
|
activityTimeList: [
|
|
|
{ Id: 1, IsChoose: false, StatusName: "今日活动" },
|
|
|
{ Id: 2, IsChoose: false, StatusName: "明日活动" },
|
|
|
],
|
|
|
- whichDay: "",
|
|
|
- listChartPermission: [],
|
|
|
- listChartPermissionInit: [],
|
|
|
- chartPermissionIds: "",
|
|
|
- isShowJurisdiction: false, //
|
|
|
- isGetJurisdiction: 0,
|
|
|
- isrefresh: true,
|
|
|
- activityTypeId: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
- messageTitle() {
|
|
|
+ messageTitle() { // 计算分享时候的title
|
|
|
let arr = this.whichDay ? this.whichDay.split(",") : [];
|
|
|
let whichData = arr.length == 2 ? "今日活动,明日活动" : arr == "1" ? "今日活动" : arr == "2" ? "明日活动" : "";
|
|
|
let title = whichData ? whichData + "," + this.chartPermissionName : this.chartPermissionName !== "所有行业" ? this.chartPermissionName : "";
|
|
@@ -121,6 +121,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
//获取胶囊位置
|
|
|
initNavBar() {
|
|
|
let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
|
|
@@ -130,6 +131,8 @@ export default {
|
|
|
paddingBottom: "4px",
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
+ // 获取权限、所有的行业
|
|
|
async getUserSearchContent() {
|
|
|
const res = await activity.getUserSearchContent({
|
|
|
IsShowJurisdiction: this.isGetJurisdiction,
|
|
@@ -144,7 +147,8 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- //获取列表数据
|
|
|
+
|
|
|
+ // 获取列表数据
|
|
|
async getActivityLabelTypeList() {
|
|
|
const res = await activity.getActivityLabelTypeList({
|
|
|
ChartPermissionIds: this.chartPermissionIds,
|
|
@@ -162,6 +166,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
// 下拉的选择的关闭事件
|
|
|
closeTheWindow() {
|
|
|
const types = this.chartPermissionIds ? this.chartPermissionIds.split(",").map(Number) : [];
|
|
@@ -178,6 +183,7 @@ export default {
|
|
|
this.chartPermissionName = str.length == 6 ? "所有行业" : str.join(",");
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
// 下拉的选择的选中事件
|
|
|
overallClick(item) {
|
|
|
if (this.isShowJurisdiction) return;
|
|
@@ -187,6 +193,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
// 下拉的选择的重置事件
|
|
|
replacementBtn() {
|
|
|
this.listChartPermission = this.listChartPermissionInit;
|
|
@@ -196,7 +203,8 @@ export default {
|
|
|
this.chartPermissionName = "所有行业";
|
|
|
this.getActivityLabelTypeList();
|
|
|
},
|
|
|
- //下拉选择的确定事件
|
|
|
+
|
|
|
+ // 下拉选择的确定事件
|
|
|
replacementConfirm() {
|
|
|
const arr = [];
|
|
|
const str = [];
|
|
@@ -216,7 +224,8 @@ export default {
|
|
|
this.getActivityLabelTypeList();
|
|
|
this.selectComponent("#industry").toggle(false);
|
|
|
},
|
|
|
- //今日明日的点击事件
|
|
|
+
|
|
|
+ // 今日明日的点击事件
|
|
|
isActivityDate(id) {
|
|
|
this.selectComponent("#industry").toggle(false);
|
|
|
this.activityTimeList.forEach((item) => {
|
|
@@ -227,7 +236,8 @@ export default {
|
|
|
this.whichDay = arr.join(",");
|
|
|
this.getActivityLabelTypeList();
|
|
|
},
|
|
|
- //是否有权限的点击事件
|
|
|
+
|
|
|
+ // 是否有权限的点击事件
|
|
|
async permissioActivity() {
|
|
|
if (!this.$store.state.isAuth && !this.$store.state.isBind) {
|
|
|
this.selectComponent("#industry").toggle(false);
|
|
@@ -247,7 +257,8 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- //点击后有权限的
|
|
|
+
|
|
|
+ // 点击后有权限的
|
|
|
clickPermission() {
|
|
|
if (this.isShowJurisdiction) {
|
|
|
const arr = [];
|
|
@@ -260,6 +271,7 @@ export default {
|
|
|
this.chartPermissionIds = arr.join(",");
|
|
|
}
|
|
|
},
|
|
|
+ // 进入页面 判断是否是分享的
|
|
|
loadShare(option) {
|
|
|
if (option && Object.keys(option).length !== 0) {
|
|
|
this.whichDay = option.whichDay || "";
|
|
@@ -275,6 +287,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ // 去往详情
|
|
|
goDetails(item, key) {
|
|
|
if (item.Resource === 1 || key === 1) {
|
|
|
let type = item.ActivityTypeName || "";
|