From e1ec6146fa5fbb965cd341df12167912b7bee3f0 Mon Sep 17 00:00:00 2001 From: yuanteng0011 <1876787513@qq.com> Date: Fri, 20 Dec 2024 19:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AE=8C=E6=88=90=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/request.ts | 2 +- .../Shopping-cart/productmain/productmain.vue | 9 +- pages/address.vue | 57 -- pages/mine/mineorders/mineorders.vue | 4 +- .../product-paysuccess/product-paysuccess.vue | 775 ++++++++++-------- .../order/product-waitpay/product-waitpay.vue | 766 +++++++++-------- 6 files changed, 781 insertions(+), 832 deletions(-) delete mode 100644 pages/address.vue diff --git a/api/request.ts b/api/request.ts index 69017c9..219aee6 100644 --- a/api/request.ts +++ b/api/request.ts @@ -2,4 +2,4 @@ export const Url = 'http://localhost:9092/api' //后端接口文档 export const testUrl = 'http://123.249.108.160:8888/api' //自己组的服务器接口地址 export const suiUrl = 'http://154.8.193.216:9092/api' //隋宇霏的接口地址 -export const baseUrl = Url \ No newline at end of file +export const baseUrl = testUrl \ No newline at end of file diff --git a/pages/Shopping-cart/productmain/productmain.vue b/pages/Shopping-cart/productmain/productmain.vue index e74d073..ea2c979 100644 --- a/pages/Shopping-cart/productmain/productmain.vue +++ b/pages/Shopping-cart/productmain/productmain.vue @@ -20,7 +20,7 @@ @@ -233,11 +233,6 @@ const checkBoxChange =(event)=>{ event.detail.value.forEach((item)=>{ //将选中的商品信息赋值给checkedData console.log('products.value[parseInt(item)].goodId',products.value[parseInt(item)].goodId); if(products.value[parseInt(item)] !== null) { - // console.log('item--->',item); - // checkedData.value[count] = { - // goodId: products.value[parseInt(item)].goodId, - // quantity: products.value[parseInt(item)].quantity, - // } checkedData.value.push(products.value[parseInt(item)].id) // console.log(products.value[parseInt(item)].goodId); count += 1 @@ -301,7 +296,7 @@ const editOrSettle = async ()=>{ //去结算或者删除状态方法 // console.log('要传到订单详情页面的checked--->',checkedData.value); if(stateText.value.bottomBtn === '去结算') { const res = await uni.request({ - url: baseUrl + '/cart/cart/list/error', + url: baseUrl + '/cart/submit/error', method: 'POST', header: { 'cookie': wx.getStorageSync('cookie') diff --git a/pages/address.vue b/pages/address.vue deleted file mode 100644 index 40a3510..0000000 --- a/pages/address.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - diff --git a/pages/mine/mineorders/mineorders.vue b/pages/mine/mineorders/mineorders.vue index 7fa6994..c2acf24 100644 --- a/pages/mine/mineorders/mineorders.vue +++ b/pages/mine/mineorders/mineorders.vue @@ -208,8 +208,8 @@ } const goToText = (index) => { uni.navigateTo({ - url: '../../../pages/mine/OrderDetails/OrderDetails?info=' + JSON.stringify(Status.value - .displayedOrders[index]), + // url: '../../../pages/mine/OrderDetails/OrderDetails?info=' + JSON.stringify(Status.value.displayedOrders[index]), + url: '../../../pages/order/product-waitpay/product-waitpay?info' + JSON.stringify(Status.value.displayedOrders[index]) }) } diff --git a/pages/order/product-paysuccess/product-paysuccess.vue b/pages/order/product-paysuccess/product-paysuccess.vue index 9f0ddba..82562e6 100644 --- a/pages/order/product-paysuccess/product-paysuccess.vue +++ b/pages/order/product-paysuccess/product-paysuccess.vue @@ -1,452 +1,499 @@ diff --git a/pages/order/product-waitpay/product-waitpay.vue b/pages/order/product-waitpay/product-waitpay.vue index 93eaa5e..40d3427 100644 --- a/pages/order/product-waitpay/product-waitpay.vue +++ b/pages/order/product-waitpay/product-waitpay.vue @@ -1,159 +1,153 @@