Commit 2c5cac47 by 杨北旺

修复bug

1 parent 95bee8ec
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="img-top-box"></view> <view class="img-top-box"></view>
<view class="img-box"> <view class="img-box">
<view wx:for="{{list}}" wx:key="index" class="img-item-box" data-id="{{item.id}}" bind:tap="selectStrategy"> <view wx:for="{{list}}" wx:key="index" class="img-item-box" data-id="{{item.id}}" bind:tap="selectStrategy">
<image webp src="{{item.strategyImg}}" class="saving-img"></image> <image mode="aspectFill" webp src="{{item.strategyImg}}" class="saving-img"></image>
<view class="viewer">{{item.viewAmount}}人浏览</view> <view class="viewer">{{item.viewAmount}}人浏览</view>
</view> </view>
</view> </view>
......
...@@ -312,7 +312,6 @@ Page({ ...@@ -312,7 +312,6 @@ Page({
if (isCarOwner) { if (isCarOwner) {
goodsList.goodsId = goodsList.id goodsList.goodsId = goodsList.id
} }
console.log(this.data.goodsInfo, 'goodsInfo')
wx.p.router.go('/packageDiscovery/pages/pay/index', { wx.p.router.go('/packageDiscovery/pages/pay/index', {
goodsList: upgrade ? goodsList : [goodsList], goodsList: upgrade ? goodsList : [goodsList],
deliveryType: upgrade ? 1 : 0, deliveryType: upgrade ? 1 : 0,
...@@ -402,7 +401,6 @@ Page({ ...@@ -402,7 +401,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
console.log(options, 'options');
if (options && options.openId) { if (options && options.openId) {
this.shareOpenId = options.openId this.shareOpenId = options.openId
} }
...@@ -444,7 +442,6 @@ Page({ ...@@ -444,7 +442,6 @@ Page({
}) })
this.getGoodsDetail(id) this.getGoodsDetail(id)
this.getCommentList() this.getCommentList()
console.log(id);
this.heartbeatFn({ this.heartbeatFn({
id, id,
item_type: isActivity ? 3 : 1, item_type: isActivity ? 3 : 1,
...@@ -602,7 +599,6 @@ Page({ ...@@ -602,7 +599,6 @@ Page({
if (data.goodsDetailImageList && data.goodsDetailImageList.length > 1) { if (data.goodsDetailImageList && data.goodsDetailImageList.length > 1) {
let video = {} let video = {}
data.goodsDetailImageList.map((e, index) => { data.goodsDetailImageList.map((e, index) => {
console.log(e)
if (e.resType == 3) { if (e.resType == 3) {
video = e video = e
data.goodsDetailImageList.splice(index, 1) data.goodsDetailImageList.splice(index, 1)
...@@ -651,8 +647,9 @@ Page({ ...@@ -651,8 +647,9 @@ Page({
// 定金+尾款 // 定金+尾款
data.depositPrice = this.formatMyPrice(data.depositPrice) data.depositPrice = this.formatMyPrice(data.depositPrice)
data.activityPrice = this.formatMyPrice(data.activityPrice) data.activityPrice = this.formatMyPrice(data.activityPrice)
if ((this.isUpgrade || this.isCarOwner) && !data.goodsDetailImageList.length) { if ((this.isUpgrade || this.isCarOwner) && !data.goodsDetailImageList.length) {
data.goodsDetailImageList.push(data.goodsImage) data.goodsDetailImageList.push({content:data.goodsImage,resType:1})
} }
this.setData({ this.setData({
goodsInfo: data, goodsInfo: data,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<block wx:for="{{bannerList}}" wx:key="index"> <block wx:for="{{bannerList}}" wx:key="index">
<swiper-item> <swiper-item>
<block> <block>
<image webp src="{{item.bannerImg}}" class="banner-img" bindtap="jumpGoods" data-item="{{item}}" data-bannerType="{{item.bannerType}}" data-id="{{item.goods.id}}" data-url="{{item.linkUrl}}" data-equity="{{item.equity}}"></image> <image webp src="{{item.bannerImg}}" mode="aspectFill" class="banner-img" bindtap="jumpGoods" data-item="{{item}}" data-bannerType="{{item.bannerType}}" data-id="{{item.goods.id}}" data-url="{{item.linkUrl}}" data-equity="{{item.equity}}"></image>
</block> </block>
</swiper-item> </swiper-item>
</block> </block>
......
...@@ -71,9 +71,8 @@ Page({ ...@@ -71,9 +71,8 @@ Page({
const { url } = e.currentTarget.dataset; const { url } = e.currentTarget.dataset;
const {currentStore} = this.data const {currentStore} = this.data
const Name = `${currentStore.merchantId}_${url}` const Name = `${currentStore.merchantId}_${url}`
console.log(Name);
this.setData({ this.setData({
urlName: url, urlName: Name,
showModal: true, showModal: true,
}); });
}, },
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<view wx:if="{{showModal}}" class="modal_widget"> <view wx:if="{{showModal}}" class="modal_widget">
<view bind:tap="closeModal" class="popup-bg"></view> <view bind:tap="closeModal" class="popup-bg"></view>
<view class="box_cover"> <view class="box_cover">
<image class="max_cover" src="{{IMG_URL}}home/{{urlName}}.png" show-menu-by-longpress="{{true}}" /> <image class="max_cover" src="{{IMG_URL}}home/fuliguan/{{urlName}}.png" show-menu-by-longpress="{{true}}" />
<image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" /> <image bind:tap="closeModal" class="close_icon" src="{{IMG_URL}}home/close_modal.png" />
</view> </view>
</view> </view>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="strategy-box" style="{{user_box_style}}"> <view class="strategy-box" style="{{user_box_style}}">
<view class="strategy-item" wx:for="{{strategyList}}" wx:key="index" data-item="{{item}}" bind:tap="selectStrategy"> <view class="strategy-item" wx:for="{{strategyList}}" wx:key="index" data-item="{{item}}" bind:tap="selectStrategy">
<image webp src="{{item.strategyImg}}" class="strategy-img"></image> <image mode="aspectFill" webp src="{{item.strategyImg}}" class="strategy-img"></image>
<view class="strategy-detail"> <view class="strategy-detail">
<text class="strategy-detail-title">{{item.strategyName}}</text> <text class="strategy-detail-title">{{item.strategyName}}</text>
<view class="strategy-detail-bottom"> <view class="strategy-detail-bottom">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!