jiazhipeng 2 years ago
parent
commit
91faca88a9
  1. 9
      pages/user/likes/index.js
  2. 4
      pages/user/likes/index.wxml

9
pages/user/likes/index.js

@ -136,6 +136,15 @@ Page({
let item = e.currentTarget.dataset.item;
console.log(item)
let type = item.product?item.product.type:item.scene.type
if (item.product.is_package) {
wx.navigateTo({
url: '/pages/info/postProductInfo/index?id='+item.product.id
});
return
}
switch(type){
case "ticket":
wx.navigateTo({

4
pages/user/likes/index.wxml

@ -11,7 +11,7 @@
<view class="right-info">
<view class="title textOver">{{item.product.title}}</view>
<view class="price">¥{{item.product.price/100}}</view>
<view class="location" wx:if="{{item.product.address}}"><text class="iconfont icon-location"></text> {{item.product.address}}</view>
<view class="location textOver" wx:if="{{item.product.address}}"><text class="iconfont icon-location"></text> {{item.product.address}}</view>
</view>
</view>
<view class='del' catchtap="del1" data-index="{{index}}">删除</view>
@ -22,7 +22,7 @@
<view class="right-info">
<view class="title textOver">{{item.scene.title}}</view>
<view class="price">¥{{item.scene.price/100}}</view>
<view class="location"><text class="iconfont icon-location"></text> {{item.scene.address}}</view>
<view class="location textOver"><text class="iconfont icon-location"></text> {{item.scene.address}}</view>
</view>
</view>
<view class='del' catchtap="del2" data-index="{{index}}">删除</view>

Loading…
Cancel
Save