├── README.md
├── _config.yml
└── lottery
├── .babelrc
├── .editorconfig
├── .gitignore
├── .postcssrc.js
├── README.md
├── build
├── build.js
├── check-versions.js
├── utils.js
├── vue-loader.conf.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
└── webpack.prod.conf.js
├── config
├── dev.env.js
├── index.js
└── prod.env.js
├── dist
├── index.html
└── static
│ ├── css
│ ├── app.9ca343d862abd17244d4d469dfdb0a12.css
│ └── app.9ca343d862abd17244d4d469dfdb0a12.css.gz
│ ├── img
│ ├── banner.66aa4f2.png
│ ├── demo.png
│ └── logo.746ea0a.png
│ └── js
│ ├── about.532cfba9a599641ac0b0.js
│ ├── app.js
│ ├── app.js.gz
│ ├── card.0615d8944b9821d29521.js
│ ├── chargeDes.1b0a723a2557ac5e5fe9.js
│ ├── choseHall.a06947c0cffd0dfad1a1.js
│ ├── confirm.de2d256ba23e092fb372.js
│ ├── dlt.5fb5d4b9fd04e7f533b1.js
│ ├── doubleColor.041f34b7387d62e0ef21.js
│ ├── edit.544127852ce21780be9f.js
│ ├── fc.4830b34a689393d1a487.js
│ ├── forget.7ab3068d2a0a81105133.js
│ ├── index.58408d1687ab941eea42.js
│ ├── index.58408d1687ab941eea42.js.gz
│ ├── login.a2e6c3aaa72e44d4cf3f.js
│ ├── logs.e6b1e68cb66dc6faa1b1.js
│ ├── manifest.js
│ ├── openDetail.95492da344eb696ab7f0.js
│ ├── openHall.2f7158a162855baaa50c.js
│ ├── order.a8bcb280fca255e482af.js
│ ├── person.c921ebf2bfe13022e852.js
│ ├── person.c921ebf2bfe13022e852.js.gz
│ ├── plf.640eb56e1fe91389c669.js
│ ├── plt.650ca35deca862146ed1.js
│ ├── qlc.56c6ed85ad45590d964d.js
│ ├── qxc.a351f3be6a5a7da03c69.js
│ ├── recharge.042b3fb3ca8c6112acaa.js
│ ├── register.a0c7a9a13e8f4e8d1c58.js
│ ├── set.8d874242703035032973.js
│ ├── tx.63e054b178721973a9ad.js
│ ├── txdes.84cc6a22efe7b5cdcf9e.js
│ ├── userInfo.af1bd91953eaeea31d81.js
│ ├── vendor-async.8ab07ad4c4c0e9b709b6.js
│ ├── vendor.js
│ └── vendor.js.gz
├── index.html
├── package-lock.json
├── package.json
├── src
├── App.vue
├── api
│ └── api.js
├── assets
│ ├── css
│ │ └── style.css
│ ├── img
│ │ ├── banner.png
│ │ └── shake.png
│ └── js
│ │ └── flexible.js
├── components
│ ├── choseHall
│ │ └── choseHall.vue
│ ├── common
│ │ ├── Acount.vue
│ │ ├── Header.vue
│ │ ├── NewHead.vue
│ │ └── tempList.vue
│ ├── confirm
│ │ ├── confirm.vue
│ │ └── img
│ │ │ ├── delete.png
│ │ │ └── top.png
│ ├── dlt
│ │ └── dlt.vue
│ ├── doubleColor
│ │ ├── css
│ │ │ └── doubleColor.css
│ │ └── doubleColor.vue
│ ├── fc
│ │ ├── css
│ │ │ └── fc.css
│ │ └── fc.vue
│ ├── index
│ │ └── index.vue
│ ├── login
│ │ ├── edit.vue
│ │ ├── forget.vue
│ │ ├── img
│ │ │ ├── psw.png
│ │ │ └── text.png
│ │ ├── login.vue
│ │ └── register.vue
│ ├── logs
│ │ ├── img
│ │ │ └── arow.png
│ │ └── logs.vue
│ ├── openDetail
│ │ └── openDetail.vue
│ ├── openHall
│ │ └── openHall.vue
│ ├── person
│ │ ├── about.vue
│ │ ├── card.vue
│ │ ├── img
│ │ │ ├── avatar.png
│ │ │ ├── charge.png
│ │ │ ├── direction.png
│ │ │ ├── indentify.png
│ │ │ ├── ipcard.png
│ │ │ ├── logo.png
│ │ │ ├── money.png
│ │ │ ├── settings.png
│ │ │ └── tixian.png
│ │ ├── order.vue
│ │ ├── person.vue
│ │ ├── settings.vue
│ │ └── userinfo.vue
│ ├── plf
│ │ └── plf.vue
│ ├── plt
│ │ └── plt.vue
│ ├── qlc
│ │ └── qlc.vue
│ ├── qxc
│ │ └── qxc.vue
│ └── recharge
│ │ ├── chargeDes.vue
│ │ ├── img
│ │ ├── check.png
│ │ └── nocheck.png
│ │ ├── recharge.vue
│ │ ├── tix.vue
│ │ └── tixDes.vue
├── config
│ ├── config.js
│ └── util.js
├── main.js
├── router
│ └── index.js
└── store
│ ├── action.js
│ ├── index.js
│ ├── mutationTypes.js
│ ├── mutations.js
│ └── state.js
└── static
├── data.json
└── img
└── demo.png
/README.md:
--------------------------------------------------------------------------------
1 | #彩票应用#
2 | 一款彩票购买webapp,内含`双色球`、`大乐透`、`福彩`、`排列三`、`排列五`、`七乐彩`、`七星彩`
3 | &应用技术
4 | vue+vue-router+vuex+ES6+webpack+css3
5 | &项目简述
6 | 该项目有30多个页面,应用组件化开发,页面切换动画效果,摇一摇机选等
7 | demo效果预览
8 |
9 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-cayman
--------------------------------------------------------------------------------
/lottery/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", {
4 | "modules": false,
5 | "targets": {
6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7 | }
8 | }],
9 | "stage-2"
10 | ],
11 | "plugins": ["transform-vue-jsx", "transform-runtime"]
12 | }
13 |
--------------------------------------------------------------------------------
/lottery/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/lottery/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | npm-debug.log*
4 | yarn-debug.log*
5 | yarn-error.log*
6 |
7 | # Editor directories and files
8 | .idea
9 | .vscode
10 | *.suo
11 | *.ntvs*
12 | *.njsproj
13 | *.sln
14 |
--------------------------------------------------------------------------------
/lottery/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-import": {},
6 | "postcss-url": {},
7 | // to edit target browsers: use "browserslist" field in package.json
8 | "autoprefixer": {}
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lottery/README.md:
--------------------------------------------------------------------------------
1 | ### 基础算法的js实现
2 |
3 | #### 十进制转2-9进制
4 |
function convert(n,base){
5 | var s=[];
6 | do{
7 | s.unshift(n%base);
8 | n=Math.floor(n/base);
9 | }while(n>0)
10 | return Number(s.join(''));
11 | }
12 |
13 | #### 任意进制转换
14 | function converts(n,base,j=10){
15 | if(j!=10){
16 | n=n.toString();
17 | var s=n.split('').reverse(),num=0;
18 | s.forEach(function(v,i){
19 | num+=Math.pow(j,i)*Number(v)
20 | })
21 | n=num;
22 | }
23 | n=convert(n,base);
24 | return n;
25 | }
26 |
27 | //console.log(converts(12,3,6));
28 | #### 数组去重
29 | function removal(n){
30 | var arr=[];
31 | //自己封装的indexof方法,类比indexOf()
32 | var indexof=function(x,y){
33 | var index=-1;
34 | x.forEach((v,i)=>{
35 | if(y==v){
36 | index=i;
37 | }
38 | })
39 | return index;
40 | }
41 | n.forEach(function(v,i){
42 | if(indexof(arr,v)<0){
43 | arr.push(v)
44 | }
45 | })
46 | return arr;
47 | }
48 | //console.log(removal([1,2,3,2,1]))
49 | #### 排序之冒泡排序
50 | function bubbleSort(arr){
51 | for (i=1;i < arr.length;i++){
52 | for(j=0;j < arr.length-i;j++){
53 | var temp=0;
54 | if(arr[j] > arr[j+1]){
55 | temp=arr[j]
56 | arr[j]=arr[j+1]
57 | arr[j+1]=temp
58 | }
59 | }
60 | }
61 | return arr;
62 | }
63 | //console.log(bubbleSort([3,4,2,1,5,8,2]))
64 | #### 随机生成哈希值
65 | function randomWord(n){
66 | var str=''
67 | arr=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
68 | //随机产生
69 | for(var i=0;i < n;i++){
70 | pos=Math.round(Math.random()*(arr.length-1));
71 | str+=arr[pos];
72 | }
73 | return str;;
74 | }
75 | function getHash(){
76 | var timestamp=new Date().getTime();
77 | var myRandom=randomWord(6)
78 | var hashcode=myRandom+timestamp;
79 | return hashcode;
80 | }
81 | //console.log(getHash());
82 |
--------------------------------------------------------------------------------
/lottery/build/build.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | require('./check-versions')()
3 |
4 | process.env.NODE_ENV = 'production'
5 |
6 | const ora = require('ora')
7 | const rm = require('rimraf')
8 | const path = require('path')
9 | const chalk = require('chalk')
10 | const webpack = require('webpack')
11 | const config = require('../config')
12 | const webpackConfig = require('./webpack.prod.conf')
13 |
14 | const spinner = ora('building for production...')
15 | spinner.start()
16 |
17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18 | if (err) throw err
19 | webpack(webpackConfig, (err, stats) => {
20 | spinner.stop()
21 | if (err) throw err
22 | process.stdout.write(stats.toString({
23 | colors: true,
24 | modules: false,
25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26 | chunks: false,
27 | chunkModules: false
28 | }) + '\n\n')
29 |
30 | if (stats.hasErrors()) {
31 | console.log(chalk.red(' Build failed with errors.\n'))
32 | process.exit(1)
33 | }
34 |
35 | console.log(chalk.cyan(' Build complete.\n'))
36 | console.log(chalk.yellow(
37 | ' Tip: built files are meant to be served over an HTTP server.\n' +
38 | ' Opening index.html over file:// won\'t work.\n'
39 | ))
40 | })
41 | })
42 |
--------------------------------------------------------------------------------
/lottery/build/check-versions.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const chalk = require('chalk')
3 | const semver = require('semver')
4 | const packageConfig = require('../package.json')
5 | const shell = require('shelljs')
6 |
7 | function exec (cmd) {
8 | return require('child_process').execSync(cmd).toString().trim()
9 | }
10 |
11 | const versionRequirements = [
12 | {
13 | name: 'node',
14 | currentVersion: semver.clean(process.version),
15 | versionRequirement: packageConfig.engines.node
16 | }
17 | ]
18 |
19 | if (shell.which('npm')) {
20 | versionRequirements.push({
21 | name: 'npm',
22 | currentVersion: exec('npm --version'),
23 | versionRequirement: packageConfig.engines.npm
24 | })
25 | }
26 |
27 | module.exports = function () {
28 | const warnings = []
29 |
30 | for (let i = 0; i < versionRequirements.length; i++) {
31 | const mod = versionRequirements[i]
32 |
33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
34 | warnings.push(mod.name + ': ' +
35 | chalk.red(mod.currentVersion) + ' should be ' +
36 | chalk.green(mod.versionRequirement)
37 | )
38 | }
39 | }
40 |
41 | if (warnings.length) {
42 | console.log('')
43 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
44 | console.log()
45 |
46 | for (let i = 0; i < warnings.length; i++) {
47 | const warning = warnings[i]
48 | console.log(' ' + warning)
49 | }
50 |
51 | console.log()
52 | process.exit(1)
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/lottery/build/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const config = require('../config')
4 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
5 | const packageConfig = require('../package.json')
6 |
7 | exports.assetsPath = function (_path) {
8 | const assetsSubDirectory = process.env.NODE_ENV === 'production'
9 | ? config.build.assetsSubDirectory
10 | : config.dev.assetsSubDirectory
11 |
12 | return path.posix.join(assetsSubDirectory, _path)
13 | }
14 |
15 | exports.cssLoaders = function (options) {
16 | options = options || {}
17 |
18 | const cssLoader = {
19 | loader: 'css-loader',
20 | options: {
21 | sourceMap: options.sourceMap
22 | }
23 | }
24 |
25 | const postcssLoader = {
26 | loader: 'postcss-loader',
27 | options: {
28 | sourceMap: options.sourceMap
29 | }
30 | }
31 |
32 | // generate loader string to be used with extract text plugin
33 | function generateLoaders (loader, loaderOptions) {
34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
35 |
36 | if (loader) {
37 | loaders.push({
38 | loader: loader + '-loader',
39 | options: Object.assign({}, loaderOptions, {
40 | sourceMap: options.sourceMap
41 | })
42 | })
43 | }
44 |
45 | // Extract CSS when that option is specified
46 | // (which is the case during production build)
47 | if (options.extract) {
48 | return ExtractTextPlugin.extract({
49 | use: loaders,
50 | fallback: 'vue-style-loader'
51 | })
52 | } else {
53 | return ['vue-style-loader'].concat(loaders)
54 | }
55 | }
56 |
57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html
58 | return {
59 | css: generateLoaders(),
60 | postcss: generateLoaders(),
61 | less: generateLoaders('less'),
62 | sass: generateLoaders('sass', { indentedSyntax: true }),
63 | scss: generateLoaders('sass'),
64 | stylus: generateLoaders('stylus'),
65 | styl: generateLoaders('stylus')
66 | }
67 | }
68 |
69 | // Generate loaders for standalone style files (outside of .vue)
70 | exports.styleLoaders = function (options) {
71 | const output = []
72 | const loaders = exports.cssLoaders(options)
73 |
74 | for (const extension in loaders) {
75 | const loader = loaders[extension]
76 | output.push({
77 | test: new RegExp('\\.' + extension + '$'),
78 | use: loader
79 | })
80 | }
81 |
82 | return output
83 | }
84 |
85 | exports.createNotifierCallback = () => {
86 | const notifier = require('node-notifier')
87 |
88 | return (severity, errors) => {
89 | if (severity !== 'error') return
90 |
91 | const error = errors[0]
92 | const filename = error.file && error.file.split('!').pop()
93 |
94 | notifier.notify({
95 | title: packageConfig.name,
96 | message: severity + ': ' + error.name,
97 | subtitle: filename || '',
98 | icon: path.join(__dirname, 'logo.png')
99 | })
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/lottery/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const config = require('../config')
4 | const isProduction = process.env.NODE_ENV === 'production'
5 | const sourceMapEnabled = isProduction
6 | ? config.build.productionSourceMap
7 | : config.dev.cssSourceMap
8 |
9 | module.exports = {
10 | loaders: utils.cssLoaders({
11 | sourceMap: sourceMapEnabled,
12 | extract: isProduction
13 | }),
14 | cssSourceMap: sourceMapEnabled,
15 | cacheBusting: config.dev.cacheBusting,
16 | transformToRequire: {
17 | video: ['src', 'poster'],
18 | source: 'src',
19 | img: 'src',
20 | image: 'xlink:href'
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lottery/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const config = require('../config')
5 | const vueLoaderConfig = require('./vue-loader.conf')
6 |
7 | function resolve (dir) {
8 | return path.join(__dirname, '..', dir)
9 | }
10 |
11 |
12 |
13 | module.exports = {
14 | context: path.resolve(__dirname, '../'),
15 | entry: {
16 | app: './src/main.js'
17 | },
18 | externals:{
19 | vue:'Vue',
20 | 'element-ui':'ELEMENT'
21 | },
22 | output: {
23 | path: config.build.assetsRoot,
24 | filename: '[name].js',
25 | publicPath: process.env.NODE_ENV === 'production'
26 | ? config.build.assetsPublicPath
27 | : config.dev.assetsPublicPath
28 | },
29 | resolve: {
30 | extensions: ['.js', '.vue', '.json'],
31 | alias: {
32 | 'vue$': 'vue/dist/vue.esm.js',
33 | '@': resolve('src'),
34 | }
35 | },
36 | module: {
37 | rules: [
38 | {
39 | test: /\.vue$/,
40 | loader: 'vue-loader',
41 | options: vueLoaderConfig
42 | },
43 | {
44 | test: /\.js$/,
45 | loader: 'babel-loader',
46 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
47 | },
48 | {
49 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
50 | loader: 'url-loader',
51 | options: {
52 | limit: 10000,
53 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
54 | }
55 | },
56 | {
57 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
58 | loader: 'url-loader',
59 | options: {
60 | limit: 10000,
61 | name: utils.assetsPath('media/[name].[hash:7].[ext]')
62 | }
63 | },
64 | {
65 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
66 | loader: 'url-loader',
67 | options: {
68 | limit: 10000,
69 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
70 | }
71 | }
72 | ]
73 | },
74 | node: {
75 | // prevent webpack from injecting useless setImmediate polyfill because Vue
76 | // source contains it (although only uses it if it's native).
77 | setImmediate: false,
78 | // prevent webpack from injecting mocks to Node native modules
79 | // that does not make sense for the client
80 | dgram: 'empty',
81 | fs: 'empty',
82 | net: 'empty',
83 | tls: 'empty',
84 | child_process: 'empty'
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/lottery/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const webpack = require('webpack')
4 | const config = require('../config')
5 | const merge = require('webpack-merge')
6 | const path = require('path')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
11 | const portfinder = require('portfinder')
12 |
13 | const HOST = process.env.HOST
14 | const PORT = process.env.PORT && Number(process.env.PORT)
15 |
16 | const devWebpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
19 | },
20 | // cheap-module-eval-source-map is faster for development
21 | devtool: config.dev.devtool,
22 |
23 | // these devServer options should be customized in /config/index.js
24 | devServer: {
25 | clientLogLevel: 'warning',
26 | historyApiFallback: {
27 | rewrites: [
28 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
29 | ],
30 | },
31 | hot: true,
32 | contentBase: false, // since we use CopyWebpackPlugin.
33 | compress: true,
34 | host: HOST || config.dev.host,
35 | port: PORT || config.dev.port,
36 | open: config.dev.autoOpenBrowser,
37 | overlay: config.dev.errorOverlay
38 | ? { warnings: false, errors: true }
39 | : false,
40 | publicPath: config.dev.assetsPublicPath,
41 | proxy: config.dev.proxyTable,
42 | quiet: true, // necessary for FriendlyErrorsPlugin
43 | watchOptions: {
44 | poll: config.dev.poll,
45 | }
46 | },
47 | plugins: [
48 | new webpack.DefinePlugin({
49 | 'process.env': require('../config/dev.env')
50 | }),
51 | new webpack.HotModuleReplacementPlugin(),
52 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
53 | new webpack.NoEmitOnErrorsPlugin(),
54 | // https://github.com/ampedandwired/html-webpack-plugin
55 | new HtmlWebpackPlugin({
56 | filename: 'index.html',
57 | template: 'index.html',
58 | inject: true
59 | }),
60 | // copy custom static assets
61 | new CopyWebpackPlugin([
62 | {
63 | from: path.resolve(__dirname, '../static'),
64 | to: config.dev.assetsSubDirectory,
65 | ignore: ['.*']
66 | }
67 | ])
68 | ]
69 | })
70 |
71 | module.exports = new Promise((resolve, reject) => {
72 | portfinder.basePort = process.env.PORT || config.dev.port
73 | portfinder.getPort((err, port) => {
74 | if (err) {
75 | reject(err)
76 | } else {
77 | // publish the new Port, necessary for e2e tests
78 | process.env.PORT = port
79 | // add port to devServer config
80 | devWebpackConfig.devServer.port = port
81 |
82 | // Add FriendlyErrorsPlugin
83 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
84 | compilationSuccessInfo: {
85 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
86 | },
87 | onErrors: config.dev.notifyOnErrors
88 | ? utils.createNotifierCallback()
89 | : undefined
90 | }))
91 |
92 | resolve(devWebpackConfig)
93 | }
94 | })
95 | })
96 |
--------------------------------------------------------------------------------
/lottery/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const webpack = require('webpack')
5 | const config = require('../config')
6 | const merge = require('webpack-merge')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13 |
14 | const env = require('../config/prod.env')
15 |
16 | const webpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({
19 | sourceMap: config.build.productionSourceMap,
20 | extract: true,
21 | usePostCSS: true
22 | })
23 | },
24 | devtool: config.build.productionSourceMap ? config.build.devtool : false,
25 | output: {
26 | path: config.build.assetsRoot,
27 | // filename: utils.assetsPath('js/[name].[chunkhash].js'),
28 | // chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29 | filename: utils.assetsPath('js/[name].js'),
30 | chunkFilename: utils.assetsPath('js/[id].js')
31 | },
32 | plugins: [
33 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
34 | new webpack.DefinePlugin({
35 | 'process.env': env
36 | }),
37 | new UglifyJsPlugin({
38 | uglifyOptions: {
39 | compress: {
40 | warnings: false
41 | }
42 | },
43 | sourceMap: config.build.productionSourceMap,
44 | parallel: true
45 | }),
46 | // extract css into its own file
47 | new ExtractTextPlugin({
48 | filename: utils.assetsPath('css/[name].[contenthash].css'),
49 | // Setting the following option to `false` will not extract CSS from codesplit chunks.
50 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
51 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
52 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
53 | allChunks: true,
54 | }),
55 | // Compress extracted CSS. We are using this plugin so that possible
56 | // duplicated CSS from different components can be deduped.
57 | new OptimizeCSSPlugin({
58 | cssProcessorOptions: config.build.productionSourceMap
59 | ? { safe: true, map: { inline: false } }
60 | : { safe: true }
61 | }),
62 | // generate dist index.html with correct asset hash for caching.
63 | // you can customize output by editing /index.html
64 | // see https://github.com/ampedandwired/html-webpack-plugin
65 | new HtmlWebpackPlugin({
66 | filename: config.build.index,
67 | template: 'index.html',
68 | inject: true,
69 | minify: {
70 | removeComments: true,
71 | collapseWhitespace: true,
72 | removeAttributeQuotes: true
73 | // more options:
74 | // https://github.com/kangax/html-minifier#options-quick-reference
75 | },
76 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
77 | chunksSortMode: 'dependency'
78 | }),
79 | // keep module.id stable when vendor modules does not change
80 | new webpack.HashedModuleIdsPlugin(),
81 | // enable scope hoisting
82 | new webpack.optimize.ModuleConcatenationPlugin(),
83 | // split vendor js into its own file
84 | new webpack.optimize.CommonsChunkPlugin({
85 | name: 'vendor',
86 | minChunks (module) {
87 | // any required modules inside node_modules are extracted to vendor
88 | return (
89 | module.resource &&
90 | /\.js$/.test(module.resource) &&
91 | module.resource.indexOf(
92 | path.join(__dirname, '../node_modules')
93 | ) === 0
94 | )
95 | }
96 | }),
97 | // extract webpack runtime and module manifest to its own file in order to
98 | // prevent vendor hash from being updated whenever app bundle is updated
99 | new webpack.optimize.CommonsChunkPlugin({
100 | name: 'manifest',
101 | minChunks: Infinity
102 | }),
103 | // This instance extracts shared chunks from code splitted chunks and bundles them
104 | // in a separate chunk, similar to the vendor chunk
105 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
106 | new webpack.optimize.CommonsChunkPlugin({
107 | name: 'app',
108 | async: 'vendor-async',
109 | children: true,
110 | minChunks: 3
111 | }),
112 |
113 | // copy custom static assets
114 | new CopyWebpackPlugin([
115 | {
116 | from: path.resolve(__dirname, '../static'),
117 | to: config.build.assetsSubDirectory,
118 | ignore: ['.*']
119 | }
120 | ])
121 | ]
122 | })
123 |
124 | if (config.build.productionGzip) {
125 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
126 |
127 | webpackConfig.plugins.push(
128 | new CompressionWebpackPlugin({
129 | asset: '[path].gz[query]',
130 | algorithm: 'gzip',
131 | test: new RegExp(
132 | '\\.(' +
133 | config.build.productionGzipExtensions.join('|') +
134 | ')$'
135 | ),
136 | threshold: 10240,
137 | minRatio: 0.8
138 | })
139 | )
140 | }
141 |
142 | if (config.build.bundleAnalyzerReport) {
143 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
144 | webpackConfig.plugins.push(new BundleAnalyzerPlugin())
145 | }
146 |
147 | module.exports = webpackConfig
148 |
--------------------------------------------------------------------------------
/lottery/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/lottery/config/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | // Template version: 1.3.1
3 | // see http://vuejs-templates.github.io/webpack for documentation.
4 |
5 | const path = require('path')
6 |
7 | module.exports = {
8 | dev: {
9 | // Paths
10 | assetsSubDirectory: 'static',
11 | assetsPublicPath: '/',
12 | proxyTable: {
13 | '/api':{
14 | target:'https://api.yunguhui.com.cn',
15 | changeOrigin: true,//是否跨域
16 | pathRewrite:{
17 | '^/api':'/api'
18 | }
19 | }
20 | },//设置反向代理,解决跨域
21 |
22 | // Various Dev Server settings
23 | host: '192.168.3.9', // can be overwritten by process.env.HOST
24 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 | autoOpenBrowser: false,
26 | errorOverlay: true,
27 | notifyOnErrors: true,
28 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
29 |
30 |
31 | /**
32 | * Source Maps
33 | */
34 |
35 | // https://webpack.js.org/configuration/devtool/#development
36 | devtool: 'cheap-module-eval-source-map',
37 |
38 | // If you have problems debugging vue-files in devtools,
39 | // set this to false - it *may* help
40 | // https://vue-loader.vuejs.org/en/options.html#cachebusting
41 | cacheBusting: true,
42 |
43 | cssSourceMap: true
44 | },
45 |
46 | build: {
47 | // Template for index.html
48 | index: path.resolve(__dirname, '../dist/index.html'),
49 |
50 | // Paths
51 | assetsRoot: path.resolve(__dirname, '../dist'),
52 | assetsSubDirectory: 'static',
53 | assetsPublicPath: './',
54 |
55 | /**
56 | * Source Maps
57 | */
58 |
59 | productionSourceMap: false,
60 | // https://webpack.js.org/configuration/devtool/#production
61 | devtool: '#source-map',
62 |
63 | // Gzip off by default as many popular static hosts such as
64 | // Surge or Netlify already gzip all static assets for you.
65 | // Before setting to `true`, make sure to:
66 | // npm install --save-dev compression-webpack-plugin
67 | productionGzip: true,
68 | productionGzipExtensions: ['js', 'css'],
69 |
70 | // Run the build command with an extra argument to
71 | // View the bundle analyzer report after build finishes:
72 | // `npm run build --report`
73 | // Set to `true` or `false` to always turn it on or off
74 | bundleAnalyzerReport: process.env.npm_config_report
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/lottery/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/lottery/dist/index.html:
--------------------------------------------------------------------------------
1 | 彩票
--------------------------------------------------------------------------------
/lottery/dist/static/css/app.9ca343d862abd17244d4d469dfdb0a12.css.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/dist/static/css/app.9ca343d862abd17244d4d469dfdb0a12.css.gz
--------------------------------------------------------------------------------
/lottery/dist/static/img/banner.66aa4f2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/dist/static/img/banner.66aa4f2.png
--------------------------------------------------------------------------------
/lottery/dist/static/img/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/dist/static/img/demo.png
--------------------------------------------------------------------------------
/lottery/dist/static/img/logo.746ea0a.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/dist/static/img/logo.746ea0a.png
--------------------------------------------------------------------------------
/lottery/dist/static/js/about.532cfba9a599641ac0b0.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([6],{KRzM:function(t,s){},"VC/5":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i={components:{Headers:e("zGf4").a}},a={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",[s("Headers",{attrs:{title:"关于我们",detail:""}}),this._v(" "),s("div",{staticStyle:{height:"50px"}}),this._v(" "),this._m(0),this._v(" "),this._m(1)],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"a_logo"},[s("img",{attrs:{src:e("mLmV")}}),this._v(" "),s("p",[this._v("快买彩")])])},function(){var t=this.$createElement,s=this._self._c||t;return s("ul",{staticClass:"kefu"},[s("li",[s("span",[this._v("联系客服")]),this._v(" "),s("a",{staticStyle:{color:"#00f000"},attrs:{href:"tel:010-62169777"}},[this._v("010-62169777")])]),this._v(" "),s("li",[s("span",[this._v("咨询时间")]),this._v(" "),s("span",{staticStyle:{color:"#999"}},[this._v("每日早08:00至20:00")])])])}]};var n=e("VU/8")(i,a,!1,function(t){e("KRzM")},null,null);s.default=n.exports},mLmV:function(t,s,e){t.exports=e.p+"static/img/logo.746ea0a.png"}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/app.js.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/dist/static/js/app.js.gz
--------------------------------------------------------------------------------
/lottery/dist/static/js/card.0615d8944b9821d29521.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([20],{U40v:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={components:{Headers:s("zGf4").a}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("Headers",{attrs:{title:"我的银行卡",detail:""}}),this._v(" "),this._m(0),this._v(" "),this._m(1),this._v(" "),this._m(2)],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"userinfo"},[s("p",[s("label",[t._v("开户姓名")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请输入开户姓名"}})]),t._v(" "),s("p",[s("label",[t._v("所属银行")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请输入开户行名称"}})]),t._v(" "),s("p",[s("label",[t._v("储蓄卡号")]),t._v(" "),s("input",{attrs:{type:"text",placeholder:"请输入银行卡号"}})])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"charge_btn"},[e("button",[this._v("确认提交")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("p",{staticClass:"wenxintips"},[this._v("\n 温馨提示:"),e("br"),this._v("\n 1.用户需先实名认证才能绑定银行卡,持卡人需与实名\n 的真实姓名一致;"),e("br"),this._v("\n 2.绑定银行卡是用于资金提现,请仔细核对您的信息是\n 否正确,只支持储蓄卡提现;"),e("br"),this._v("\n 3.银行卡信息可以多次更改,但只能绑定一个银行卡。\n ")])}]};var r=s("VU/8")(n,i,!1,function(t){s("dyc0")},null,null);e.default=r.exports},dyc0:function(t,e){}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/chargeDes.1b0a723a2557ac5e5fe9.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([27],{rS6M:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=i("zGf4"),r=i("0T3B"),n={components:{Headers:s.a,tempList:r.a},data:function(){return{list:[{type:"充值",time:"2018-06-25 15:45",price:4e3},{type:"充值",time:"2018-06-25 15:45",price:4e3}]}}},a={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("Headers",{attrs:{title:"充值记录",detail:""}}),this._v(" "),e("div",{staticStyle:{height:"50px"}}),this._v(" "),e("tempList",{attrs:{list:this.list}})],1)},staticRenderFns:[]},l=i("VU/8")(n,a,!1,null,null,null);e.default=l.exports}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/choseHall.a06947c0cffd0dfad1a1.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([19],{Iymz:function(t,i){},"t+lI":function(t,i,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var _={data:function(){return{}},components:{Headers:s("GgDs").a}},a={render:function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("Headers",{attrs:{title:"购彩大厅"}}),t._v(" "),s("ul",{staticClass:"choseHall"},[s("router-link",{attrs:{to:"/dlt"}},[s("li",{staticClass:"dlt_icon"},[s("div",[s("p",[t._v("大乐透")]),t._v(" "),s("p",[t._v("球迷最爱,返奖率高")])]),t._v(" "),s("i",{staticClass:"right_icon"})])]),t._v(" "),s("router-link",{attrs:{to:"/dbc"}},[s("li",{staticClass:"dbc_icon"},[s("div",[s("p",[t._v("双色球")]),t._v(" "),s("p",[t._v("奖金高达1600万")])]),t._v(" "),s("i",{staticClass:"right_icon"})]),t._v(" "),s("router-link",{attrs:{to:"/fc"}},[s("li",{staticClass:"fc_icon"},[s("div",[s("p",[t._v("福彩3D")]),t._v(" "),s("p",[t._v("2元中1500万")])]),t._v(" "),s("i",{staticClass:"right_icon"})])]),t._v(" "),s("router-link",{attrs:{to:"/plt"}},[s("li",{staticClass:"plt_icon"},[s("div",[s("p",[t._v("排列3")]),t._v(" "),s("p",[t._v("造福玩家")])]),t._v(" "),s("i",{staticClass:"right_icon"})])]),t._v(" "),s("router-link",{attrs:{to:"/plf"}},[s("li",{staticClass:"plf_icon"},[s("div",[s("p",[t._v("排列5")]),t._v(" "),s("p",[t._v("10分钟一期,来钱快")])]),t._v(" "),s("i",{staticClass:"right_icon"})])]),t._v(" "),s("router-link",{attrs:{to:"/qlc"}},[s("li",{staticClass:"qlc_icon"},[s("div",[s("p",[t._v("七乐彩")]),t._v(" "),s("p",[t._v("10分钟一期,来钱快")])]),t._v(" "),s("i",{staticClass:"right_icon"})])])],1),t._v(" "),s("router-link",{attrs:{to:"/qxc"}},[s("li",{staticClass:"qxc_icon"},[s("div",[s("p",[t._v("七星彩")]),t._v(" "),s("p",[t._v("10分钟一期,来钱快")])]),t._v(" "),s("i",{staticClass:"right_icon"})])])],1)],1)},staticRenderFns:[]};var l=s("VU/8")(_,a,!1,function(t){s("Iymz")},null,null);i.default=l.exports}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/confirm.de2d256ba23e092fb372.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([4],{IeYu:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAAAUCAYAAABxo95aAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowM0JFMUIxQTdBQTMxMUU4QUI1QzkxRDFCMUFDRDU3NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowM0JFMUIxQjdBQTMxMUU4QUI1QzkxRDFCMUFDRDU3NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjAzQkUxQjE4N0FBMzExRThBQjVDOTFEMUIxQUNENTc1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAzQkUxQjE5N0FBMzExRThBQjVDOTFEMUIxQUNENTc1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+FWAVMAAAAnpJREFUeNrs3U9LVFEcBuCjo7VTRIXKUMz2LqpF30LB3LuvbdEXCMptbf0Ahf2hr1EErRNRDBcqoqSCKXR+4zXkcgedi9UEzwMvzJw5cwfubF4O597btbS0lCpcyZkqcj/nRjEGAAB/2o+ctZwvOe9yPuQclid1VRTZ6ZwXObedQwAAOsC3nCc5b88Odp953ch5XkxQYgEA6BTRTReLrto4Hew5M+FZzmPnCQCADnXaVWN19veK7IwSCwDAf1Jmo7s298jGRVyxUfZmedbGxkZaXV1Nu7u76fj42GkDAOCPazQaqa+vL42NjaWhoaGqKd9zbsXWggdVJTYuAlteXnYmAQD4q2IBdXt7u5nx8fE0MTFRnjKSMxtbC6bKn2xubiqxAAD8c9FJY5dAhakosvfKoysrK84aAAAdIba6VrgbRfZaeTT2xAIAQCdo0U2vxx7ZeErC1ToHnZubS729vc4uAABtOzo6SgsLC7W/Hyuy6+XBuErsIvb39/0DAADUsre3d6F5LbrpehTZr+XR0dHRS/1xAACo2yVbdNNPUWTfl0eHh4ebtzo4jxVZAADqOjg4OHdOdNLophXeR5F9k7NW/iTu1zU5OZkGBgaaN6VVZAEAuEytVmSje0YHjS5acQ/ZEA9EeBNP9oo38VCE1+3+eH9/fxocHPQvAADQtq2trbSzs1Pnq7NRZLuLN7EqO9/uETy2FgCAump2yfmiu6buM4NPc14qsgAAdGiRfVV01lQusnGkRzkzOd8ucqS49xcAANTRRpeMbhpbYR8WnbWpp2LiYs7HYvJ0zp2ckZzeS2jRAABwXpf8mU4u6Pqc8y6dbCU4LE/6JcAAtcmpkudziTcAAAAASUVORK5CYII="},h2NJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("GgDs"),a=s("d2gY"),c=s("EuEE"),r={data:function(){return{items:[],qi:1,bei:1,zhu:"",total:0,type:"",typeName:""}},components:{Headers:i.a},created:function(){switch(this.type=this.$route.query.type,this.type){case"dlt":this.typeName="大乐透";break;case"dbc":this.typeName="双色球";break;case"fc":this.typeName="福彩";break;case"plt":this.typeName="排列三";break;case"plf":this.typeName="排列五";break;case"qxc":this.typeName="七星彩";break;case"qlc":this.typeName="七乐彩"}this.init()},methods:{init:function(){var t=0;this.items=this.$store.state[this.type].det,this.$store.state[this.type].det.forEach(function(e){t+=e.zhu}),this.zhu=t,this.total=this.zhu*this.qi*2*this.bei,this.$store.commit("UPDATE")},ziXaun:function(){switch(this.type){case"dlt":this.$router.push("/dlt");break;case"dbc":this.$router.push("/dbc");break;case"fc":this.$router.push("/fc");break;case"plt":this.$router.push("/plt");break;case"plf":this.$router.push("/plf");break;case"qxc":this.$router.push("/qxc");break;case"qlc":this.$router.push("/qlc")}},clearList:function(){switch(this.type){case"dlt":this.$store.dispatch("clearDlt");break;case"dbc":this.$store.dispatch("clearDbc");break;case"fc":this.$store.dispatch("clearFc");break;case"plt":this.$store.dispatch("clearPlt");break;case"plf":this.$store.dispatch("clearPlf");break;case"qxc":this.$store.dispatch("clearQxc");break;case"qlc":this.$store.dispatch("clearQlc")}this.init()},jiXuan:function(){switch(this.type){case"dlt":var t=a.a.random(35,5),e=a.a.random(12,2),s=t.map(function(t){var e={};return e.num=c.a.formatNum(t),e}),i=e.map(function(t){var e={};return e.num=c.a.formatNum(t),e});this.$store.dispatch("selectDlt",{red:s,blue:i,zhu:1,pric:2});break;case"dbc":var r=a.a.random(33,6),n=a.a.random(16,1),o=r.map(function(t){var e={};return e.num=c.a.formatNum(t),e}),h=n.map(function(t){var e={};return e.num=c.a.formatNum(t),e});this.$store.dispatch("selectDbc",{red:o,blue:h,zhu:1,pric:2});break;case"fc":var d=a.a.randomFromZero(10,3);this.$store.dispatch("selectFc",{type:1,zhu:1,pric:2,ge:[d[0]],shi:[d[1]],bai:[d[2]]});break;case"plt":var l=a.a.randomFromZero(10,3);this.$store.dispatch("selectPlt",{type:1,zhu:1,pric:2,ge:[l[0]],shi:[l[1]],bai:[l[2]]});break;case"plf":var p=a.a.randomFromZero(10,5);this.$store.dispatch("selectPlf",{type:1,zhu:1,pric:2,ge:[p[0]],shi:[p[1]],bai:[p[2]],qian:[p[3]],wan:[p[4]]});break;case"qxc":this.$store.dispatch("selectQxc",{pric:2,zhu:1,bwan:[a.a.random(10,1)],swan:[a.a.random(10,1)],wan:[a.a.random(10,1)],qian:[a.a.random(10,1)],bai:[a.a.random(10,1)],shi:[a.a.random(10,1)],ge:[a.a.random(10,1)]});break;case"qlc":for(var u=[],b=0;b<7;b++)u.push(a.a.random(10,1));this.$store.dispatch("selectQlc",{pric:2,zhu:1,nums:u})}this.init()},dele:function(t){switch(this.type){case"dlt":this.$store.dispatch("delDlt",{id:t});break;case"dbc":this.$store.dispatch("delDbc",{id:t});break;case"fc":this.$store.dispatch("delFc",{id:t});break;case"plt":this.$store.dispatch("delPlt",{id:t});break;case"plf":this.$store.dispatch("delPlf",{id:t});break;case"qxc":this.$store.dispatch("delQxc",{id:t});break;case"qlc":this.$store.dispatch("delQlc",{id:t})}this.init()},chage:function(){this.init()},confirm:function(){var t=this;0!=this.total&&this.$confirm("["+this.typeName+"]
第20180707期
共"+this.zhu+"注,您需要支付"+this.total+"元","投注确认",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,dangerouslyUseHTMLString:!0}).then(function(){t.$message({type:"success",message:"购买成功!"})}).catch(function(){t.$message({type:"info",message:"已取消"})})}}},n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{height:"100%"}},[i("Headers",{attrs:{title:"确认投注"}}),t._v(" "),i("div",{staticClass:"confirm"},[i("div",{staticStyle:{height:"50px"}}),t._v(" "),i("ul",{staticClass:"confirm-opt"},[i("li",{on:{click:t.ziXaun}},[t._v("+自选一注")]),t._v(" "),i("li",{on:{click:t.jiXuan}},[t._v("+机选")]),t._v(" "),i("li",{on:{click:t.clearList}},[t._v("清空列表")])]),t._v(" "),t.items.length>0?i("div",{staticClass:"confirm-list"},[i("img",{attrs:{src:s("IeYu")}}),t._v(" "),i("ul",t._l(t.items,function(e){return i("li",[i("i",{staticClass:"delete_icon",on:{click:function(s){t.dele(e.id)}}}),t._v(" "),i("p",[t._v(t._s(e.number)+" ")]),t._v(" "),i("p",[t._v(t._s(1==e.type?"普通投注":2==e.type?"组三":"组六")+"\n 共"+t._s(e.zhu)+"注"+t._s(e.pric)+"元")])])})),t._v(" "),i("p",{staticClass:"xiy"},[t._v("我已阅读并同意《用户服务协议》")])]):i("h2",{staticStyle:{"text-align":"center"}},[t._v("\n there is nothing!\n ")])]),t._v(" "),i("div",{staticClass:"confirm_btm"},[i("div",[i("span",{staticClass:"tzz"},[t._v("投注站")]),i("p",[t._v("追 "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.qi,expression:"qi"}],attrs:{type:"text"},domProps:{value:t.qi},on:{input:[function(e){e.target.composing||(t.qi=e.target.value)},t.chage]}}),t._v(" 期"),i("span",{staticStyle:{color:"#ddd",margin:"0 0.1rem"}},[t._v("|")]),t._v("投 "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bei,expression:"bei"}],attrs:{type:"text"},domProps:{value:t.bei},on:{input:[function(e){e.target.composing||(t.bei=e.target.value)},t.chage]}}),t._v(" 倍")])]),t._v(" "),i("div",[i("p",[t._v(t._s(t.zhu)),i("span",[t._v("注")]),t._v(t._s(t.qi)),i("span",[t._v("期")]),t._v(t._s(t.bei)),i("span",[t._v("倍")]),t._v(" 共"+t._s(t.total)+"元")]),i("button",{on:{click:t.confirm}},[t._v("下一步")])])])],1)},staticRenderFns:[]};var o=s("VU/8")(r,n,!1,function(t){s("nXEa")},null,null);e.default=o.exports},nXEa:function(t,e){}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/dlt.5fb5d4b9fd04e7f533b1.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([18],{Mvmm:function(t,e){},mJE3:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("GgDs"),i=r("4bOR"),n=r("d2gY"),s=r("EuEE"),c={data:function(){return{total:0,acount:0,red:[],blue:[],redarr:[],bluearr:[]}},created:function(){for(var t=[],e=[],r=1;r<36;r++){var a={active:!1};a.num=s.a.formatNum(r),t.push(a)}for(r=1;r<13;r++){var i={active:!1};i.num=s.a.formatNum(r),e.push(i)}this.red=t,this.blue=e,n.a.shakeAndRandom(this.randomSelect)},components:{Headers:a.a,Acount:i.a},methods:{check:function(t,e){switch(e){case 1:this.red[t].active=!this.red[t].active;break;case 2:this.blue[t].active=!this.blue[t].active}this.redarr=this.red.filter(function(t){return t.active}),this.bluearr=this.blue.filter(function(t){return t.active}),this.acount=n.a.math(this.redarr.length,5)*n.a.math(this.bluearr.length,2),this.total=2*this.acount},clear:function(){this.red=this.red.map(function(t){var e={};return e.num=t.num,e.active=!1,e}),this.blue=this.blue.map(function(t){var e={};return e.num=t.num,e.active=!1,e}),this.total=0,this.redarr=[],this.bluearr=[],this.acount=0},sure:function(){0!=this.total?(this.$store.dispatch("selectDlt",{red:this.redarr,blue:this.bluearr,zhu:this.acount,pric:this.total}),this.$router.push({path:"confirm",query:{type:"dlt"}})):this.randomSelect()},randomSelect:function(){this.clear();for(var t=n.a.random(35,5),e=0;e1&&void 0!==arguments[1]?arguments[1]:0,a=arguments[2];switch(t){case 1:1==i&&(this.bai[a].active=!this.bai[a].active),2==i&&(this.shi[a].active=!this.shi[a].active),3==i&&(this.ge[a].active=!this.ge[a].active),this.shiarr=this.shi.filter(function(t){return t.active}),this.baiarr=this.bai.filter(function(t){return t.active}),this.gearr=this.ge.filter(function(t){return t.active}),this.acount=e.a.math(this.baiarr.length,1)*e.a.math(this.shiarr.length,1)*e.a.math(this.gearr.length,1);break;case 2:this.san[a].active=!this.san[a].active,this.sanarr=this.san.filter(function(t){return t.active}),this.acount=2*e.a.math(this.sanarr.length,2);break;case 3:this.liu[a].active=!this.liu[a].active,this.liuarr=this.liu.filter(function(t){return t.active}),this.acount=e.a.math(this.liuarr.length,3)}this.total=2*this.acount},clear:function(){this.shi.map(function(t){t.active=!1}),this.bai.map(function(t){t.active=!1}),this.ge.map(function(t){t.active=!1}),this.san.map(function(t){t.active=!1}),this.liu.map(function(t){t.active=!1}),this.total=0,this.acount=0,this.shiarr=[],this.baiarr=[],this.gearr=[],this.sanarr=[],this.liuarr=[]},sure:function(){0!=this.total?(1==this.tabs[0].status?this.$store.dispatch("selectFc",{type:1,zhu:this.acount,pric:this.total,ge:this.gearr.map(function(t){return t.num}),shi:this.shiarr.map(function(t){return t.num}),bai:this.baiarr.map(function(t){return t.num})}):1==this.tabs[1].status?this.$store.dispatch("selectFc",{type:2,zhu:this.acount,pric:this.total,ge:this.sanarr.map(function(t){return t.num})}):this.$store.dispatch("selectFc",{type:3,zhu:this.acount,pric:this.total,ge:this.liuarr.map(function(t){return t.num})}),this.$router.push({path:"/confirm",query:{type:"fc"}})):this.randomSelect()},tab:function(t){this.tabs.map(function(t){return t.status=0}),this.clear(),this.tabs[t].status=1},randomSelect:function(){if(this.clear(),1==this.tabs[0].status){var t=e.a.randomFromZero(10,3);this.bai[t[0]].active=!0,this.shi[t[1]].active=!0,this.ge[t[2]].active=!0,this.shiarr=this.shi.filter(function(t){return t.active}),this.baiarr=this.bai.filter(function(t){return t.active}),this.gearr=this.ge.filter(function(t){return t.active}),this.acount=e.a.math(this.baiarr.length,1)*e.a.math(this.shiarr.length,1)*e.a.math(this.gearr.length,1)}else if(1==this.tabs[1].status){for(var i=e.a.randomFromZero(10,2),a=0;a0)},logIn:function(){this.$store.dispatch("login"),this.$router.push("/index")},pswd:function(){this.psw=!this.psw}}},n={render:function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",[a("Headers",{attrs:{title:"登录"}}),s._v(" "),a("div",{staticClass:"login"},[a("p",{staticClass:"loginType"},[a("span",{class:s.isCode?"active":"",on:{click:function(t){s.toggle(0)}}},[s._v("验证码登录")]),a("i"),a("span",{class:s.isCode?"":"active",on:{click:function(t){s.toggle(1)}}},[s._v("密码登录")])]),s._v(" "),s.isCode?a("div",{staticClass:"logincode"},[s._m(0),s._v(" "),s._m(1)]):a("div",{staticClass:"loginpwd"},[s._m(2),s._v(" "),a("p",["checkbox"==(s.psw?"password":"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwd,expression:"passwd"}],attrs:{placeholder:"密码",type:"checkbox"},domProps:{checked:Array.isArray(s.passwd)?s._i(s.passwd,null)>-1:s.passwd},on:{change:function(t){var e=s.passwd,a=t.target,n=!!a.checked;if(Array.isArray(e)){var i=s._i(e,null);a.checked?i<0&&(s.passwd=e.concat([null])):i>-1&&(s.passwd=e.slice(0,i).concat(e.slice(i+1)))}else s.passwd=n}}}):"radio"==(s.psw?"password":"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwd,expression:"passwd"}],attrs:{placeholder:"密码",type:"radio"},domProps:{checked:s._q(s.passwd,null)},on:{change:function(t){s.passwd=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwd,expression:"passwd"}],attrs:{placeholder:"密码",type:s.psw?"password":"text"},domProps:{value:s.passwd},on:{input:function(t){t.target.composing||(s.passwd=t.target.value)}}}),a("span",{staticClass:"pimg",on:{click:s.pswd}},[s.psw?a("img",{attrs:{src:e("PQMM")}}):a("img",{attrs:{src:e("YvW5")}})])]),s._v(" "),a("p",[a("router-link",{attrs:{to:"/forget"}},[s._v("忘记密码?")])],1)]),s._v(" "),a("button",{staticClass:"loginto",on:{click:s.logIn}},[s._v("登录")]),s._v(" "),a("router-link",{attrs:{to:"/register"}},[a("button",{staticClass:"zhuce"},[s._v("注册")])])],1)],1)},staticRenderFns:[function(){var s=this.$createElement,t=this._self._c||s;return t("p",[t("input",{attrs:{type:"text",placeholder:"手机号码"}})])},function(){var s=this.$createElement,t=this._self._c||s;return t("p",[t("input",{attrs:{type:"text",placeholder:"验证码"}}),t("span",[this._v("获取验证码")])])},function(){var s=this.$createElement,t=this._self._c||s;return t("p",[t("input",{attrs:{type:"text",placeholder:"手机号码"}})])}]};var i=e("VU/8")(a,n,!1,function(s){e("rvBW")},null,null);t.default=i.exports},rvBW:function(s,t){}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/logs.e6b1e68cb66dc6faa1b1.js:
--------------------------------------------------------------------------------
1 | webpackJsonp([7],{LNt0:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAMCAYAAABiDJ37AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQyIDc5LjE2MDkyNCwgMjAxNy8wNy8xMy0wMTowNjozOSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpCRUU5NEJDRjc4NTgxMUU4QTg1MzhFQUUxOUE4MDNGOCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpCRUU5NEJEMDc4NTgxMUU4QTg1MzhFQUUxOUE4MDNGOCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkJFRTk0QkNENzg1ODExRThBODUzOEVBRTE5QTgwM0Y4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkJFRTk0QkNFNzg1ODExRThBODUzOEVBRTE5QTgwM0Y4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+tGTvdwAAANBJREFUeNpiYWBgyAXiP0A8nYF8wA/Eu4CYEcR5DcT/gbicTMO4gPg41IwjIAE/qAv/AXE0iYaxAfFOqGG3gVgUJpECNfAnEDsRaRgzEK+GGvYYiGXQFVRAJT8AsS4Bw0BhNRuq/hUQa+NSOA3JRhU8BnZD1X0GYnNC3tiILUyQQCVUnujgAQX0XqimE9BYhIFMqDgoEoNJTVeXoJo3Ql0OSgF/oZGXRk76koGG5X9oov0JZVdQkAEYtKCx+B+KuxioAECx+AaIZ8KyFj4AEGAADiU3ZOn8NSAAAAAASUVORK5CYII="},gHWL:function(t,i){},nonE:function(t,i,e){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=e("zGf4"),s=e("0T3B"),c={components:{Headers:a.a,tempList:s.a},data:function(){return{list:[{type:"充值",time:"2018-06-25 15:45",price:4e3},{type:"充值",time:"2018-06-25 15:45",price:4e3},{type:"提现",time:"2018-09-09",price:11}],tabs:[{active:!1},{active:!1}],types:[{name:"全部",act:!0},{name:"购彩",act:!1},{name:"充值",act:!1},{name:"提现",act:!1},{name:"账户返奖",act:!1}]}},methods:{shows:function(t){1==t?(this.tabs[1].active=!1,this.tabs[0].active=!this.tabs[0].active):(this.tabs[0].active=!1,this.tabs[1].active=!this.tabs[1].active)},hide:function(){this.tabs[0].active=!1,this.tabs[1].active=!1},select:function(t){this.types.forEach(function(t){t.act=!1}),this.types[t].act=!0,this.hide()}}},n={render:function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",[a("Headers",{attrs:{title:"资金明细",detail:""}}),t._v(" "),a("div",{staticClass:"l_tabs"},[a("p",{on:{click:function(i){t.shows(1)}}},[t._v("2018年06月 "),a("img",{class:t.tabs[0].active?"rotat":"",attrs:{src:e("LNt0")}})]),t._v(" "),a("p",{on:{click:function(i){t.shows(2)}}},[t._v("分类 "),a("img",{class:t.tabs[1].active?"rotat":"",attrs:{src:e("LNt0")}})])]),t._v(" "),t.tabs[1].active?a("ul",{staticClass:"l_types"},t._l(t.types,function(i,e){return a("li",{class:i.act?"active":"",on:{click:function(i){t.select(e)}}},[t._v(t._s(i.name))])})):t._e(),t._v(" "),t.tabs[0].active?a("ul",{staticClass:"l_types"},t._l(t.types,function(i){return a("li",{class:i.act?"active":""},[t._v("2018-07-01")])})):t._e(),t._v(" "),a("div",{staticStyle:{height:"91px"}}),t._v(" "),a("tempList",{attrs:{list:t.list}}),t._v(" "),t.tabs[0].active||t.tabs[1].active?a("div",{staticClass:"mask",on:{click:t.hide}}):t._e()],1)},staticRenderFns:[]};var A=e("VU/8")(c,n,!1,function(t){e("gHWL")},null,null);i.default=A.exports}});
--------------------------------------------------------------------------------
/lottery/dist/static/js/manifest.js:
--------------------------------------------------------------------------------
1 | !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,d,b,i=0,u=[];i1&&void 0!==arguments[1]?arguments[1]:0,a=arguments[2];switch(t){case 1:1==i&&(this.bai[a].active=!this.bai[a].active),2==i&&(this.shi[a].active=!this.shi[a].active),3==i&&(this.ge[a].active=!this.ge[a].active),this.shiarr=this.shi.filter(function(t){return t.active}),this.baiarr=this.bai.filter(function(t){return t.active}),this.gearr=this.ge.filter(function(t){return t.active}),this.acount=e.a.math(this.baiarr.length,1)*e.a.math(this.shiarr.length,1)*e.a.math(this.gearr.length,1);break;case 2:console.log(this.san[a]),this.san[a].active=!this.san[a].active,this.sanarr=this.san.filter(function(t){return t.active}),this.acount=2*e.a.math(this.sanarr.length,2);break;case 3:this.liu[a].active=!this.liu[a].active,this.liuarr=this.liu.filter(function(t){return t.active}),this.acount=e.a.math(this.liuarr.length,3)}this.total=2*this.acount},clear:function(){this.shi.map(function(t){t.active=!1}),this.bai.map(function(t){t.active=!1}),this.ge.map(function(t){t.active=!1}),this.san.map(function(t){t.active=!1}),this.liu.map(function(t){t.active=!1}),this.total=0,this.acount=0,this.shiarr=[],this.baiarr=[],this.gearr=[],this.sanarr=[],this.liuarr=[]},tab:function(t){this.tabs.map(function(t){return t.status=0}),this.clear(),this.tabs[t].status=1},sure:function(){0!=this.total?(1==this.tabs[0].status?this.$store.dispatch("selectPlt",{type:1,zhu:this.acount,pric:this.total,ge:this.gearr.map(function(t){return t.num}),shi:this.shiarr.map(function(t){return t.num}),bai:this.baiarr.map(function(t){return t.num})}):1==this.tabs[1].status?this.$store.dispatch("selectPlt",{type:2,zhu:this.acount,pric:this.total,ge:this.sanarr.map(function(t){return t.num})}):this.$store.dispatch("selectPlt",{type:3,zhu:this.acount,pric:this.total,ge:this.liuarr.map(function(t){return t.num})}),this.$router.push({path:"/confirm",query:{type:"plt"}})):this.randomSelect()},randomSelect:function(){if(this.clear(),1==this.tabs[0].status){var t=e.a.randomFromZero(10,3);this.bai[t[0]].active=!0,this.shi[t[1]].active=!0,this.ge[t[2]].active=!0,this.shiarr=this.shi.filter(function(t){return t.active}),this.baiarr=this.bai.filter(function(t){return t.active}),this.gearr=this.ge.filter(function(t){return t.active}),this.acount=e.a.math(this.baiarr.length,1)*e.a.math(this.shiarr.length,1)*e.a.math(this.gearr.length,1)}else if(1==this.tabs[1].status){for(var i=e.a.randomFromZero(10,2),a=0;a
2 |
3 |
4 |
5 |
6 |
7 | 彩票
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/lottery/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Lottery",
3 | "version": "1.0.0",
4 | "description": "Lottery project",
5 | "author": "Dantyli <1981220267@qq.com>",
6 | "private": true,
7 | "scripts": {
8 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
9 | "start": "npm run dev",
10 | "build": "node build/build.js"
11 | },
12 | "dependencies": {
13 | "axios": "^0.18.0",
14 | "compression-webpack-plugin": "^1.1.11",
15 | "element-ui": "^2.4.2",
16 | "scss": "^0.2.4",
17 | "vue": "^2.5.2",
18 | "vue-router": "^3.0.1",
19 | "vuex": "^3.0.1"
20 | },
21 | "devDependencies": {
22 | "autoprefixer": "^7.1.2",
23 | "babel-core": "^6.22.1",
24 | "babel-helper-vue-jsx-merge-props": "^2.0.3",
25 | "babel-loader": "^7.1.1",
26 | "babel-plugin-syntax-jsx": "^6.18.0",
27 | "babel-plugin-transform-runtime": "^6.22.0",
28 | "babel-plugin-transform-vue-jsx": "^3.5.0",
29 | "babel-preset-env": "^1.3.2",
30 | "babel-preset-stage-2": "^6.22.0",
31 | "chalk": "^2.0.1",
32 | "copy-webpack-plugin": "^4.0.1",
33 | "css-loader": "^0.28.0",
34 | "extract-text-webpack-plugin": "^3.0.0",
35 | "file-loader": "^1.1.4",
36 | "friendly-errors-webpack-plugin": "^1.6.1",
37 | "html-webpack-plugin": "^2.30.1",
38 | "node-notifier": "^5.1.2",
39 | "optimize-css-assets-webpack-plugin": "^3.2.0",
40 | "ora": "^1.2.0",
41 | "portfinder": "^1.0.13",
42 | "postcss-import": "^11.0.0",
43 | "postcss-loader": "^2.0.8",
44 | "postcss-url": "^7.2.1",
45 | "rimraf": "^2.6.0",
46 | "semver": "^5.3.0",
47 | "shelljs": "^0.7.6",
48 | "uglifyjs-webpack-plugin": "^1.1.1",
49 | "url-loader": "^0.5.8",
50 | "vue-loader": "^13.3.0",
51 | "vue-style-loader": "^3.0.1",
52 | "vue-template-compiler": "^2.5.2",
53 | "webpack": "^3.6.0",
54 | "webpack-bundle-analyzer": "^2.9.0",
55 | "webpack-dev-server": "^2.9.1",
56 | "webpack-merge": "^4.1.0"
57 | },
58 | "engines": {
59 | "node": ">= 6.0.0",
60 | "npm": ">= 3.0.0"
61 | },
62 | "browserslist": [
63 | "> 1%",
64 | "last 2 versions",
65 | "not ie <= 8"
66 | ]
67 | }
68 |
--------------------------------------------------------------------------------
/lottery/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/lottery/src/api/api.js:
--------------------------------------------------------------------------------
1 | import axios from 'axios'
2 | let istance=axios.create({
3 | baseURL:'https://m.jifuxi.com'
4 | })
5 | //添加请求拦截器
6 | instance.interceptors.request.use(config=>{
7 | return config;
8 | },err=>{
9 | return Promise.reject(err)
10 | })
11 | //添加响应拦截器
12 | instance.interceptors.response.use(res=>{
13 | return res;
14 | },err=>{
15 | return Promise.reject(err)
16 | })
17 | export default instance;
--------------------------------------------------------------------------------
/lottery/src/assets/img/banner.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/assets/img/banner.png
--------------------------------------------------------------------------------
/lottery/src/assets/img/shake.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/assets/img/shake.png
--------------------------------------------------------------------------------
/lottery/src/assets/js/flexible.js:
--------------------------------------------------------------------------------
1 | ;(function(win, lib) {
2 | var doc = win.document;
3 | var docEl = doc.documentElement;
4 | var metaEl = doc.querySelector('meta[name="viewport"]');
5 | var flexibleEl = doc.querySelector('meta[name="flexible"]');
6 | var dpr = 0;
7 | var scale = 0;
8 | var tid;
9 | var flexible = lib.flexible || (lib.flexible = {});
10 |
11 | if (metaEl) {
12 | // console.warn('将根据已有的meta标签来设置缩放比例');
13 | var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/);
14 | if (match) {
15 | scale = parseFloat(match[1]);
16 | dpr = parseInt(1 / scale);
17 | }
18 | } else if (flexibleEl) {
19 | var content = flexibleEl.getAttribute('content');
20 | if (content) {
21 | var initialDpr = content.match(/initial\-dpr=([\d\.]+)/);
22 | var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/);
23 | if (initialDpr) {
24 | dpr = parseFloat(initialDpr[1]);
25 | scale = parseFloat((1 / dpr).toFixed(2));
26 | }
27 | if (maximumDpr) {
28 | dpr = parseFloat(maximumDpr[1]);
29 | scale = parseFloat((1 / dpr).toFixed(2));
30 | }
31 | }
32 | }
33 |
34 | if (!dpr && !scale) {
35 | var isAndroid = win.navigator.appVersion.match(/android/gi);
36 | var isIPhone = win.navigator.appVersion.match(/iphone/gi);
37 | var devicePixelRatio = win.devicePixelRatio;
38 | if (isIPhone) {
39 | // iOS下,对于2和3的屏,用2倍的方案,其余的用1倍方案
40 | if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
41 | dpr = 3;
42 | } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
43 | dpr = 2;
44 | } else {
45 | dpr = 1;
46 | }
47 | } else {
48 | // 其他设备下,仍旧使用1倍的方案
49 | dpr = 1;
50 | }
51 | scale = 1 / dpr;
52 | }
53 |
54 | docEl.setAttribute('data-dpr', dpr);
55 | if (!metaEl) {
56 | metaEl = doc.createElement('meta');
57 | metaEl.setAttribute('name', 'viewport');
58 | metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no');
59 | if (docEl.firstElementChild) {
60 | docEl.firstElementChild.appendChild(metaEl);
61 | } else {
62 | var wrap = doc.createElement('div');
63 | wrap.appendChild(metaEl);
64 | doc.write(wrap.innerHTML);
65 | }
66 | }
67 |
68 | function refreshRem(){
69 | var width = docEl.getBoundingClientRect().width;
70 | if (width / dpr > 640) {
71 | width = 640 * dpr;
72 | }
73 | var rem = width / 10;
74 | docEl.style.fontSize = rem + 'px';
75 | flexible.rem = win.rem = rem;
76 | }
77 |
78 | win.addEventListener('resize', function() {
79 | clearTimeout(tid);
80 | tid = setTimeout(refreshRem, 300);
81 | }, false);
82 | win.addEventListener('pageshow', function(e) {
83 | if (e.persisted) {
84 | clearTimeout(tid);
85 | tid = setTimeout(refreshRem, 300);
86 | }
87 | }, false);
88 |
89 | if (doc.readyState === 'complete') {
90 | doc.body.style.fontSize = 12 * dpr + 'px';
91 | } else {
92 | doc.addEventListener('DOMContentLoaded', function(e) {
93 | doc.body.style.fontSize = 12 * dpr + 'px';
94 | }, false);
95 | }
96 |
97 |
98 | refreshRem();
99 |
100 | flexible.dpr = win.dpr = dpr;
101 | flexible.refreshRem = refreshRem;
102 | flexible.rem2px = function(d) {
103 | var val = parseFloat(d) * this.rem;
104 | if (typeof d === 'string' && d.match(/rem$/)) {
105 | val += 'px';
106 | }
107 | return val;
108 | }
109 | flexible.px2rem = function(d) {
110 | var val = parseFloat(d) / this.rem;
111 | if (typeof d === 'string' && d.match(/px$/)) {
112 | val += 'rem';
113 | }
114 | return val;
115 | }
116 |
117 | })(window, window['lib'] || (window['lib'] = {}));
--------------------------------------------------------------------------------
/lottery/src/components/choseHall/choseHall.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
大乐透
8 |
球迷最爱,返奖率高
9 |
10 |
11 |
12 |
13 | -
14 |
15 |
双色球
16 |
奖金高达1600万
17 |
18 |
19 |
20 |
21 |
22 | -
23 |
24 |
福彩3D
25 |
2元中1500万
26 |
27 |
28 |
29 |
30 |
31 | -
32 |
36 |
37 |
38 |
39 |
40 | -
41 |
42 |
排列5
43 |
10分钟一期,来钱快
44 |
45 |
46 |
47 |
48 |
49 | -
50 |
51 |
七乐彩
52 |
10分钟一期,来钱快
53 |
54 |
55 |
56 |
57 |
58 |
59 | -
60 |
61 |
七星彩
62 |
10分钟一期,来钱快
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
83 |
--------------------------------------------------------------------------------
/lottery/src/components/common/Acount.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 共{{acount}}注,{{total}}元
6 |
7 |
8 |
9 |
73 |
--------------------------------------------------------------------------------
/lottery/src/components/common/Header.vue:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
37 |
--------------------------------------------------------------------------------
/lottery/src/components/common/NewHead.vue:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
29 |
--------------------------------------------------------------------------------
/lottery/src/components/common/tempList.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | -
4 |
{{item.type}}
5 | {{item.time}}
6 | +{{item.price}}
7 |
8 |
9 |
10 |
15 |
--------------------------------------------------------------------------------
/lottery/src/components/confirm/img/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/confirm/img/delete.png
--------------------------------------------------------------------------------
/lottery/src/components/confirm/img/top.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/confirm/img/top.png
--------------------------------------------------------------------------------
/lottery/src/components/dlt/dlt.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
第20180621期 19:40开奖
6 |
摇一摇机选至少选择5个红球,2个蓝球
7 |
8 | - {{item.num}}
9 |
10 |
11 |
12 | - {{item.num}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
144 |
--------------------------------------------------------------------------------
/lottery/src/components/doubleColor/css/doubleColor.css:
--------------------------------------------------------------------------------
1 | .doubleColor{
2 | margin:55px 0;
3 | background:rgb(243,243,243);
4 | height:100%;
5 | }
6 | .doubleColor ul{
7 | border-top:1px solid #ccc;
8 | padding:0 0.4rem;
9 | }
10 | .doubleColor ul:nth-of-type(1) li{
11 | color:#bc102d;
12 | }
13 | .doubleColor ul:nth-of-type(2) li{
14 | color:#0e52a7;
15 | }
16 | .doubleColor ul:nth-of-type(1) li.check{
17 | background-color:#bc102d;
18 | color:#fff;
19 | }
20 | .doubleColor ul:nth-of-type(2) li.check{
21 | background-color:#0e52a7;
22 | color:#fff
23 | }
24 | .doubleColor li{
25 | display:inline-block;
26 | width:1rem;
27 | height:1rem;
28 | text-align:center;
29 | line-height:1rem;
30 | font-size:0.42rem;
31 | border:1px solid #ccc;
32 | border-radius:50%;
33 | margin:0.2rem
34 | }
35 | .doubleColor .dbc_tips{
36 | color:#999;
37 | font-size:0.35rem;
38 | text-align:right;
39 | padding:0.3rem 0.2rem;
40 | }
41 | .dbc_index {
42 | height:1rem;
43 | line-height: 1rem;
44 | color: #999;
45 | font-size: 0.35rem;
46 | background: #fff;
47 | text-align: center;
48 | }
--------------------------------------------------------------------------------
/lottery/src/components/doubleColor/doubleColor.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
第20180621期 19:40开奖
6 |
摇一摇机选至少选择6个红球,1个蓝球
7 |
8 | - {{item.num}}
9 |
10 |
11 |
12 | - {{item.num}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
146 |
--------------------------------------------------------------------------------
/lottery/src/components/fc/css/fc.css:
--------------------------------------------------------------------------------
1 | .tips{
2 | padding:0.2rem;
3 | color:#999;
4 | font-size:0.35rem;
5 | text-align:right;
6 | }
7 | .tips span{
8 | color:#f00;
9 | }
10 | .fc{
11 | margin-bottom:2.5rem;
12 | }
13 | .fc ul{
14 | margin-top:0.2rem;
15 | padding-left:0.4rem;
16 | }
17 | .fc ul p{
18 | height:0.6rem;
19 | line-height:0.6rem;
20 | color:#fff;
21 | background:rgb(0,153,67);
22 | width:1.2rem;
23 | font-size:0.38rem;
24 | padding-left:0.2rem;
25 | margin-left:-0.4rem;
26 | border-top-right-radius: 0.3rem;
27 | border-bottom-right-radius: 0.3rem;
28 | }
29 | .fc ul li{
30 | display:inline-block;
31 | width:1rem;
32 | color:#F95A04;
33 | background:#fff;
34 | height:1rem;
35 | text-align:center;
36 | line-height:1rem;
37 | font-size:0.42rem;
38 | border:1px solid #e2e2e2;
39 | border-radius:50%;
40 | margin:0.2rem
41 | }
42 | .fc ul li.active{
43 | background:#F95A04;
44 | color:#fff;
45 | }
46 | .fc_tab{
47 | padding:0 0.4rem;
48 | margin-top:50px;
49 | background:#fff;
50 | height:1rem;
51 | }
52 | .fc_tab span{
53 | display:inline-block;
54 | width:33%;
55 | text-align:center;
56 | line-height:1rem;
57 | height:1rem;
58 | font-size:0.42rem;
59 | float:left;
60 | }
61 | .fc_tab span.active{
62 | border-bottom:1px solid #9a1429;
63 | color:#9a1429;
64 | }
65 | .fc_index{
66 | height:1rem;
67 | line-height: 1rem;
68 | color: #999;
69 | font-size: 0.35rem;
70 | background: #fff;
71 | text-align: center;
72 | }
--------------------------------------------------------------------------------
/lottery/src/components/login/edit.vue:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
30 |
--------------------------------------------------------------------------------
/lottery/src/components/login/forget.vue:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
30 |
--------------------------------------------------------------------------------
/lottery/src/components/login/img/psw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/login/img/psw.png
--------------------------------------------------------------------------------
/lottery/src/components/login/img/text.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/login/img/text.png
--------------------------------------------------------------------------------
/lottery/src/components/login/login.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
验证码登录密码登录
6 |
10 |
11 |
12 |


13 |
忘记密码?
14 |
15 |
16 |
17 |
18 |
19 |
20 |
47 |
--------------------------------------------------------------------------------
/lottery/src/components/login/register.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
欢迎您!
6 |
7 |
获取验证码
8 |


9 |
10 |
11 |
12 |
13 |
14 |
15 |
33 |
--------------------------------------------------------------------------------
/lottery/src/components/logs/img/arow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/logs/img/arow.png
--------------------------------------------------------------------------------
/lottery/src/components/logs/logs.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
2018年06月 
6 |
分类 
7 |
8 |
11 |
14 |
15 |
16 |
17 |
18 |
19 |
60 |
--------------------------------------------------------------------------------
/lottery/src/components/openDetail/openDetail.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | -
6 |
双色球 2018066期
7 | 11111111
8 |
9 | -
10 |
双色球 2018066期
11 | 111111111111
12 |
13 | -
14 |
双色球 2018066期
15 | 11111111
16 |
17 |
18 |
19 |
20 |
33 |
--------------------------------------------------------------------------------
/lottery/src/components/openHall/openHall.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | -
7 |
双色球 2018066期
8 | 11111111
9 | 2018-06-10 奖池:1亿5千万
10 |
11 |
12 |
13 | -
14 |
双色球 2018066期
15 | 111111111111
16 | 2018-06-10 奖池:1亿5千万
17 |
18 |
19 | -
20 |
双色球 2018066期
21 | 11111111
22 | 2018-06-10 奖池:1亿5千万
23 |
24 |
25 |
26 |
27 |
28 |
41 |
--------------------------------------------------------------------------------
/lottery/src/components/person/about.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |

7 |
快买彩
8 |
9 |
13 |
14 |
15 |
23 |
--------------------------------------------------------------------------------
/lottery/src/components/person/card.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
18 |
19 |
20 | 温馨提示:
21 | 1.用户需先实名认证才能绑定银行卡,持卡人需与实名
22 | 的真实姓名一致;
23 | 2.绑定银行卡是用于资金提现,请仔细核对您的信息是
24 | 否正确,只支持储蓄卡提现;
25 | 3.银行卡信息可以多次更改,但只能绑定一个银行卡。
26 |
27 |
28 |
29 |
30 |
38 |
82 |
83 |
--------------------------------------------------------------------------------
/lottery/src/components/person/img/avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/avatar.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/charge.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/charge.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/direction.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/direction.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/indentify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/indentify.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/ipcard.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/ipcard.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/logo.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/money.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/money.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/settings.png
--------------------------------------------------------------------------------
/lottery/src/components/person/img/tixian.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/person/img/tixian.png
--------------------------------------------------------------------------------
/lottery/src/components/person/order.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
全部彩票
6 |
等待开奖
7 |
中奖记录
8 |
9 |
10 |
11 |
12 |
13 |
42 |
--------------------------------------------------------------------------------
/lottery/src/components/person/person.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |

7 |
8 | 李大大
9 | 已认证
10 |
11 |
12 |
13 |
14 | -
15 |
63340
16 | 可用余额
17 |
18 |
19 | -
20 |
63340
21 | 可提现余额
22 |
23 |
24 | -
25 |
63340
26 | 中奖金额
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
充值
36 |
满1000送50
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | -
57 |
投注记录
58 |
59 |
60 |
61 |
62 | -
63 |
资金明细
64 |
65 |
66 |
67 |
68 | -
69 |
70 | 实名认证
71 | 已认证
72 |
73 |
74 |
75 |
76 |
77 |
78 | -
79 |
80 | 银行卡
81 | 未绑定
82 |
83 |
84 |
85 |
86 | -
87 |
88 | 设置
89 |
90 |
91 |
92 |
93 |
94 | -
95 |
96 | 新手上路
97 |
98 |
99 |
100 |
101 |
102 |
120 |
--------------------------------------------------------------------------------
/lottery/src/components/person/settings.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | -
7 | 修改密码
8 |
9 |
10 |
11 |
12 | -
13 | 关于我们
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
35 |
--------------------------------------------------------------------------------
/lottery/src/components/person/userinfo.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
14 |
15 |
16 | 温馨提示:
17 | 1.用户实名作为领奖凭证,实名后不能在线更改,请仔
18 | 细核准信息;
19 | 2.如需更改或有疑问,请联系客服;
20 |
21 |
22 |
23 |
24 |
32 |
76 |
77 |
--------------------------------------------------------------------------------
/lottery/src/components/plf/plf.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
第20180621期,21:40开奖
6 |
摇一摇机选选择3个号码,中奖1000元
7 |
8 | 万位
9 | - {{item.num}}
10 |
11 |
12 | 千位
13 | - {{item.num}}
14 |
15 |
16 | 百位
17 | - {{item.num}}
18 |
19 |
20 | 十位
21 | - {{item.num}}
22 |
23 |
24 | 个位
25 | - {{item.num}}
26 |
27 |
28 |
29 |
30 |
31 |
176 |
--------------------------------------------------------------------------------
/lottery/src/components/qlc/qlc.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
第20180621期 19:40开奖
6 |
摇一摇机选选择7个号,最高中奖500万元
7 |
8 | - {{item.num}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
94 |
--------------------------------------------------------------------------------
/lottery/src/components/recharge/chargeDes.vue:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
--------------------------------------------------------------------------------
/lottery/src/components/recharge/img/check.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/recharge/img/check.png
--------------------------------------------------------------------------------
/lottery/src/components/recharge/img/nocheck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/src/components/recharge/img/nocheck.png
--------------------------------------------------------------------------------
/lottery/src/components/recharge/recharge.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
支付方式
5 |
6 | -
7 | 支付宝
8 |
9 | -
10 | 微信
11 |
12 | -
13 |
14 | + 添加银行卡
15 |
16 |
17 |
18 |
19 |
充值金额
20 |
¥
21 |
单次最多充值10000.00元
22 |
23 |
24 | 温馨提示:
25 | 1.充值完成后再次进入查看余额;
26 | 2.请在15分钟内完成支付。
27 |
28 |
29 |
30 |
31 |
40 |
--------------------------------------------------------------------------------
/lottery/src/components/recharge/tix.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
+添加银行卡
5 |

6 |
中国建设银行尾号7250
7 |
8 |
9 |
提现金额
10 |
¥
11 |
当天最多提现10000.00元
12 |
13 |
14 | 温馨提示:
15 | 1.您的提现申请需要审核,如信息无错误,我们确保以
16 | 最快的速度将资金提现至您的账户内,请及时查收;
17 |
18 |
19 |
20 |
21 |
34 |
--------------------------------------------------------------------------------
/lottery/src/components/recharge/tixDes.vue:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
--------------------------------------------------------------------------------
/lottery/src/config/config.js:
--------------------------------------------------------------------------------
1 | import util from './util'
2 | let config={
3 | //当前日期yy-mm-dd
4 | date:util.nowDate(),
5 | //随机数两位
6 | randomJx:function(n){
7 | let num=Math.random()*n
8 | num=Math.ceil(num);
9 | return util.formatNum(num);
10 | },
11 | //注数计算规则
12 | math:function(m, n){
13 | if (m < 0 || n < 0 || m < n) {
14 | return 0;
15 | }
16 | n = n < (m - n) ? n : m - n;
17 | this.smath(m,n);
18 | if (n == 0) {
19 | return 1;
20 | }
21 | var result = m;
22 | for (var i = 2, j = result - 1; i <= n; i++, j--) {
23 | result = result * j / i;
24 | }
25 | return result;
26 | },
27 | smath:function(m,n){
28 | if (m < 0 || n < 0 || m < n) {
29 | return 0;
30 | }
31 | n = n < (m - n) ? n : m - n;
32 | if (n == 0) {
33 | return 1;
34 | }
35 | n = n < (m - n) ? n : m - n;
36 | },
37 | //产生随机数
38 | random:function(m,n){
39 | let exist=[]
40 | for(var i=1;i speed || Math.abs(y-lastY) > speed) {
85 | callback();
86 | }
87 | lastX = x;
88 | lastY = y;
89 | }, false);
90 | }
91 | }
92 |
93 | }
94 | export default config;
--------------------------------------------------------------------------------
/lottery/src/config/util.js:
--------------------------------------------------------------------------------
1 | export default{
2 | formatNum(num){
3 | if(num<10){
4 | return '0'+num;
5 | }
6 | return num;
7 | },
8 | nowDate(){
9 | let myDate=new Date(),
10 | year=myDate.getFullYear(),
11 | month=myDate.getMonth()+1,
12 | date=myDate.getDate();
13 | return year+'-'+this.formatNum(month)+'-'+this.formatNum(date);
14 | }
15 | }
--------------------------------------------------------------------------------
/lottery/src/main.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import App from './App'
3 | import ElementUI from 'element-ui'
4 | import './assets/css/style.css'
5 | import './assets/js/flexible.js'
6 | import router from './router'
7 | import store from './store/index'
8 | Vue.use(ElementUI);
9 | store.commit('INIT');
10 | new Vue({
11 | el: '#app',
12 | router,
13 | store,
14 | template:'',
15 | components:{
16 | App
17 | },
18 | data:{
19 | eventHub:new Vue()
20 | }
21 | })
22 | //导航守卫
23 | router.beforeEach((to,from,next)=>{
24 | if(to.path=='/person'||to.path=='/recharge'){
25 | if(store.state.isLogin){
26 | next()
27 | }else{
28 | router.push('/login')
29 | }
30 | }else{
31 | next()
32 | }
33 | })
34 | //自动登录
35 | //let account=localStorage.getItem('account')
36 | //if(account!==null){
37 | // store.dispatch('login');
38 | //}
--------------------------------------------------------------------------------
/lottery/src/router/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Router from 'vue-router'
3 | import App from '../App'
4 | //路由懒加载
5 | const login = r => require.ensure([], () => r(require('../components/login/login')), 'login')
6 | const index = r => require.ensure([], () => r(require('../components/index/index')), 'index')
7 | const choseHall = r => require.ensure([], () => r(require('../components/choseHall/choseHall')), 'choseHall')
8 | const doubleColor = r => require.ensure([], () => r(require('../components/doubleColor/doubleColor')), 'doubleColor')
9 | const openHall = r => require.ensure([], () => r(require('../components/openHall/openHall')), 'openHall')
10 | const person = r => require.ensure([], () => r(require('../components/person/person')), 'person')
11 | const recharge = r => require.ensure([], () => r(require('../components/recharge/recharge')), 'recharge')
12 | const openDetail = r => require.ensure([], () => r(require('../components/openDetail/openDetail')), 'openDetail')
13 | const logs = r => require.ensure([], () => r(require('../components/logs/logs')), 'logs')
14 | const userInfo = r => require.ensure([], () => r(require('../components/person/userinfo')), 'userInfo')
15 | const dlt = r => require.ensure([], () => r(require('../components/dlt/dlt')), 'dlt')
16 | const fc = r => require.ensure([], () => r(require('../components/fc/fc')), 'fc')
17 | const plf = r => require.ensure([], () => r(require('../components/plf/plf')), 'plf')
18 | const plt = r => require.ensure([], () => r(require('../components/plt/plt')), 'plt')
19 | const qlc = r => require.ensure([], () => r(require('../components/qlc/qlc')), 'qlc')
20 | const qxc = r => require.ensure([], () => r(require('../components/qxc/qxc')), 'qxc')
21 | const register = r => require.ensure([], () => r(require('../components/login/register')), 'register')
22 | const forget = r => require.ensure([], () => r(require('../components/login/forget')), 'forget')
23 | const edit = r => require.ensure([], () => r(require('../components/login/edit')), 'edit')
24 | const chargeDes = r => require.ensure([], () => r(require('../components/recharge/chargeDes')), 'chargeDes')
25 | const tx = r => require.ensure([], () => r(require('../components/recharge/tix')), 'tx')
26 | const txdes = r => require.ensure([], () => r(require('../components/recharge/tixdes')), 'txdes')
27 | const card = r => require.ensure([], () => r(require('../components/person/card')), 'card')
28 | const set = r => require.ensure([], () => r(require('../components/person/settings')), 'set')
29 | const about = r => require.ensure([], () => r(require('../components/person/about')), 'about')
30 | const confirm = r => require.ensure([], () => r(require('../components/confirm/confirm')), 'confirm')
31 | const order = r => require.ensure([], () => r(require('../components/person/order')), 'order')
32 |
33 | // import login from '../components/login/login'
34 | // import index from '../components/index/index'
35 | // import choseHall from '../components/choseHall/choseHall'
36 | // import doubleColor from '../components/doubleColor/doubleColor'
37 | // import openHall from '../components/openHall/openHall'
38 | // import person from '../components/person/person'
39 | // import recharge from '../components/recharge/recharge'
40 | // import openDetail from '../components/openDetail/openDetail'
41 | // import logs from '../components/logs/logs'
42 | // import userInfo from '../components/person/userinfo'
43 | // import dlt from '../components/dlt/dlt'
44 | // import fc from '../components/fc/fc'
45 | // import plf from '../components/plf/plf'
46 | // import plt from '../components/plt/plt'
47 | // import qlc from '../components/qlc/qlc'
48 | // import qxc from '../components/qxc/qxc'
49 | // import register from '../components/login/register'
50 | // import forget from '../components/login/forget'
51 | // import edit from '../components/login/edit'
52 | // import chargeDes from '../components/recharge/chargeDes'
53 | // import tx from '../components/recharge/tix'
54 | // import txdes from '../components/recharge/tixDes'
55 | // import card from '../components/person/card'
56 | // import set from '../components/person/settings'
57 | // import about from '../components/person/about'
58 | // import confirm from '../components/confirm/confirm'
59 | // import order from '../components/person/order'
60 | Vue.use(Router)
61 |
62 | const router= new Router({
63 | //mode:'history',
64 | routes: [
65 | {
66 | path:'*',//重定向首页
67 | redirect:'/index',
68 | },
69 | {
70 | path:'/login',
71 | component:login,
72 | meta:{index:2}
73 | },
74 | {
75 | path:'/index',
76 | component:index,
77 | meta:{index:1}
78 | },
79 | {
80 | path:'/choseHall',
81 | component:choseHall,
82 | meta:{index:2}
83 | },
84 | {
85 | path:'/dbc',
86 | component:doubleColor,
87 | meta:{index:3}
88 | },
89 | {
90 | path:'/dlt',
91 | component:dlt,
92 | meta:{index:3}
93 | },
94 | {
95 | path:'/fc',
96 | component:fc,
97 | meta:{index:3}
98 | },
99 | {
100 | path:'/plf',
101 | component:plf,
102 | meta:{index:3}
103 | },
104 | {
105 | path:'/plt',
106 | component:plt,
107 | meta:{index:3}
108 | },
109 | {
110 | path:'/qlc',
111 | component:qlc,
112 | meta:{index:3}
113 | },
114 | {
115 | path:'/qxc',
116 | component:qxc,
117 | meta:{index:3}
118 | },
119 | {
120 | path:'/openHall',
121 | component:openHall,
122 | meta:{index:2}
123 | },
124 | {
125 | path:'/openDetail',
126 | component:openDetail,
127 | meta:{index:3}
128 | },
129 | {
130 | path:'/person',
131 | component:person,
132 | meta:{index:2}
133 | },
134 | {
135 | path:'/recharge',
136 | component:recharge,
137 | meta:{index:3}
138 | },
139 | {
140 | path:'/chargeDes',
141 | component:chargeDes,
142 | meta:{index:4}
143 | },
144 | {
145 | path:'/log',
146 | component:logs,
147 | meta:{index:3}
148 | },
149 | {
150 | path:'/usi',
151 | component:userInfo,
152 | meta:{index:3}
153 | },
154 | {
155 | path:'/card',
156 | component:card,
157 | meta:{index:3}
158 | },
159 | {
160 | path:'/set',
161 | component:set,
162 | meta:{index:3}
163 | },
164 | {
165 | path:'/about',
166 | component:about,
167 | meta:{index:4}
168 | },
169 | {
170 | path:'/edit',
171 | component:edit,
172 | meta:{index:4}
173 | },
174 | {
175 | path:'/register',
176 | component:register,
177 | meta:{index:3}
178 | },
179 | {
180 | path:'/forget',
181 | component:forget,
182 | meta:{index:3}
183 | },
184 | {
185 | path:'/tx',
186 | component:tx,
187 | meta:{index:3}
188 | },
189 | {
190 | path:'/order',
191 | component:order,
192 | meta:{index:3}
193 | },
194 | {
195 | path:'/txdes',
196 | component:txdes,
197 | meta:{index:4}
198 | },
199 | {
200 | path:'/confirm',
201 | component:confirm,
202 | meta:{index:4}
203 | }
204 | ]
205 | })
206 | export default router;
--------------------------------------------------------------------------------
/lottery/src/store/action.js:
--------------------------------------------------------------------------------
1 | export default{
2 | login({commit,state}){
3 | //执行登录操作
4 | commit('LOGIN');
5 | },
6 | logout({commit,state}){
7 | commit('LOGOUT')
8 | },
9 | selectDlt({commit,state},dltObj){
10 | commit('DLT',dltObj)
11 | },
12 | clearDlt({commit,state}){
13 | commit('CDLT')
14 | },
15 | delDlt({commit,state},id){
16 | commit('DELDLT',id)
17 | },
18 | selectDbc({commit,state},dbcObj){
19 | commit('DBC',dbcObj)
20 | },
21 | clearDbc({commit,state}){
22 | commit('CDBC')
23 | },
24 | delDbc({commit,state},id){
25 | commit('DELDBC',id);
26 | },
27 | selectFc({commit,state},dbcObj){
28 | commit('FC',dbcObj)
29 | },
30 | clearFc({commit,state}){
31 | commit('CFC')
32 | },
33 | delFc({commit,state},id){
34 | commit('DELFC',id);
35 | },
36 | selectPlt({commit,state},dbcObj){
37 | commit('PLT',dbcObj)
38 | },
39 | clearPlt({commit,state}){
40 | commit('CPLT')
41 | },
42 | delPlt({commit,state},id){
43 | commit('DELPLT',id);
44 | },
45 | selectPlf({commit,state},dbcObj){
46 | commit('PLF',dbcObj)
47 | },
48 | clearPlf({commit,state}){
49 | commit('CPLF')
50 | },
51 | delPlf({commit,state},id){
52 | commit('DELPLF',id);
53 | },
54 | selectQxc({commit,state},dbcObj){
55 | commit('QXC',dbcObj)
56 | },
57 | clearQxc({commit,state}){
58 | commit('CQXC')
59 | },
60 | delQxc({commit,state},id){
61 | commit('DELQXC',id);
62 | },
63 | selectQlc({commit,state},dbcObj){
64 | commit('QLC',dbcObj)
65 | },
66 | clearQlc({commit,state}){
67 | commit('CQLC')
68 | },
69 | delQlc({commit,state},id){
70 | commit('DELQLC',id);
71 | }
72 |
73 | }
74 | //异步逻辑分装action中,设计失误
--------------------------------------------------------------------------------
/lottery/src/store/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Vuex from 'vuex'
3 | import mutations from './mutations'
4 | import actions from './action'
5 | import state from './state'
6 | Vue.use(Vuex)
7 | const store=new Vuex.Store({
8 | //内存数据状态
9 | state,
10 | //与mutation通讯,可以异步操作
11 | actions,
12 | //唯一拥有更改内存数据的接口,此操作为同步
13 | mutations
14 | })
15 | export default store;
16 |
--------------------------------------------------------------------------------
/lottery/src/store/mutationTypes.js:
--------------------------------------------------------------------------------
1 | export const INIT='INIT'
2 | export const UPDATE='UPDATE'
3 | export const LOGIN='LOGIN'
4 | export const LOGOUT='LOGOUT'
5 | export const DLT='DLT'
6 | export const CDLT='CDLT'
7 | export const DELDLT='DELDLT'
8 | export const DBC='DBC'
9 | export const CDBC='CDBC'
10 | export const DELDBC='DELDBC'
11 | export const FC='FC'
12 | export const CFC='CFC'
13 | export const DELFC='DELFC'
14 | export const PLT='PLT'
15 | export const CPLT='CPLT'
16 | export const DELPLT='DELPLT'
17 | export const PLF='PLF'
18 | export const CPLF='CPLF'
19 | export const DELPLF='DELPLF'
20 | export const QXC='QXC'
21 | export const CQXC='CQXC'
22 | export const DELQXC='DELQXC'
23 | export const QLC='QLC'
24 | export const CQLC='CQLC'
25 | export const DELQLC='DELQLC'
26 |
--------------------------------------------------------------------------------
/lottery/src/store/mutations.js:
--------------------------------------------------------------------------------
1 | import config from '../config/config'
2 | import {LOGIN,LOGOUT,DLT,CDLT,DELDLT,DBC,CDBC,DELDBC,FC,
3 | CFC,DELFC,PLT,CPLT,DELPLT,PLF,CPLF,DELPLF,QXC,CQXC,DELQXC,
4 | QLC,CQLC,DELQLC,INIT,UPDATE} from './mutationTypes'
5 | import { stat } from 'fs';
6 | let dlt_id=0,dbc_id=0,fc_id=0,plt_id=0,plf_id=0,qxc_id=0,qlc_id=0;
7 | export default{
8 | //增加UPDATE,INIT同步store中的数据到sessionStorage,防止刷新数据丢失
9 | [UPDATE](state){
10 | sessionStorage.clear()
11 | Object.keys(state).map(v=>{
12 | if(state[v].det){
13 | state[v].det.forEach((item,i)=>{
14 | let name=v+i
15 | sessionStorage.setItem(name,JSON.stringify(item));
16 | });
17 | sessionStorage.setItem(v,state[v].det.length);
18 | }
19 |
20 | })
21 | },
22 | [INIT](state){
23 | console.log('----')
24 | Object.keys(state).map(v=>{
25 | for(let i=0;i{return v.num})
43 | obj.blue=blue.map(v=>{return v.num})
44 | obj.number=obj.red.concat(obj.blue).join(' ')
45 | obj.zhu=zhu
46 | obj.pric=pric
47 | obj.id=dlt_id
48 | state.dlt.det.unshift(obj);
49 | dlt_id++;
50 | },
51 | //清空大乐透
52 | [CDLT](state){
53 | state.dlt.det=[];
54 | },
55 | //删除某一条
56 | [DELDLT](state,{id}){
57 | let index;
58 | state.dlt.det.forEach((v,i)=>{
59 | if(v.id==id){
60 | index=i;
61 | }
62 | })
63 | state.dlt.det.splice(index,1);
64 | },
65 | //双色球
66 | [DBC](state,{red,blue,zhu,pric}){
67 | let obj={}
68 | obj.type=1
69 | obj.red=red.map(v=>{return v.num})
70 | obj.blue=blue.map(v=>{return v.num})
71 | obj.number=obj.red.concat(obj.blue).join(' ')
72 | obj.zhu=zhu
73 | obj.pric=pric
74 | obj.id=dbc_id
75 | state.dbc.det.unshift(obj);
76 | dbc_id++;
77 | },
78 | [CDBC](state){
79 | state.dbc.det=[]
80 | },
81 | [DELDBC](state,{id}){
82 | let index;
83 | state.dbc.det.forEach((v,i)=>{
84 | if(v.id==id){
85 | index=i;
86 | }
87 | })
88 | state.dbc.det.splice(index,1);
89 | },
90 | //福彩
91 | [FC](state,{type,zhu,pric,ge=[],shi=[],bai=[]}){
92 | let obj={}
93 | obj.id=fc_id;
94 | obj.type=type
95 | obj.zhu=zhu
96 | obj.pric=pric
97 | obj.ge=ge
98 | obj.shi=shi
99 | obj.bai=bai
100 | obj.number=[]
101 | if(type==1){
102 | obj.number.push(obj.bai.join(''))
103 | obj.number.push(obj.shi.join(''))
104 | obj.number.push(obj.ge.join(''))
105 | }else{
106 | obj.number=obj.ge
107 | }
108 | obj.number=obj.number.join(' ')
109 | state.fc.det.unshift(obj)
110 | fc_id++
111 | },
112 | [CFC](state){
113 | state.fc.det=[]
114 | },
115 | [DELFC](state,{id}){
116 | let index
117 | state.fc.det.forEach((v,i)=>{
118 | if(v.id==id){
119 | index=i
120 | }
121 | })
122 | state.fc.det.splice(index,1)
123 | },
124 | //排列三
125 | [PLT](state,{type,zhu,pric,ge=[],shi=[],bai=[]}){
126 | let obj={}
127 | obj.id=plt_id;
128 | obj.type=type
129 | obj.zhu=zhu
130 | obj.pric=pric
131 | obj.ge=ge
132 | obj.shi=shi
133 | obj.bai=bai
134 | obj.number=[]
135 | if(type==1){
136 | obj.number.push(obj.bai.join(''))
137 | obj.number.push(obj.shi.join(''))
138 | obj.number.push(obj.ge.join(''))
139 | }else{
140 | obj.number=obj.ge
141 | }
142 | obj.number=obj.number.join(' ')
143 | state.plt.det.unshift(obj)
144 | plt_id++
145 | },
146 | [CPLT](state){
147 | state.plt.det=[]
148 | },
149 | [DELPLT](state,{id}){
150 | let index
151 | state.plt.det.forEach((v,i)=>{
152 | if(v.id==id){
153 | index=i
154 | }
155 | })
156 | state.plt.det.splice(index,1)
157 | },
158 | //排列五
159 | [PLF](state,{wan,qian,bai,shi,ge,pric,zhu}){
160 | let obj={}
161 | obj.wan=wan
162 | obj.qian=qian
163 | obj.bai=bai
164 | obj.shi=shi
165 | obj.ge=ge
166 | obj.type=1
167 | let number=[]
168 | number.push(wan.join(''))
169 | number.push(qian.join(''))
170 | number.push(bai.join(''))
171 | number.push(shi.join(''))
172 | number.push(ge.join(''))
173 | obj.number=number.join(' ')
174 | obj.pric=pric
175 | obj.zhu=zhu
176 | obj.id=plf_id;
177 | state.plf.det.push(obj)
178 | plf_id++;
179 | },
180 | [CPLF](state){
181 | state.plf.det=[]
182 | },
183 | [DELPLF](state,{id}){
184 | let index
185 | state.plf.det.forEach((v,i)=>{
186 | if(v.id==id){
187 | index=i
188 | }
189 | })
190 | state.plf.det.splice(index,1)
191 | },
192 | //七星彩
193 | [QXC](state,{bwan,swan,wan,qian,bai,shi,ge,pric,zhu}){
194 | let obj={}
195 | obj.bwan=bwan
196 | obj.swan=swan
197 | obj.wan=wan
198 | obj.qian=qian
199 | obj.bai=bai
200 | obj.shi=shi
201 | obj.ge=ge
202 | obj.type=1
203 | let number=[]
204 | number.push(bwan.join(''))
205 | number.push(swan.join(''))
206 | number.push(wan.join(''))
207 | number.push(qian.join(''))
208 | number.push(bai.join(''))
209 | number.push(shi.join(''))
210 | number.push(ge.join(''))
211 | obj.number=number.join(' ')
212 | obj.pric=pric
213 | obj.zhu=zhu
214 | obj.id=qxc_id;
215 | state.qxc.det.unshift(obj)
216 | qxc_id++;
217 | },
218 | [CQXC](state){
219 | state.qxc.det=[]
220 | },
221 | [DELQXC](state,{id}){
222 | let index
223 | state.qxc.det.forEach((v,i)=>{
224 | if(v.id==id){
225 | index=i
226 | }
227 | })
228 | state.qxc.det.splice(index,1)
229 | },
230 | [QLC](state,{pric,zhu,nums}){
231 | let obj={}
232 | obj.pric=pric
233 | obj.zhu=zhu
234 | obj.type=1
235 | obj.nums=nums
236 | obj.number=nums.join(' ')
237 | obj.id=qlc_id
238 | state.qlc.det.unshift(obj)
239 | qlc_id++
240 | },
241 | [CQLC](state){
242 | state.qlc.det=[]
243 | },
244 | [DELQLC](state,{id}){
245 | let index
246 | state.qlc.det.forEach((v,i)=>{
247 | if(v.id==id){
248 | index=i;
249 | }
250 | })
251 | state.qlc.det.splice(index,1)
252 | }
253 |
254 | }
--------------------------------------------------------------------------------
/lottery/src/store/state.js:
--------------------------------------------------------------------------------
1 | export default {
2 | isLogin:false,
3 | dlt:{
4 | qi:1,
5 | bei:1,
6 | det:[
7 | // {id:'',red:[],blue:[],zhu:'',pric:'',type:'',number:''}
8 | ]
9 | },
10 | dbc:{
11 | qi:1,
12 | bei:1,
13 | det:[
14 | // {id:'',red:[],blue:[],zhu:'',pric:'',type:'',number:''}
15 | ]
16 | },
17 | //福彩 1直选2组三3组六
18 | fc:{
19 | det:[
20 | //{id:'',number:'',zhu:'',pric:'',type:'',ge:'',shi:'',bai:''}
21 | ]
22 | },
23 | plt:{
24 | det:[
25 | //同福彩
26 | ]
27 | },
28 | //排列五
29 | plf:{
30 | det:[
31 | //{id:'',number:'',zhu,pric:'',type:1,wan,qian,bai,shi,ge}
32 | ]
33 | },
34 | //七星彩
35 | qxc:{
36 | det:[
37 | //{id,type,number,zhu,pric,type:1,bwan,swan,wan,qian,bai,shi,ge}
38 | ]
39 | },
40 | //七乐彩
41 | qlc:{
42 | det:[
43 | //{id,type,number,zhu,pric,nums}
44 | ]
45 | }
46 | }
--------------------------------------------------------------------------------
/lottery/static/data.json:
--------------------------------------------------------------------------------
1 | {"status":200,"message":"\u8fd4\u56de\u7ea2\u5305\u6570\u636e","data":{"id":"1","name":"6.2\u62a2\u7ea2\u5305\u8d62\u9762\u819c","is_end":"0","starttime":"1527754200","failtime":"1529126280","faildtime":163632,"uid":0,"urflag":0,"toplog":[{"mobile":"11111111","arid":"1","uid":"80","price":"36.70","createtime":"2018-06-14 10:24"},{"mobile":"1111111","arid":"1","uid":"2","price":"21.48","createtime":"2018-06-14 10:26"},{"mobile":"11111111","arid":"1","uid":"34","price":"27.04","createtime":"2018-06-14 10:53"},{"mobile":"1111111","arid":"1","uid":"15","price":"76.41","createtime":"2018-06-14 11:02"},{"mobile":"111111","arid":"1","uid":"16","price":"84.94","createtime":"2018-06-14 11:04"},{"mobile":"1111111","arid":"1","uid":"1","price":"88.27","createtime":"2018-06-14 11:17"},{"mobile":"111111111","arid":"1","uid":"131","price":"21.75","createtime":"2018-06-14 11:37"}]}}
--------------------------------------------------------------------------------
/lottery/static/img/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dantyli/Lottery-project/bde909d13f83e2fc5c62bb3f7033e361b09562b4/lottery/static/img/demo.png
--------------------------------------------------------------------------------