|
@@ -114,7 +114,7 @@
|
|
<view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
|
|
<view class="tn-strip-bottom" v-if="index != content.length - 1"></view>
|
|
</block>
|
|
</block>
|
|
<view v-if="showEmpty&&content.length==0" style="margin-top: 32vh;">
|
|
<view v-if="showEmpty&&content.length==0" style="margin-top: 32vh;">
|
|
- <tn-empty mode="data"></tn-empty>
|
|
|
|
|
|
+ <tn-empty mode="list"></tn-empty>
|
|
</view>
|
|
</view>
|
|
<!-- 结尾 -->
|
|
<!-- 结尾 -->
|
|
<view v-if="content.length==totalSize&&totalSize!=0" style="background-color: #f1f1f1cc;padding: 16px 0;">
|
|
<view v-if="content.length==totalSize&&totalSize!=0" style="background-color: #f1f1f1cc;padding: 16px 0;">
|
|
@@ -186,6 +186,7 @@
|
|
collId: '',
|
|
collId: '',
|
|
isAndroid: true,
|
|
isAndroid: true,
|
|
content: [],
|
|
content: [],
|
|
|
|
+ showEmpty:false,
|
|
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -233,7 +234,7 @@
|
|
},
|
|
},
|
|
clickLink(url,fileName) {
|
|
clickLink(url,fileName) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url:'/pages/webview/web-view?url='+encodeURIComponent('http://slb-m.dev.ml1993.com/webview?title='+fileName+'&url='+ url),
|
|
|
|
|
|
+ url:'/pages/webview/web-view?url='+encodeURIComponent('https://slb-m.lx-device.com/webview?title='+fileName+'&url='+ url),
|
|
})
|
|
})
|
|
// uni.navigateTo({
|
|
// uni.navigateTo({
|
|
// url: '/pages/webview/web-view?url=' + url,
|
|
// url: '/pages/webview/web-view?url=' + url,
|
|
@@ -262,7 +263,7 @@
|
|
content: that.searchValue,
|
|
content: that.searchValue,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
that.loading = false;
|
|
that.loading = false;
|
|
- if (res.success) {
|
|
|
|
|
|
+ if (res&&res.success) {
|
|
that.totalSize = res.total || 0;
|
|
that.totalSize = res.total || 0;
|
|
let newList = res.list || [];
|
|
let newList = res.list || [];
|
|
for (let i = 0; i < newList.length; i++) {
|
|
for (let i = 0; i < newList.length; i++) {
|
|
@@ -278,8 +279,9 @@
|
|
} else {
|
|
} else {
|
|
that.content = that.content.concat(newList || []);
|
|
that.content = that.content.concat(newList || []);
|
|
}
|
|
}
|
|
- that.showEmpty = true;
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+ that.showEmpty = true;
|
|
console.warn(res);
|
|
console.warn(res);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -377,7 +379,7 @@
|
|
that.$refs.toast.show({
|
|
that.$refs.toast.show({
|
|
title: '信息已收藏,请在我的收藏里查看阅读',
|
|
title: '信息已收藏,请在我的收藏里查看阅读',
|
|
image: '',
|
|
image: '',
|
|
- duration: 4000
|
|
|
|
|
|
+ duration: 2000
|
|
})
|
|
})
|
|
that.showSheet = false;
|
|
that.showSheet = false;
|
|
} else {
|
|
} else {
|
|
@@ -397,7 +399,7 @@
|
|
that.$refs.toast.show({
|
|
that.$refs.toast.show({
|
|
title: '此需求信息将不会保存在我的收藏里',
|
|
title: '此需求信息将不会保存在我的收藏里',
|
|
image: '',
|
|
image: '',
|
|
- duration: 4000
|
|
|
|
|
|
+ duration: 2000
|
|
})
|
|
})
|
|
that.showSheet = false;
|
|
that.showSheet = false;
|
|
} else {
|
|
} else {
|