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

1 line
10 KiB
Plaintext

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/adManagement/adManagement.vue?31c8","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/adManagement/adManagement.vue?1c57","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/adManagement/adManagement.vue?655b","webpack:///D:/chenq/chen/uniapp(兼小程序)/dengrui/pagesB/adManagement/adManagement.vue?d72c","uni-app:///pagesB/adManagement/adManagement.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,mH;AACAA,UAAU,CAACC,qBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;;;AAG3D;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,uFAAM;AACR,EAAE,gGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2FAAU;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;AAAyrB,CAAgB,wqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8B7sB;AACA,MADA,kBACA;AACA;AACA,iBADA;AAEA,iBAFA;AAGA,iBAHA;AAIA,gDAJA;;AAMA,GARA;AASA,QATA,oBASA;AACA;AACA;AACA,GAZA;AAaA,QAbA,kBAaA,OAbA,EAaA;AACA;AACA;AACA,GAhBA;AAiBA;AACA,gBADA,0BACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAFA;AAGA,sDALA,CAKA;AACA,2CANA,CAMA;AACA;AACA,OAXA,EAWA,mBAXA;AAYA,KAdA;AAeA,iBAfA,yBAeA,KAfA,EAeA;AACA;AACA;AACA;AACA;AACA,0DADA;;AAGA;AACA,KAvBA;AAwBA,iBAxBA,yBAwBA,KAxBA,EAwBA,EAxBA,EAwBA;AACA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA,KAhCA;AAiCA,cAjCA,sBAiCA,KAjCA,EAiCA,EAjCA,EAiCA;AACA;AACA;AACA,oBADA;AAEA,4HAFA;AAGA,wBAHA;AAIA,8BAJA;AAKA,yBALA;AAMA,+BANA;AAOA;AACA;AACA;AACA;AACA,+BADA;AAEA,4BAFA;;AAIA,oCALA,CAKA;AACA,aANA,EAMA,mBANA;AAOA;AACA,SAjBA;;AAmBA,KAtDA,EAjBA,E","file":"pagesB/adManagement/adManagement.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/adManagement/adManagement.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./adManagement.vue?vue&type=template&id=45c80a2c&\"\nvar renderjs\nimport script from \"./adManagement.vue?vue&type=script&lang=js&\"\nexport * from \"./adManagement.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 = \"pagesB/adManagement/adManagement.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!./adManagement.vue?vue&type=template&id=45c80a2c&\"","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!./adManagement.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!./adManagement.vue?vue&type=script&lang=js&\"","<template>\n <view class=\"\">\n <!-- 使用标题栏 -->\r\n <status-nav :statusBackw=\"true\" :statusTitle=\"true\" :whereCome=\"wherenum*1\" :title-val=\"'地址管理'\" :tabcolor=\"'#ffffff'\"></status-nav>\r\n <!-- 地址信息 -->\r\n <view class=\"bacb padding-zy30 posir\" :style=\"{paddingTop:statusHNH+'px'}\">\r\n <view v-if=\"dataArr.length!=0\" class=\"disba borbot\" v-for=\"(item,index) in dataArr\" :key=\"index\">\r\n <view @tap=\"chooseAddress(index)\" class=\"margin-sx40\" style=\"margin-top: 20px;\">\r\n <view class=\"fon28 color33 disac\">\r\n <view v-if=\"item.is_default==1\" class=\"fon24 colorb margin-y20 btnaddress\" style=\"background-color: #e91111;\">默认</view>\r\n <!-- <view v-if=\"item.tag==1\" class=\"fon24 colorb margin-y20 btnaddress\" style=\"background-color: #ffc600;\">{{item.tag}}</view> -->\r\n <view class=\"fon28 color33\">{{item.name}} {{item.phone}}</view>\r\n </view>\r\n <view class=\"fon30 bold margin-sx10\">{{item.address}}</view>\r\n <view class=\"fon28 color33\">{{item.province_str}} {{item.city_str}} {{item.county_str}}</view>\r\n </view>\r\n <view>\r\n <image @tap=\"updateAddress(index,item.id)\" style=\"width: 27rpx;height: 26rpx;margin-right: 20rpx;\" src=\"/static/img/order/addEdit.png\" mode=\"\"></image>\r\n <image @tap=\"delAddress(index,item.id)\" style=\"width: 33rpx;height: 33rpx;\" src=\"/static/img/gouwc/del.png\" mode=\"\"></image>\r\n </view>\r\n </view>\r\n\t\t <view v-if=\"dataArr.length==0\" class=\"zanwu\">暂无收货地址</view>\r\n </view>\r\n <view class=\"disbc\" style=\"position: fixed;bottom: 40px;left: 60px;right: 60px;\">\r\n <view @tap=\"updateAddress('-1',0)\" class=\"colorb fon30 addbtn\">+新建收货地址</view>\r\n </view>\r\n </view>\n</template>\n\n<script>\n export default {\n data() {\n return {\r\n dataArr:[],\r\n wherenum:0,\r\n\t\t\t\tisOrder:'',\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\tthis.checkAddress()\r\n\t\t},\r\n onLoad(options) {\r\n this.wherenum = options.wherenum;\r\n\t\t\tif(options.isOrder!=undefined) this.isOrder = options.isOrder\r\n },\n methods: {\r\n\t\t\tcheckAddress(){//查询地址列表事件\r\n\t\t\t\tthis.$requst.post('user/address').then(res=>{\r\n\t\t\t\t\tthis.dataArr = res.data\r\n\t\t\t\t\t// console.log(this.dataArr);\r\n\t\t\t\t\tif(this.dataArr.length!=0){\r\n\t\t\t\t\t\t// let obj = this.dataArr.filter(item=>item.isMo==true)//返回找到的对象\r\n\t\t\t\t\t\tlet index = this.dataArr.findIndex((v) => {//找到是否有默认地址\r\n\t\t\t\t\t\t return v.is_default == 1;\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tlet newArr = this.dataArr.splice(index,1)//有删除改地址\r\n\t\t\t\t\t\tthis.dataArr.unshift(newArr[0])//插入改地址到第一位\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\n chooseAddress(index){//选中当前地址作为收货地址\r\n // console.log('选择当前地址:'+index);\r\n\t\t\t\tif(this.isOrder!=''){\r\n\t\t\t\t\tuni.setStorageSync('isAddr',this.dataArr[index])\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t url:'/pagesA/confirmOrder/confirmOrder?index=3'\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n },\r\n updateAddress(index,id){//编辑地址事件\r\n // console.log('新增/编辑地址:'+index);\r\n\t\t\t\tif(index!='-1'){\r\n\t\t\t\t\tuni.setStorageSync('updataAddress',this.dataArr[index])\r\n\t\t\t\t}\r\n uni.navigateTo({\r\n url:'/pagesB/newAddress/newAddress'\r\n })\r\n },\r\n delAddress(index,id){//删除地址事件\r\n // console.log('删除地址:'+id);\r\n uni.showModal({\r\n title:'提示:',\r\n content:`确定要删除 \" ${this.dataArr[index].name} \" 的地址吗?`,\r\n cancelText:'取消',\r\n cancelColor:'#999999',\r\n confirmText:'确定',\r\n confirmColor:'#164396',\r\n success: (res) => {\r\n if(res.confirm){\r\n\t\t\t\t\t\t\tthis.$requst.post('user/address-del',{id:id}).then(res=>{\r\n\t\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\t title:'删除地址成功',\r\n\t\t\t\t\t\t\t\t icon:'none'\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tthis.checkAddress()//重新执行查询地址\r\n\t\t\t\t\t\t\t},error=>{})\r\n }\r\n }\r\n })\r\n }\r\n }\n }\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""}