1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/detail.vue?fca0","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/detail.vue?871c","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/detail.vue?d469","webpack:///D:/鲁班家具小程序/luban-mall/pages/tabbar/kit/detail.vue?750a","uni-app:///pages/tabbar/kit/detail.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,mG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAmH;AACnH;AAC0D;AACL;;;AAGrD;AACuL;AACvL,gBAAgB,2LAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,iFAAM;AACR,EAAE,0FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,qFAAU;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,aAAa,0PAEN;AACP,KAAK;AACL;AACA,aAAa,wOAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAAusB,CAAgB,srBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC0D3tB;AACA,gD,24EAAA;eACA;AACA;AACA,wBADA;AAEA,sBAFA;AAGA,wBAHA;AAIA,oCAJA,EADA;;AAOA,MAPA,kBAOA;AACA;AACA,uGADA;AAEA,mDAFA;AAGA,mBAHA;AAIA,mBAJA,EAIA;AACA,gBALA,EAKA;AACA,mBANA,EAMA;AACA,iBAPA,EAOA;AACA,mBARA,EAQA;AACA,uBATA,EASA;AACA,YAVA,CAUA;AAVA;AAYA,GApBA;AAqBA;AACA;AACA,6EADA,GADA,CArBA;;;AA0BA,QA1BA,kBA0BA,EA1BA,EA0BA;AACA;AACA;AACA;AACA;AACA,GA/BA;AAgCA,QAhCA,oBAgCA;;AAEA,GAlCA;AAmCA;AACA,mBApCA,+BAoCA;;AAEA,GAtCA;AAuCA;AACA,iBAxCA,6BAwCA;;AAEA,GA1CA;AA2CA;AACA;AACA,gBAFA,wBAEA,EAFA,EAEA;AACA;AACA;AACA;AACA,4CADA,CACA;AACA,sCAFA,CAEA;AACA;AACA;AACA;AACA,0BADA;;AAGA;AACA,WALA;AAMA,mCAVA,CAUA;AACA;AACA;AACA,OAdA;AAeA,KAnBA;AAoBA;AACA,gBArBA,wBAqBA,EArBA,EAqBA;AACA;AACA,cADA;AAEA,2BAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA,SALA;AAMA,OAPA,MAOA;AACA;AACA;AACA;AACA;AACA;AACA,SALA;AAMA;;AAEA,KA1CA;AA2CA;AACA,YA5CA,sBA4CA;AACA;AACA;AACA;AACA;AACA;AACA,WAHA,MAGA;AACA;AACA;AACA,SAPA;AAQA;AACA,KAvDA;AAwDA;AACA,UAzDA,oBAyDA;AACA;AACA;AACA;AACA;AACA,sCADA;;AAGA,WAJA,MAIA;AACA;AACA;AACA,SARA;AASA;AACA,KArEA;AAsEA;AACA,YAvEA,oBAuEA,EAvEA,EAuEA;AACA;AACA,gEADA;;AAGA,KA3EA,EA3CA,E","file":"pages/tabbar/kit/detail.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/tabbar/kit/detail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./detail.vue?vue&type=template&id=458dbf52&\"\nvar renderjs\nimport script from \"./detail.vue?vue&type=script&lang=js&\"\nexport * from \"./detail.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HBuilderX-app开发版/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 = \"pages/tabbar/kit/detail.vue\"\nexport default component.exports","export * from \"-!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=template&id=458dbf52&\"","var components\ntry {\n components = {\n enterCart: function() {\n return import(\n /* webpackChunkName: \"components/enter-cart/enter-cart\" */ \"@/components/enter-cart/enter-cart.vue\"\n )\n },\n customerService: function() {\n return import(\n /* webpackChunkName: \"components/customer-service/customer-service\" */ \"@/components/customer-service/customer-service.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./detail.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"pad-b140\">\r\n\t\t<status-nav :ifReturn=\"true\" navBarTitle=\"套件简介\" :marginBottom=\"0\"></status-nav>\r\n\t\t<!-- 商品轮播图 -->\r\n\t\t<view class=\"shop-img\">\r\n\t\t\t<swiper-pu newRadius=\"0\" :bannerList=\"kitBanner\" newHeight=\"505rpx\" newBottom=\"35rpx\" :isplay='isplay'></swiper-pu>\r\n\t\t</view>\r\n\t\t<!-- 商品概述 -->\r\n\t\t<view class=\"shop-summary kit-summary\">\r\n\t\t\t<view class=\"shop-title\">{{kitDetail.name}}</view>\r\n\t\t\t<view class=\"shop-txt flex\">\r\n\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t<view class=\"shop-customized\">{{kitDetail.customized==1?'可定制':'不可定制'}}</view>\r\n\t\t\t\t\t<view class=\"kit-compose\">{{kitDetail.subtitle}}</view>\r\n\t\t\t\t\t<view class=\"shop-pric\">¥{{kitDetail.price}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"right flex\">\r\n\t\t\t\t\t<view class=\"collection-btn flex\" :class=\"kitDetail.is_collected == 1?'active':''\" @tap=\"collectionEv(kitDetail.id)\">\r\n\t\t\t\t\t\t<image src=\"/static/public/icon-collection.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t<text>收藏</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"share-btn flex\">\r\n\t\t\t\t\t\t<image src=\"/static/public/icon-share.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t\t<text>分享</text>\r\n\t\t\t\t\t\t<button plain=\"true\" data-name=\"shareBtn\" open-type=\"share\"></button>\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=\"kit-contain\">\r\n\t\t\t<view class=\"contain-h2\">套件包含</view>\r\n\t\t\t<view class=\"contain-list flex\">\r\n\t\t\t\t<view class=\"contain-item\" @tap=\"toDetail(item.id)\" v-for=\"(item,index) in kitDetail.series\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"contain-img\">\r\n\t\t\t\t\t\t<image :src=\"item.cover\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"contain-title clips2\">{{item.name}}</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=\"shop-btns flex\">\r\n\t\t\t<view class=\"btn\" @tap=\"joinCart(specsIndex)\">加入购物车</view>\r\n\t\t\t<view class=\"btn\" @tap=\"buyNow(specsIndex)\">立即购买</view>\r\n\t\t</view>\r\n\t\t<!-- 购物车btn -->\r\n\t\t<enter-cart :bottom=\"335\"></enter-cart>\r\n\t\t<!-- 客服btn -->\r\n\t\t<customer-service></customer-service>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport statusNav from '@/components/status-navs/status-nav';\r\n\timport enterCart from '@/components/enter-cart/enter-cart.vue';\r\n\timport customerService from '@/components/customer-service/customer-service.vue';\r\n\timport swiperPu from '@/components/swipers/swiper-pu';\r\n\timport {getCartNum} from '@/jsFile/public-api.js';\r\n\timport { mapState } from 'vuex'//引入mapState\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tstatusNav,\r\n\t\t\tswiperPu,\r\n\t\t\tenterCart,\r\n\t\t\tcustomerService,\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tscrollHeight:uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight - 50,\r\n\t\t\t\tnewWidth:uni.getSystemInfoSync().windowWidth,\r\n\t\t\t\tisplay:false,\r\n\t\t\t\tkitDetail:{}, //套件详情\r\n\t\t\t\tkitSku:[], //套件规格\r\n\t\t\t\tisShow:false, //是否展示规格弹窗\r\n\t\t\t\tkitIndex:0, //规格选中位置\r\n\t\t\t\tkitBanner:[], //套件轮播\r\n\t\t\t\taction:'collect', //收藏类型\r\n\t\t\t\tid:'' //套件id\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed:{\r\n\t\t\t...mapState({\r\n\t\t\t\tfootHeight: state => state.moduleA.footHeight,\r\n\t\t\t}),\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tif(op !== ''){\r\n\t\t\t\tthis.id = op.id;\r\n\t\t\t\tthis.getKitDetail(this.id);\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t\r\n\t\t},\r\n\t\t// 分享到微信\r\n\t\tonShareAppMessage() {\r\n\t\t\t\r\n\t\t},\r\n\t\t// 分享到朋友圈\r\n\t\tonShareTimeline(){\r\n\t\t\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t//查询套件详情\r\n\t\t\tgetKitDetail(id){\r\n\t\t\t\tuni.showLoading();\r\n\t\t\t\tthis.$requst.get('/api/spu/detail',{id:id}).then(res=>{\r\n\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\tthis.kitDetail = res.data.detail; //套件详情\r\n\t\t\t\t\t\tthis.kitSku = res.data.sku; //套件规格\r\n\t\t\t\t\t\tlet newArr = [];\r\n\t\t\t\t\t\tres.data.detail.images.forEach(item=>{\r\n\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\timgSrc:item,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tnewArr.push(obj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tthis.kitBanner = newArr; //详情轮播图\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//收藏\r\n\t\t\tcollectionEv(id){\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\tid:id,\r\n\t\t\t\t\taction:this.action\r\n\t\t\t\t}\r\n\t\t\t\tif(this.kitDetail.is_collected == 1){\r\n\t\t\t\t\tthis.$requst.post('/api/spu/un-record',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\t\t// this.$toolAll.tools.showToast('取消收藏成功');\r\n\t\t\t\t\t\t\tthis.getKitDetail(this.id);\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\tthis.$requst.post('/api/spu/record',params).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\t\t// this.$toolAll.tools.showToast('收藏成功');\r\n\t\t\t\t\t\t\tthis.getKitDetail(this.id);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\t// 加入购物车\r\n\t\t\tjoinCart(){\r\n\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\tthis.$requst.post('/api/order/shopping-cart-add',{sku_id:this.kitSku[this.kitIndex].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\tgetCartNum();\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})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 立即购买\r\n\t\t\tbuyNow(){\r\n\t\t\t\tif(this.$toolAll.tools.judgeAuth()) {\r\n\t\t\t\t\tthis.$requst.post('/api/order/shopping-cart-add',{sku_id:this.kitSku[this.kitIndex].id,num:1}).then(res=>{\r\n\t\t\t\t\t\tif(res.code==0) {\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:`/pagesA/cart/cart`\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\tthis.$toolAll.tools.showToast(res.msg)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 去商品详情\r\n\t\t\ttoDetail(id){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pagesA/shop/detail?id=${id}&source=kit`\r\n\t\t\t\t})\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\t\r\n</style>\r\n"],"sourceRoot":""} |