[商品详情的购物车跳转]
This commit is contained in:
@@ -285,8 +285,17 @@ Page({
|
|||||||
* 用户点击右上角分享
|
* 用户点击右上角分享
|
||||||
*/
|
*/
|
||||||
onShareAppMessage() {
|
onShareAppMessage() {
|
||||||
|
console.log(this.data.storyData.cover)
|
||||||
this.setData({
|
this.setData({
|
||||||
shareShow: false
|
shareShow: false
|
||||||
})
|
})
|
||||||
},
|
return({
|
||||||
|
title : "#" + this.data.storyData.title,
|
||||||
|
path : '/pages/mall/mall_details/mall_details?id=' + this.data.storyData.id + '&nameList=share',
|
||||||
|
imageUrl: this.data.storyData.cover
|
||||||
|
})
|
||||||
|
|
||||||
|
// + '&share_user_id=' + app.globalData.userInfo.user_id || 0
|
||||||
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -27,7 +27,9 @@
|
|||||||
<view class="goods-title-name">{{storyData.title}}</view>
|
<view class="goods-title-name">{{storyData.title}}</view>
|
||||||
<view class="nowrap-multi goods-title-text">{{storyData.description}}</view>
|
<view class="nowrap-multi goods-title-text">{{storyData.description}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="goodsMember">
|
|
||||||
|
<!-- 暂时隐藏 -->
|
||||||
|
<view class="goodsMember" style="display: none">
|
||||||
<view class="goodsMember-name">
|
<view class="goodsMember-name">
|
||||||
<image class="goods-tips-gold" src="/static/mall_icon/mallDetails_member_grey.png"></image>开通会员,尊享会员价
|
<image class="goods-tips-gold" src="/static/mall_icon/mallDetails_member_grey.png"></image>开通会员,尊享会员价
|
||||||
</view>
|
</view>
|
||||||
@@ -35,7 +37,8 @@
|
|||||||
</image>
|
</image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="goods-tips">
|
<!-- 暂时隐藏 -->
|
||||||
|
<view class="goods-tips" style="display: none">
|
||||||
<image class="goods-tips-gold" src="/static/mall_icon/mallDetails_gold.png"></image>
|
<image class="goods-tips-gold" src="/static/mall_icon/mallDetails_gold.png"></image>
|
||||||
分享奖 <text>¥{{changeSku.prices.bonus1}}</text>
|
分享奖 <text>¥{{changeSku.prices.bonus1}}</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -135,10 +138,10 @@
|
|||||||
<image src="/static/mall_icon/mallDetails_service.png"></image>
|
<image src="/static/mall_icon/mallDetails_service.png"></image>
|
||||||
客服
|
客服
|
||||||
</navigator>
|
</navigator>
|
||||||
<navigator hover-class="none" url="/pages/mall_cart/mall_cart" class="footer-img-tool">
|
<navigator hover-class="none" url="/pages/mall/mall_cart/mall_cart" class="footer-img-tool">
|
||||||
<image src="/static/mall_icon/mallDetails_car.png"></image>
|
<image src="/static/mall_icon/mallDetails_car.png"></image>
|
||||||
购物车
|
购物车
|
||||||
<text>1</text>
|
<!-- <text>1</text> -->
|
||||||
</navigator>
|
</navigator>
|
||||||
</view>
|
</view>
|
||||||
<view class="footer-btn" bindtap="specsTap" wx:if="{{changeSku.prices.stock > 0}}">
|
<view class="footer-btn" bindtap="specsTap" wx:if="{{changeSku.prices.stock > 0}}">
|
||||||
@@ -270,12 +273,12 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="share-list-text">微信好友</view>
|
<view class="share-list-text">微信好友</view>
|
||||||
</button>
|
</button>
|
||||||
<button class="share-list" hover-class="none" bindtap="canvasCode">
|
<!-- <button class="share-list" hover-class="none" bindtap="canvasCode">
|
||||||
<view class="share-list-img">
|
<view class="share-list-img">
|
||||||
<image src="/static/mall_icon/share_pyq.png" mode="aspectFill"></image>
|
<image src="/static/mall_icon/share_pyq.png" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="share-list-text">海报分享</view>
|
<view class="share-list-text">海报分享</view>
|
||||||
</button>
|
</button> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="share-tips">好物推荐,和大家一起分享你发现的好物</view>
|
<view class="share-tips">好物推荐,和大家一起分享你发现的好物</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -476,6 +476,11 @@ view.footer-btn-buy {
|
|||||||
transition: .2s;
|
transition: .2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.couponEject {
|
||||||
|
max-height: 70%;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
|
||||||
.couponEject.active,
|
.couponEject.active,
|
||||||
.specsEject.active {
|
.specsEject.active {
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|||||||
@@ -129,14 +129,14 @@ Page({
|
|||||||
icon : 'success'
|
icon : 'success'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
wx.reLaunch({
|
wx.redirectTo({
|
||||||
url: '/pages/mall/mall_order/mall_order'
|
url: '/pages/mall/mall_order/mall_order'
|
||||||
})
|
})
|
||||||
},2000)
|
},2000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail : res=>{
|
fail : res=>{
|
||||||
wx.reLaunch({
|
wx.redirectTo({
|
||||||
url: '/pages/mall/mall_order/mall_order?stateType=unpaid'
|
url: '/pages/mall/mall_order/mall_order?stateType=unpaid'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user