fanfan 5 months ago
parent cc04dd7717
commit a8573de2da
  1. 3
      pages/goods/detail.vue
  2. 25
      pages/goods/seckillDetail.vue

@ -1174,13 +1174,10 @@
//
const that = this;
//
// const params = that.$getShareUrlParams(that.options)
const res = await GoodsApi.goodsShortUrl({
page_url: encodeURIComponent('pages/goods/detail?refereeId=' + store.getters.userId + '&goodsId=' + this.goods
.goods_id),
page_title: that.goods.goods_name,
// goodsId:that.goods.goods_id,
// refereeId:store.getters.userId
})
if (res.data.url) {
let str =

@ -120,7 +120,8 @@
</view>
</view>
<view v-if="storeVersion == 1 && goods.merchant_id > 0" class="merchant-info" @click="toShop()">
<image :src="goods.merchant.logoImage && goods.merchant.logoImage[0].external_url" mode="aspectFill"></image>
<image :src="goods.merchant.logoImage && goods.merchant.logoImage[0].external_url" mode="aspectFill">
</image>
<view class="info-box">
<view class="info-name">
<text>{{ goods.merchant.shop_name }}</text>
@ -191,7 +192,8 @@
<view class="chosed" v-if="goods.remark">
<view class="title">须知</view>
<view class="info">
<u-read-more :toggle="true" font-size='24' text-indent='0' show-height="200" open-text='收起' close-text='展开'>
<u-read-more :toggle="true" font-size='24' text-indent='0' show-height="200" open-text='收起'
close-text='展开'>
<rich-text :nodes="goods.remark"></rich-text>
</u-read-more>
</view>
@ -412,6 +414,7 @@
import * as address from '@/api/address.js'
import * as CartApi from '@/api/cart'
import * as SharpGoodsApi from '@/api/sharp/goods'
import store from '@/store'
export default {
components: {
SkuPopup,
@ -633,7 +636,7 @@
this.$refs.setRange.secondPrice = item.seckill_price
this.$refs.setRange.secondQuota = item.is_limit == 1 ? true : false
this.$refs.setRange.quotaNum = item.limit_times;
this.$refs.setRange.cost_price_min=this.goods.cost_price_min
this.$refs.setRange.cost_price_min = this.goods.cost_price_min
}
this.$refs.setRange.afterSale = true;
@ -1077,10 +1080,11 @@
//
const that = this;
//
const params = that.$getShareUrlParams(this.options)
const res = await GoodsApi.goodsShortUrl({
page_url: `pages/goods/detail?${params}`,
page_title: that.goods.goods_name
page_url: encodeURIComponent('pages/goods/seckillDetail?refereeId=' + store.getters.userId +
'&goodsId=' + this.goods
.goods_id),
page_title: that.goods.goods_name,
})
if (res.data.url) {
let str =
@ -1572,41 +1576,47 @@
}
}
}
.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;
@ -1622,6 +1632,7 @@
}
}
}
.orderInfo {
// width: 720rpx;
background: #FFFFFF;

Loading…
Cancel
Save