diff --git a/subPackages/techan/cartOrder.vue b/subPackages/techan/cartOrder.vue index 98ab6ab..5bd6c1b 100644 --- a/subPackages/techan/cartOrder.vue +++ b/subPackages/techan/cartOrder.vue @@ -167,12 +167,12 @@ 添加收货地址 - + @@ -272,7 +272,7 @@ export default { let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.getAddressList2() }) } diff --git a/subPackages/techan/cartOrder1.vue b/subPackages/techan/cartOrder1.vue index 2d69934..43d4783 100644 --- a/subPackages/techan/cartOrder1.vue +++ b/subPackages/techan/cartOrder1.vue @@ -167,12 +167,12 @@ 添加收货地址 - + @@ -272,7 +272,7 @@ export default { let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.getAddressList2() }) } diff --git a/subPackages/techan/detail.vue b/subPackages/techan/detail.vue index 8fd5da0..fa74132 100644 --- a/subPackages/techan/detail.vue +++ b/subPackages/techan/detail.vue @@ -42,49 +42,19 @@ - - - + + + + + + - 绿色食品 - LB-15-23120620620830 - - - 查看 - - - - - - - - 中国有机产品 - LB-15-23120620620830 - - - 查看 - - - - - - - - 江苏食用农产品合格证 - LB-15-23120620620830 - - - 查看 - - - - - - - - 农产品地理标志 - LB-15-23120620620830 + 绿色食品 + 中国有机产品 + 江苏食用农产品合格证 + 农产品地理标志 + {{item.number}} 查看 @@ -220,6 +190,7 @@ cartNum: 0, supplierInfo: null, + certObj: null, }; }, onPageScroll(e){ @@ -244,10 +215,14 @@ this.getCartList() }, methods: { - viewImage () { - uni.previewImage({ - urls: ["https://static.ticket.sz-trip.com/uploads/20250916/927117700e11004a0c332b535bb249b6.png"] - }) + viewImage (item) { + let image = ""; + if (item.image) { + image = this.showImg(item.image) + uni.previewImage({ + urls: [image] + }) + } }, changPopShow (e) { @@ -269,6 +244,12 @@ } this.info = res.data; this.sku = res.data.sku || [] + if (res.data.product_certification_data) { + try { + this.certObj = JSON.parse(res.data.product_certification_data) + console.log(this.certObj["1"]) + } catch (e) {} + } this.getSupplierInfo(res.data.supplier_id) this.shareParam = {title: this.info.title, imageUrl: this.info.headimg} diff --git a/subPackages/techan/order.vue b/subPackages/techan/order.vue index 2e1ea79..88b08e2 100644 --- a/subPackages/techan/order.vue +++ b/subPackages/techan/order.vue @@ -138,12 +138,12 @@ 添加收货地址 - + @@ -250,7 +250,7 @@ export default { let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.getAddressList2() }) } diff --git a/subPackages/user/travelerList.vue b/subPackages/user/travelerList.vue index a6afec2..2e36d27 100644 --- a/subPackages/user/travelerList.vue +++ b/subPackages/user/travelerList.vue @@ -89,11 +89,11 @@ - + - + @@ -204,7 +204,7 @@ let _this = this; uni.chooseAddress({ success: (res) => { - _this.Post(res,'/api/uservice/user/addWxDefaultConsignee').then(()=>{ + _this.Post({...res,method:"POST"},'/api/uservice/user/addWxDefaultConsignee').then(()=>{ _this.init() }) }