feat(specialArea): 会员专区首页去除货币符号,小数位处理
This commit is contained in:
parent
5f58f998e8
commit
87901a97f5
29
main.js
29
main.js
|
@ -5,11 +5,12 @@ import Vue from 'vue'
|
||||||
import uview from '@/uni_modules/uview-ui'
|
import uview from '@/uni_modules/uview-ui'
|
||||||
import store from '@/store/index.js'
|
import store from '@/store/index.js'
|
||||||
import Vue2OrgTree from 'vue-tree-color'
|
import Vue2OrgTree from 'vue-tree-color'
|
||||||
import * as echarts from 'echarts';
|
import * as echarts from 'echarts'
|
||||||
Vue.prototype.$echarts = echarts;
|
import { formatCurrency } from '@/util/index'
|
||||||
|
Vue.prototype.$echarts = echarts
|
||||||
Vue.use(Vue2OrgTree)
|
Vue.use(Vue2OrgTree)
|
||||||
import axios from 'axios';
|
import axios from 'axios'
|
||||||
import { saveAs } from 'file-saver';
|
import { saveAs } from 'file-saver'
|
||||||
window.wx = {}
|
window.wx = {}
|
||||||
|
|
||||||
/*底部数据*/
|
/*底部数据*/
|
||||||
|
@ -19,22 +20,28 @@ Vue.use(uview)
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
App.mpType = 'app'
|
App.mpType = 'app'
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
...App
|
...App,
|
||||||
})
|
})
|
||||||
|
|
||||||
Vue.config.ignoredElements = [...Vue.config.ignoredElements, 'wx-open-launch-weapp']
|
Vue.config.ignoredElements = [
|
||||||
|
...Vue.config.ignoredElements,
|
||||||
|
'wx-open-launch-weapp',
|
||||||
|
]
|
||||||
|
|
||||||
// 复制
|
// 复制
|
||||||
import VueClipboard from 'vue-clipboard2'
|
import VueClipboard from 'vue-clipboard2'
|
||||||
Vue.use(VueClipboard)
|
Vue.use(VueClipboard)
|
||||||
|
|
||||||
|
|
||||||
// #endif
|
// #endif
|
||||||
import { numberToCurrencyNo,toThousandthAndKeepDecimal, isLocal,isLocaled } from '@/util/numberToCurrency'
|
import {
|
||||||
|
numberToCurrencyNo,
|
||||||
|
toThousandthAndKeepDecimal,
|
||||||
|
isLocal,
|
||||||
|
isLocaled,
|
||||||
|
} from '@/util/numberToCurrency'
|
||||||
Vue.prototype.isLocaled = isLocaled
|
Vue.prototype.isLocaled = isLocaled
|
||||||
// 配置全局过滤器,实现数字千分位格式
|
// 配置全局过滤器,实现数字千分位格式
|
||||||
Vue.filter('numberToCurrency', numberToCurrencyNo)
|
Vue.filter('numberToCurrency', formatCurrency)
|
||||||
Vue.filter('toThousandthAndKeepDecimal', toThousandthAndKeepDecimal)
|
Vue.filter('toThousandthAndKeepDecimal', toThousandthAndKeepDecimal)
|
||||||
// 配置全局过滤器,实现数字千分位格式
|
// 配置全局过滤器,实现数字千分位格式
|
||||||
Vue.filter('isLocal', isLocal)
|
Vue.filter('isLocal', isLocal)
|
||||||
|
@ -48,7 +55,7 @@ export function createApp() {
|
||||||
app.use(i18n)
|
app.use(i18n)
|
||||||
return {
|
return {
|
||||||
app,
|
app,
|
||||||
store
|
store,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// #endif
|
// #endif
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<view class="sTop">
|
<view class="sTop">
|
||||||
<view class="sTop_l">
|
<view class="sTop_l">
|
||||||
<view class="f1">
|
<view class="f1">
|
||||||
{{ goodDetail.goodsPrice | toThousandthAndKeepDecimal | isLocal }}
|
{{ goodDetail.goodsPrice | toThousandthAndKeepDecimal }}
|
||||||
</view>
|
</view>
|
||||||
<view class="disFlex1">
|
<view class="disFlex1">
|
||||||
<img src="@/static/images/clock.png" alt="" />
|
<img src="@/static/images/clock.png" alt="" />
|
||||||
|
|
|
@ -76,10 +76,10 @@
|
||||||
<!-- <view class="pv"> 销量:{{ item.sales | seles }} </view> -->
|
<!-- <view class="pv"> 销量:{{ item.sales | seles }} </view> -->
|
||||||
<view class="goodList_ib">
|
<view class="goodList_ib">
|
||||||
<view v-if="specialArea == 31&&userInfo.isMakerSpace == 1">
|
<view v-if="specialArea == 31&&userInfo.isMakerSpace == 1">
|
||||||
{{ item.vipPrice | numberToCurrency | isLocal }}
|
{{ item.vipPrice | numberToCurrency }}
|
||||||
</view>
|
</view>
|
||||||
<view v-if="(specialArea == 31&&userInfo.isMakerSpace == 0)||specialArea !=31">
|
<view v-if="(specialArea == 31&&userInfo.isMakerSpace == 0)||specialArea !=31">
|
||||||
{{ item.waresPrice | numberToCurrency | isLocal }}
|
{{ item.waresPrice | numberToCurrency }}
|
||||||
</view>
|
</view>
|
||||||
<img @click.stop="addCar(item)"
|
<img @click.stop="addCar(item)"
|
||||||
v-show="item.preSaleStatus != 3 && item.isSale != 1&&specialArea != 31"
|
v-show="item.preSaleStatus != 3 && item.isSale != 1&&specialArea != 31"
|
||||||
|
|
Loading…
Reference in New Issue