Commit 4b10b2ec by 前端

Merge branch 'v3.9.0_0508' into 'master'

修复数字精度丢失问题

See merge request !28
2 parents 2096caa5 2b4143ab
......@@ -20,6 +20,7 @@
"dayjs": "^1.10.5",
"glsx-common": "^1.4.9",
"lib-flexible": "^0.3.2",
"number-precision": "^1.6.0",
"postcss-loader": "^6.2.0",
"sha1": "^1.1.1",
"storejs": "^1.1.0",
......
<template>
<div :class="['action isFullSucreen flex', { bgBlack: videoFullscreen }, { liveBtn: isImAction }]" v-if="show">
<div class="btn-box flex" v-show="!videoFullscreen">
<div class="item" @click="getPoster">
<div
:class="['action isFullSucreen flex', { bgBlack: videoFullscreen }, { liveBtn: isImAction }]"
v-if="show"
>
<div
class="btn-box flex"
v-show="!videoFullscreen"
>
<div
class="item"
@click="getPoster"
>
<div class="sprite-icon icon-poster"></div>
海报
</div>
......@@ -13,12 +22,19 @@
</div>
<button
:class="['btn text-center', { disabled: !detail.isStaffLoginLink && (iSMiniprogram || detail.activityStatus == 3 || detail.buyFlag == 2 || totalGoodsNumber < 1) }, { short: detail.buyFlag == 3 }]"
@click="submit" @touchstart="touchstart" @touchend="touchend">
@click="submit"
@touchstart="touchstart"
@touchend="touchend"
>
<template v-if="detail.isStaffLoginLink">
<template v-if="supportOpenLaunch">
员工注册
<wx-open-launch-weapp class="mini" :path="path" :username="miniprogramInfo.username"
:env-version="miniprogramInfo.envVersion">
<wx-open-launch-weapp
class="mini"
:path="path"
:username="miniprogramInfo.username"
:env-version="miniprogramInfo.envVersion"
>
<script type="text/wxtag-template">
<div class="mini-btn">点击跳转</div>
</script>
......@@ -38,13 +54,32 @@
</template>
</template>
</button>
<pay-modal v-model="showModal" :list="formList" @cancel="showModal = false" @pay="checkOut" :payStatus="payStatus"
:carInfo="carInfo" />
<van-overlay :show="showPoster" @click.self="showPoster = false">
<div class="wrapper" @click.stop>
<van-image :src="posterImg" width="100%" height="100%">
<pay-modal
v-model="showModal"
:list="formList"
@cancel="showModal = false"
@pay="checkOut"
:payStatus="payStatus"
:carInfo="carInfo"
/>
<van-overlay
:show="showPoster"
@click.self="showPoster = false"
>
<div
class="wrapper"
@click.stop
>
<van-image
:src="posterImg"
width="100%"
height="100%"
>
<template v-slot:loading>
<van-loading type="spinner" size="20" />
<van-loading
type="spinner"
size="20"
/>
</template>
</van-image>
</div>
......@@ -55,6 +90,7 @@
<script type="text/ecmascript-6">
import { shopmallApi, wxConfig } from '@/api'
import { util } from '@/utils'
import NP from 'number-precision'
export default {
name: 'Action',
watch: {
......@@ -271,7 +307,7 @@ export default {
userSelectGoodsList.map(e => {
if (e.goodsNumber > 0) orderGoodsList.push({
goodsId: e.goodsId,
activityPrice: e.activityPrice * 100,
activityPrice: NP.times(e.activityPrice, 100),
goodsNumber: e.goodsNumber
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!