Commit d78596232217f76382cd5e2657913f8506017ede

Authored by F5VT98DI7XY4X12\Administrator
1 parent a6e178d6

参团的排版问题的修改, 添加评价时候不显示图片,订单详情数字问题

pages/team/team_show/team_show.wxml
@@ -186,7 +186,7 @@ @@ -186,7 +186,7 @@
186 <view class='buy-top'> 186 <view class='buy-top'>
187 <view class='buy-image mimg'> 187 <view class='buy-image mimg'>
188 <image src='{{image}}'></image> 188 <image src='{{image}}'></image>
189 - <view style='float:left'> 189 + <view>
190 <view> 190 <view>
191 <span class='t1'>¥</span><text class='t2'>{{teamlist.price}}</text> 191 <span class='t1'>¥</span><text class='t2'>{{teamlist.price}}</text>
192 </view> 192 </view>
pages/user/add_comment/add_comment.js
1 -var t = getApp(),oo=t.globalData, a = t.globalData.setting,os=a, e = t.request, s = require("../../../utils/util.js"), i = require("../../../utils/selectFiles.js"); 1 +var t = getApp(),oo=t.globalData, a = t.globalData.setting,os=a, e = t.request, s = require("../../../utils/util.js"),
  2 + i = require("../../../utils/selectFiles.js");
  3 +var regeneratorRuntime = require('../../../utils/runtime.js');
2 4
3 Page({ 5 Page({
4 data: { 6 data: {
@@ -18,12 +20,16 @@ Page({ @@ -18,12 +20,16 @@ Page({
18 isLongPress: !1, 20 isLongPress: !1,
19 userinfo:null, 21 userinfo:null,
20 }, 22 },
21 - onLoad: function(a) { 23 + onLoad:async function(a) {
22 var th=this; 24 var th=this;
23 -  
24 console.log('onLoad'); 25 console.log('onLoad');
25 console.log(a); 26 console.log(a);
26 27
  28 + await getApp().request.promiseGet("/api/weshop/goods/get/"+os.stoid+"/"+a.goods_id,{1:1}).then(res=>{
  29 + a.img=th.data.iurl+res.data.data.original_img
  30 + })
  31 +
  32 +
27 this.setData({options: a}); 33 this.setData({options: a});
28 t.getUserInfo(function(e){ 34 t.getUserInfo(function(e){
29 console.log(e); 35 console.log(e);
pages/user/order_detail/order_detail.wxml
@@ -107,8 +107,8 @@ @@ -107,8 +107,8 @@
107 <view class="item-line"></view> 107 <view class="item-line"></view>
108 <view class="item" wx:if="{{order.user_money>0}}"> 108 <view class="item" wx:if="{{order.user_money>0}}">
109 <view>使用余额</view> 109 <view>使用余额</view>
110 - <view wx:if="{{order.tail_pay_type==1}}">¥ {{order.user_money+order.pt_tail_money}}元</view>  
111 - <view wx:else>¥ {{order.user_money}}元</view> 110 + <view wx:if="{{order.tail_pay_type==1}}">¥ {{filters.toFix(order.user_money+order.pt_tail_money,2)}}元</view>
  111 + <view wx:else>¥ {{filters.toFix(order.user_money,2)}}元</view>
112 </view> 112 </view>
113 </view> 113 </view>
114 114