|
|
@@ -88,12 +88,6 @@ onLoad(() => {
|
|
|
text: "服务登记汇总",
|
|
|
path: "/pages/generalServices/index",
|
|
|
}].concat(itemList.value);
|
|
|
- /* , {
|
|
|
- label: '待受理',
|
|
|
- icon: '/static/image/djd.png',
|
|
|
- text: "受理转派工单",
|
|
|
- path: "/pages/generalServices/index?type=待受理",
|
|
|
- } */
|
|
|
uploadNumber();
|
|
|
}
|
|
|
$Http.basic({
|
|
|
@@ -103,29 +97,38 @@ onLoad(() => {
|
|
|
nocache: true
|
|
|
}
|
|
|
}).then(res => {
|
|
|
+ console.log("广告图",res)
|
|
|
if (res.code !== 0 && res.data.length) {
|
|
|
uni.removeStorageSync('banner')
|
|
|
uni.setStorageSync('banner', res.data);
|
|
|
- banner.value = res.data.find(v => v.location == "index_top").ads.map(v => {
|
|
|
+ try {
|
|
|
+ banner.value = res.data.find(v => v.location == "index_top").ads.map(v => {
|
|
|
v.imageUrl = v.attinfos[0].url;
|
|
|
return v
|
|
|
}) || [];
|
|
|
+ } catch (error) {
|
|
|
+
|
|
|
+ }
|
|
|
} else {
|
|
|
const list = uni.getStorageSync('banner') || [];
|
|
|
- if (list.length) banner.value = list.find(v => v.location == "index_top").ads.map(v => {
|
|
|
+ try {
|
|
|
+ if (list.length) banner.value = list.find(v => v.location == "index_top").ads.map(v => {
|
|
|
v.imageUrl = v.attinfos[0].url;
|
|
|
return v
|
|
|
}) || [];
|
|
|
+ } catch (error) {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
if (banner.value.length == 0) {
|
|
|
banner.value = [{
|
|
|
- imageUrl: "/static/banners/2、390x115-1.png"
|
|
|
+ imageUrl: "/static/banners/1.png"
|
|
|
}, {
|
|
|
- imageUrl: "/static/banners/2、390x115-2.png"
|
|
|
+ imageUrl: "/static/banners/2.png"
|
|
|
}, {
|
|
|
- imageUrl: "/static/banners/2、390x115-3.png"
|
|
|
+ imageUrl: "/static/banners/3.png"
|
|
|
}, {
|
|
|
- imageUrl: "/static/banners/2、390x115-4.png"
|
|
|
+ imageUrl: "/static/banners/4.png"
|
|
|
}];
|
|
|
}
|
|
|
})
|