dengrui/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/keySearch/keySearch.js.map

1 line
16 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/keySearch/keySearch.vue?0a56","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/keySearch/keySearch.vue?7599","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/keySearch/keySearch.vue?8759","uni-app:///pagesB/keySearch/keySearch.vue","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/keySearch/keySearch.vue?09f9","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/keySearch/keySearch.vue?a8a7"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,0G;AACAA,UAAU,CAACC,kBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAsH;AACtH;AAC6D;AACL;AACa;;;AAGrE;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,oFAAM;AACR,EAAE,6FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,wFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;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;AAAsrB,CAAgB,qqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+B1sB;AACA;AACA,oBADA,EADA;;AAIA,MAJ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A,EAKA;AACA,kDANA,CAMA;AANA;AAQA;AACA,WAVA;AAWA,SAdA,MAcA;AACA;AACA;AACA,OAnBA,EAmBA,mBAnBA;AAoBA,KAnEA;AAoEA,WApEA,qBAoEA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA;AACA,KA1EA;AA2EA,UA3EA,kBA2EA,CA3EA,EA2EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,EAIA,mBAJA;AAKA,KAnFA;AAoFA,YApFA,oBAoFA,EApFA,EAoFA;AACA;AACA;AACA,2DADA;;AAGA,KAzFA,EAxDA,E;;;;;;;;;;;;;AC/BA;AAAA;AAAA;AAAA;AAAy+B,CAAgB,86BAAG,EAAC,C;;;;;;;;;;;ACA7/B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesB/keySearch/keySearch.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/keySearch/keySearch.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./keySearch.vue?vue&type=template&id=884bef88&\"\nvar renderjs\nimport script from \"./keySearch.vue?vue&type=script&lang=js&\"\nexport * from \"./keySearch.vue?vue&type=script&lang=js&\"\nimport style0 from \"./keySearch.vue?vue&type=style&index=0&lang=css&\"\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/keySearch/keySearch.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!./keySearch.vue?vue&type=template&id=884bef88&\"","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!./keySearch.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!./keySearch.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 使用标题栏 -->\r\n\t\t<status-nav @inputConfirm=\"inputConfirm\" :statusBackg=\"true\" :statusInput=\"true\" :whereCome=\"whereCome*1\" :backgroudColor=\"'#ffffff'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n\t\t<!-- 搜索框 -->\r\n\t\t\r\n\t\t<!-- 列表 -->\r\n\t\t<view class=\"padding20 bacb searchlist\" v-if=\"productList.length!=0\" :style=\"{marginTop:(statusHNH+10)+'px'}\">\r\n\t\t\t<view @tap=\"goDetail(item.id)\" class=\"disba padding-x30 padding-s20 borbot\" v-for=\"(item,index) in productList\" :key=\"index\">\r\n\t\t\t\t<image class=\"proimg flexs radius10\" :src=\"item.src\"></image>\r\n\t\t\t\t<view class=\"padding-sx20 padding-z20 width100\">\r\n\t\t\t\t\t<view class=\"clips2 fon28\">{{item.title}}</view>\r\n\t\t\t\t\t<view class=\"fon24 color9 margin-sx10 clips1\">{{item.content}}</view>\r\n\t\t\t\t\t<view class=\"dis flw\">\r\n\t\t\t\t\t\t<label class=\"colorf6 fon24 radius16 pro margin-y10\" v-for=\"(itemc,indexc) in item.cate\" :key=\"indexc\">{{itemc.name}}</label>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"disba margin-s20\">\r\n\t\t\t\t\t\t<view class=\"colorf6 fon24 bold\">¥<text class=\"fon28\">{{item.price}}</text>.0</view>\r\n\t\t\t\t\t\t<!-- 加入购物车图片 -->\r\n\t\t\t\t\t\t<image @tap.stop=\"addGou(item.id)\" class=\"progc\" src=\"/static/img/public/gouwcar.png\"></image>\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<view v-if=\"productList.length==0\" class=\"zanwu\">暂无相关产品</view>\r\n <backTop :showTop=\"showTop\" @backTop=\"backTop\"></backTop>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n import backTop from '@/components/backTop.vue';\r\n\texport default {\r\n components:{\r\n backTop\r\n },\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tcurrent:0,\r\n\t\t\t\tchooseShai:false,\r\n\t\t\t\tisasce:true,\r\n\t\t\t\tproductList:[],\r\n\t\t\t\tzanList:[],//暂存产品列表不显示\r\n shaiArr:[],\r\n shaiCurrent:0,\r\n isShai:false,\r\n yin:false,\r\n chuout:'',\r\n\t\t\t\txiao:'',\r\n showTop:false,\r\n whereCome:2,\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\tcid:0,//分类ID\r\n\t\t\t\tfiled:'',//默认synthetical 取值view_amount、sale_amount、sort_price\r\n\t\t\t\tdirection:'down',//取值down/up\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tsearchKey:''\r\n\t\t\t}\r\n\t\t},\r\n onShow() {\r\n\t\t\tthis.$toolAll.tools.guoq()\r\n uni.showTabBar()\r\n uni.getStorageSync('whereCome') !='' ? this.whereCome = uni.getStorageSync('whereCome') : ''\r\n\t\t\tuni.removeStorageSync('proDetail')\r\n\t\t\t// console.log('清除产品详情缓存成功',uni.getStorageSync('proDetail'));\r\n\t\t\tthis.filed = 'synthetical'\r\n\t\t\tthis.cid = 0\r\n\t\t\tthis.size = 10\r\n\t\t\tthis.page = 1\r\n },\r\n\t\tonLoad() {\r\n this.checkList()\r\n\t\t},\r\n onPageScroll(e) {\r\n e.scrollTop > 360 ? this.showTop = true : this.showTop = false\r\n },\r\n\t\tonReachBottom() {\r\n\t\t\tif(this.total!=this.productList.length){\r\n\t\t\t\tthis.page++\r\n\t\t\t\tthis.keySearch(this.searchKey)//调用自主预约列表事件\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\tmethods: {\r\n\t\t\tinputConfirm(e){\r\n\t\t\t\t// console.log(e);\r\n\t\t\t\tthis.searchKey = e\r\n\t\t\t\tthis.keySearch(e)\r\n\t\t\t},\r\n\t\t\tkeySearch(key){\r\n\t\t\t\tthis.productList = []\r\n\t\t\t\tlet paramCate ={\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\tsort_filed:this.filed,\r\n\t\t\t\t\tsort_direction:this.direction,\r\n\t\t\t\t\tkeyword:key\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('product/spu/list',paramCate).then(res=>{\r\n\t\t\t\t\t// console.log('产品',res);\r\n\t\t\t\t\tif(this.page==1) this.productList = []\r\n\t\t\t\t\tthis.total = res.data.total\r\n\t\t\t\t\tif(res.data.list.length!=0){\r\n\t\t\t\t\t\tthis.cid = res.data.list[0].cid//获取分类ID以便加载更多使用\r\n\t\t\t\t\t\tthis.zanList = res.data.list\r\n\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\tlet cateObj = {\r\n\t\t\t\t\t\t\t\tid:item.id,//商品ID\r\n\t\t\t\t\t\t\t\tsrc:this.$http + item.main_sku.main_image,//商品图片\r\n\t\t\t\t\t\t\t\ttitle:item.name,//商品名称\r\n\t\t\t\t\t\t\t\tcontent:item.sub_title,//商品标题\r\n\t\t\t\t\t\t\t\tcate:item.tag_list,//标签列表\r\n\t\t\t\t\t\t\t\tprice:item.main_sku.cur_price/100//商品原价\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.productList.push(cateObj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// this.$toolAll.tools.showToast('没找到相关产品o(╥﹏╥)o')\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tcheckList(){\r\n\t\t\t\tthis.productList = []\r\n\t\t\t\tlet paramCate ={\r\n\t\t\t\t\tcategory_id:this.cid,\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size,\r\n\t\t\t\t\tsort_filed:this.filed,\r\n\t\t\t\t\tsort_direction:this.direction\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('product/spu/list',paramCate).then(res=>{\r\n\t\t\t\t\t// console.log('产品',res);\r\n\t\t\t\t\tif(res.data.list.length!=0){\r\n\t\t\t\t\t\tthis.cid = res.data.list[0].cid//获取分类ID以便加载更多使用\r\n\t\t\t\t\t\tthis.zanList = res.data.list\r\n\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\tlet cateObj = {\r\n\t\t\t\t\t\t\t\tid:item.id,//商品ID\r\n\t\t\t\t\t\t\t\tsrc:this.$http + item.main_sku.main_image,//商品图片\r\n\t\t\t\t\t\t\t\ttitle:item.name,//商品名称\r\n\t\t\t\t\t\t\t\tcontent:item.sub_title,//商品标题\r\n\t\t\t\t\t\t\t\tcate:item.tag_list,//标签列表\r\n\t\t\t\t\t\t\t\tprice:item.main_sku.cur_price/100//商品原价\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.productList.push(cateObj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// this.$toolAll.tools.showToast('没找到相关产品o(╥﹏╥)o')\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n backTop(){//回到顶部事件\r\n uni.pageScrollTo({\r\n scrollTop: 0,\r\n duration: 300\r\n });\r\n\t\t\t\tthis.isShai = false\r\n },\r\n\t\t\taddGou(e){//加入购物车\r\n\t\t\t\t// console.log('加入购物车'+e);\r\n // uni.showToast({title:'加入购物车'+e+'成功',icon:'none'})\r\n\t\t\t\tthis.$requst.post('order/shopping-cart-add',{sku_id:e,num:1}).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('添加购物车成功(*^▽^*)')\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tgoDetail(id){//查看详情\r\n\t\t\t\t// console.log(id);\r\n uni.navigateTo({\r\n url:'/pagesA/productDetail/productDetail?id='+id\r\n })\r\n\t\t\t},\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\tpage {background-color: #f5f5f5;}\r\n</style>\n","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../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!./keySearch.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../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!./keySearch.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1630200524555\n var cssReload = require(\"D:/HbuilderX/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":""}