冲突修改

dev
syt 10 months ago
parent 54a37ec2e9
commit 9d24b16942
  1. 8
      api/goods/index.js
  2. 42
      pages/goods/detail.vue

@ -37,10 +37,10 @@ export const presale = (data) => {
return request.get('goods/presale', data) return request.get('goods/presale', data)
} }
// 商品浏览记录 // // 商品浏览记录
export const presale = (param, option) => { // export const presale = (param, option) => {
return request.get(api.presale, param, option) // return request.get(api.presale, param, option)
} // }
// 服务 // 服务
export const serveList = (param, option) => { export const serveList = (param, option) => {
return request.get(api.serveList, param, option) return request.get(api.serveList, param, option)

@ -10,12 +10,8 @@
<view class="head"> <view class="head">
<view class="share"> <view class="share">
<view class="sp"></view> <view class="sp"></view>
<<<<<<< HEAD
<image src="/static/detail/share.png" mode="" class="shareIcon"></image>
<button open-type="share"></button> <button open-type="share"></button>
=======
<image src="/static/detail/share.png" mode="" class="shareIcon" @click="shareImg"></image> <image src="/static/detail/share.png" mode="" class="shareIcon" @click="shareImg"></image>
>>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533
</view> </view>
<view class="swiper"> <view class="swiper">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
@ -67,13 +63,8 @@
{{goods.goods_name}} {{goods.goods_name}}
</view> </view>
<view class="goodsOpera"> <view class="goodsOpera">
<<<<<<< HEAD
<view class="goodsNum" @click="copyNum">
<text>{{goods.goods_id}}</text>
=======
<view class="goodsNum" @click="copyNum" v-if="goods.skuList.length>0"> <view class="goodsNum" @click="copyNum" v-if="goods.skuList.length>0">
<text>{{goods.skuList[0].goods_sku_id}}</text> <text>{{goods.skuList[0].goods_sku_id}}</text>
>>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533
<image src="/static/detail/copy.png" mode=""></image> <image src="/static/detail/copy.png" mode=""></image>
</view> </view>
<view class="operaImg"> <view class="operaImg">
@ -101,11 +92,7 @@
<image src="../../static/detail/rightIcon.png" mode=""></image> <image src="../../static/detail/rightIcon.png" mode=""></image>
</view> </view>
<view class="address"> <view class="address">
<<<<<<< HEAD
<!-- {{addressInfo?addressInfo:''}} -->
=======
{{addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region}} {{addressInfo.region.province +'-'+addressInfo.region.city+'-'+addressInfo.region.region}}
>>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533
</view> </view>
</view> </view>
</view> </view>
@ -331,28 +318,16 @@
this.goodsId=options.goodsId; this.goodsId=options.goodsId;
}, },
onShow() { onShow() {
<<<<<<< HEAD
if(uni.getStorageSync('AccessToken')){ if(uni.getStorageSync('AccessToken')){
this.getAddressList() this.getAddressList()
this.getSuggestGoods() this.getSuggestGoods()
this.getServeList()
this.userInfo = uni.getStorageSync('userInfo'); this.userInfo = uni.getStorageSync('userInfo');
}else{ }else{
this.userInfo = {} this.userInfo = {}
} }
this.getGoodsDetail() 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: { methods: {
copyText(val){ copyText(val){
// //
@ -413,7 +388,6 @@
} }
}) })
.catch() .catch()
>>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533
}) })
}, },
// //
@ -455,21 +429,12 @@
const that = this const that = this
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
address.defaultId().then(res => { 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) { if (res.status == 200) {
for (var i = 0; i < that.addressList.length; i++) { for (var i = 0; i < that.addressList.length; i++) {
if (res.data.defaultId == that.addressList[i].address_id) { if (res.data.defaultId == that.addressList[i].address_id) {
that.addressInfo = that.addressList[i]; that.addressInfo = that.addressList[i];
console.log(that.addressInfo,'获取地址') console.log(that.addressInfo,'获取地址')
>>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533
} }
} }
} }
@ -1118,13 +1083,8 @@
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #000000; color: #000000;
<<<<<<< HEAD
line-height: 40rpx; line-height: 40rpx;
display: -webkit-box; display: -webkit-box;
=======
// line-height: 33rpx;
// display: -webkit-box;
>>>>>>> be56674fc2126fdd597f0cf61678ee009b1a0533
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: normal !important; white-space: normal !important;

Loading…
Cancel
Save