Commit 0f57fd0a authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent b805ff8a
......@@ -14,7 +14,7 @@
{{item.name}}
</view>
<view class="scan-good-list-item">
<view class="good-list-item-price-font">¥{{item.price}}</view>
<view class="good-list-item-price-font">¥{{item.price/2}}</view>
<view class="good-list-item-quantity-font">
{{item.quantity}}件
</view>
......
var api = require("../../utils/api.js");
var payUtils = require("../../utils/payUtils.js");
import { Page } from '../../utils/scan';
import { API_SCAN } from '../../const/apiurl'
import { API_USE_COUPON } from '../../const/apiurl'
......@@ -9,7 +10,6 @@ import { ACTION_GO_BALANCE } from '../../const/actioncmd'
import { ACTION_GO_HOME } from '../../const/actioncmd'
import { ACTION_USE_COUPON } from '../../const/actioncmd'
Page({
data: {
goods: [],
......@@ -228,9 +228,9 @@ Page({
//价格 分转元
goodinfo.quantity = 1;
goodinfo.price = goodinfo.price / 100
goodinfo.salePrice = goodinfo.salePrice / 100
goodinfo.discnt = goodinfo.discnt / 100
goodinfo.price = goodinfo.price
goodinfo.salePrice = goodinfo.salePrice
goodinfo.discnt = goodinfo.discnt
//总数量
let totalQuantityTemp = 0
......@@ -273,6 +273,7 @@ Page({
}
//汇总
totalPrice = payUtils.fen2Yuan(totalPriceTemp)
this.setData({
totalQuantity: totalQuantityTemp,
totalPrice: totalPriceTemp,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment