Commit d78596232217f76382cd5e2657913f8506017ede

Authored by F5VT98DI7XY4X12\Administrator
1 parent a6e178d6

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

pages/team/team_show/team_show.wxml
... ... @@ -186,7 +186,7 @@
186 186 <view class='buy-top'>
187 187 <view class='buy-image mimg'>
188 188 <image src='{{image}}'></image>
189   - <view style='float:left'>
  189 + <view>
190 190 <view>
191 191 <span class='t1'>¥</span><text class='t2'>{{teamlist.price}}</text>
192 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 5 Page({
4 6 data: {
... ... @@ -18,12 +20,16 @@ Page({
18 20 isLongPress: !1,
19 21 userinfo:null,
20 22 },
21   - onLoad: function(a) {
  23 + onLoad:async function(a) {
22 24 var th=this;
23   -
24 25 console.log('onLoad');
25 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 33 this.setData({options: a});
28 34 t.getUserInfo(function(e){
29 35 console.log(e);
... ...
pages/user/order_detail/order_detail.wxml
... ... @@ -107,8 +107,8 @@
107 107 <view class="item-line"></view>
108 108 <view class="item" wx:if="{{order.user_money>0}}">
109 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 112 </view>
113 113 </view>
114 114  
... ...