goodlist.js.map
19.3 KB
{"version":3,"sources":[null,"webpack:///G:/项目/program/zhiboproject/compontent/goodlist.vue?dbf7","webpack:///G:/项目/program/zhiboproject/compontent/goodlist.vue?a1e3","webpack:///G:/项目/program/zhiboproject/compontent/goodlist.vue?3101","uni-app:///compontent/goodlist.vue","webpack:///G:/项目/program/zhiboproject/compontent/goodlist.vue?4acc","webpack:///G:/项目/program/zhiboproject/compontent/goodlist.vue?9089"],"names":[],"mappings":"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","file":"compontent/goodlist.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./goodlist.vue?vue&type=template&id=01091ae7&\"\nvar renderjs\nimport script from \"./goodlist.vue?vue&type=script&lang=js&\"\nexport * from \"./goodlist.vue?vue&type=script&lang=js&\"\nimport style0 from \"./goodlist.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\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 = \"compontent/goodlist.vue\"\nexport default component.exports","export * from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./goodlist.vue?vue&type=template&id=01091ae7&\"","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 \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./goodlist.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./goodlist.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"container\">\r\n\t\t<view class=\"goodlist\">\r\n\t\t\t<view class=\"goodlistitem flex\" v-for=\"(item,index) in zhigoodlist\" :key=\"index\" @click=\"entergood(item)\">\r\n\t\t\t\t<view class=\"goodlistimg\">\r\n\t\t\t\t\t<image :src=\"item.image\" mode=\"\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"goodlistright\">\r\n\t\t\t\t\t<view class=\"goodrighttop flextwo\">\r\n\t\t\t\t\t\t<view class=\"goodname\">{{item.name}}</view>\r\n\t\t\t\t\t\t<view class=\"shareimg\">\r\n\t\t\t\t\t\t\t<image src=\"../static/share.png\" mode=\"\" class=\"sharebtn\"></image>\r\n\t\t\t\t\t\t\t<button open-type=\"share\" class=\"shartype\"></button>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"zhibo flextwo\">\r\n\t\t\t\t\t\t<view class=\"zhiboleft\" @click.stop=\"gozhubo(item.anchor.id)\">{{item.anchor.name}}{{item.anchor.platform}}</view>\r\n\t\t\t\t\t\t<view class=\"kaibo\">{{item.anchor_time.time}}开播</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"zhiboprice\">\r\n\t\t\t\t\t\t直播价 ¥<text class=\"pricege\">{{item.live_price}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"cankao flextwo\">\r\n\t\t\t\t\t\t<view class=\"cankaoleft\">参考价(京东¥{{item.r_price}}元)</view>\r\n\t\t\t\t\t\t<view v-if=\"item.status_data==1\">\r\n\t\t\t\t\t\t\t<view v-if=\"item.user_goods==0\">\r\n\t\t\t\t\t\t\t\t<view class=\"canlaoright flexone\" v-if=\"item.share==true\" >\r\n\t\t\t\t\t\t\t\t\t<image src=\"../static/naoling.png\" mode=\"\" class=\"naoling\"></image>\r\n\t\t\t\t\t\t\t\t\t提醒我\r\n\t\t\t\t\t\t\t\t\t<button open-type=\"share\" class=\"sharebtnk\" @click.stop=\"sharefriend(index,item.id,item.share)\"></button>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"canlaoright flexone\" v-else @click.stop=\"tixing(index,item.id)\">\r\n\t\t\t\t\t\t\t\t\t<image src=\"../static/naoling.png\" mode=\"\" class=\"naoling\"></image>\r\n\t\t\t\t\t\t\t\t\t提醒我\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"canceltixing\" v-else @click.stop=\"canceltixing(index,item.id)\">\r\n\t\t\t\t\t\t\t\t取消提醒\r\n\t\t\t\t\t\t\t</view>\t\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view v-if=\"item.status_data==2\">\r\n\t\t\t\t\t\t\t<view class=\"canlaoright flexone\">\r\n\t\t\t\t\t\t\t\t已上架\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t</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<view class=\"register\" v-if=\"noshow\" @click=\"hideding\">\r\n\t\t\t<view class=\"registerwrap\">\r\n\t\t\t\t<view class=\"title\">何时提醒我?</view>\r\n\t\t\t\t<view class=\"titletext\">在主播开始介绍商品时就提醒您</view>\r\n\t\t\t\t<view class=\"title\">如何提醒我</view>\r\n\t\t\t\t<view class=\"titletext\">在你允许消息通知后,届时会给您发送微信消息提醒</view>\r\n\t\t\t\t<view class='noti flexone' @click.stop=\"notibtn\">\r\n\t\t\t\t\t<image src=\"../static/selectzhong.png\" mode=\"\" class=\"selectxuan\" v-if=\"noti\"></image>\r\n\t\t\t\t\t<image src=\"../static/select.png\" mode=\"\" class=\"selectxuan\" v-else></image>\r\n\t\t\t\t\t不再提示\r\n\t\t\t\t</view>\r\n\t\t\t\t<button class=\"buzai\" @click.stop=\"know\" v-if=\"share==true\" open-type=\"share\">我知道了</button>\r\n\t\t\t\t<view class=\"buzai\" @click.stop=\"know\" v-else>我知道了</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport app from \"../App.vue\"\r\n\texport default {\r\n\t\t// noting 是否显示不再提示 1 不再显示 空是显示\r\n\t\tprops: [\"zhigoodlist\",\"notixing\",\"dingyuenum\"],\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tgoods_id: '',\r\n\t\t\t\tnoti: false, //提示和不提示按钮\r\n\t\t\t\tnoshow: false, //提示我弹出层ss\r\n\t\t\t\tgoodindex: '',\r\n\t\t\t\tshare:'',\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t},\r\n\t\tonShareAppMessage(res) {\r\n\t\t\tlet that = this;\r\n\t\t\tif (res.from === 'button') { // 来自页面内分享按钮\r\n\t\t\t\tconsole.log(res.target)\r\n\t\t\t}\r\n\t\t\treturn {\r\n\t\t\t\ttitle: '早直播',\r\n\t\t\t\tpath: '/pages/xinyuan/xinyuan'\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 订阅消息\r\n\t\t\ttixing(index, id) {\r\n\t\t\t\tconsole.log(99)\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tif (uni.getStorageSync(\"token\")) {\r\n\t\t\t\t\tif (that.notixing == '') {\r\n\t\t\t\t\t\tthat.noshow = true\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.noshow = false\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthat.goodindex = index;\r\n\t\t\t\t\tthis.goods_id = id;\r\n\t\t\t\t\t // that.dingyue()\r\n\t\t\t\t\twx.getSetting({\r\n\t\t\t\t\t\t// withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回\r\n\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\tif (res.authSetting['scope.subscribeMessage']) {\r\n\t\t\t\t\t\t\t\tuni.openSetting({ // 打开设置页\r\n\t\t\t\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(res.authSetting, 88888)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息\r\n\t\t\t\t\t\t\t\tuni.requestSubscribeMessage({\r\n\t\t\t\t\t\t\t\t\ttmplIds: [\"XrIccvxDK3IfW3DrnLtKAtKS-pL63BrG3W0Du9l7BrU\"], // \r\n\t\t\t\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\t\t\t\t// 去订阅\r\n\t\t\t\t\t\t\t\t\t\tthat.dingyue()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\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} else {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请先登录',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\t\turl: '/pages/mine/mine'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}, 1500)\r\n\t\t\t\t}\r\n\r\n\t\t\t},\r\n\t\t\t// 取消订阅\r\n\t\t\tcanceltixing(index, id) {\r\n\t\t\t\tthis.goods_id = id;\r\n\t\t\t\tthis.goodindex = index;\r\n\t\t\t\tthis.dingyue()\r\n\t\t\t},\r\n\t\t\t// 订阅\r\n\t\t\tdingyue() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tlet url = \"goods/addUserGoods\";\r\n\t\t\t\tlet param = {\r\n\t\t\t\t\tgoods_id: that.goods_id\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log('参数', param)\r\n\t\t\t\tapp.post(url, param, \"post\").then(r => {\r\n\t\t\t\t\tconsole.log(r, that.goodindex, '订阅')\r\n\t\t\t\t\tlet newdingyuenum=that.dingyuenum;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (that.zhigoodlist[that.goodindex].user_goods == 0) {\r\n\t\t\t\t\t\tthat.zhigoodlist[that.goodindex].user_goods = 1;\r\n\t\t\t\t\t\tif(newdingyuenum.indexOf(that.zhigoodlist[that.goodindex].id)==-1){\r\n\t\t\t\t\t\t\tnewdingyuenum.push(that.zhigoodlist[that.goodindex].id)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: '订阅成功',\r\n\t\t\t\t\t\t\ticon: \"none\"\r\n\t\t\t\t\t\t})\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.zhigoodlist[that.goodindex].user_goods = 0;\r\n\t\t\t\t\t\tnewdingyuenum.forEach(function(value,index,array){\r\n\t\t\t\t\t\t\tif(value==that.zhigoodlist[that.goodindex].id){\r\n\t\t\t\t\t\t\t\tnewdingyuenum.splice(index,1)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: '取消订阅成功',\r\n\t\t\t\t\t\t\ticon: \"none\"\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 直播个数超过10个 显示false\r\n\t\t\t\t\t that.zhigoodlist.forEach(function(value,index,array){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(newdingyuenum.length>=10){\r\n\t\t\t\t\t\t\tif(value.user_goods ==0){\r\n\t\t\t\t\t\t\t\tvalue.share=true\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\tif(value.user_goods ==0){\r\n\t\t\t\t\t\t\t\tvalue.share=false\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\tthat.zhigoodlist = that.zhigoodlist;\r\n\t\t\t\t\tthat.$forceUpdate();\r\n\t\t\t\t\tthat.$emit('tixing', that.zhigoodlist)\r\n\t\t\t\t}).catch(err => {\r\n\t\t\t\t\tconsole.log(err)\r\n\t\t\t\t})\r\n\t\t\t},\r\n\r\n\r\n\t\t\t// 不再提醒\r\n\t\t\tnotibtn() {\r\n\t\t\t\tthis.noti = !this.noti;\r\n\t\t\t\tif (this.noti == true) {\r\n\t\t\t\t\tuni.setStorageSync(\"notixing\", 1);\r\n\t\t\t\t\tthis.notixing=1\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.setStorageSync(\"notixing\", '');\r\n\t\t\t\t\tthis.notixing=''\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 我知道了\r\n\t\t\tknow() {\r\n\t\t\t\tthis.noshow = false\r\n\t\t\t},\r\n\t\t\t// 取消订阅\r\n\t\t\thideding() {\r\n\t\t\t\tthis.noshow = false\r\n\t\t\t},\r\n\t\t\t// 分享给好友\r\n\t\t\tsharefriend(index,id,share) {\r\n\t\t\t\tconsole.log(4398489)\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tif (uni.getStorageSync(\"token\")) {\r\n\t\t\t\t\tlet notixing = uni.getStorageSync(\"notixing\");\r\n\t\t\t\t\tthis.notixing = notixing;\r\n\t\t\t\t\tif (that.notixing == '') {\r\n\t\t\t\t\t\tthat.noshow = true\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.noshow = false\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthat.goodindex = index;\r\n\t\t\t\t\tthat.goods_id = id;\r\n\t\t\t\t\tthat.share=share;\r\n\t\t\t\t\t // that.dingyue()\r\n\t\t\t\t\twx.getSetting({\r\n\t\t\t\t\t\t// withSubscriptions: true,//是否获取用户订阅消息的订阅状态,默认false不返回\r\n\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\tif (res.authSetting['scope.subscribeMessage']) {\r\n\t\t\t\t\t\t\t\tuni.openSetting({ // 打开设置页\r\n\t\t\t\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(res.authSetting, 88888)\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t} else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息\r\n\t\t\t\t\t\t\t\tuni.requestSubscribeMessage({\r\n\t\t\t\t\t\t\t\t\ttmplIds: [\"XrIccvxDK3IfW3DrnLtKAtKS-pL63BrG3W0Du9l7BrU\"], // \r\n\t\t\t\t\t\t\t\t\tsuccess(res) {\r\n\t\t\t\t\t\t\t\t\t\t// 去订阅\r\n\t\t\t\t\t\t\t\t\t\tthat.dingyue()\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\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} else {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '请先登录',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\t\turl: '/pages/mine/mine'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}, 1500)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 进入链接页面\r\n\t\t\tentergood(item){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:\"/pages/xinyuan/goodlianjie?code=\"+item.code+'&platform='+item.platform\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 进入主播页面\r\n\t\t\tgozhubo(id){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pages/xinyuan/zhibodetail?id='+id\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t@import url(\"../style/goodlist\");\r\n\r\n\t\r\n</style>\n","import mod from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./goodlist.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./goodlist.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1603794333103\n var cssReload = require(\"F:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}