hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/myCollection/myCollection.js_1.map

1 line
12 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/myCollection/myCollection.vue?25f3","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/myCollection/myCollection.vue?c819","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/myCollection/myCollection.vue?59c1","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/myCollection/myCollection.vue?4d39","uni-app:///pagesB/myCollection/myCollection.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,mH;AACAA,UAAU,CAACC,qBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;;;AAG3D;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAyrB,CAAgB,wqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0B7sB,qE;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,0CADA,EAEA,8CAFA,EAEA;AACA,kBAHA,EAIA,cAJA,EAIA;AACA,mBALA,EAMA;AAAA,OANA,EASA,OATA,EAUA,QAVA,EAWA,SAXA,EAWA;AACA,kBAZA,EAaA,cAbA,EAaA;AACA,gBAdA,GAgBA,CAlBA,EAmBA,YAnBA,wBAmBA,CAnBA,EAmBA,CACA,+DACA,CArBA,EAsBA,aAtBA,2BAsBA;AACA,6CACA,YACA,oCAFA,CAEA;AACA,KAHA,MAGA,CACA,uEACA,oBACA,CACA,CA9BA,EA+BA,QA/BA,sBA+BA;AACA;AACA,GAjCA;AAkCA,QAlCA,oBAkCA;AACA;AACA;AACA;AACA;AACA;AACA,KAHA,EAGA,IAHA;AAIA,GAzCA;AA0CA;AACA,gBADA,wBACA,WADA,EACA;AACA;AACA;AACA,gCADA;AAEA,uBAFA;AAGA,uBAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BADA,EACA;AACA,mCAFA,EAEA;AACA,qCAHA,EAGA;AACA,yCAJA,EAIA;AACA,6CALA,EAKA;AACA,iCANA;;;AASA;AACA,eAXA;AAYA;AACA;AACA;AACA,WAjBA,MAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CADA,EACA;AACA,2BAFA;AAGA,+BAHA,EAGA;AACA,uCAJA,EAIA;AACA,iCALA,EAKA;AACA,mDANA,EAMA;AACA,gDAPA,EAOA;AACA,iCARA,EAQA;AACA,sCATA,EASA;AACA,mDAVA,EAUA;AACA,4BAXA,EAWA;AACA,gCAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA;AACA,aAtBA;AAuBA;AACA;AACA,OAtDA,EAsDA,mBAtDA;AAuDA,KA/DA;AAgEA,aAhEA,qBAgEA,CAhEA,EAgEA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,EAEA,GAFA;AAGA;AACA,KAxEA;AAyEA,aAzEA,qBAyEA,KAzEA,EAyEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAhFA;AAiFA,WAjFA,qBAiFA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KAtFA,EA1CA,E","file":"pagesB/myCollection/myCollection.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/myCollection/myCollection.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./myCollection.vue?vue&type=template&id=4267f4ac&\"\nvar renderjs\nimport script from \"./myCollection.vue?vue&type=script&lang=js&\"\nexport * from \"./myCollection.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/myCollection/myCollection.vue\"\nexport default component.exports","export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myCollection.vue?vue&type=template&id=4267f4ac&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myCollection.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./myCollection.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav :titleVal=\"'文章收藏'\" :statusTitle=\"true\"></status-nav>\r\n\t\t<!-- 自定义二级分类 -->\r\n\t\t<!-- 列表 -->\r\n\t\t<view>\r\n\t\t\t<view id=\"daoh\" class=\"bacf pad-zy30 pad-sx20 isTopf\" :style=\"{top:statusHNH+'px'}\">\r\n\t\t\t\t<cate-pu :newCurrent=\"newCurrent*1\" :activeb=\"publicColor\" :isCenter=\"false\" :newbmo=\"'#E0E0E0'\" @choosecateEv=\"chooseTwo\" :newcateList=\"cateList\"></cate-pu>\r\n\t\t\t</view>\r\n\t\t\t<view :style=\"{paddingTop:(statusHNH+chuTop+30)+'px'}\">\r\n\t\t\t\t<view v-if=\"dataList.length!=0\" class=\"pad-zy20 pad-s20\">\r\n\t\t\t\t\t<list-pu :radiu=\"true\" @comfirmev=\"comfirmev\" :list=\"dataList\"></list-pu>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 50%;\">\r\n\t\t\t\t\t<image class=\"zanw-img\" src=\"/static/public/collection.png\" style=\"\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t<view class=\"fon24 col3\">您还没有收藏,快去收藏吧</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 返回顶部 -->\r\n\t\t<!-- <back-top :showTop=\"showTop\" @backTop=\"backTop\"></back-top> -->\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {cancleCollectionEV} from '@/jsFile/publicAPI.js';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor'),//主题颜色\r\n\t\t\t\tdataList:[],\r\n\t\t\t\tshowTop:false,//是否显示返回顶部\r\n\t\t\t\tnewCurrent:0,\r\n\t\t\t\tcateList:[//所以二级分类\r\n\t\t\t\t\t\r\n\t\t\t\t],\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:10,\r\n\t\t\t\ttotal:'',//总数\r\n\t\t\t\tisZanw:true,\r\n\t\t\t\tcategory_id:0,//栏目ID\r\n\t\t\t\tchuTop:'',\r\n\t\t\t}\r\n\t\t},\r\n\t\tonPageScroll(e) {\r\n\t\t e.scrollTop > 360 ? this.showTop = true : this.showTop = false\r\n\t\t},\r\n\t\tonReachBottom() {//触底事件\r\n\t\t\tif(this.total!=this.dataList.length){\r\n\t\t\t\tthis.page++\r\n\t\t\t\tthis.checkConList(this.category_id)//调用自主预约列表事件\r\n\t\t\t} else {\r\n\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)\r\n\t\t\t\tthis.isZanw = false\r\n\t\t\t}\r\n\t\t},\r\n\t\tonUnload() {\r\n\t\t\tuni.removeStorageSync('cateList')\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tthis.checkConList(this.category_id)\r\n\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\tquery.select('#daoh').boundingClientRect((rect) => {\r\n\t\t\t\t// console.log('状态栏+标题栏:',rect);\r\n\t\t\t\tthis.chuTop = rect.height\r\n\t\t\t}).exec()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tcheckConList(category_id){//查询收藏列表\r\n\t\t\t\t// this.$toolAll.tools.showToast('加载中...')\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\tcategory_id:category_id,\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('archives/collects',params).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t// 栏目类别\r\n\t\t\t\t\t\tif(uni.getStorageSync('cateList')==''){//首次渲染栏目\r\n\t\t\t\t\t\t\tif(res.data.category.length!=0){\r\n\t\t\t\t\t\t\t\tres.data.category.forEach((item,index)=>{\r\n\t\t\t\t\t\t\t\t\tlet cateObj = {\r\n\t\t\t\t\t\t\t\t\t\tid:item.id,//栏目ID \r\n\t\t\t\t\t\t\t\t\t\ttitle:item.title,//栏目名称\r\n\t\t\t\t\t\t\t\t\t\tactive:item.active,//是否选中\r\n\t\t\t\t\t\t\t\t\t\tmodel_id:item.model_id,//模型ID\r\n\t\t\t\t\t\t\t\t\t\tmodel_name:item.model_name,//模型标识\r\n\t\t\t\t\t\t\t\t\t\tsort:item.sort,\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tthis.cateList.push(cateObj)\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('cateList',this.cateList)\r\n\t\t\t\t\t\t\t\tthis.category_id = this.cateList[0].id\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t//获取缓存中的栏目\r\n\t\t\t\t\t\t\tthis.cateList = uni.getStorageSync('cateList')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 获取列表\r\n\t\t\t\t\t\tif(this.page==1) this.dataList = []\r\n\t\t\t\t\t\tthis.total = res.data.list.total\r\n\t\t\t\t\t\tif(res.data.list.list.length!=0){\r\n\t\t\t\t\t\t\tuni.hideToast()\r\n\t\t\t\t\t\t\tres.data.list.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet num = item.video.search(\".mp4\")\r\n\t\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\t\tif(num!='-1') isVideo = true\r\n\t\t\t\t\t\t\t\tlet tObj = {\r\n\t\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tis_collected:1,//是否已收藏\r\n\t\t\t\t\t\t\t\t\tcollects:item.collects,//收藏量\r\n\t\t\t\t\t\t\t\t\tviews:item.views,//查看量\r\n\t\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\r\n\t\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\r\n\t\t\t\t\t\t\t\t\ttitle:item.title,//标题\r\n\t\t\t\t\t\t\t\t\tcontent:item.subtitle,//副标题\r\n\t\t\t\t\t\t\t\t\thead_img:'/static/public/logo.png',//发布者头像\r\n\t\t\t\t\t\t\t\t\tname:'恒美植发',//发布者昵称\r\n\t\t\t\t\t\t\t\t\tisVideo:isVideo//是否是视频\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(this.newCurrent==0 && item.category_id==32) this.dataList.push(tObj)\r\n\t\t\t\t\t\t\t\tif(this.newCurrent==1 && item.category_id==33) this.dataList.push(tObj)\r\n\t\t\t\t\t\t\t\tif(this.newCurrent==2 && item.category_id==34) this.dataList.push(tObj)\r\n\t\t\t\t\t\t\t\tif(this.newCurrent==3 && item.category_id==38) this.dataList.push(tObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tcomfirmev(e){//确认取消收藏事件\r\n\t\t\t\tthis.$toolAll.tools.showToast('正在取消...','loading')\r\n\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\tcancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})\t\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tthis.checkConList(this.category_id)\r\n\t\t\t\t},300)\r\n\t\t\t\tthis.dataList[e].is_collected = 0\r\n\t\t\t},\r\n\t\t\tchooseTwo(index){//二级分类选择\r\n\t\t\t\tthis.newCurrent = index\r\n\t\t\t\tthis.isZanw = true\r\n\t\t\t\tthis.page = 1\r\n\t\t\t\tthis.category_id = this.cateList[index].id\r\n\t\t\t\tthis.checkConList(this.cateList[index].id)\r\n\t\t\t\t// console.log('二级分类:',index);\r\n\t\t\t},\r\n\t\t\tbackTop(){//回到顶部事件\r\n\t\t\t uni.pageScrollTo({\r\n\t\t\t scrollTop: 0,\r\n\t\t\t duration: 300\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\r\n</style>\r\n"],"sourceRoot":""}