version/0412
wangdong 6 months ago
parent 28457f3d3b
commit a484d1e841
  1. 8
      pages/goods/detail.vue
  2. 73
      pages/goods/seckillDetail.vue
  3. 2
      pages/shopList/index.vue
  4. 2
      pages/shopList/shopPage.vue

@ -139,14 +139,14 @@
</view> </view>
</view> </view>
<view v-if="storeVersion == 1 && goods.merchant_id > 0" class="merchant-info" @click="toShop()"> <view v-if="storeVersion == 1 && goods.merchant_id > 0" class="merchant-info" @click="toShop()">
<image src="" mode="aspectFill"></image> <image :src="goods.merchant.logoImage[0].external_url" mode="aspectFill"></image>
<view class="info-box"> <view class="info-box">
<view class="info-name"> <view class="info-name">
<text>啊是巨大手机打开拉萨的领导可口可乐爱神的箭卡的黄金卡上的卡号的</text> <text>{{ goods.merchant.shop_name }}</text>
<image src="@/static/arrow-right.png" mode="aspectFill"></image> <image src="@/static/arrow-right.png" mode="aspectFill"></image>
</view> </view>
<view class="label"> <view class="label">
<text>自营</text> <text>{{ goods.merchant.shop_label }}</text>
</view> </view>
</view> </view>
</view> </view>
@ -1705,7 +1705,7 @@
text-align: center; text-align: center;
padding: 0 12rpx; padding: 0 12rpx;
background: #F34A40; background: #F34A40;
border-radius: 10rpx; border-radius: 20rpx;
color: #FFFFFF; color: #FFFFFF;
font-size: 22rpx; font-size: 22rpx;
} }

@ -119,6 +119,18 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="storeVersion == 1 && goods.merchant_id > 0" class="merchant-info" @click="toShop()">
<image :src="goods.merchant.logoImage[0].external_url" mode="aspectFill"></image>
<view class="info-box">
<view class="info-name">
<text>{{ goods.merchant.shop_name }}</text>
<image src="@/static/arrow-right.png" mode="aspectFill"></image>
</view>
<view class="label">
<text>{{ goods.merchant.shop_label }}</text>
</view>
</view>
</view>
<view class="orderInfo"> <view class="orderInfo">
<view class="chosed" v-if="goods.spec_type == 20" @click="stockValue=='有货'?choseSku(3):''"> <view class="chosed" v-if="goods.spec_type == 20" @click="stockValue=='有货'?choseSku(3):''">
<view class="title">已选</view> <view class="title">已选</view>
@ -467,6 +479,13 @@
} }
} }
}, },
computed: {
storeVersion() {
const version = uni.getStorageSync('storeVersion') == 1 ? 1 : 0;
console.log(version);
return version;
}
},
onLoad(options) { onLoad(options) {
const that = this; const that = this;
that.options = options; that.options = options;
@ -1087,6 +1106,11 @@
this.showGoodsPosterPopup = true; this.showGoodsPosterPopup = true;
} }
}, },
toShop() {
uni.navigateTo({
url: `/pages/shopList/shopPage?id=${this.goods.merchant_id}`,
})
},
}, },
/** /**
* 分享当前页面 * 分享当前页面
@ -1540,6 +1564,55 @@
} }
} }
.merchant-info {
margin: 20rpx 18rpx 0 18rpx;
padding: 30rpx;
background: #fff;
display: flex;
>image {
width: 90rpx;
height: 90rpx;
margin-right: 20rpx;
flex-shrink: 0;
}
.info-box {
width: calc(100% - 110rpx);
display: flex;
flex-direction: column;
justify-content: space-between;
>.info-name {
font-size: 30rpx;
color: #333;
font-weight: bold;
display: flex;
align-items: center;
>text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: calc(100% - 21rpx);
}
>image {
margin-left: 10rpx;
width: 13rpx;
height: 24rpx;
}
}
>.label {
text {
display: inline-block;
height: 40rpx;
line-height: 40rpx;
text-align: center;
padding: 0 12rpx;
background: #F34A40;
border-radius: 20rpx;
color: #FFFFFF;
font-size: 22rpx;
}
}
}
}
.orderInfo { .orderInfo {
// width: 720rpx; // width: 720rpx;
background: #FFFFFF; background: #FFFFFF;

@ -24,7 +24,7 @@
<text class="label">{{ item.shop_label }}</text> <text class="label">{{ item.shop_label }}</text>
</view> </view>
<view class="info-bottom"> <view class="info-bottom">
<view class="score"><uni-rate :readonly="true" :value="item.score" />{{ item.score }}</view> <view class="score"><uni-rate :readonly="true" :value="item.score" activeColor="#F34A40" />{{ item.score }}</view>
<!-- <view class="distance">{{ item.distance }}km</view> --> <!-- <view class="distance">{{ item.distance }}km</view> -->
</view> </view>
</view> </view>

@ -85,7 +85,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="toCart" @click="toCart"> <view class="toCart" @click.stop="toCart">
<image src="@/static/shop/cart.png"></image> <image src="@/static/shop/cart.png"></image>
</view> </view>
<view class="toTop" v-if="isTop" @click="openScrollTo()"> <view class="toTop" v-if="isTop" @click="openScrollTo()">

Loading…
Cancel
Save