luban-mall/unpackage/dist/dev/.sourcemap/mp-weixin/pagesA/order/detail.js.map

1 line
13 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","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/order/detail.vue?ddbd","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/order/detail.vue?e555","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/order/detail.vue?3df1","webpack:///D:/鲁班家具小程序/luban-mall/pagesA/order/detail.vue?c06e","uni-app:///pagesA/order/detail.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,gG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,eAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAA+H;AAC/H;AAC0D;AACL;;;AAGrD;AACoL;AACpL,gBAAgB,2LAAU;AAC1B,EAAE,4EAAM;AACR,EAAE,6FAAM;AACR,EAAE,sGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iGAAU;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,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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAwrB,CAAgB,srBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACmE5sB;AACA,gD,8rBAAA;eACA;AACA;AACA,wBADA;AAEA,oCAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,qBADA,EACA;AACA,gBAFA;AAGA,sBAHA;AAIA,WAJA,EAIA;AACA,yBALA,EAKA;AACA,sBANA;;AAQA,GAdA;AAeA,QAfA,kBAeA,EAfA,EAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAtBA;AAuBA,QAvBA,oBAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OALA;AAMA,KAPA,MAOA;AACA;AACA;AACA;AACA,GAnCA;AAoCA;AACA,mBArCA,+BAqCA;AACA;AACA;AACA,gBADA;;AAGA,GA1CA;AA2CA;AACA,iBA5CA,2BA4CA,GA5CA,EA4CA;AACA;AACA;AACA,gBADA;;AAGA,GAjDA;AAkDA;AACA;AACA,kBAFA,4BAEA;AACA;AACA,oBADA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OANA;AAOA,KAdA;;;AAiBA;AACA,YAlBA,sBAkBA;AACA;AACA,6CADA,CACA;AADA;AAGA;AACA;AACA;AACA;AACA,sCADA;;AAGA,SALA,MAKA;AACA;AACA;AACA,OATA;AAUA,KAhCA;AAiCA;AACA,YAlCA,oBAkCA,KAlCA,EAkCA;AACA;AACA;AACA;AACA;AACA,iCADA;AAEA,uBAFA;;AAIA;AACA,OANA;AAOA;AACA;AACA,mCADA;;AAGA,KAhDA;AAiDA;AACA,YAlDA,oBAkDA,EAlDA,EAkDA,IAlDA,EAkDA;AACA;AACA;AACA,mEADA;;AAGA;AACA;AACA;AACA,wDADA;;AAGA;AACA,KA7DA,EAlDA,E","file":"pagesA/order/detail.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pagesA/order/detail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./detail.vue?vue&type=template&id=35bf19e6&scoped=true&\"\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 \"35bf19e6\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesA/order/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=35bf19e6&scoped=true&\"","var components\ntry {\n components = {\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=\"order-info-bg\" v-if=\"isLoading\">\r\n\t\t\t<view class=\"order-info\">\r\n\t\t\t\t<view class=\"flex\">\r\n\t\t\t\t\t<text>订单编号</text>\r\n\t\t\t\t\t<text>{{orderDetail.coding}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex\">\r\n\t\t\t\t\t<text>下单时间</text>\r\n\t\t\t\t\t<text>{{orderDetail.created_at}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"flex\">\r\n\t\t\t\t\t<text>订单状态</text>\r\n\t\t\t\t\t<text>{{orderDetail.status_text}}</text>\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=\"order-list\" v-if=\"isLoading\">\r\n\t\t\t<view class=\"order-item order-item-detail\">\r\n\t\t\t\t<view class=\"order-information\">订单信息</view>\r\n\t\t\t\t<view class=\"item-bg\">\r\n\t\t\t\t\t<view class=\"item flex\" v-for=\"(item,index) in orderDetail.skus\" :key=\"index\" @tap=\"toDetail(item.spu_id,item.is_series)\">\r\n\t\t\t\t\t\t<view class=\"img\"><image :src=\"item.spu_cover\" mode=\"widthFix\"></image></view>\r\n\t\t\t\t\t\t<view class=\"txt\">\r\n\t\t\t\t\t\t\t<view class=\"title\">{{item.spu_name}}</view>\r\n\t\t\t\t\t\t\t<view class=\"specs clips2\">规格:{{item.custom_title}}</view>\r\n\t\t\t\t\t\t\t<view class=\"price flex\">\r\n\t\t\t\t\t\t\t\t<text>¥{{item.price}}</text>\r\n\t\t\t\t\t\t\t\t<view><text>x</text>{{item.num}}</view>\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</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"total-price total-price-detail flex\">\r\n\t\t\t\t\t<text>总价:¥{{orderDetail.original_price}}</text>\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=\"contact-info-bg\" v-if=\"isLoading\">\r\n\t\t\t<view class=\"contact-info\">\r\n\t\t\t\t<view class=\"title\">联系方式</view>\r\n\t\t\t\t<view class=\"name\">\r\n\t\t\t\t\t<text>{{orderDetail.contact}}</text>\r\n\t\t\t\t\t<text>{{orderDetail.phone}}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"item\">{{orderDetail.address}}</view>\r\n\t\t\t\t<view class=\"item\" v-if=\"orderDetail.remarks!==''\">希望到货时间:{{orderDetail.remarks}}</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 底部按钮 -->\r\n\t\t<view class=\"shop-btns order-btns flex\">\r\n\t\t\t<view class=\"btn btn-grey\" @tap=\"cancleEv\" v-if=\"orderDetail.status == 'ordered'\">取消订单</view>\r\n\t\t\t<view class=\"btn\" @tap=\"buyAgain\" v-if=\"orderDetail.status == 'completed' || orderDetail.status == 'closed'\">再次购买</view>\r\n\t\t</view>\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 customerService from '@/components/customer-service/customer-service.vue';\r\n\timport {getCartNum,userInfoEv} 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\tcustomerService\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\torderDetail:{}, //订单详情\r\n\t\t\t\tflag:true,\r\n\t\t\t\tifLoading:false,\r\n\t\t\t\tid:0, //订单id\r\n\t\t\t\tcacheBusinessId:-1, //商户id\r\n\t\t\t\tisLoading:false,\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tif(op.id !== ''){\r\n\t\t\t\tthis.id = op.id;\r\n\t\t\t\tif(op.business_id){\r\n\t\t\t\t\tthis.cacheBusinessId = op.business_id;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tif(this.cacheBusinessId !== -1){\r\n\t\t\t\tthis.$requst.post('/api/index/change-business',{business_id:this.cacheBusinessId}).then(res=>{\r\n\t\t\t\t\tif(res.code == 0){\r\n\t\t\t\t\t\tthis.getOrderDetail();\r\n\t\t\t\t\t\tuserInfoEv();\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}else{\r\n\t\t\t\tthis.getOrderDetail();\r\n\t\t\t\tuserInfoEv();\r\n\t\t\t}\r\n\t\t},\r\n\t\t// 分享到微信\r\n\t\tonShareAppMessage() {\r\n\t\t\tlet path = uni.getStorageSync('page-path-options')+'?business_id='+uni.getStorageSync('business_id');\r\n\t\t\treturn {\r\n\t\t\t\tpath:path\r\n\t\t\t}\r\n\t\t},\r\n\t\t// 分享到朋友圈\r\n\t\tonShareTimeline(res){\r\n\t\t\tlet path = uni.getStorageSync('page-path-options')+'?business_id='+uni.getStorageSync('business_id');\r\n\t\t\treturn {\r\n\t\t\t\tpath:path\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 查询订单详情\r\n\t\t\tgetOrderDetail(){\r\n\t\t\t\tuni.showLoading({\r\n\t\t\t\t\ttitle: '加载中'\r\n\t\t\t\t});\r\n\t\t\t\tthis.isLoading =false;\r\n\t\t\t\tthis.$requst.get('/api/user/order-detail',{id:this.id}).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.orderDetail = res.data;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\tthis.isLoading =true;\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// 取消订单\r\n\t\t\tcancleEv(){\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\torder_coding: this.orderDetail.coding //订单号\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('/api/order/cancel',params).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\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pagesA/order/order'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg)\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\tbuyAgain(index){\r\n\t\t\t\tlet buyList = [];\r\n\t\t\t\tlet newArr = this.orderDetail;\r\n\t\t\t\tnewArr.skus.forEach(item=>{\r\n\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\tsku_coding: item.coding,\r\n\t\t\t\t\t\tnum: item.num\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbuyList.push(obj);\r\n\t\t\t\t})\r\n\t\t\t\tuni.setStorageSync('buyList',buyList);\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/cart/prepare'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t//去商品详情页\r\n\t\t\ttoDetail(id,type){\r\n\t\t\t\tif(type == 0){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:`/pagesA/shop/detail?id=${id}&source=shop`\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tif(type == 1){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:`/pages/tabbar/kit/detail?id=${id}`\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n\t\r\n</style>"],"sourceRoot":""}