handpos-client 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -9
- package/README.md +3 -3
- package/build/dev-android.js +80 -82
- package/build/dev-server.js +0 -7
- package/build/webpack.base.conf.js +6 -6
- package/build/webpack.baseandroid.conf.js +87 -83
- package/index.html +1 -1
- package/oa.iml +9 -0
- package/package.json +7 -4
- package/src/App.vue +0 -2
- package/src/aotePos-android.js +49 -0
- package/src/aotePos.js +66 -70
- package/src/bootstrap/less/navs.less +1 -1
- package/src/components/Init.vue +114 -108
- package/src/components/Main.vue +81 -80
- package/src/components/css/garbage.less +80 -0
- package/src/components/css/style.less +119 -51
- package/src/components/garbage/GarbageInfo.vue +212 -0
- package/src/components/garbage/GarbagePayWay.vue +199 -0
- package/src/components/garbage/GarbageScanNative.vue +87 -0
- package/src/components/image/Payway.png +0 -0
- package/src/components/image/cardSale.png +0 -0
- package/src/components/image/ccbpay.png +0 -0
- package/src/components/image/code.jpg +0 -0
- package/src/components/image/guangda190603.jpg +0 -0
- package/src/components/image/machineSale.png +0 -0
- package/src/components/image/select.png +0 -0
- package/src/components/image/xxxk.png +0 -0
- package/src/components/main/CardMain.vue +47 -0
- package/src/components/main/MachineMain.vue +143 -0
- package/src/components/pay/PayWay.vue +173 -0
- package/src/components/pay/ScanNative.vue +87 -0
- package/src/components/pay/WriteCard.vue +141 -0
- package/src/components/public/BuyGas.vue +306 -0
- package/src/components/public/HistorySellList.vue +65 -0
- package/src/components/public/WritecardInfo.vue +114 -0
- package/src/components/sellgas/CardSellGas.vue +437 -0
- package/src/components/sellgas/IotSellGas.vue +155 -0
- package/src/components/sellgas/MachineSellGasGas.vue +145 -0
- package/src/components/sellgas/MachineSellGasMoney.vue +174 -0
- package/src/components/userinfo/UserInfo.vue +145 -0
- package/src/main.js +18 -23
- package/src/plugin/AndroidPlugin-/346/274/224/347/244/272/347/263/273/347/273/237.js +102 -0
- package/src/plugin/AndroidPlugin.js +107 -0
- package/src/plugin/DateUtil.js +32 -0
- package/src/plugin/HttpReset.js +124 -0
- package/src/plugin/Httputil.js +39 -0
- package/src/{Plugin → plugin}/PosUtil.js +21 -19
- package/src/service/CheckCard.js +103 -0
- package/src/service/GarbagePayWay.js +101 -0
- package/src/service/GarbageScanNative.js +116 -0
- package/src/service/GetCardInfo.js +88 -0
- package/src/service/PayWay.js +121 -0
- package/src/service/ScanNative.js +118 -0
- package/src/service/WriteCard.js +262 -0
- package/src/Plugin/AndroidPlugin.js +0 -141
- package/src/components/charge/card/CardInfo.vue +0 -43
- package/src/components/charge/card/ReadCardInter.vue +0 -176
- package/src/components/charge/card/ReadCardToBuy.vue +0 -174
- package/src/components/charge/machine/MachineSearch.Vue +0 -124
- package/src/components/charge/payment/OrderInfo.vue +0 -283
- package/src/components/charge/payment/ScanNative.vue +0 -162
- package/src/components/charge/sellgas/CardSellGas.vue +0 -365
- package/src/components/charge/sellgas/ChoosePayWay.vue +0 -275
- package/src/components/charge/sellgas/GudingPrice.vue +0 -38
- package/src/components/charge/sellgas/JietiPrice.vue +0 -54
- package/src/components/charge/sellgas/ScanQrcode.vue +0 -171
- package/src/components/charge/sellgas/WriteCard.vue +0 -283
- package/src/components/charge/userinfo/ChangeMeterList.vue +0 -43
- package/src/components/charge/userinfo/FillGasList.vue +0 -43
- package/src/components/charge/userinfo/HistorySellList.vue +0 -93
- package/src/components/charge/userinfo/OtherList.vue +0 -43
- package/src/components/charge/userinfo/SellList.vue +0 -43
- package/src/components/charge/userinfo/TransList.vue +0 -43
- package/src/components/charge/userinfo/UserInfo.vue +0 -201
- package/src/components/charge/userinfo/WritecardInfo.vue +0 -44
- package/src/components/ztprint.js +0 -26
- /package/src/components/image/{card.gif → readCard.gif} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
所有关于本产品的变化都在该文档里。
|
|
3
|
-
|
|
4
|
-
## 0.0.13-2019-04-18 @郭伟
|
|
5
|
-
升级到1.0.0
|
|
6
|
-
|
|
7
|
-
## 0.0.13-2019-04-09 @郭伟
|
|
8
|
-
晋城正式使用.0.0.13
|
|
9
|
-
|
|
1
|
+
# Change Log
|
|
2
|
+
所有关于本产品的变化都在该文档里。
|
|
3
|
+
|
|
4
|
+
## 0.0.13-2019-04-18 @郭伟
|
|
5
|
+
升级到1.0.0
|
|
6
|
+
|
|
7
|
+
## 0.0.13-2019-04-09 @郭伟
|
|
8
|
+
晋城正式使用.0.0.13
|
|
9
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
账号:afwenming123
|
|
2
|
-
密码:afrjnpmpass123 (password命令行输入密码是不会显示的)
|
|
3
|
-
Email:243976498@qq.com
|
|
1
|
+
账号:afwenming123
|
|
2
|
+
密码:afrjnpmpass123 (password命令行输入密码是不会显示的)
|
|
3
|
+
Email:243976498@qq.com
|
package/build/dev-android.js
CHANGED
|
@@ -1,82 +1,80 @@
|
|
|
1
|
-
var express = require('express')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
var config = require('./webpack.devandroid.conf')
|
|
4
|
-
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
-
// var httpProxy = require('http-proxy')
|
|
6
|
-
|
|
7
|
-
var app = express()
|
|
8
|
-
var compiler = webpack(config)
|
|
9
|
-
// var proxy = httpProxy.createProxyServer()
|
|
10
|
-
|
|
11
|
-
// Define HTTP proxies to your custom API backend
|
|
12
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var proxyTable = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
//
|
|
67
|
-
app.
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
//
|
|
71
|
-
//
|
|
72
|
-
//
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
console.log('Listening at http://localhost:8082')
|
|
82
|
-
})
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.devandroid.conf')
|
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
// var httpProxy = require('http-proxy')
|
|
6
|
+
|
|
7
|
+
var app = express()
|
|
8
|
+
var compiler = webpack(config)
|
|
9
|
+
// var proxy = httpProxy.createProxyServer()
|
|
10
|
+
|
|
11
|
+
// Define HTTP proxies to your custom API backend
|
|
12
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
+
var proxyTable = {
|
|
14
|
+
'/rs': {
|
|
15
|
+
// target: 'http://117.22.255.30:8088/pos'
|
|
16
|
+
// target: 'http://139.155.48.184:8089/pos/'
|
|
17
|
+
target: 'https://sxhxkltrq.com:8455/pos', // 科莱
|
|
18
|
+
changeOrigin: true, // Needed for virtual hosted sites
|
|
19
|
+
secure: false // Set to false if using a self-signed certificate
|
|
20
|
+
},
|
|
21
|
+
'/res': {
|
|
22
|
+
// target: 'http://117.22.255.30:8088/pos'
|
|
23
|
+
// target: 'http://139.155.48.184:8089/pos/'
|
|
24
|
+
target: 'http://61.134.55.234:8089/pos/'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
29
|
+
publicPath: config.output.publicPath,
|
|
30
|
+
stats: {
|
|
31
|
+
colors: true,
|
|
32
|
+
chunks: false
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
37
|
+
// force page reload when html-webpack-plugin template changes
|
|
38
|
+
compiler.plugin('compilation', function (compilation) {
|
|
39
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
40
|
+
hotMiddleware.publish({ action: 'reload' })
|
|
41
|
+
cb()
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
// proxy api requests
|
|
46
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
47
|
+
var options = proxyTable[context]
|
|
48
|
+
if (typeof options === 'string') {
|
|
49
|
+
options = { target: options }
|
|
50
|
+
}
|
|
51
|
+
app.use(proxyMiddleware(context, options))
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
// handle fallback for HTML5 history API
|
|
55
|
+
app.use(require('connect-history-api-fallback')())
|
|
56
|
+
|
|
57
|
+
// serve webpack bundle output
|
|
58
|
+
app.use(devMiddleware)
|
|
59
|
+
|
|
60
|
+
// enable hot-reload and state-preserving
|
|
61
|
+
// compilation error display
|
|
62
|
+
app.use(hotMiddleware)
|
|
63
|
+
|
|
64
|
+
// serve pure static assets
|
|
65
|
+
app.use('/static', express.static('./static'))
|
|
66
|
+
//
|
|
67
|
+
// app.all('/rs/*', function (req, res) {
|
|
68
|
+
// proxy.web(req, res, {
|
|
69
|
+
// // target: 'http://192.168.2.68:9001/'
|
|
70
|
+
// target: 'http://localhost:8077/'
|
|
71
|
+
// })
|
|
72
|
+
// })
|
|
73
|
+
|
|
74
|
+
module.exports = app.listen(8083, function (err) {
|
|
75
|
+
if (err) {
|
|
76
|
+
console.log(err)
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
console.log('Listening at http://localhost:8083')
|
|
80
|
+
})
|
package/build/dev-server.js
CHANGED
|
@@ -11,13 +11,6 @@ var proxy = httpProxy.createProxyServer()
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
13
|
var proxyTable = {
|
|
14
|
-
// '/api': {
|
|
15
|
-
// target: 'http://jsonplaceholder.typicode.com',
|
|
16
|
-
// changeOrigin: true,
|
|
17
|
-
// pathRewrite: {
|
|
18
|
-
// '^/api': ''
|
|
19
|
-
// }
|
|
20
|
-
// }
|
|
21
14
|
}
|
|
22
15
|
|
|
23
16
|
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
@@ -40,12 +40,12 @@ module.exports = {
|
|
|
40
40
|
test: /\.js$/,
|
|
41
41
|
loader: 'babel',
|
|
42
42
|
include: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
/src/,
|
|
44
|
+
/build/,
|
|
45
|
+
/examples/,
|
|
46
|
+
/test/,
|
|
47
|
+
/node_modules\/vue-client\/src/,
|
|
48
|
+
/node_modules\/vue-strap\/src/
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
{
|
|
@@ -1,83 +1,87 @@
|
|
|
1
|
-
//path is a built-in node.js module,
|
|
2
|
-
var path = require('path')
|
|
3
|
-
//css-loaders.js in the same directory
|
|
4
|
-
var cssLoaders = require('./css-loaders')
|
|
5
|
-
//__dirname The name of the directory that the currently executing script resides in.
|
|
6
|
-
var projectRoot = path.resolve(__dirname, '../')
|
|
7
|
-
|
|
8
|
-
module.exports = {
|
|
9
|
-
//entry point
|
|
10
|
-
entry: {
|
|
11
|
-
app: './src/aotePos.js'
|
|
12
|
-
},
|
|
13
|
-
//output
|
|
14
|
-
output: {
|
|
15
|
-
//build output absolute directory
|
|
16
|
-
path: path.resolve(__dirname, '../dist/static'),
|
|
17
|
-
//publics URL address of the output files when referenced in a browser
|
|
18
|
-
publicPath: './static/',
|
|
19
|
-
filename: '[name].js'
|
|
20
|
-
},
|
|
21
|
-
//resolve modules and files path
|
|
22
|
-
resolve: {
|
|
23
|
-
extensions: ['', '.js', '.vue'],
|
|
24
|
-
fallback: [path.join(__dirname, '../node_modules')],
|
|
25
|
-
alias: {
|
|
26
|
-
'src': path.resolve(__dirname, '../src')
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
//resolve loaders path
|
|
30
|
-
resolveLoader: {
|
|
31
|
-
fallback: [path.join(__dirname, '../node_modules')]
|
|
32
|
-
},
|
|
33
|
-
module: {
|
|
34
|
-
loaders: [
|
|
35
|
-
{
|
|
36
|
-
test: /\.vue$/,
|
|
37
|
-
loader: 'vue'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
test: /\.js$/,
|
|
41
|
-
loader: 'babel',
|
|
42
|
-
include: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
test: /\.json$/,
|
|
53
|
-
loader: 'json'
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
test: /\.html$/,
|
|
57
|
-
loader: 'vue-html'
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
test: /\.less$/,
|
|
61
|
-
loader: 'style!css!less'
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
test: /\.
|
|
65
|
-
loader: '
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
|
|
1
|
+
//path is a built-in node.js module,
|
|
2
|
+
var path = require('path')
|
|
3
|
+
//css-loaders.js in the same directory
|
|
4
|
+
var cssLoaders = require('./css-loaders')
|
|
5
|
+
//__dirname The name of the directory that the currently executing script resides in.
|
|
6
|
+
var projectRoot = path.resolve(__dirname, '../')
|
|
7
|
+
|
|
8
|
+
module.exports = {
|
|
9
|
+
//entry point
|
|
10
|
+
entry: {
|
|
11
|
+
app: './src/aotePos.js'
|
|
12
|
+
},
|
|
13
|
+
//output
|
|
14
|
+
output: {
|
|
15
|
+
//build output absolute directory
|
|
16
|
+
path: path.resolve(__dirname, '../dist/static'),
|
|
17
|
+
//publics URL address of the output files when referenced in a browser
|
|
18
|
+
publicPath: './static/',
|
|
19
|
+
filename: '[name].js'
|
|
20
|
+
},
|
|
21
|
+
//resolve modules and files path
|
|
22
|
+
resolve: {
|
|
23
|
+
extensions: ['', '.js', '.vue'],
|
|
24
|
+
fallback: [path.join(__dirname, '../node_modules')],
|
|
25
|
+
alias: {
|
|
26
|
+
'src': path.resolve(__dirname, '../src')
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
//resolve loaders path
|
|
30
|
+
resolveLoader: {
|
|
31
|
+
fallback: [path.join(__dirname, '../node_modules')]
|
|
32
|
+
},
|
|
33
|
+
module: {
|
|
34
|
+
loaders: [
|
|
35
|
+
{
|
|
36
|
+
test: /\.vue$/,
|
|
37
|
+
loader: 'vue'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
test: /\.js$/,
|
|
41
|
+
loader: 'babel',
|
|
42
|
+
include: [
|
|
43
|
+
/src/,
|
|
44
|
+
/build/,
|
|
45
|
+
/examples/,
|
|
46
|
+
/test/,
|
|
47
|
+
/node_modules\/vue-client\/src/,
|
|
48
|
+
/node_modules\/vue-strap\/src/
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
test: /\.json$/,
|
|
53
|
+
loader: 'json'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
test: /\.html$/,
|
|
57
|
+
loader: 'vue-html'
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
test: /\.less$/,
|
|
61
|
+
loader: 'style!css!less'
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
test: /\.css$/,
|
|
65
|
+
loader: 'style!css!less'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
test: /\.(png|jpg|gif|svg|woff2?|eot|ttf)(\?.*)?$/,
|
|
69
|
+
loader: 'url',
|
|
70
|
+
query: {
|
|
71
|
+
limit: 10000,
|
|
72
|
+
name: '[name].[ext]?[hash:7]'
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
vue: {
|
|
78
|
+
loaders: cssLoaders({
|
|
79
|
+
sourceMap: false,
|
|
80
|
+
extract: false
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
plugins: [],
|
|
84
|
+
eslint: {
|
|
85
|
+
formatter: require('eslint-friendly-formatter')
|
|
86
|
+
}
|
|
87
|
+
}
|
package/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
6
|
-
<title
|
|
6
|
+
<title>手持自助</title>
|
|
7
7
|
<style media="screen">
|
|
8
8
|
/*url(./static/newmainbg.jpg)*/
|
|
9
9
|
body{width: 100%;background:#7f8eaf no-repeat center bottom; background-size: cover;}
|
package/oa.iml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<output url="file://$MODULE_DIR$/bin" />
|
|
5
|
+
<exclude-output />
|
|
6
|
+
<content url="file://$MODULE_DIR$" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "handpos-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "手持POS",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"example": "node build/example-server.js",
|
|
12
12
|
"dev": "node build/dev-android.js",
|
|
13
|
-
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js
|
|
13
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prodandroid.conf.js",
|
|
14
14
|
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
15
15
|
"unit": "karma start test/unit/karma.conf.js --single-run",
|
|
16
16
|
"e2e": "node test/e2e/runner.js",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"less-loader": "^2.2.3",
|
|
25
25
|
"lib-flexible": "^0.3.2",
|
|
26
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
27
|
+
"crypto-js": "3.1.9-1",
|
|
26
28
|
"px2rem-loader": "^0.1.7",
|
|
27
29
|
"vue": "^1.0.17"
|
|
28
30
|
},
|
|
@@ -79,7 +81,7 @@
|
|
|
79
81
|
"style": "0.0.3",
|
|
80
82
|
"style-loader": "^0.20.3",
|
|
81
83
|
"url-loader": "^0.5.7",
|
|
82
|
-
"vue-client": "
|
|
84
|
+
"vue-client": "1.23.11",
|
|
83
85
|
"vue-hot-reload-api": "^1.2.0",
|
|
84
86
|
"vue-html-loader": "^1.0.0",
|
|
85
87
|
"vue-loader": "^8.2.1",
|
|
@@ -91,7 +93,8 @@
|
|
|
91
93
|
"webpack": "^1.12.2",
|
|
92
94
|
"webpack-dev-middleware": "^1.4.0",
|
|
93
95
|
"webpack-hot-middleware": "^2.6.0",
|
|
94
|
-
"webpack-merge": "^0.8.3"
|
|
96
|
+
"webpack-merge": "^0.8.3",
|
|
97
|
+
"qrcodejs2": "0.0.2"
|
|
95
98
|
},
|
|
96
99
|
"keywords": [
|
|
97
100
|
"handpos-client"
|
package/src/App.vue
CHANGED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import Vue from 'vue'
|
|
2
|
+
|
|
3
|
+
export default function (filiale) {
|
|
4
|
+
// 参数加载页面
|
|
5
|
+
Vue.component('init', (resolve) => { require(['./components/Init'], resolve) })
|
|
6
|
+
// 主页面
|
|
7
|
+
Vue.component('main', (resolve) => { require(['./components/Main'], resolve) })
|
|
8
|
+
|
|
9
|
+
// 卡表收费
|
|
10
|
+
Vue.component('card-main', (resolve) => { require(['./components/main/CardMain'], resolve) })
|
|
11
|
+
// 无卡收费
|
|
12
|
+
Vue.component('machine-main', (resolve) => { require(['./components/main/MachineMain'], resolve) })
|
|
13
|
+
|
|
14
|
+
// 垃圾费相关
|
|
15
|
+
// 垃圾费信息
|
|
16
|
+
Vue.component('garbage-info', (resolve) => { require(['./components/garbage/GarbageInfo'], resolve) })
|
|
17
|
+
// 垃圾费支付方式选择
|
|
18
|
+
Vue.component('garbage-pay-way', (resolve) => { require(['./components/garbage/GarbagePayWay'], resolve) })
|
|
19
|
+
// 垃圾费二维码扫描
|
|
20
|
+
Vue.component('garbage-scan-native', (resolve) => { require(['./components/garbage/GarbageScanNative'], resolve) })
|
|
21
|
+
|
|
22
|
+
// 卡表用户信息
|
|
23
|
+
Vue.component('card-user-info', (resolve) => { require(['./components/sellgas/CardSellGas'], resolve) })
|
|
24
|
+
// 物联网表信息
|
|
25
|
+
Vue.component('iot-user-info', (resolve) => { require(['./components/sellgas/IotSellGas'], resolve) })
|
|
26
|
+
// 机表用户信息-gas
|
|
27
|
+
Vue.component('machine-user-info-gas', (resolve) => { require(['./components/sellgas/MachineSellGasGas'], resolve) })
|
|
28
|
+
// 机表用户信息-money(常用)
|
|
29
|
+
Vue.component('machine-user-info', (resolve) => { require(['./components/sellgas/MachineSellGasMoney'], resolve) })
|
|
30
|
+
|
|
31
|
+
// 支付
|
|
32
|
+
// 选择支付方式
|
|
33
|
+
Vue.component('pay-way', (resolve) => { require(['./components/pay/PayWay'], resolve) })
|
|
34
|
+
// 二维码展示界面
|
|
35
|
+
Vue.component('scannative', (resolve) => { require(['./components/pay/ScanNative'], resolve) })
|
|
36
|
+
// 写卡界面
|
|
37
|
+
Vue.component('order-info', (resolve) => { require(['./components/pay/WriteCard'], resolve) })
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
// 公共组件
|
|
42
|
+
// 历史收费记录
|
|
43
|
+
Vue.component('history-sell-list', (resolve) => { require(['./components/public/HistorySellList'], resolve) })
|
|
44
|
+
// 预写卡信息
|
|
45
|
+
Vue.component('write-card-info', (resolve) => { require(['./components/public/WritecardInfo'], resolve) })
|
|
46
|
+
// 购气
|
|
47
|
+
Vue.component('buy-gas', (resolve) => { require(['./components/public/BuyGas'], resolve) })
|
|
48
|
+
|
|
49
|
+
}
|