|
|
@@ -125,7 +125,7 @@ import { breakItem,getHdPoster,getSkPoster } from '@/api/item'
|
|
|
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup.vue';
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
export default {
|
|
|
- name: "item_list",
|
|
|
+ name: "list",
|
|
|
components: {
|
|
|
AppSearchModule,
|
|
|
AppWrapperEmpty,
|
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
that.posterUrl = res.data.imgUrl
|
|
|
- this.$refs.posterShow.open('top')
|
|
|
+ that.$refs.posterShow.open('top')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -202,7 +202,7 @@ export default {
|
|
|
uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
that.posterUrl = res.data.imgUrl
|
|
|
- this.$refs.posterShow.open('top')
|
|
|
+ that.$refs.posterShow.open('top')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -211,16 +211,15 @@ export default {
|
|
|
uni.downloadFile({
|
|
|
url: this.posterUrl,
|
|
|
success: (res) => {
|
|
|
- if (res.statusCode === 200) {
|
|
|
- console.log(res)
|
|
|
- uni.saveImageToPhotosAlbum({
|
|
|
- filePath: res.tempFilePath,
|
|
|
- success: function (data) {
|
|
|
- that.$refs.posterShow.close()
|
|
|
- uni.showToast({title:'保存成功'})
|
|
|
+ if (res.statusCode === 200) {
|
|
|
+ uni.saveImageToPhotosAlbum({
|
|
|
+ filePath: res.tempFilePath,
|
|
|
+ success: function (data) {
|
|
|
+ that.$refs.posterShow.close()
|
|
|
+ uni.showToast({title:'保存成功'})
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
- });
|
|
|
- }
|
|
|
}
|
|
|
});
|
|
|
},
|