apply-clients 3.3.222 → 3.4.2-FuGu-4

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.
Files changed (114) hide show
  1. package/build/css-loaders.js +34 -0
  2. package/build/dev-android.js +101 -0
  3. package/build/dev-client.js +8 -0
  4. package/build/dev-server-app.js +76 -0
  5. package/build/dev-server.js +119 -0
  6. package/build/example-server.js +80 -0
  7. package/build/release.sh +28 -0
  8. package/build/utils.js +80 -0
  9. package/build/webpack.base.conf.js +85 -0
  10. package/build/webpack.baseandroid.conf.js +84 -0
  11. package/build/webpack.dev.conf.js +51 -0
  12. package/build/webpack.devandroid.conf.js +34 -0
  13. package/build/webpack.example.conf.js +49 -0
  14. package/build/webpack.prod.conf.js +60 -0
  15. package/build/webpack.prodandroid.conf.js +60 -0
  16. package/build/webpack.test.conf.js +31 -0
  17. package/dingding.html +23 -0
  18. package/index.html +1 -1
  19. package/package.json +4 -3
  20. package/src/AndroidApp.vue +18 -13
  21. package/src/App.vue +20 -20
  22. package/src/DingDingApp.vue +51 -0
  23. package/src/android.js +1 -1
  24. package/src/apply.js +75 -91
  25. package/src/applyAndroid.js +25 -54
  26. package/src/applyDingDing.js +12 -0
  27. package/src/components/android/AppOnetomany.vue +37 -21
  28. package/src/components/android/AppServiceView.vue +3 -7
  29. package/src/components/android/AppSign.vue +3 -3
  30. package/src/components/android/AppTakePic.vue +12 -13
  31. package/src/components/android/Process/AppExplorationUser.vue +88 -38
  32. package/src/components/android/Process/AppServiceControl.vue +87 -16
  33. package/src/components/android/Process/Processes/AppInstallationDetails.vue +90 -100
  34. package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
  35. package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
  36. package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
  37. package/src/components/android/Supervisory/AppSupervisoryCart.vue +29 -23
  38. package/src/components/android/TaskGraph.vue +125 -0
  39. package/src/components/build/Install/ExplorationUser.vue +304 -0
  40. package/src/components/build/Install/Process/zhongran/ZR_Design.vue +537 -0
  41. package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
  42. package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
  43. package/src/components/product/ApplyCharge/printCharge.vue +142 -0
  44. package/src/components/product/Function/InstallFunction.vue +11 -2
  45. package/src/components/product/Function/InstallInfoSelect.vue +29 -47
  46. package/src/components/product/Function/Service/FunctionServiceControl.vue +172 -6
  47. package/src/components/product/Onetomany.vue +105 -24
  48. package/src/components/product/Order/OrderApply.vue +30 -30
  49. package/src/components/product/Order/OrderApplyList.vue +78 -67
  50. package/src/components/product/Order/OrderMessage.vue +11 -88
  51. package/src/components/product/Process/ExplorationSelect.vue +176 -149
  52. package/src/components/product/Process/ExplorationUser.vue +95 -85
  53. package/src/components/product/Process/Processes/InstallationDetails.vue +440 -352
  54. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +35 -9
  55. package/src/components/product/Process/Processes/chargeManagement.vue +634 -638
  56. package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
  57. package/src/components/product/Process/Processes/selectApply.vue +1 -1
  58. package/src/components/product/Process/Service/ServiceControl.vue +1241 -883
  59. package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
  60. package/src/components/product/ServiceView.vue +313 -423
  61. package/src/components/product/Stop/StopApply.vue +27 -25
  62. package/src/components/product/Stop/StopApplyList.vue +26 -11
  63. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +18 -349
  64. package/src/components/product/Supervisory/SupervisoryControl.vue +0 -8
  65. package/src/components/product/Supervisory/SupervisoryList.vue +27 -47
  66. package/src/components/product/Supervisory/SupervisoryhCart.vue +32 -54
  67. package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
  68. package/src/components/product/VueUtils/HighMeter.vue +208 -0
  69. package/src/dingding.js +20 -0
  70. package/src/expandcssAndroid.less +879 -362
  71. package/src/main.js +1 -1
  72. package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
  73. package/src/components/android/Function/AppInstallFunction.vue +0 -330
  74. package/src/components/android/Order/ApplyOrder.vue +0 -141
  75. package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
  76. package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
  77. package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
  78. package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
  79. package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
  80. package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
  81. package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
  82. package/src/components/image/danwei.png +0 -0
  83. package/src/components/image/dizhi.png +0 -0
  84. package/src/components/image/dwg.jpg +0 -0
  85. package/src/components/image/name.png +0 -0
  86. package/src/components/image/phone.png +0 -0
  87. package/src/components/image/type.png +0 -0
  88. package/src/components/image/yasuobao.jpg +0 -0
  89. package/src/components/image/zaixiantousu1.png +0 -0
  90. package/src/components/image/zizhukaitong.png +0 -0
  91. package/src/components/image//346/210/221/347/232/204.png +0 -0
  92. package/src/components/product/Function/Inform.vue +0 -73
  93. package/src/components/product/Function/MarketSurvey.vue +0 -81
  94. package/src/components/product/Process/Processes/printCharge.vue +0 -121
  95. package/src/components/product/Process/ShowBackReason.vue +0 -33
  96. package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
  97. package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
  98. package/src/components/product/VueUtils/ToolsPage.vue +0 -51
  99. package/src/components/product/VueUtils/Tree.vue +0 -330
  100. package/src/filiale/wuan/android.js +0 -0
  101. package/src/filiale/wuan/pc.js +0 -4
  102. package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
  103. package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +0 -414
  104. package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +0 -456
  105. package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
  106. package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
  107. package/src/filiale/yuchuan/android.js +0 -8
  108. package/src/filiale/yuchuan/pc/Order/OrderApply.vue +0 -517
  109. package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +0 -343
  110. package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +0 -356
  111. package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +0 -131
  112. package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
  113. package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +0 -517
  114. package/src/filiale/yuchuan/pc.js +0 -13
@@ -0,0 +1,51 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: '#eval-source-map',
14
+ devServer: {
15
+ historyApiFallback: true,
16
+ host: '0.0.0.0',
17
+ disableHostCheck: true,
18
+ noInfo: true
19
+ },
20
+ output: {
21
+ // necessary for the html plugin to work properly
22
+ // when serving the html from in-memory
23
+ publicPath: '/'
24
+ },
25
+ plugins: [
26
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
27
+ new webpack.optimize.OccurenceOrderPlugin(),
28
+ new webpack.HotModuleReplacementPlugin(),
29
+ new webpack.NoErrorsPlugin(),
30
+ // https://github.com/ampedandwired/html-webpack-plugin
31
+ new HtmlWebpackPlugin({
32
+ filename: 'index.html',
33
+ template: 'index.html',
34
+ inject: true,
35
+ chunks: ['app']
36
+ }),
37
+ // 安卓模拟页面
38
+ new HtmlWebpackPlugin({
39
+ filename: 'android.html',
40
+ template: 'android.html',
41
+ inject: true,
42
+ chunks: ['android-app']
43
+ }),
44
+ new HtmlWebpackPlugin({
45
+ filename: 'dingding.html',
46
+ template: 'dingding.html',
47
+ inject: true,
48
+ chunks: ['dingding-app']
49
+ })
50
+ ]
51
+ })
@@ -0,0 +1,34 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.baseandroid.conf')
4
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
5
+
6
+ // add hot-reload related code to entry chunks
7
+ Object.keys(baseConfig.entry).forEach(function (name) {
8
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
9
+ })
10
+
11
+ module.exports = merge(baseConfig, {
12
+ // eval-source-map is faster for development
13
+ devtool: 'source-map',
14
+ //devtool: '#eval-source-map',
15
+ output: {
16
+ // necessary for the html plugin to work properly
17
+ // when serving the html from in-memory
18
+ publicPath: '/'
19
+ },
20
+ plugins: [
21
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
22
+ new webpack.optimize.OccurenceOrderPlugin(),
23
+ new webpack.HotModuleReplacementPlugin(),
24
+ new webpack.NoErrorsPlugin(),
25
+ // https://github.com/ampedandwired/html-webpack-plugin
26
+ //plugin trick
27
+ new HtmlWebpackPlugin({
28
+ filename: 'android.html',
29
+ template: 'android.html',
30
+ inject: true,
31
+ chunks: ['android-app']
32
+ })
33
+ ]
34
+ })
@@ -0,0 +1,49 @@
1
+ var fs = require('fs')
2
+ var webpack = require('webpack')
3
+ var merge = require('webpack-merge')
4
+ var baseConfig = require('./webpack.base.conf')
5
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
6
+
7
+ // add hot-reload related code to entry chunks
8
+ Object.keys(baseConfig.entry).forEach(function (name) {
9
+ baseConfig.entry[name] = ['./build/dev-client'].concat(baseConfig.entry[name])
10
+ })
11
+
12
+ // 把examples下所有index.html转换成测试例子.html
13
+ fs.readdirSync('./examples').forEach((file) => {
14
+ baseConfig.plugins.push(
15
+ // https://github.com/ampedandwired/html-webpack-plugin
16
+ new HtmlWebpackPlugin({
17
+ filename: file + '.html',
18
+ template: `examples/${file}/index.html`,
19
+ inject: false
20
+ })
21
+ )
22
+ })
23
+
24
+ // 把examples下子目录里的main.js打包成对应组件名的App.js
25
+ fs.readdirSync('./examples').forEach((file) => {
26
+ baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
27
+ })
28
+
29
+ module.exports = merge(baseConfig, {
30
+ // eval-source-map is faster for development
31
+ devtool: '#eval-source-map',
32
+ output: {
33
+ // necessary for the html plugin to work properly
34
+ // when serving the html from in-memory
35
+ publicPath: '/'
36
+ },
37
+ plugins: [
38
+ // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
39
+ new webpack.optimize.OccurenceOrderPlugin(),
40
+ new webpack.HotModuleReplacementPlugin(),
41
+ new webpack.NoErrorsPlugin(),
42
+ // https://github.com/ampedandwired/html-webpack-plugin
43
+ new HtmlWebpackPlugin({
44
+ filename: 'index.html',
45
+ template: 'index.html',
46
+ inject: true
47
+ })
48
+ ]
49
+ })
@@ -0,0 +1,60 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.base.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name][chunkhash].js',
21
+ chunkFilename: '[id].[chunkhash].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'index.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -0,0 +1,60 @@
1
+ var webpack = require('webpack')
2
+ var merge = require('webpack-merge')
3
+ var baseConfig = require('./webpack.baseandroid.conf')
4
+ var cssLoaders = require('./css-loaders')
5
+ var ExtractTextPlugin = require('extract-text-webpack-plugin')
6
+ var HtmlWebpackPlugin = require('html-webpack-plugin')
7
+
8
+ // whether to generate source map for production files.
9
+ // disabling this can speed up the build.
10
+ var SOURCE_MAP = true
11
+
12
+ module.exports = merge(baseConfig, {
13
+ stats: {
14
+ children: false
15
+ },
16
+ devtool: SOURCE_MAP ? '#source-map' : false,
17
+ output: {
18
+ // naming output files with hashes for better caching.
19
+ // dist/index.html will be auto-generated with correct URLs.
20
+ filename: '[name].js',
21
+ chunkFilename: '[id].js'
22
+ },
23
+ vue: {
24
+ loaders: cssLoaders({
25
+ sourceMap: SOURCE_MAP,
26
+ extract: true
27
+ })
28
+ },
29
+ plugins: [
30
+ // http://vuejs.github.io/vue-loader/workflow/production.html
31
+ new webpack.DefinePlugin({
32
+ 'process.env': {
33
+ NODE_ENV: '"production"'
34
+ }
35
+ }),
36
+ new webpack.optimize.UglifyJsPlugin({
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ }),
41
+ new webpack.optimize.OccurenceOrderPlugin(),
42
+ // extract css into its own file
43
+ new ExtractTextPlugin('[name].css'),
44
+ // generate dist index.html with correct asset hash for caching.
45
+ // you can customize output by editing /index.html
46
+ // see https://github.com/ampedandwired/html-webpack-plugin
47
+ new HtmlWebpackPlugin({
48
+ filename: '../index.html',
49
+ template: 'android.html',
50
+ inject: true,
51
+ minify: {
52
+ removeComments: true,
53
+ collapseWhitespace: true,
54
+ removeAttributeQuotes: true
55
+ // more options:
56
+ // https://github.com/kangax/html-minifier#options-quick-reference
57
+ }
58
+ })
59
+ ]
60
+ })
@@ -0,0 +1,31 @@
1
+ // This is the webpack config used for unit tests.
2
+
3
+ var utils = require('./utils')
4
+ var webpack = require('webpack')
5
+ var merge = require('webpack-merge')
6
+ var baseConfig = require('./webpack.base.conf')
7
+
8
+ var webpackConfig = merge(baseConfig, {
9
+ module: {
10
+ rules: utils.styleLoaders()
11
+ },
12
+ // use inline sourcemap for karma-sourcemap-loader
13
+ devtool: '#inline-source-map',
14
+ resolveLoader: {
15
+ alias: {
16
+ // necessary to to make lang="scss" work in test when using vue-loader's ?inject option
17
+ // see discussion at https://github.com/vuejs/vue-loader/issues/724
18
+ 'scss-loader': 'sass-loader'
19
+ }
20
+ },
21
+ plugins: [
22
+ new webpack.DefinePlugin({
23
+ 'process.env': require('../config/test.env')
24
+ })
25
+ ]
26
+ })
27
+
28
+ // no need for app entry during tests
29
+ delete webpackConfig.entry
30
+
31
+ module.exports = webpackConfig
package/dingding.html ADDED
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
6
+ <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
+ <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
+ <META HTTP-EQUIV="expires" CONTENT="0">
9
+ <title>报建系统</title>
10
+ <script src="https://g.alicdn.com/code/npm/@ali/dingtalk-h5-remote-debug-sdk/0.1.3/app.bundle.js"></script>
11
+ <script>
12
+ h5RemoteDebugSdk.init({
13
+ uuid: "31c780c4-2919-427d-a4fb-73e5a451f5b0",
14
+ observerElement: document.documentElement,
15
+ });
16
+ </script>
17
+ </head>
18
+ <body>
19
+ <ding-ding-app></ding-ding-app>
20
+ </body>
21
+ </html>
22
+ <script>
23
+ </script>
package/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <META HTTP-EQUIV="pragma" CONTENT="no-cache">
7
7
  <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
8
8
  <META HTTP-EQUIV="expires" CONTENT="0">
9
- <title>燃气客服系统</title>
9
+ <title>报建系统</title>
10
10
  <script src="https://webapi.amap.com/maps?v=1.4.2&key=4889f1e58df01cb40415536c8907bf64"></script>
11
11
  <!--引入UI组件库(1.1版本) -->
12
12
  <script src="https://webapi.amap.com/ui/1.1/main.js?v=1.1.1"></script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.222",
3
+ "version": "3.4.2-FuGu-4",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -29,6 +29,7 @@
29
29
  "dependencies": {
30
30
  "@logicflow/core": "^0.4.3",
31
31
  "co": "4.6.0",
32
+ "dingtalk-jsapi": "^2.13.68",
32
33
  "jsencrypt": "^3.0.0-rc.1",
33
34
  "less": "^2.7.1",
34
35
  "less-loader": "^2.2.3",
@@ -93,9 +94,9 @@
93
94
  "style": "0.0.3",
94
95
  "style-loader": "^0.20.3",
95
96
  "system-clients": "3.1.87",
96
- "system-phone": "1.2.81-1",
97
+ "system-phone": "1.2.80-49",
97
98
  "url-loader": "^0.5.7",
98
- "vue-client": "1.24.25",
99
+ "vue-client": "1.24.33",
99
100
  "vue-hot-reload-api": "^1.2.0",
100
101
  "vue-html-loader": "^1.0.0",
101
102
  "vue-loader": "^8.2.1",
@@ -2,11 +2,12 @@
2
2
  <!-- <app-base> -->
3
3
  <div id="android-app">
4
4
  <article>
5
- <route :comp="{name: 'app-exploration-user'}" name="root"></route>
6
- <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
- <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
- <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
- <!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
5
+ <!-- <route :comp="{name: 'build-tsak'}" name="root"></route>-->
6
+ <!-- <route :comp="{name: 'app-process-supervisory'}" name="root"></route>-->
7
+ <!-- <route :comp="{name: 'apply-reserve'}" name="root"></route>-->
8
+ <!-- <route :comp="{name: 'task-graph'}" name="root"></route>-->
9
+ <!-- <route :comp="{name: 'app-istall-function'}" name="root"></route>-->
10
+ <route :comp="{name: 'login-app'}" name="root"></route>
10
11
  </article>
11
12
  <time-out></time-out>
12
13
  <message-box></message-box>
@@ -17,14 +18,18 @@
17
18
 
18
19
  <script>
19
20
 
20
- export default {
21
- ready () {
22
- if(!window.onerror) {
23
- window.onerror = function (message, file, line, col, error) {
24
- // HostApp.alert("Error occured: " + error.message)
25
- return false
26
- }
21
+ import AlertBox from "vue-client/src/components/AlertBox";
22
+ import AlertBoxBatch from "vue-client/src/components/AlertBoxBatch";
23
+
24
+ export default {
25
+ ready () {
26
+ if(!window.onerror) {
27
+ window.onerror = function (message, file, line, col, error) {
28
+ // HostApp.alert("Error occured: " + error.message)
29
+ return false
27
30
  }
28
31
  }
29
- }
32
+ },
33
+ components: { AlertBox, AlertBoxBatch }
34
+ }
30
35
  </script>
package/src/App.vue CHANGED
@@ -1,20 +1,20 @@
1
- <template>
2
- <div>
3
- <app-base class="bg">
4
- <div class='flex'>
5
- <article>
6
- <route :comp="{name: 'login'}"></route>
7
- </article>
8
- </div>
9
- </app-base>
10
- </div>
11
- </template>
12
-
13
- <script>
14
-
15
-
16
- export default {
17
-
18
-
19
- }
20
- </script>
1
+ <template>
2
+ <div>
3
+ <app-base class="bg">
4
+ <div class='flex'>
5
+ <article>
6
+ <route :comp="{name: 'login'}"></route>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </div>
11
+ </template>
12
+
13
+ <script>
14
+
15
+
16
+ export default {
17
+
18
+
19
+ }
20
+ </script>
@@ -0,0 +1,51 @@
1
+ <template>
2
+ <div id="dingding-app">
3
+ {{ title }}
4
+ </div>
5
+ </template>
6
+
7
+ <script>
8
+ export default {
9
+ title: '报建系统',
10
+ data () {
11
+ return {
12
+ title: 'Hello DingDing'
13
+ }
14
+ },
15
+ ready () {
16
+ // 获取免登授权码
17
+ this.$dd.ready(() => {
18
+ console.log('加载成功')
19
+
20
+ this.test2()
21
+ })
22
+ },
23
+ methods: {
24
+ test (res) {
25
+ this.$dd.device.notification.alert({
26
+ title: '提示',
27
+ message: res,
28
+ buttonName: '确认',
29
+ onSuccess: () => {
30
+ },
31
+ onFail: () => {}
32
+ })
33
+ },
34
+ test2 () {
35
+ this.$dd.runtime.permission.requestAuthCode({
36
+ corpId: 'ding6406c45c1a45736df2c783f7214b6d69',
37
+ onSuccess: (res) => {
38
+ console.info('获取成功')
39
+ console.info(res.code)
40
+ this.test(res.code)
41
+ },
42
+ onFail: (err) => {
43
+ console.info('获取失败')
44
+ console.info(err)
45
+ this.test('失败')
46
+ }
47
+ })
48
+ }
49
+ }
50
+ }
51
+ </script>
package/src/android.js CHANGED
@@ -7,7 +7,7 @@ import applyAndroid from './applyAndroid'
7
7
 
8
8
  all()
9
9
  apply()
10
- applyAndroid()
10
+ applyAndroid('yuchuan')
11
11
  systemphonegrid()
12
12
 
13
13
  require('./android-bootstrap/less/bootstrap.less')