Commit 6a3e30e5 by jscat

nyx weapp: bug fix

1. 提交订单,只提交index==0的那张商品图片
2. 价格保证为float
3. 添加多行溢出效果
parent beb26ab1
// pages/activity/activity-info/activity-info.js
// pages/activity/activity-info/activity-info.js
......@@ -335,7 +335,7 @@ Page({
var url = "/pages/mall/order/order?"
+ "&activity_id=" + _this.__data__.activityInfo["activity_id"]
+ "&products_string=" + products_string
+ "&product_image=" + _this.__data__.activityInfo['note_image']
+ "&product_image=" + _this.__data__.activityInfo['note_image'][0]
+ "&member_name=" + _this.__data__.activityInfo['member_name']
+ "&title=" + _this.__data__.activityInfo['title']
+ "&curIndex=" + _this.data.curIndex
......
<wxs module="tutil" src="./../../utils/date.wxs"></wxs>
<wxs module="tutil" src="./../../utils/date.wxs"></wxs>
......@@ -102,7 +102,7 @@
<view class="note-column">
<navigator url='{{item.url}}&num_like={{item.num_like}}' >
<!-- 商家信息 -->
{{item.title}}
<text>{{item.title}}</text>
<!-- 商品价格 -->
<span>
<view class="price-row">
......
/*
/*
......@@ -335,6 +335,16 @@
width: 55%;
}
.note-column text{
/* 多行溢出省略 */
display: -webkit-box;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp:2;
overflow: hidden;
text-overflow:ellipsis;
}
.writer-image{
width: 240rpx;
height: 240rpx;
......
// pages/my/my-orders/my-orders.js
// pages/my/my-orders/my-orders.js
......@@ -73,7 +73,7 @@ Page({
orderItems[i]['quantity'] = 1
orderItems[i]['defaultStatus'] = 1
totalPrice = orderItems[i]['unitPrice']
totalPrice = totalPrice.toFixed(2)
totalPrice = parseFloat(totalPrice).toFixed(2)
}
else
{
......
<view class="page">
<view class="page">
......@@ -33,7 +33,7 @@
<view class="note-row">
<image class="writer-image" src="{{item.product_image}}"/>
<view class="note-column">
<span>{{item.title}}·{{sub_item.product_desc}}</span>
<span><text>{{item.title}}·{{sub_item.product_desc}}</text></span>
<span>
<view class="price-row">
<view class="sub-price">¥{{sub_item.unit_price}}</view>
......
.page{
.page{
......@@ -309,6 +309,16 @@
width: 540rpx;
}
.note-column text{
/* 多行溢出省略 */
display: -webkit-box;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp:2;
overflow: hidden;
text-overflow:ellipsis;
}
.writer-image{
width: 120rpx;
height: 120rpx;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论