Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app-public
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app-public
Commits
b17453e6
Commit
b17453e6
authored
Jul 08, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改引用地址错误
parent
7d9d885d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
47 deletions
+42
-47
index.js
config/index.js
+40
-45
index.ts
src/api/index.ts
+1
-1
pay.tsx
src/pages/pay/pay.tsx
+1
-1
No files found.
config/index.js
View file @
b17453e6
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'
))
;
}
}
;
src/api/index.ts
View file @
b17453e6
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
;
...
...
src/pages/pay/pay.tsx
View file @
b17453e6
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment