Commit af865ff5 authored by GuanHua's avatar GuanHua

fix: 店铺装修活动类型修改

parents 0a684b24 1b89b454
......@@ -35,6 +35,7 @@
"build:v2scm": "cross-env PRO_ENV=v2scm yarn build",
"build:v2-demo": "cross-env PRO_ENV=v2-demo yarn build",
"build:v2Test": "cross-env SITE_ID=1 BACK_GATEWAY=http://lx-pre-gateway.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lx-pre-gateway.shushangyun.com yarn build",
"postinstall": "node ./scripts/init && umi generate tmp",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
......@@ -80,6 +81,7 @@
"antd-dayjs-webpack-plugin": "^1.0.6",
"antd-img-crop": "^3.12.0",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-yapi-import": "1.0.4",
"bignumber.js": "^9.0.1",
"bizcharts": "^4.1.10",
"braft-editor": "^2.3.9",
......@@ -112,7 +114,7 @@
"sortablejs": "^1.12.0",
"typescript": "^4.1.0",
"umi": "3.5.20",
"umi-plugin-yapi": "1.4.0",
"umi-plugin-yapi": "1.7.0",
"video-react": "^0.14.1",
"yorkie": "^2.0.0"
},
......
const fs = require('fs');
const path = require('path');
/**
* 用于新项目启动时缺少必要文件, 做的初始化脚本
*/
const cwd = process.cwd();
async function init() {
try {
await ensureFile(cwdPath('config/base.config.json'), '{}');
await ensureFile(cwdPath('config/router.config.json'), '[]');
await ensureFile(cwdPath('yapi_hashmaps.json'), '{}');
} catch (error) {
console.log(error);
process.exit(1);
}
}
/**
* 判断文件是否存在,如果不存在则创建,并写入对应初始值
*/
async function ensureFile(pathFile, defaultData) {
return new Promise((resolve, reject) => {
fs.open(pathFile, 'wx', function(err) {
if (err) {
if (err.code === 'EEXIST') {
resolve()
}
reject(err)
return ;
}
fs.writeFile(pathFile, defaultData, function(err) {
if (err) {
console.error(`初始化${pathFile}失败`);
reject(err);
}
console.log(`初始化${pathFile}成功`);
resolve(defaultData);
});
return;
});
});
}
function cwdPath(filePath) {
return path.resolve(cwd, filePath);
}
init();
......@@ -113,7 +113,7 @@ export const marketingConfig_3 = {
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 3,
type: 4,
exType: 1
},
childNodes: [],
......@@ -488,7 +488,7 @@ export const marketingConfig_13 = {
canHide: false,
componentName: 'MarketingCard.VerticalContainer',
props: {
type: 13,
type: 9,
},
childNodes: [],
childComponentName: 'MarketingCard.GoodsItem',
......@@ -523,7 +523,7 @@ export const marketingConfig_14 = {
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 14,
type: 13,
exType: 1
},
childNodes: [],
......@@ -559,7 +559,7 @@ export const marketingConfig_15 = {
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 15,
type: 13,
exType: 2
},
childNodes: [],
......@@ -595,7 +595,7 @@ export const marketingConfig_16 = {
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 16,
type: 14,
},
childNodes: [],
childComponentName: 'MarketingCard.GoodsItem',
......@@ -630,7 +630,7 @@ export const marketingConfig_17 = {
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 17,
type: 16,
},
childNodes: [],
childComponentName: 'MarketingCard.GoodsItem',
......@@ -665,7 +665,7 @@ export const marketingConfig_18 = {
componentName: 'MarketingCard.VerticalContainer',
maxLength: 3,
props: {
type: 18,
type: 15,
},
childNodes: [],
childComponentName: 'MarketingCard.GoodsItem',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment