1 line
9.4 KiB
Plaintext
1 line
9.4 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/pages/views/adManagement/adManagement.vue?924f","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/pages/views/adManagement/adManagement.vue?ce7e","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/pages/views/adManagement/adManagement.vue?9842","webpack:///D:/chen/登锐小程序(uniapp)/dengrui/pages/views/adManagement/adManagement.vue?137c","uni-app:///pages/views/adManagement/adManagement.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,wH;AACAA,UAAU,CAACC,qBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAyH;AACzH;AACgE;AACL;;;AAG3D;AACyK;AACzK,gBAAgB,6KAAU;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;AAAuoB,CAAgB,snBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC6B3pB;AACA,MADA,kBACA;AACA;AACA;AACA,kHADA;AAEA,kHAFA;AAGA,iHAHA,CADA;;AAMA,iBANA;;AAQA,GAVA;AAWA,QAXA,kBAWA,OAXA,EAWA;AACA;AACA;AACA;AACA;AACA,KAFA;AAGA;AACA;AACA,GAnBA;AAoBA;AACA,iBADA,yBACA,KADA,EACA;AACA;AACA;AACA,qDADA;;AAGA,KANA;AAOA,iBAPA,yBAOA,KAPA,EAOA,EAPA,EAOA;AACA;AACA;AACA;AACA;AACA,mBADA;;AAGA,KAdA;AAeA,cAfA,sBAeA,KAfA,EAeA;AACA;AACA;AACA,oBADA;AAEA,4BAFA;AAGA,wBAHA;AAIA,8BAJA;AAKA,yBALA;AAMA,+BANA;AAOA;AACA;AACA;AACA,6BADA;AAEA,0BAFA;;AAIA;AACA,SAdA;;AAgBA,KAjCA,EApBA,E","file":"pages/views/adManagement/adManagement.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/views/adManagement/adManagement.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./adManagement.vue?vue&type=template&id=314c46a5&\"\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/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/views/adManagement/adManagement.vue\"\nexport default component.exports","export * from \"-!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./adManagement.vue?vue&type=template&id=314c46a5&\"","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/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../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/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../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=\"ptwo-box bacb ptwo-box10 padding-zy30 posir\">\r\n <view class=\"disba borbot margin-s10\" v-for=\"(item,index) in dataArr\" :key=\"index\">\r\n <view @tap=\"chooseAddress(index)\" class=\"margin-sx40\" style=\"margin-top: 10px;\">\r\n <view class=\"fon28 color33 disac\">\r\n <view v-if=\"item.isMo\" class=\"fon24 colorb margin-y20 btnaddress\" style=\"background-color: #e91111;\">默认</view>\r\n <view class=\"fon24 colorb margin-y20 btnaddress\" style=\"background-color: #ffc600;\">{{item.cate}}</view>\r\n <view class=\"fon28 color33\">{{item.name}} {{item.phone}}</view>\r\n </view>\r\n <view class=\"fon30 bold margin-sx10\">{{item.addInfo}}</view>\r\n <view class=\"fon28 color33\">{{item.pcq}}</view>\r\n </view>\r\n <view>\r\n <image @tap=\"updateAddress(1,index)\" style=\"width: 27rpx;height: 26rpx;margin-right: 20rpx;\" src=\"../../../static/img/order/addEdit.png\" mode=\"\"></image>\r\n <image @tap=\"delAddress(index)\" style=\"width: 33rpx;height: 33rpx;\" src=\"../../../static/img/gouwc/del.png\" mode=\"\"></image>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"disbc\" style=\"position: fixed;bottom: 40px;left: 60px;right: 60px;\">\r\n <view @tap=\"updateAddress(0,0)\" class=\"colorb fon30\" style=\"background-color: #1c4594;width: 100%;height: 82rpx;line-height: 82rpx;border-radius: 42.5rpx;text-align: center;\">+新建收货地址</view>\r\n </view>\r\n </view>\n</template>\n\n<script>\n export default {\n data() {\n return {\r\n dataArr:[\r\n {isMo:false,cate:'公司',name:'陈之汉',phone:'138****1234',addInfo:'凤凰南大街75号',pcq:'四川省 成都市 温江区 涌泉社区'},\r\n {isMo:false,cate:'学校',name:'陈之汉',phone:'138****1234',addInfo:'凤凰南大街75号',pcq:'四川省 成都市 温江区 涌泉社区'},\r\n {isMo:true,cate:'住宅',name:'陈之汉',phone:'138****1234',addInfo:'凤凰南大街75号',pcq:'四川省 成都市 温江区 涌泉社区'},\r\n ],\r\n wherenum:0\r\n }\n },\r\n onLoad(options) {\r\n this.wherenum = options.wherenum;\r\n // let obj = this.dataArr.filter(item=>item.isMo==true)//返回找到的对象\r\n let index = this.dataArr.findIndex((v) => {\r\n return v.isMo == true;\r\n });\r\n let newArr = this.dataArr.splice(index,1)\r\n this.dataArr.unshift(newArr[0])\r\n },\n methods: {\n chooseAddress(index){\r\n console.log('选择当前地址:'+index);\r\n uni.navigateTo({\r\n url:'/pages/views/confirmOrder/confirmOrder'\r\n })\r\n },\r\n updateAddress(index,id){//编辑地址事件\r\n console.log('新增/编辑地址:'+index);\r\n let newUrl = ''\r\n index==0 ? newUrl = '/pages/views/newAddress/newAddress' : newUrl = '/pages/views/newAddress/newAddress?id='+id\r\n uni.navigateTo({\r\n url:newUrl\r\n })\r\n },\r\n delAddress(index){//删除地址事件\r\n console.log('删除地址:'+index);\r\n uni.showModal({\r\n title:'提示:',\r\n content:'确定要删除地址吗?',\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 uni.showToast({\r\n title:'删除地址成功',\r\n icon:'none'\r\n })\r\n }\r\n }\r\n })\r\n }\r\n }\n }\n</script>\n\n<style>\n</style>\n"],"sourceRoot":""} |