From 87901a97f5fa4597137ee32b063fe0eb8d42045f Mon Sep 17 00:00:00 2001 From: woody Date: Wed, 28 May 2025 16:11:58 +0800 Subject: [PATCH] =?UTF-8?q?feat(specialArea):=20=E4=BC=9A=E5=91=98?= =?UTF-8?q?=E4=B8=93=E5=8C=BA=E9=A6=96=E9=A1=B5=E5=8E=BB=E9=99=A4=E8=B4=A7?= =?UTF-8?q?=E5=B8=81=E7=AC=A6=E5=8F=B7=EF=BC=8C=E5=B0=8F=E6=95=B0=E4=BD=8D?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 33 ++++++++++++++++++++------------- pages/specialArea/details.vue | 2 +- pages/specialArea/list.vue | 4 ++-- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/main.js b/main.js index b36683f..645b349 100644 --- a/main.js +++ b/main.js @@ -5,11 +5,12 @@ import Vue from 'vue' import uview from '@/uni_modules/uview-ui' import store from '@/store/index.js' import Vue2OrgTree from 'vue-tree-color' -import * as echarts from 'echarts'; -Vue.prototype.$echarts = echarts; +import * as echarts from 'echarts' +import { formatCurrency } from '@/util/index' +Vue.prototype.$echarts = echarts Vue.use(Vue2OrgTree) -import axios from 'axios'; -import { saveAs } from 'file-saver'; +import axios from 'axios' +import { saveAs } from 'file-saver' window.wx = {} /*底部数据*/ @@ -19,27 +20,33 @@ Vue.use(uview) Vue.config.productionTip = false App.mpType = 'app' 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' Vue.use(VueClipboard) - // #endif -import { numberToCurrencyNo,toThousandthAndKeepDecimal, isLocal,isLocaled } from '@/util/numberToCurrency' +import { + numberToCurrencyNo, + toThousandthAndKeepDecimal, + isLocal, + isLocaled, +} from '@/util/numberToCurrency' Vue.prototype.isLocaled = isLocaled // 配置全局过滤器,实现数字千分位格式 -Vue.filter('numberToCurrency', numberToCurrencyNo) +Vue.filter('numberToCurrency', formatCurrency) Vue.filter('toThousandthAndKeepDecimal', toThousandthAndKeepDecimal) // 配置全局过滤器,实现数字千分位格式 Vue.filter('isLocal', isLocal) import i18n from '@/util/i18n/index' -Vue.prototype._i18n = i18n +Vue.prototype._i18n = i18n // #ifdef VUE3 import { createSSRApp } from 'vue' @@ -48,9 +55,9 @@ export function createApp() { app.use(i18n) return { app, - store + store, } } // #endif require('@/config/request.js')(app) -app.$mount() \ No newline at end of file +app.$mount() diff --git a/pages/specialArea/details.vue b/pages/specialArea/details.vue index c929e93..fbb39eb 100644 --- a/pages/specialArea/details.vue +++ b/pages/specialArea/details.vue @@ -15,7 +15,7 @@ - {{ goodDetail.goodsPrice | toThousandthAndKeepDecimal | isLocal }} + {{ goodDetail.goodsPrice | toThousandthAndKeepDecimal }} diff --git a/pages/specialArea/list.vue b/pages/specialArea/list.vue index 2912a5d..0400976 100644 --- a/pages/specialArea/list.vue +++ b/pages/specialArea/list.vue @@ -76,10 +76,10 @@ - {{ item.vipPrice | numberToCurrency | isLocal }} + {{ item.vipPrice | numberToCurrency }} - {{ item.waresPrice | numberToCurrency | isLocal }} + {{ item.waresPrice | numberToCurrency }}