jufubao-base 1.0.347 → 1.0.348-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -146,6 +146,21 @@ export default {
|
|
|
146
146
|
}
|
|
147
147
|
this.companyList = res.list;
|
|
148
148
|
});
|
|
149
|
+
|
|
150
|
+
//判断应用是否开启了强制选择企业功能
|
|
151
|
+
let isCustomer = false;
|
|
152
|
+
if(this.brandInfo && this.brandInfo['headers'] && this.brandInfo['headers']['X-T-Fts']){
|
|
153
|
+
isCustomer = this.brandInfo['headers']['X-T-Fts'].split(',').includes('customer');
|
|
154
|
+
}
|
|
155
|
+
if(isCustomer) {
|
|
156
|
+
this.$xdAlert({
|
|
157
|
+
title:'配置错误',
|
|
158
|
+
content: '请检查是否开启了应用高级功能配置下的开启强制选择企业,要按需配置应用哦。',
|
|
159
|
+
time: 24*60*60*1000,
|
|
160
|
+
contentColor: '#333',
|
|
161
|
+
background: '#fff',
|
|
162
|
+
});
|
|
163
|
+
}
|
|
149
164
|
},
|
|
150
165
|
/**
|
|
151
166
|
* @description 监听事件变化
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
</view>
|
|
17
17
|
<!-- #endif -->
|
|
18
18
|
<view class="jfb-base-notice-dialog__body">
|
|
19
|
-
<view
|
|
19
|
+
<view
|
|
20
|
+
v-if="isShow && contentList && contentList.length"
|
|
21
|
+
class="jfb-base-notice-dialog__body_dialog"
|
|
22
|
+
>
|
|
20
23
|
<view
|
|
21
24
|
class="jfb-base-notice-dialog__body_dialog_mask"
|
|
22
25
|
@click.stop="handleMaskHide"
|
|
@@ -64,13 +67,19 @@ import componentsMixins from "@/mixins/componentsMixins";
|
|
|
64
67
|
import extsMixins from "@/mixins/extsMixins";
|
|
65
68
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
66
69
|
import storage from "@/common/storage";
|
|
70
|
+
import posterMixins from "@/mixins/posterMixins";
|
|
67
71
|
const Color = require("color");
|
|
68
72
|
export default {
|
|
69
73
|
name: "JfbBaseNoticeDialog",
|
|
70
74
|
components: {
|
|
71
75
|
XdFontIcon,
|
|
72
76
|
},
|
|
73
|
-
mixins: [
|
|
77
|
+
mixins: [
|
|
78
|
+
componentsMixins,
|
|
79
|
+
extsMixins,
|
|
80
|
+
JfbBaseNoticeDialogMixin,
|
|
81
|
+
posterMixins,
|
|
82
|
+
],
|
|
74
83
|
data() {
|
|
75
84
|
return {
|
|
76
85
|
isShow: false,
|
|
@@ -81,11 +90,11 @@ export default {
|
|
|
81
90
|
close_position: "",
|
|
82
91
|
type: "",
|
|
83
92
|
currentImage: "",
|
|
84
|
-
|
|
93
|
+
currentLink: null,
|
|
85
94
|
currentIndex: 0,
|
|
86
95
|
contentList: [],
|
|
87
|
-
number:
|
|
88
|
-
is_order_by_show_group:
|
|
96
|
+
number: "",
|
|
97
|
+
is_order_by_show_group: "",
|
|
89
98
|
};
|
|
90
99
|
},
|
|
91
100
|
watch: {
|
|
@@ -128,7 +137,7 @@ export default {
|
|
|
128
137
|
page_id: this.pageAttr["page_id"], //页面ID
|
|
129
138
|
container_id: this.containerId, //组件ID
|
|
130
139
|
page_size: this.number, //数量
|
|
131
|
-
is_order_by_show_group: this.is_order_by_show_group
|
|
140
|
+
is_order_by_show_group: this.is_order_by_show_group,
|
|
132
141
|
},
|
|
133
142
|
})
|
|
134
143
|
.then((res) => {
|
|
@@ -136,16 +145,12 @@ export default {
|
|
|
136
145
|
|
|
137
146
|
//弹窗显示
|
|
138
147
|
if (res.list.length > 0) {
|
|
139
|
-
this.contentList = res.list
|
|
148
|
+
this.contentList = res.list;
|
|
140
149
|
this.currentImage = getServiceUrl(
|
|
141
150
|
this.contentList[0].image_url,
|
|
142
151
|
"size8"
|
|
143
152
|
);
|
|
144
|
-
|
|
145
|
-
this.currentLinkUrl = this.getLinkUrl(
|
|
146
|
-
this.contentList[0].redirect_data
|
|
147
|
-
);
|
|
148
|
-
}
|
|
153
|
+
this.currentLink = this.contentList[0];
|
|
149
154
|
this.currentIndex = 0;
|
|
150
155
|
this.handlePop();
|
|
151
156
|
}
|
|
@@ -156,7 +161,7 @@ export default {
|
|
|
156
161
|
},
|
|
157
162
|
getLinkUrl(data) {
|
|
158
163
|
data = JSON.parse(data);
|
|
159
|
-
return `${data.page}
|
|
164
|
+
return `${data.page}`;
|
|
160
165
|
},
|
|
161
166
|
/**
|
|
162
167
|
* @description 监听事件变化
|
|
@@ -198,10 +203,8 @@ export default {
|
|
|
198
203
|
return;
|
|
199
204
|
}
|
|
200
205
|
this.currentIndex = this.currentIndex + 1;
|
|
201
|
-
if(this.contentList[this.currentIndex].redirect_data) {
|
|
202
|
-
this.
|
|
203
|
-
this.contentList[this.currentIndex].redirect_data
|
|
204
|
-
);
|
|
206
|
+
if (this.contentList[this.currentIndex].redirect_data) {
|
|
207
|
+
this.currentLink = this.contentList[this.currentIndex];
|
|
205
208
|
}
|
|
206
209
|
this.currentImage = getServiceUrl(
|
|
207
210
|
this.contentList[this.currentIndex].image_url,
|
|
@@ -209,10 +212,7 @@ export default {
|
|
|
209
212
|
);
|
|
210
213
|
},
|
|
211
214
|
handleToLink() {
|
|
212
|
-
|
|
213
|
-
this.$xdUniHelper.navigateTo({
|
|
214
|
-
url: this.currentLinkUrl,
|
|
215
|
-
});
|
|
215
|
+
this.handlePosterClick(this.currentLink);
|
|
216
216
|
},
|
|
217
217
|
onJfbScroll(options) {
|
|
218
218
|
console.log("event.onJfbScroll", options);
|