Commit b17453e6 by 姜雷

修改引用地址错误

parent 7d9d885d
const path = require('path');
const config = { const config = {
projectName: 'wx-school-app-public', projectName: 'wx-school-app-public',
date: '2019-4-12', date: '2019-4-12',
...@@ -5,32 +7,35 @@ const config = { ...@@ -5,32 +7,35 @@ const config = {
deviceRatio: { deviceRatio: {
'640': 2.34 / 2, '640': 2.34 / 2,
'750': 1, '750': 1,
'828': 1.81 / 2 '828': 1.81 / 2,
}, },
sourceRoot: 'src', sourceRoot: 'src',
outputRoot: 'dist', outputRoot: 'dist',
alias: {
'@': path.resolve(__dirname, '..', 'src'),
},
plugins: { plugins: {
babel: { babel: {
sourceMap: true, sourceMap: true,
presets: [ presets: [
['env', { [
modules: false 'env',
}] {
modules: false,
},
],
], ],
plugins: [ plugins: [
'transform-decorators-legacy', 'transform-decorators-legacy',
'transform-class-properties', 'transform-class-properties',
'transform-object-rest-spread' 'transform-object-rest-spread',
] ],
} },
},
defineConstants: {
}, },
defineConstants: {},
copy: { copy: {
patterns: [ patterns: [],
], options: {},
options: {
}
}, },
weapp: { weapp: {
module: { module: {
...@@ -38,34 +43,28 @@ const config = { ...@@ -38,34 +43,28 @@ const config = {
autoprefixer: { autoprefixer: {
enable: true, enable: true,
config: { config: {
browsers: [ browsers: ['last 3 versions', 'Android >= 4.1', 'ios >= 8'],
'last 3 versions', },
'Android >= 4.1',
'ios >= 8'
]
}
}, },
pxtransform: { pxtransform: {
enable: true, enable: true,
config: { config: {},
}
}, },
url: { url: {
enable: true, enable: true,
config: { config: {
limit: 10240 // 设定转换尺寸上限 limit: 10240, // 设定转换尺寸上限
} },
}, },
cssModules: { cssModules: {
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
config: { config: {
namingPattern: 'module', // 转换模式,取值为 global/module namingPattern: 'module', // 转换模式,取值为 global/module
generateScopedName: '[name]__[local]___[hash:base64:5]' generateScopedName: '[name]__[local]___[hash:base64:5]',
} },
} },
} },
} },
}, },
h5: { h5: {
publicPath: '/', publicPath: '/',
...@@ -75,28 +74,24 @@ const config = { ...@@ -75,28 +74,24 @@ const config = {
autoprefixer: { autoprefixer: {
enable: true, enable: true,
config: { config: {
browsers: [ browsers: ['last 3 versions', 'Android >= 4.1', 'ios >= 8'],
'last 3 versions', },
'Android >= 4.1',
'ios >= 8'
]
}
}, },
cssModules: { cssModules: {
enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true enable: false, // 默认为 false,如需使用 css modules 功能,则设为 true
config: { config: {
namingPattern: 'module', // 转换模式,取值为 global/module namingPattern: 'module', // 转换模式,取值为 global/module
generateScopedName: '[name]__[local]___[hash:base64:5]' generateScopedName: '[name]__[local]___[hash:base64:5]',
} },
} },
} },
} },
} },
} };
module.exports = function (merge) { module.exports = function(merge) {
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev')) return merge({}, config, require('./dev'));
} }
return merge({}, config, require('./prod')) return merge({}, config, require('./prod'));
} };
import Taro, { request } from '@tarojs/taro'; import Taro, { request } from '@tarojs/taro';
import store from '../store/index'; import store from '../store/index';
import { BASE_SERVER_URL, LogoutCode, SuccessCode } from '../constants/index'; import { BASE_SERVER_URL, LogoutCode, SuccessCode } from '@/constants';
export type ResponseDataEntity<T> = { export type ResponseDataEntity<T> = {
code: number; code: number;
......
...@@ -12,8 +12,8 @@ import ECBmode from 'crypto-js/mode-ecb'; ...@@ -12,8 +12,8 @@ import ECBmode from 'crypto-js/mode-ecb';
import PaddingPkcs7 from 'crypto-js/pad-pkcs7'; import PaddingPkcs7 from 'crypto-js/pad-pkcs7';
// import { paySuccess } from '../../api/Order/paySuccess'; // import { paySuccess } from '../../api/Order/paySuccess';
import './pay.scss'; import './pay.scss';
import { SOCKET_URL } from '@/constants';
import { str2ab, ab2str } from '@/utils/arrayBuffer'; import { str2ab, ab2str } from '@/utils/arrayBuffer';
import { SOCKET_URL } from '@/constants';
enum BlueToothError { enum BlueToothError {
BlueToothNotOpen = 'BlueToothNotOpen', BlueToothNotOpen = 'BlueToothNotOpen',
......
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