1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/afterSales/afterSales.vue?b4aa","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/afterSales/afterSales.vue?7aef","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/afterSales/afterSales.vue?39eb","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesA/afterSales/afterSales.vue?02ac","uni-app:///pagesA/afterSales/afterSales.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,4G;AACAA,UAAU,CAACC,mBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAuH;AACvH;AAC8D;AACL;;;AAGzD;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,gFAAM;AACR,EAAE,qFAAM;AACR,EAAE,8FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yFAAU;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;AAAurB,CAAgB,sqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuC3sB;AACA,MADA,kBACA;AACA;AACA,kBADA;AAEA,iBAFA;AAGA,aAHA;AAIA,cAJA;AAKA,eALA;AAMA,kBANA;AAOA,gDAPA;;AASA,GAXA;AAYA,QAZA,oBAYA;AACA;AACA,GAdA;AAeA,QAfA,kBAeA,OAfA,EAeA;AACA;AACA,0BAFA,CAEA;AACA,GAlBA;AAmBA,eAnBA,2BAmBA;AACA;AACA;AACA,4BAFA,CAEA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GA3BA;AA4BA;AACA,kBADA,4BACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CADA;AAEA,8CAFA;AAGA,yDAHA;AAIA,4CAJA;AAKA,2CALA;AAMA,qCANA;AAOA,mDAPA;AAQA,+CARA;AASA,iCATA;AAUA,wCAVA;;AAYA;AACA,aAlBA;AAmBA;AACA;AACA,OA3BA,EA2BA,mBA3BA;AA4BA,KA9BA;AA+BA,eA/BA,uBA+BA,KA/BA,EA+BA;AACA;AACA,8DADA;;AAGA,KAnCA,EA5BA,E","file":"pagesA/afterSales/afterSales.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesA/afterSales/afterSales.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./afterSales.vue?vue&type=template&id=5478c7eb&\"\nvar renderjs\nimport script from \"./afterSales.vue?vue&type=script&lang=js&\"\nexport * from \"./afterSales.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 = \"pagesA/afterSales/afterSales.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!./afterSales.vue?vue&type=template&id=5478c7eb&\"","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!./afterSales.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!./afterSales.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"\">\n <!-- 使用标题栏 -->\r\n <status-nav :statusBackw=\"true\" :statusTitle=\"true\" :whereCome=\"whereCome*1\" :title-val=\"'售后'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n <view :style=\"{paddingTop:statusHNH+'px'}\">\r\n <view v-if=\"dataArr.length!=0\" class=\"padding-sx20 fon28 bacb margin-sx20 padding-zy30\" style=\"border-radius: 5rpx;\" v-for=\"(item,index) in dataArr\" :key=\"index\">\r\n <view class=\"fon24 color6 margin-sx10\">订单号:{{item.orderId}}</view>\r\n <view class=\"margin-sx20 disac posir borbot padding-x20\">\r\n <image @tap=\"checkDetail(index)\" class=\"radius10 flexs goodsImg\" :src=\"item.src\" mode=\"\"></image>\r\n <view class=\"margin-zy20\" style=\"width: 54%;\">\r\n <view class=\"fon32 clips2\">{{item.title}}</view>\r\n <view class=\"fon24 color9 margin-sx10\">{{item.cate}}</view>\r\n <view class=\"fon24 color6\">X{{item.num}}</view>\r\n </view>\r\n <view style=\"position: absolute;right: 10rpx;bottom: 36rpx;text-align: right;\">\r\n <view>¥<text class=\"fon36 bold\">{{item.allprice}}</text>.0</view>\r\n <view class=\"fon26 disac margin-s20\"><view class=\"flexs\">实付款:</view><text class=\"colorf78\">¥{{item.price}}.0</text></view>\r\n </view>\r\n </view>\r\n <view class=\"dis fon24 margin-x10\">\r\n <view class=\"color33 flexs\">处理结果:</view>\r\n <view class=\"bold\">{{['待处理','处理中','已处理'][item.result]}}</view>\r\n </view>\r\n <view class=\"dis fon24\">\r\n <view class=\"color33 flexs\">留言信息:</view>\r\n <view class=\"\">\r\n\t\t\t\t\t\t<block v-for=\"(itema,indexa) in item.content\" :key=\"indexa\">\r\n\t\t\t\t\t\t\t<view class=\"margin-x10\"><text style=\"color: #007AFF;\">(我):</text>{{itema.description}} </view>\r\n\t\t\t\t\t\t\t<view class=\"margin-x20\" v-if=\"itema.reply!=''\"><text style=\"color: #ff0000;\">(商家):</text>{{itema.reply}} </view>\r\n\t\t\t\t\t\t</block>\r\n\t\t\t\t\t</view>\r\n </view>\r\n </view>\r\n\t\t\t<view v-if=\"dataArr.length==0\" class=\"zanwu\">暂无售后记录</view>\r\n </view>\r\n </view>\n</template>\n\n<script>\n export default {\n data() {\n return {\r\n whereCome:0,\r\n dataArr:[],\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\tstatusHNH:uni.getStorageSync('statusHNH')\r\n }\n },\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.guoq()\r\n\t\t},\r\n onLoad(options) {\r\n if(options.index!=undefined){this.whereCome = options.index}\r\n\t\t\tthis.checkAfterList()//调用售后记录事件\r\n },\r\n\t\tonReachBottom() {\r\n\t\t\tif(this.total!=this.dataArr.length){\r\n\t\t\t\tthis.page++\r\n\t\t\t\tthis.checkAfterList()//调用自主预约列表事件\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},\n methods: {\r\n\t\t\tcheckAfterList(){//查询售后记录事件\r\n\t\t\t\tthis.$requst.post('order/get-after-sale-list',{page:this.page,size:this.size}).then(res=>{\r\n\t\t\t\t\t// console.log('售后列表',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(this.page==1) this.dataArr = []\r\n\t\t\t\t\t\tthis.total = res.data.total\r\n\t\t\t\t\t\tif(res.data.list.length!=0){\r\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet newStatus = ''\r\n\t\t\t\t\t\t\t\tif(item.afterSales[0].status=='waiting') newStatus = 0\r\n\t\t\t\t\t\t\t\tif(item.afterSales[0].status=='doing') newStatus = 1\r\n\t\t\t\t\t\t\t\tif(item.afterSales[0].status=='done') newStatus = 2\r\n\t\t\t\t\t\t\t\tlet afterObj = {\r\n\t\t\t\t\t\t\t\t\tspu_id:item.skus[0].spu_id,\r\n\t\t\t\t\t\t\t\t\torderId:item.skus[0].order_id,\r\n\t\t\t\t\t\t\t\t\tsrc:this.$http + item.skus[0].sku_cover,\r\n\t\t\t\t\t\t\t\t\ttitle:item.skus[0].spu_name,\r\n\t\t\t\t\t\t\t\t\tcate:item.skus[0].sku_name,\r\n\t\t\t\t\t\t\t\t\tnum:item.skus[0].num,\r\n\t\t\t\t\t\t\t\t\tallprice:item.original_price/100,\r\n\t\t\t\t\t\t\t\t\tprice:item.skus[0].price/100,\r\n\t\t\t\t\t\t\t\t\tresult:newStatus,\r\n\t\t\t\t\t\t\t\t\tcontent:item.afterSales\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.dataArr.push(afterObj)\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},error=>{})\r\n\t\t\t},\n checkDetail(index){\r\n uni.navigateTo({\r\n url:'/pagesA/productDetail/productDetail?id='+index\r\n })\r\n }\n }\n }\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""} |