From 2e59fdb8d6700a08a83f9d6a66391afacfec2949 Mon Sep 17 00:00:00 2001 From: yuanteng0011 <1876787513@qq.com> Date: Thu, 7 Nov 2024 19:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9D=80=E4=BF=A1=E6=81=AF=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 - pages/Shopping-cart/address/address.vue | 177 ------- pages/Shopping-cart/address/img/delete.png | Bin 585 -> 0 bytes pages/Shopping-cart/address/img/update.png | Bin 724 -> 0 bytes .../newaddress_Info/newaddress_Info.vue | 6 + pages/order/component/addressComponent.vue | 27 +- .../order/product-waitpay/product-waitpay.vue | 44 +- .../ProductDetails/ProductDetails.vue | 3 +- unpackage/dist/dev/mp-weixin/app.js | 1 - unpackage/dist/dev/mp-weixin/app.json | 1 - .../dev/mp-weixin/assets/delete.377ec392.png | Bin 585 -> 0 bytes .../dev/mp-weixin/assets/update.5da500fc.png | Bin 724 -> 0 bytes unpackage/dist/dev/mp-weixin/common/assets.js | 4 - .../pages/Shopping-cart/address/address.js | 72 --- .../pages/Shopping-cart/address/address.wxml | 1 - .../pages/Shopping-cart/address/address.wxss | 486 ------------------ .../newaddress_Info/newaddress_Info.js | 3 + .../dist/dev/mp-weixin/pages/login/login.js | 2 +- .../pages/order/component/addressComponent.js | 31 +- .../order/component/addressComponent.wxml | 2 +- .../order/product-waitpay/product-waitpay.js | 32 +- .../ProductDetails/ProductDetails.js | 2 +- .../dist/dev/mp-weixin/project.config.json | 4 - .../mp-weixin/{pages => }/utils/emitter.js | 2 +- {pages/utils => utils}/emitter.ts | 0 25 files changed, 117 insertions(+), 790 deletions(-) delete mode 100644 pages/Shopping-cart/address/address.vue delete mode 100644 pages/Shopping-cart/address/img/delete.png delete mode 100644 pages/Shopping-cart/address/img/update.png delete mode 100644 unpackage/dist/dev/mp-weixin/assets/delete.377ec392.png delete mode 100644 unpackage/dist/dev/mp-weixin/assets/update.5da500fc.png delete mode 100644 unpackage/dist/dev/mp-weixin/pages/Shopping-cart/address/address.js delete mode 100644 unpackage/dist/dev/mp-weixin/pages/Shopping-cart/address/address.wxml delete mode 100644 unpackage/dist/dev/mp-weixin/pages/Shopping-cart/address/address.wxss rename unpackage/dist/dev/mp-weixin/{pages => }/utils/emitter.js (58%) rename {pages/utils => utils}/emitter.ts (100%) diff --git a/pages.json b/pages.json index d6d7d86..115fe7e 100644 --- a/pages.json +++ b/pages.json @@ -122,13 +122,6 @@ "navigationBarTitleText" : "" } }, - { - "path" : "pages/Shopping-cart/address/address", - "style" : - { - "navigationBarTitleText" : "" - } - }, { "path" : "pages/order/product-waitpay/product-waitpay", "style" : diff --git a/pages/Shopping-cart/address/address.vue b/pages/Shopping-cart/address/address.vue deleted file mode 100644 index 5f14f11..0000000 --- a/pages/Shopping-cart/address/address.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/Shopping-cart/address/img/delete.png b/pages/Shopping-cart/address/img/delete.png deleted file mode 100644 index 362ac8b3f4ff400f261f2d168b74ec07b3ce9efc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 585 zcmV-P0=E5$P)yEg!tI)b}yufw$LyPeb4j0hCGvH*~5On{~-;= zq|dZ+o^;sy{DTi$;_pZrXbY7uWfF|;W1Ah?CUWE_IOe1&)FTb}Ij- zEH4B3>|jKT5FgIJYEgiqo zwGY-itDesxc1{Ya_OM-(ngGY5ezS4vIhD}uXq=tS^i)ejD_oz*0#Ou&7?6n1N28Iy z-EO~C_FBPo3;vBzlZ0O&Gen4hIU-u)T3f)`L$)PkfU!{c*RzcLDK4)Pzsw#S#hg2z z$N=N1he%Zd*Gle9xL~r46KWeL)HY72ZJbcsIH9&N7K&9`oWudXx+?7AhCSo0c|SNXKM>yYkVhfAKEVCquYe0+(2o*IheMrdKr& z<;C~1(qS9)`-ZJ^=QgF+)FWWHBP+gEh3i&0HhpXd)khH=Gjtq~1u*p&xWFel9CyMm Xi>|IiYH+=E00000NkvXXu0mjfSb+ig diff --git a/pages/Shopping-cart/address/img/update.png b/pages/Shopping-cart/address/img/update.png deleted file mode 100644 index b410b485919afdd1b600d1fdf6b48ccc490fe8ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 724 zcmV;_0xSKAP)zd z+b|S`ul(~IZBTUsZ%}uHPEcin+V2J=8-8~>LF);cP7r5%!>)wwS)OqaMsnjBvVg+#81`BYksY-Hbty9^6=YuW$MP07lm?(aA*rz6@2|{$ zfZu5Ua5%g&{a!)M=|&l&0HXqSf3nu*3odP7T1tetB3-G zXPXRg>(b*$4u`*-Dd8HDY8+8cE2=RdzAC%esdK9)FI%=0<+p3V)}YKy?!GzY*ziu! zrY*h!r46W#CZ?6Q8g~F2q1j|( zJzFcdwfI+9<*+SJ8~#BAM^(2LKBVru2%6cB%hqehG)-3kohUOC{|e<0&DdC{3sv5a z0yY6`D&2|iz!Z_awK;=h|IO*g8hRxjg%5{yx-YuuGwB%)ln8@{3yYQj0000 import {ref , onMounted} from 'vue' import { testUrl , baseUrl , suiUrl } from '../../../api/request'; +import { onLoad } from '@dcloudio/uni-app'; import dingwei from '@/pages/Shopping-cart/newaddress_Info/img/dingwei.png' import selected from '@/pages/Shopping-cart/newaddress_Info/img/selected.png' const userInfo = ref({}) @@ -58,6 +59,11 @@ const addressParam = ref({ detailAddress: "", isDefault: 0 }) +//接受编辑按钮传来的地址信息 +onLoad((options)=>{ + addressParam.value = JSON.parse(options.editInfo) //将原来的地址信息赋值给原来的addressParam + // console.log('待编辑地址--->',addressParam.value); +}) onMounted(()=>{ userInfo.value = uni.getStorageSync("userInfo") // console.log('userInfo-->', userInfo.value.id); diff --git a/pages/order/component/addressComponent.vue b/pages/order/component/addressComponent.vue index c8c5d1c..2d82b46 100644 --- a/pages/order/component/addressComponent.vue +++ b/pages/order/component/addressComponent.vue @@ -3,7 +3,7 @@ 收货地址 + src="https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FxSHTnKhk-close.png" /> @@ -20,9 +20,9 @@ + src="https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FKNXwmQrO-edit.png" @click="editAddress(item)"/> + src="https://carbon2.obs.cn-north-4.myhuaweicloud.com:443/feiyi%2Ftest%2F0%2FXPhhJFpx-delete.png" @click="deleteAddress(item.id)" /> {{ item.detailAddress }} @@ -39,7 +39,7 @@