1 line
9.8 KiB
Plaintext
1 line
9.8 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/myCollection/myCollection.vue?17e5","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/myCollection/myCollection.vue?a575","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/myCollection/myCollection.vue?c1ff","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/myCollection/myCollection.vue?9ef0","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyB7sB;AACA;AACA,oBADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,iBADA;AAEA,oBAFA;AAGA,mBAHA;AAIA,aAJA;AAKA,cALA;AAMA,gDANA;AAOA,qBAPA;;AASA,GAdA;AAeA,cAfA,wBAeA,CAfA,EAeA;AACA;AACA,GAjBA;AAkBA,QAlBA,oBAkBA;;AAEA,GApBA;AAqBA,QArBA,oBAqBA;AACA;AACA;AACA,GAxBA;AAyBA;AACA,YADA,oBACA,EADA,EACA;AACA;AACA,2DADA;;AAGA,KALA;AAMA,YANA,sBAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA;AACA,yCADA;AAEA,iCAFA;AAGA,+DAHA;AAIA,uCAJA;AAKA,yCALA,EAFA;;AASA;AACA,iCADA;AAEA,qCAFA,EATA;;AAaA,mCAbA;;AAeA;AACA,aAjBA;AAkBA;AACA;AACA,OAzBA,EAyBA,mBAzBA;AA0BA,KAlCA;AAmCA,WAnCA,qBAmCA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KAxCA;AAyCA,mBAzCA,2BAyCA,EAzCA,EAyCA,KAzCA,EAyCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAHA,EAGA,GAHA;AAIA;AACA,OATA,EASA,mBATA;AAUA,KAxDA;AAyDA,UAzDA,oBAyDA;AACA;AACA,4CADA;;AAGA,KA7DA,EAzBA,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>\n <view v-if=\"pageShow\">\n <!-- 使用标题栏 -->\r\n <status-nav :statusBackw=\"true\" :statusTitle=\"true\" :whereCome=\"1\" :title-val=\"'我的收藏'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n <view :style=\"{marginTop:(statusHNH+10)+'px'}\">\r\n <view v-if=\"dataArr.length!=0\" :class=\"current==index?'fadeOut':''\" class=\"padding-sx20 fon28 bacb margin-sx20 padding-zy30 animated \" style=\"border-radius: 5rpx;\" v-for=\"(item,index) in dataArr\" :key=\"index\">\r\n <view @tap=\"goDetail(item.sku.spu_id)\" class=\"margin-sx20 disac posir borbot\">\r\n <image class=\"radius10 flexs\" style=\"width: 215rpx;height: 215rpx;\" :src=\"item.sku.main_image\" mode=\"aspectFill\"></image>\r\n <view class=\"margin-z20 width100\">\r\n <view class=\"fon28 clips2\">{{item.spu.name}}</view>\r\n <view class=\"colorf78 margin-sx10\">¥<text class=\"fon36 bold \">{{item.sku.price/100}}</text>.0</view>\r\n <view class=\"dis\" style=\"justify-content:flex-end\">\r\n <view @tap.stop=\"canleCollection(item.id,index)\" class=\"fon26 margin-s20 flexs\" style=\"padding: 12rpx;border-radius: 60rpx;border: 1rpx solid #bababa;width: 28%;text-align: center;\">取消收藏</view>\r\n </view>\r\n </view>\r\n </view>\r\n </view>\r\n\t\t\t<view v-if=\"dataArr.length==0\" class=\"zanwu\" @tap=\"goList\">暂无更多收藏,赶快去收藏吧</view>\r\n </view>\r\n <backTop :showTop=\"showTop\" @backTop=\"backTop\"></backTop>\r\n </view>\n</template>\n\n<script>\n import backTop from '@/components/backTop.vue';\r\n export default {\r\n components:{\r\n backTop\r\n },\n data() {\n return {\r\n dataArr:[],\r\n showTop:false,\r\n current:'-1',\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:50,\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tpageShow:false\r\n }\n },\r\n onPageScroll(e) {\r\n e.scrollTop > 360 ? this.showTop = true : this.showTop = false\r\n },\r\n onLoad() {\r\n \r\n },\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.guoq()\r\n\t\t\tthis.checkCon()\r\n\t\t},\n methods: {\r\n\t\t\tgoDetail(id){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/productDetail/productDetail?id='+id\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcheckCon(){//查询收藏列表\r\n\t\t\t\tthis.dataArr = []\r\n\t\t\t\tthis.$requst.post('user/collection').then(res=>{\r\n\t\t\t\t\t// console.log('收藏列表',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.pageShow = true\r\n\t\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tsku:{\r\n\t\t\t\t\t\t\t\t\t\tcoding:item.sku.coding,\r\n\t\t\t\t\t\t\t\t\t\tid:item.sku.id,\r\n\t\t\t\t\t\t\t\t\t\tmain_image:this.$http + item.sku.main_image,\r\n\t\t\t\t\t\t\t\t\t\tprice:item.sku.price,\r\n\t\t\t\t\t\t\t\t\t\tspu_id:item.sku.spu_id\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\tspu:{\r\n\t\t\t\t\t\t\t\t\t\tid:item.spu.id,\r\n\t\t\t\t\t\t\t\t\t\tname:item.spu.name\r\n\t\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\tspu_id:item.spu_id\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.dataArr.push(obj)\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},\n backTop(){\r\n uni.pageScrollTo({\r\n scrollTop: 0,\r\n duration: 300\r\n });\r\n },\r\n canleCollection(id,index){//取消收藏事件\r\n\t\t\t\tlet ya = this\r\n this.current = index\r\n\t\t\t\t// console.log('取消收藏ID',id);\r\n\t\t\t\t// console.log(id);\r\n\t\t\t\tthis.$requst.post('user/collection-del',{id:id,spu_id:0}).then(res=>{\r\n\t\t\t\t\t// console.log(res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tuni.showToast({title:'取消成功',icon:'none'})\r\n\t\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\t\tya.dataArr.splice(index,1)\r\n\t\t\t\t\t\t\tya.current = '-1'\r\n\t\t\t\t\t\t},500)\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n },\r\n\t\t\tgoList(){//去产品列表\r\n\t\t\t\tuni.switchTab({\r\n\t\t\t\t\turl:'/pages/tabbar/product/product'\r\n\t\t\t\t})\r\n\t\t\t}\n }\n }\n</script>\n\n<style>\r\n \n</style>\n"],"sourceRoot":""} |