feat: 管理端新增格式化价格文件插件并在代码中引入,更新代码需要install插件

This commit is contained in:
Yer
2023-07-04 10:24:21 +08:00
parent bf70527c58
commit 3c83179579
48 changed files with 165 additions and 263 deletions

View File

@@ -25,7 +25,7 @@ import {md5} from '@/utils/md5.js';
import Print from 'vue-print-nb';
Vue.use(Print);
const {aMapSecurityJsCode, inputMaxLength} = require("@/config");
const {aMapSecurityJsCode, inputMaxLength,mainColor } = require("@/config");
// 高德安全密钥
if (aMapSecurityJsCode) {
window._AMapSecurityConfig = {
@@ -45,6 +45,9 @@ Vue.prototype.wapLinkTo = function (goodsId, skuId) { // app端二维码
return `${WAP_URL}/pages/product/goods?id=${skuId}&goodsId=${goodsId}`
};
// 引入价格格式化组件
import priceColorScheme from 'price-color'
Vue.use(priceColorScheme);
const copyViewUi = {...ViewUI}
copyViewUi.Input.props.maxlength.default = inputMaxLength // 挂载最大输入值
@@ -66,6 +69,7 @@ Vue.prototype.uploadFileRequest = uploadFileRequest;
Vue.prototype.setStore = setStore;
Vue.prototype.getStore = getStore;
Vue.prototype.removeStore = removeStore;
Vue.prototype.$mainColor = mainColor;
Vue.prototype.md5 = md5;
Array.prototype.remove = function (from, to) {