1 line
7.4 KiB
Plaintext
1 line
7.4 KiB
Plaintext
{"version":3,"sources":["webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/twocoluList.vue?6881","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/twocoluList.vue?f702","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/twocoluList.vue?e821","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/components/twocoluList.vue?ecd1","uni-app:///components/twocoluList.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAwH;AACxH;AAC+D;AACL;;;AAG1D;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,sFAAM;AACR,EAAE,+FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,0FAAU;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;AAAyqB,CAAgB,uqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACwB7rB;AACA;AACA;AACA,iBADA;AAEA;AACA;AACA,OAJA,EADA,EADA;;;AASA,MATA,kBASA;AACA;AACA,gDADA,CACA;AADA;AAGA,GAbA;AAcA,SAdA,qBAcA;AACA,GAfA;AAgBA;AACA,UADA,kBACA,EADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA,SAFA,EAEA,IAFA;AAGA,OALA,MAKA;AACA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA,SANA,EAMA,mBANA;AAOA;;AAEA,KAnBA;AAoBA,YApBA,oBAoBA,KApBA,EAoBA;AACA;AACA;AACA,8DADA;;AAGA,KAzBA,EAhBA,E","file":"components/twocoluList.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./twocoluList.vue?vue&type=template&id=7c33cbd8&\"\nvar renderjs\nimport script from \"./twocoluList.vue?vue&type=script&lang=js&\"\nexport * from \"./twocoluList.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 = \"components/twocoluList.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!./twocoluList.vue?vue&type=template&id=7c33cbd8&\"","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!./twocoluList.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!./twocoluList.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"padding-zy20 disba flw\">\r\n <view v-if=\"dataList.length!=0\" class=\"discc radius10 padding20 margin-x20\" v-for=\"(item,index) in dataList\" :key=\"index\"\r\n style=\"background-color: #FFFFFF;width: 43%;box-shadow: 0 0 30rpx rgba(0,0,0,0.1);\">\r\n <image @tap=\"goDetail(item.spu_id)\" class=\"pimg radius10 margin-s10\" :src=\"item.src\" mode=\"aspectFill\"></image>\r\n <view class=\"clips2 margin-s10 width100\" style=\"font-size: 27rpx;height: 68rpx;text-align: left;\">{{item.title}}</view>\r\n <view class=\"disba width100 margin-sx10\">\r\n <view class=\"disac fon24 colorf78\">\r\n <view>¥<text class=\"fon36 bold\">{{item.price}}</text>.00</view>\r\n\t\t\t\t\t<view v-if=\"user_type=='personal'\" class=\"flexs radius16 colorb fon24 margin-z10\" style=\"background-color: #4cc474;line-height: 30rpx;height: 30rpx;\">\r\n\t\t\t\t\t\t<view style=\"transform: scale(0.7);\">全国零售</view>\r\n\t\t\t\t\t</view>\r\n <view class=\"flexs radius16 colorb fon24 margin-z10\" style=\"background-color: #4cc474;line-height: 30rpx;height: 30rpx;\">\r\n\t\t\t\t\t\t<view style=\"transform: scale(0.7);\">放心购</view>\r\n\t\t\t\t\t</view>\r\n </view>\r\n <image v-if=\"user_type!='personal'\" @tap=\"addChe(item.id)\" class=\"pche\" src=\"/static/img/public/gouwcar.png\"></image>\r\n </view>\r\n </view>\r\n\t\t<view v-if=\"dataList.length==0\" class=\"kongk width100 text-center\">空空如也</view>\r\n\t</view>\n</template>\n\n<script>\r\n\texport default {\r\n\t\tprops:{\r\n\t\t\tdataList:{\r\n\t\t\t\ttype:Array,\r\n\t\t\t\tdefault:function(){\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\n\t\tdata() {\n\t\t\treturn {\r\n\t\t\t\tuser_type:uni.getStorageSync('user_type')//权限\r\n\t\t\t};\n\t\t},\r\n\t\tmounted() {\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\taddChe(id){//加入购物车事件\r\n\t\t\t\t// console.log(this.dataList);\r\n\t\t\t\tif(uni.getStorageSync('is_active')==0) {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您目前是游客,请授权登录')\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.navigateTo({url:'/pages/login/login'})\r\n\t\t\t\t\t},1500)\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$emit('addChe')\r\n\t\t\t\t\tthis.$requst.post('order/shopping-cart-add',{sku_id:id,num:1}).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('添加购物车成功(*^▽^*)')\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},error=>{})\r\n\t\t\t\t}\r\n \r\n\t\t\t},\r\n\t\t\tgoDetail(index){\r\n\t\t\t\t// console.log('进入详情页'+index);\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/productDetail/productDetail?id='+index\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""} |