Browse Source

店铺,价格等

master
nige 3 years ago
parent
commit
ae78fd5d85
  1. 2
      app.js
  2. 8
      pages/info/postProductInfo/index.js
  3. 4
      pages/list/activitynew/index.wxml
  4. 4
      pages/list/techan/index.wxml

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest58? true : false;
data.isTest = data.isTest59? true : false;
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件

8
pages/info/postProductInfo/index.js

@ -46,9 +46,7 @@ Page({
let height = (rect.top - device.statusBarHeight) * 2 + rect.height + device.statusBarHeight;
this.setData({
top: height,
id: options.id,
iShop:options.iShop||false,
supplierId:options.supplierId
id: options.id
})
// 获取购物车按钮的位置
wx.createSelectorQuery().select('#cart').boundingClientRect(function (res) {
@ -73,7 +71,9 @@ Page({
}
res.data.flag = res.data.sku.find(item => item.flag == 'on') ? res.data.flag : 0
this.setData({
info: res.data
info: res.data,
supplierId:res.data.supplier_id,
iShop:res.data.supplier_id?true:false
})
// 获取补贴

4
pages/list/activitynew/index.wxml

@ -35,10 +35,10 @@
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon5{{type==5?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==5?'color:#0B898E':''}}">讲座</view>
</view> -->
<!-- <view class="type-item" bindtap="changeType" data-type="4">
<view class="type-item" bindtap="changeType" data-type="4">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon4{{type==4?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==4?'color:#63B71F':''}}">电影</view>
</view> -->
</view>
<view class="type-item" bindtap="changeType" data-type="6" style="margin-right:30rpx">
<image src="https://static.ticket.sz-trip.com/xcxImages/activitynew/icon6{{type==6?'_active':''}}.png" mode="widthFix"></image>
<view style="{{type==6?'color:#54b9ed':''}}">其他</view>

4
pages/list/techan/index.wxml

@ -19,13 +19,13 @@
</view>
<view class="supplier-address supplier-tags"><text class="iconfont icon-location"></text>{{item.address}}</view>
</view>
<view class="supplier-price"><text>¥</text><text>{{tool.toFix(item.start_price)}}</text><text>起</text></view>
<view class="supplier-price"><text>¥</text><text>{{(item.start_price/100)}}</text><text>起</text></view>
</view>
<view class="product-list">
<view data-item="{{item}}" class="product-item" wx:for="{{item.product}}">
<image src="{{item.headimg}}" mode="aspectFill"></image>
<view class="product-title textOver2">{{item.title}}</view>
<view class="supplier-price"><text>¥</text><text style="font-size:30rpx">{{tool.toFix(item.price)}}</text><text class="market_price" wx:if="{{item.market_price && item.market_price!=0 && item.market_price>item.price}}">{{item.market_price/100}}</text></view>
<view class="supplier-price"><text>¥</text><text style="font-size:30rpx">{{(item.price/100)}}</text><text class="market_price" wx:if="{{item.market_price && item.market_price!=0 && item.market_price>item.price}}">{{item.market_price/100}}</text></view>
</view>
</view>
</view>

Loading…
Cancel
Save