From 9d24b16942d736454fcd2636fe812b0a2b479093 Mon Sep 17 00:00:00 2001 From: syt <854400391@qq.com> Date: Thu, 8 Feb 2024 10:56:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=B2=E7=AA=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/goods/index.js | 8 ++++---- pages/goods/detail.vue | 44 ++---------------------------------------- 2 files changed, 6 insertions(+), 46 deletions(-) diff --git a/api/goods/index.js b/api/goods/index.js index 576b287..e18fa53 100644 --- a/api/goods/index.js +++ b/api/goods/index.js @@ -37,10 +37,10 @@ export const presale = (data) => { return request.get('goods/presale', data) } -// 商品浏览记录 -export const presale = (param, option) => { - return request.get(api.presale, param, option) -} +// // 商品浏览记录 +// export const presale = (param, option) => { +// return request.get(api.presale, param, option) +// } // 服务 export const serveList = (param, option) => { return request.get(api.serveList, param, option) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 96787cb..5626ed4 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -10,12 +10,8 @@ -<<<<<<< HEAD - -======= ->>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533 -<<<<<<< HEAD - - {{goods.goods_id}} -======= {{goods.skuList[0].goods_sku_id}} ->>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533 @@ -101,11 +92,7 @@ -<<<<<<< HEAD - -======= {{addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region}} ->>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533 @@ -331,28 +318,16 @@ this.goodsId=options.goodsId; }, onShow() { -<<<<<<< HEAD if(uni.getStorageSync('AccessToken')){ this.getAddressList() - this.getSuggestGoods() + this.getSuggestGoods() + this.getServeList() this.userInfo = uni.getStorageSync('userInfo'); }else{ this.userInfo = {} } this.getGoodsDetail() }, - methods: { - toDetail (id){ - uni.navigateTo({ - url: "/pages/goods/detail?goodsId="+id -======= - this.token = uni.getStorageSync('token') - this.getAddressList() - this.getSuggestGoods() - this.userInfo = uni.getStorageSync('userInfo'); - this.getServeList() - - }, methods: { copyText(val){ // 获取要复制的文本内容 @@ -413,7 +388,6 @@ } }) .catch() ->>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533 }) }, // 预约成功去列表 @@ -455,21 +429,12 @@ const that = this return new Promise((resolve, reject) => { address.defaultId().then(res => { -<<<<<<< HEAD - if (res.code == 200) { - if(that.addressList.length>0){ - for (var i = 0; i < that.addressList.length; i++) { - if (res.data.defaultId == that.addressList[i].address_id) { - that.addressInfo = that.addressList[i] - } -======= if (res.status == 200) { for (var i = 0; i < that.addressList.length; i++) { if (res.data.defaultId == that.addressList[i].address_id) { that.addressInfo = that.addressList[i]; console.log(that.addressInfo,'获取地址') ->>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533 } } } @@ -1118,13 +1083,8 @@ font-size: 28rpx; font-weight: 400; color: #000000; -<<<<<<< HEAD line-height: 40rpx; display: -webkit-box; -======= - // line-height: 33rpx; - // display: -webkit-box; ->>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533 overflow: hidden; text-overflow: ellipsis; white-space: normal !important;