|
|
|
@ -20,13 +20,13 @@ |
|
|
|
<text class="goods-title-name">{{ item.detail.goods_name }}</text> |
|
|
|
<text class="goods-title-content">交易方式:{{ item.detail.goods_entrust?'转让':'授权' }}</text> |
|
|
|
<text class="goods-title-content">购买年限:{{ item.use_years }}年</text> |
|
|
|
<text class="goods-title-content">单价:¥{{ item.goods_price }}</text> |
|
|
|
<text class="goods-title-content">单价:¥{{ item.detail.price_str }}</text> |
|
|
|
</view> |
|
|
|
<view class="item-foot"> |
|
|
|
<view class="goods-price"> |
|
|
|
<text>合计:</text> |
|
|
|
<text class="unit">¥</text> |
|
|
|
<text class="value">{{ item.use_years * item.goods_price }}</text> |
|
|
|
<text class="value">{{ item.total_money_str }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -71,6 +71,7 @@ |
|
|
|
import { inArray, arrayIntersect, debounce } from '@/utils/util' |
|
|
|
import { checkLogin, setCartTotalNum, setCartTabBadge } from '@/core/app' |
|
|
|
import * as UserApi from '@/api/user' |
|
|
|
import {formatAmount} from '@/api/order/comment' |
|
|
|
import EmptyCart from '@/components/empty-cart' |
|
|
|
import uniIcons from '../../../uni_modules/uni-icons/components/uni-icons/uni-icons' |
|
|
|
import {createOrder, delShopCart} from "../../../api/user"; |
|
|
|
@ -159,6 +160,10 @@ export default { |
|
|
|
if (result.code == '200') { |
|
|
|
app.list = result.data |
|
|
|
app.total = result.data.length |
|
|
|
app.list.forEach(item => { |
|
|
|
item.total_money_str = formatAmount(item.total_money) |
|
|
|
item.detail.price_str = formatAmount(Number(item.detail.price)) |
|
|
|
}) |
|
|
|
} |
|
|
|
// 清除checkedIds中无效的ID |
|
|
|
app.onClearInvalidId() |
|
|
|
|