diff --git a/FruitsKing-shop/.babelrc b/FruitsKing-shop/.babelrc new file mode 100644 index 0000000..13f0e47 --- /dev/null +++ b/FruitsKing-shop/.babelrc @@ -0,0 +1,14 @@ +{ + "presets": [ + ["env", { "modules": false }], + "stage-2" + ], + "plugins": ["transform-runtime"], + "comments": false, + "env": { + "test": { + "presets": ["env", "stage-2"], + "plugins": [ "istanbul" ] + } + } +} diff --git a/FruitsKing-shop/.editorconfig b/FruitsKing-shop/.editorconfig new file mode 100644 index 0000000..9d08a1a --- /dev/null +++ b/FruitsKing-shop/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/FruitsKing-shop/.gitignore b/FruitsKing-shop/.gitignore new file mode 100644 index 0000000..09552ad --- /dev/null +++ b/FruitsKing-shop/.gitignore @@ -0,0 +1,6 @@ +.DS_Store +node_modules/ +dist/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* diff --git a/FruitsKing-shop/.postcssrc.js b/FruitsKing-shop/.postcssrc.js new file mode 100644 index 0000000..ea9a5ab --- /dev/null +++ b/FruitsKing-shop/.postcssrc.js @@ -0,0 +1,8 @@ +// https://github.com/michael-ciniawsky/postcss-load-config + +module.exports = { + "plugins": { + // to edit target browsers: use "browserlist" field in package.json + "autoprefixer": {} + } +} diff --git a/FruitsKing-shop/README.md b/FruitsKing-shop/README.md new file mode 100644 index 0000000..ec8dd8c --- /dev/null +++ b/FruitsKing-shop/README.md @@ -0,0 +1,21 @@ +# lotour + +> A Vue.js project + +## Build Setup + +``` bash +# install dependencies +npm install + +# serve with hot reload at localhost:8080 +npm run dev + +# build for production with minification +npm run build + +# build for production and view the bundle analyzer report +npm run build --report +``` + +For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader). diff --git a/FruitsKing-shop/build/build.js b/FruitsKing-shop/build/build.js new file mode 100644 index 0000000..6b8add1 --- /dev/null +++ b/FruitsKing-shop/build/build.js @@ -0,0 +1,35 @@ +require('./check-versions')() + +process.env.NODE_ENV = 'production' + +var ora = require('ora') +var rm = require('rimraf') +var path = require('path') +var chalk = require('chalk') +var webpack = require('webpack') +var config = require('../config') +var webpackConfig = require('./webpack.prod.conf') + +var spinner = ora('building for production...') +spinner.start() + +rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { + if (err) throw err + webpack(webpackConfig, function (err, stats) { + spinner.stop() + if (err) throw err + process.stdout.write(stats.toString({ + colors: true, + modules: false, + children: false, + chunks: false, + chunkModules: false + }) + '\n\n') + + console.log(chalk.cyan(' Build complete.\n')) + console.log(chalk.yellow( + ' Tip: built files are meant to be served over an HTTP server.\n' + + ' Opening index.html over file:// won\'t work.\n' + )) + }) +}) diff --git a/FruitsKing-shop/build/check-versions.js b/FruitsKing-shop/build/check-versions.js new file mode 100644 index 0000000..100f3a0 --- /dev/null +++ b/FruitsKing-shop/build/check-versions.js @@ -0,0 +1,48 @@ +var chalk = require('chalk') +var semver = require('semver') +var packageConfig = require('../package.json') +var shell = require('shelljs') +function exec (cmd) { + return require('child_process').execSync(cmd).toString().trim() +} + +var versionRequirements = [ + { + name: 'node', + currentVersion: semver.clean(process.version), + versionRequirement: packageConfig.engines.node + }, +] + +if (shell.which('npm')) { + versionRequirements.push({ + name: 'npm', + currentVersion: exec('npm --version'), + versionRequirement: packageConfig.engines.npm + }) +} + +module.exports = function () { + var warnings = [] + for (var i = 0; i < versionRequirements.length; i++) { + var mod = versionRequirements[i] + if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { + warnings.push(mod.name + ': ' + + chalk.red(mod.currentVersion) + ' should be ' + + chalk.green(mod.versionRequirement) + ) + } + } + + if (warnings.length) { + console.log('') + console.log(chalk.yellow('To use this template, you must update following to modules:')) + console.log() + for (var i = 0; i < warnings.length; i++) { + var warning = warnings[i] + console.log(' ' + warning) + } + console.log() + process.exit(1) + } +} diff --git a/FruitsKing-shop/build/dev-client.js b/FruitsKing-shop/build/dev-client.js new file mode 100644 index 0000000..18aa1e2 --- /dev/null +++ b/FruitsKing-shop/build/dev-client.js @@ -0,0 +1,9 @@ +/* eslint-disable */ +require('eventsource-polyfill') +var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') + +hotClient.subscribe(function (event) { + if (event.action === 'reload') { + window.location.reload() + } +}) diff --git a/FruitsKing-shop/build/dev-server.js b/FruitsKing-shop/build/dev-server.js new file mode 100644 index 0000000..782dc6f --- /dev/null +++ b/FruitsKing-shop/build/dev-server.js @@ -0,0 +1,89 @@ +require('./check-versions')() + +var config = require('../config') +if (!process.env.NODE_ENV) { + process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) +} + +var opn = require('opn') +var path = require('path') +var express = require('express') +var webpack = require('webpack') +var proxyMiddleware = require('http-proxy-middleware') +var webpackConfig = require('./webpack.dev.conf') + +// default port where dev server listens for incoming traffic +var port = process.env.PORT || config.dev.port +// automatically open browser, if not set will be false +var autoOpenBrowser = !!config.dev.autoOpenBrowser +// Define HTTP proxies to your custom API backend +// https://github.com/chimurai/http-proxy-middleware +var proxyTable = config.dev.proxyTable + +var app = express() +var compiler = webpack(webpackConfig) + +var devMiddleware = require('webpack-dev-middleware')(compiler, { + publicPath: webpackConfig.output.publicPath, + quiet: true +}) + +var hotMiddleware = require('webpack-hot-middleware')(compiler, { + log: () => {} +}) +// force page reload when html-webpack-plugin template changes +compiler.plugin('compilation', function (compilation) { + compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { + hotMiddleware.publish({ action: 'reload' }) + cb() + }) +}) + +// proxy api requests +Object.keys(proxyTable).forEach(function (context) { + var options = proxyTable[context] + if (typeof options === 'string') { + options = { target: options } + } + app.use(proxyMiddleware(options.filter || context, options)) +}) + +// handle fallback for HTML5 history API +app.use(require('connect-history-api-fallback')()) + +// serve webpack bundle output +app.use(devMiddleware) + +// enable hot-reload and state-preserving +// compilation error display +app.use(hotMiddleware) + +// serve pure static assets +var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) +app.use(staticPath, express.static('./static')) + +var uri = 'http://localhost:' + port + +var _resolve +var readyPromise = new Promise(resolve => { + _resolve = resolve +}) + +console.log('> Starting dev server...') +devMiddleware.waitUntilValid(() => { + console.log('> Listening at ' + uri + '\n') + // when env is testing, don't need open it + if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') { + opn(uri) + } + _resolve() +}) + +var server = app.listen(port) + +module.exports = { + ready: readyPromise, + close: () => { + server.close() + } +} diff --git a/FruitsKing-shop/build/utils.js b/FruitsKing-shop/build/utils.js new file mode 100644 index 0000000..b1d54b4 --- /dev/null +++ b/FruitsKing-shop/build/utils.js @@ -0,0 +1,71 @@ +var path = require('path') +var config = require('../config') +var ExtractTextPlugin = require('extract-text-webpack-plugin') + +exports.assetsPath = function (_path) { + var assetsSubDirectory = process.env.NODE_ENV === 'production' + ? config.build.assetsSubDirectory + : config.dev.assetsSubDirectory + return path.posix.join(assetsSubDirectory, _path) +} + +exports.cssLoaders = function (options) { + options = options || {} + + var cssLoader = { + loader: 'css-loader', + options: { + minimize: process.env.NODE_ENV === 'production', + sourceMap: options.sourceMap + } + } + + // generate loader string to be used with extract text plugin + function generateLoaders (loader, loaderOptions) { + var loaders = [cssLoader] + if (loader) { + loaders.push({ + loader: loader + '-loader', + options: Object.assign({}, loaderOptions, { + sourceMap: options.sourceMap + }) + }) + } + + // Extract CSS when that option is specified + // (which is the case during production build) + if (options.extract) { + return ExtractTextPlugin.extract({ + use: loaders, + fallback: 'vue-style-loader' + }) + } else { + return ['vue-style-loader'].concat(loaders) + } + } + + // https://vue-loader.vuejs.org/en/configurations/extract-css.html + return { + css: generateLoaders(), + postcss: generateLoaders(), + less: generateLoaders('less'), + sass: generateLoaders('sass', { indentedSyntax: true }), + scss: generateLoaders('sass'), + stylus: generateLoaders('stylus'), + styl: generateLoaders('stylus') + } +} + +// Generate loaders for standalone style files (outside of .vue) +exports.styleLoaders = function (options) { + var output = [] + var loaders = exports.cssLoaders(options) + for (var extension in loaders) { + var loader = loaders[extension] + output.push({ + test: new RegExp('\\.' + extension + '$'), + use: loader + }) + } + return output +} diff --git a/FruitsKing-shop/build/vue-loader.conf.js b/FruitsKing-shop/build/vue-loader.conf.js new file mode 100644 index 0000000..7aee79b --- /dev/null +++ b/FruitsKing-shop/build/vue-loader.conf.js @@ -0,0 +1,12 @@ +var utils = require('./utils') +var config = require('../config') +var isProduction = process.env.NODE_ENV === 'production' + +module.exports = { + loaders: utils.cssLoaders({ + sourceMap: isProduction + ? config.build.productionSourceMap + : config.dev.cssSourceMap, + extract: isProduction + }) +} diff --git a/FruitsKing-shop/build/webpack.base.conf.js b/FruitsKing-shop/build/webpack.base.conf.js new file mode 100644 index 0000000..daa3589 --- /dev/null +++ b/FruitsKing-shop/build/webpack.base.conf.js @@ -0,0 +1,58 @@ +var path = require('path') +var utils = require('./utils') +var config = require('../config') +var vueLoaderConfig = require('./vue-loader.conf') + +function resolve (dir) { + return path.join(__dirname, '..', dir) +} + +module.exports = { + entry: { + app: './src/main.js' + }, + output: { + path: config.build.assetsRoot, + filename: '[name].js', + publicPath: process.env.NODE_ENV === 'production' + ? config.build.assetsPublicPath + : config.dev.assetsPublicPath + }, + resolve: { + extensions: ['.js', '.vue', '.json'], + alias: { + 'vue$': 'vue/dist/vue.esm.js', + '@': resolve('src') + } + }, + module: { + rules: [ + { + test: /\.vue$/, + loader: 'vue-loader', + options: vueLoaderConfig + }, + { + test: /\.js$/, + loader: 'babel-loader', + include: [resolve('src'), resolve('test')] + }, + { + test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('img/[name].[hash:7].[ext]') + } + }, + { + test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('fonts/[name].[hash:7].[ext]') + } + } + ] + } +} diff --git a/FruitsKing-shop/build/webpack.dev.conf.js b/FruitsKing-shop/build/webpack.dev.conf.js new file mode 100644 index 0000000..5470402 --- /dev/null +++ b/FruitsKing-shop/build/webpack.dev.conf.js @@ -0,0 +1,35 @@ +var utils = require('./utils') +var webpack = require('webpack') +var config = require('../config') +var merge = require('webpack-merge') +var baseWebpackConfig = require('./webpack.base.conf') +var HtmlWebpackPlugin = require('html-webpack-plugin') +var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') + +// add hot-reload related code to entry chunks +Object.keys(baseWebpackConfig.entry).forEach(function (name) { + baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) +}) + +module.exports = merge(baseWebpackConfig, { + module: { + rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) + }, + // cheap-module-eval-source-map is faster for development + devtool: '#cheap-module-eval-source-map', + plugins: [ + new webpack.DefinePlugin({ + 'process.env': config.dev.env + }), + // https://github.com/glenjamin/webpack-hot-middleware#installation--usage + new webpack.HotModuleReplacementPlugin(), + new webpack.NoEmitOnErrorsPlugin(), + // https://github.com/ampedandwired/html-webpack-plugin + new HtmlWebpackPlugin({ + filename: 'index.html', + template: 'index.html', + inject: true + }), + new FriendlyErrorsPlugin() + ] +}) diff --git a/FruitsKing-shop/build/webpack.prod.conf.js b/FruitsKing-shop/build/webpack.prod.conf.js new file mode 100644 index 0000000..da44b65 --- /dev/null +++ b/FruitsKing-shop/build/webpack.prod.conf.js @@ -0,0 +1,120 @@ +var path = require('path') +var utils = require('./utils') +var webpack = require('webpack') +var config = require('../config') +var merge = require('webpack-merge') +var baseWebpackConfig = require('./webpack.base.conf') +var CopyWebpackPlugin = require('copy-webpack-plugin') +var HtmlWebpackPlugin = require('html-webpack-plugin') +var ExtractTextPlugin = require('extract-text-webpack-plugin') +var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') + +var env = config.build.env + +var webpackConfig = merge(baseWebpackConfig, { + module: { + rules: utils.styleLoaders({ + sourceMap: config.build.productionSourceMap, + extract: true + }) + }, + devtool: config.build.productionSourceMap ? '#source-map' : false, + output: { + path: config.build.assetsRoot, + filename: utils.assetsPath('js/[name].[chunkhash].js'), + chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') + }, + plugins: [ + // http://vuejs.github.io/vue-loader/en/workflow/production.html + new webpack.DefinePlugin({ + 'process.env': env + }), + new webpack.optimize.UglifyJsPlugin({ + compress: { + warnings: false + }, + sourceMap: true + }), + // extract css into its own file + new ExtractTextPlugin({ + filename: utils.assetsPath('css/[name].[contenthash].css') + }), + // Compress extracted CSS. We are using this plugin so that possible + // duplicated CSS from different components can be deduped. + new OptimizeCSSPlugin({ + cssProcessorOptions: { + safe: true + } + }), + // generate dist index.html with correct asset hash for caching. + // you can customize output by editing /index.html + // see https://github.com/ampedandwired/html-webpack-plugin + new HtmlWebpackPlugin({ + filename: config.build.index, + template: 'index.html', + inject: true, + minify: { + removeComments: true, + collapseWhitespace: true, + removeAttributeQuotes: true + // more options: + // https://github.com/kangax/html-minifier#options-quick-reference + }, + // necessary to consistently work with multiple chunks via CommonsChunkPlugin + chunksSortMode: 'dependency' + }), + // split vendor js into its own file + new webpack.optimize.CommonsChunkPlugin({ + name: 'vendor', + minChunks: function (module, count) { + // any required modules inside node_modules are extracted to vendor + return ( + module.resource && + /\.js$/.test(module.resource) && + module.resource.indexOf( + path.join(__dirname, '../node_modules') + ) === 0 + ) + } + }), + // extract webpack runtime and module manifest to its own file in order to + // prevent vendor hash from being updated whenever app bundle is updated + new webpack.optimize.CommonsChunkPlugin({ + name: 'manifest', + chunks: ['vendor'] + }), + // copy custom static assets + new CopyWebpackPlugin([ + { + from: path.resolve(__dirname, '../static'), + to: config.build.assetsSubDirectory, + ignore: ['.*'] + } + ]) + ] +}) + +if (config.build.productionGzip) { + var CompressionWebpackPlugin = require('compression-webpack-plugin') + + webpackConfig.plugins.push( + new CompressionWebpackPlugin({ + asset: '[path].gz[query]', + algorithm: 'gzip', + test: new RegExp( + '\\.(' + + config.build.productionGzipExtensions.join('|') + + ')$' + ), + threshold: 10240, + minRatio: 0.8 + }) + ) +} + +if (config.build.bundleAnalyzerReport) { + var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin + webpackConfig.plugins.push(new BundleAnalyzerPlugin()) +} + +module.exports = webpackConfig diff --git a/FruitsKing-shop/config/dev.env.js b/FruitsKing-shop/config/dev.env.js new file mode 100644 index 0000000..efead7c --- /dev/null +++ b/FruitsKing-shop/config/dev.env.js @@ -0,0 +1,6 @@ +var merge = require('webpack-merge') +var prodEnv = require('./prod.env') + +module.exports = merge(prodEnv, { + NODE_ENV: '"development"' +}) diff --git a/FruitsKing-shop/config/index.js b/FruitsKing-shop/config/index.js new file mode 100644 index 0000000..196da1f --- /dev/null +++ b/FruitsKing-shop/config/index.js @@ -0,0 +1,38 @@ +// see http://vuejs-templates.github.io/webpack for documentation. +var path = require('path') + +module.exports = { + build: { + env: require('./prod.env'), + index: path.resolve(__dirname, '../dist/index.html'), + assetsRoot: path.resolve(__dirname, '../dist'), + assetsSubDirectory: 'static', + assetsPublicPath: '/', + productionSourceMap: true, + // Gzip off by default as many popular static hosts such as + // Surge or Netlify already gzip all static assets for you. + // Before setting to `true`, make sure to: + // npm install --save-dev compression-webpack-plugin + productionGzip: false, + productionGzipExtensions: ['js', 'css'], + // Run the build command with an extra argument to + // View the bundle analyzer report after build finishes: + // `npm run build --report` + // Set to `true` or `false` to always turn it on or off + bundleAnalyzerReport: process.env.npm_config_report + }, + dev: { + env: require('./dev.env'), + port: 8080, + autoOpenBrowser: true, + assetsSubDirectory: 'static', + assetsPublicPath: '/', + proxyTable: {}, + // CSS Sourcemaps off by default because relative paths are "buggy" + // with this option, according to the CSS-Loader README + // (https://github.com/webpack/css-loader#sourcemaps) + // In our experience, they generally work as expected, + // just be aware of this issue when enabling this option. + cssSourceMap: false + } +} diff --git a/FruitsKing-shop/config/prod.env.js b/FruitsKing-shop/config/prod.env.js new file mode 100644 index 0000000..773d263 --- /dev/null +++ b/FruitsKing-shop/config/prod.env.js @@ -0,0 +1,3 @@ +module.exports = { + NODE_ENV: '"production"' +} diff --git a/FruitsKing-shop/index.html b/FruitsKing-shop/index.html new file mode 100644 index 0000000..fd42594 --- /dev/null +++ b/FruitsKing-shop/index.html @@ -0,0 +1,11 @@ + + + + + + lotour + + +
+ + diff --git a/FruitsKing-shop/mock/db.json b/FruitsKing-shop/mock/db.json new file mode 100644 index 0000000..e876045 --- /dev/null +++ b/FruitsKing-shop/mock/db.json @@ -0,0 +1,1024 @@ +{ + "home":{ + "home-bannerList": [ + { "img":"static/images/1437127703767483148.jpg" ,"href":"#"}, + { "img":"static/images/1458626045993660466.jpg" ,"href":"#"}, + { "img":"static/images/1477564056308455138.jpg" ,"href":"#"}, + { "img":"static/images/1478049435080458669.jpg" ,"href":"#"}, + { "img":"static/images/1483493150974430666.jpg" ,"href":"#"} + ], + "region-rows": [ + {"img":"static/images/icon_indexn_05.png","title":"快捷订货" }, + {"img":"static/images/icon_indexn_04.png","title":"帮助中心" }, + {"img":"static/images/icon_indexn_11.png","title":"新品上架" }, + {"img":"static/images/icon_indexn_17.png","title":"常买清单" }, + {"img":"static/images/icon_indexn_12.gif","title":"热卖商品" }, + {"img":"static/images/icon_indexn_13.gif","title":"精品推荐" }, + {"img":"static/images/icon_indexn_15.gif","title":"活动列表" }, + {"img":"static/images/icon_indexn_16.gif","title":"超值礼包" } + ], + "items-block":[ + { + "header-title":"网站动态", + "more":"#", + "type":"scroll", + "content":[ + { + "title":"清明节放假通知", + "href":"#" + }, + { + "title":"农夫山泉550ml陈列活动通知", + "href":"#" + }, + { + "title":"口味王真假奖票辨别", + "href":"#" + } + ], + "item_tags":[] + }, + { + "header-title":"", + "more":"", + "type":"leftOneRightTwo", + "content":[ + { + "img":"static/images/1462619616956655497.gif", + "href":"#" + }, + { + "img":"static/images/1486805011989460534.jpg", + "href":"#" + }, + { + "img":"static/images/1484390186132042917.gif", + "href":"#" + } + ], + "item_tags":[] + }, + { + "header-title":"", + "more":"", + "type":"ImgOnly", + "content":[ + { + "img":"static/images/1459236479470758622.jpg", + "href":"#" + } + ], + "item_tags":[] + }, + { + "header-title":"", + "more":"", + "type":"focusImg", + "content":[ + { + "img":"static/images/1488600884050221958.jpg", + "href":"#" + }, + { + "img":"static/images/1488617421735087927.jpg", + "href":"#" + } + ], + "item_tags":[] + }, + { + "header-title":"家具用品", + "more":"#", + "type":"SixImages", + "content":[ + { + "id":"12", + "img":"static/images/5561_thumb_G_1487926237170.jpg", + "title":"果亲王至尊蓝点毛巾/盒果亲王至尊蓝点毛巾/盒", + "price":"2.78", + "beishu":"1", + "goodsItem_size":"38-19/双", + "href":"#" + }, + { + "id":"13", + "img":"static/images/5328_thumb_G_1470198279391.jpg", + "title":"果亲王至尊蓝点毛巾/盒", + "price":"2.78", + "beishu":"3", + "goodsItem_size":"38-19/双", + "href":"#" + }, + { + "id":"14", + "img":"static/images/3979_thumb_G_1450679513405.jpg", + "title":"果亲王至尊蓝点毛巾/盒", + "price":"2.78", + "beishu":"2", + "goodsItem_size":"38-19/双", + "href":"#" + }, + { + "id":"15", + "img":"static/images/3979_thumb_G_1450679513405.jpg", + "title":"果亲王至尊蓝点毛巾/盒", + "price":"2.78", + "beishu":"4", + "goodsItem_size":"38-19/双", + "href":"#" + }, + { + "id":"16", + "img":"static/images/3979_thumb_G_1450679513405.jpg", + "title":"果亲王至尊蓝点毛巾/盒", + "price":"2.78", + "beishu":"2", + "goodsItem_size":"38-19/双", + "href":"#" + }, + { + "id":"17", + "img":"static/images/3979_thumb_G_1450679513405.jpg", + "title":"果亲王至尊蓝点毛巾/盒", + "price":"2.78", + "beishu":"1", + "goodsItem_size":"38-19/双", + "href":"#" + } + ], + "item_tags":[ + {"title":"家用百货","href":"#"}, + {"title":"家用杂货","href":"#"}, + {"title":"针织用品","href":"#"}, + {"title":"清洁工具","href":"#"}, + {"title":"一次性用品","href":"#"}, + {"title":"衣物晾晒","href":"#"} + ] + }, + { + "header-title":"", + "more":"", + "type":"focusImg", + "content":[ + { + "img":"static/images/1488601256339267706.jpg", + "href":"#" + }, + { + "img":"static/images/1488601070553504775.jpg", + "href":"#" + } + ], + "item_tags":[] + }, + { + "header-title":"饮料酒水", + "more":"#", + "type":"SixImages", + "content":[ + { + "id":"21", + "img":"static/images/4926_thumb_G_1463726560129.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"3", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"22", + "img":"static/images/980_thumb_G_1461753733955.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"3", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"23", + "img":"static/images/1785_thumb_G_1434449028094.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"2", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"24", + "img":"static/images/971_thumb_G_1490253732394.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"1", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"25", + "img":"static/images/614_thumb_G_1431156257892.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"2", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"26", + "img":"static/images/609_thumb_G_1438412812688.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"2", + "goodsItem_size":"330ml*24/箱", + "href":"#" + } + ], + "item_tags":[ + {"title":"啤酒","href":"#"}, + {"title":"饮用水","href":"#"}, + {"title":"碳酸饮料","href":"#"}, + {"title":"液态牛奶","href":"#"}, + {"title":"机能饮料","href":"#"}, + {"title":"茶饮料","href":"#"}, + {"title":"果汁饮料","href":"#"}, + {"title":"八宝咖啡","href":"#"} + ] + }, + { + "header-title":"", + "more":"", + "type":"focusImg", + "content":[ + { + "img":"static/images/1488601403512891104.jpg", + "href":"#" + }, + { + "img":"static/images/1488601310196640140.jpg", + "href":"#" + } + ], + "item_tags":[] + }, + { + "header-title":"茗茶美酒", + "more":"#", + "type":"SixImages", + "content":[ + { + "id":"31", + "img":"static/images/1256_thumb_G_1438667407797.jpg", + "title":"TJ牛栏山陈酿42度265ml/瓶", + "price":"2.78", + "beishu":"3", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"32", + "img":"static/images/1263_thumb_G_1438667237900.jpg", + "title":"TJ牛栏山陈酿42度265ml/瓶", + "price":"2.78", + "beishu":"3", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"33", + "img":"static/images/3363_thumb_G_1449284678840.jpg", + "title":"TJ牛栏山陈酿42度265ml/瓶", + "price":"2.78", + "beishu":"1", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"34", + "img":"static/images/5021_thumb_G_1465547816620.jpg", + "title":"TJ牛栏山陈酿42度265ml/瓶", + "price":"2.78", + "beishu":"3", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"35", + "img":"static/images/5421_thumb_G_1473996969542.jpg", + "title":"TJ牛栏山陈酿42度265ml/瓶", + "price":"2.78", + "beishu":"2", + "goodsItem_size":"330ml*24/箱", + "href":"#" + }, + { + "id":"36", + "img":"static/images/5328_thumb_G_1470198279391.jpg", + "title":"T蓝月亮深层洁净洗衣液自然清香(瓶装)1kg/瓶", + "price":"2.78", + "beishu":"4", + "goodsItem_size":"330ml*24/箱", + "href":"#" + } + ], + "item_tags":[ + {"title":"葡萄酒","href":"#"}, + {"title":"白酒","href":"#"}, + {"title":"洋酒","href":"#"}, + {"title":"茗茶","href":"#"}, + {"title":"烟辅用品","href":"#"} + ] + } + ] + }, + "catalog":{ + "title":"所有分类页", + "content":[ + { + "id":0, + "title":"美容洗护", + "img":"static/images/1457430184616793730.jpg", + "choose": + [ + { + "tit":"洗护用品", + "goodsType":[ + { + "msg":"洗发露", + "href":"#" + }, + { + "msg":"护发素", + "href":"#" + }, + { + "msg":"沐浴露", + "href":"#" + }, + { + "msg":"染发剂", + "href":"#" + }, + { + "msg":"洗手液", + "href":"#" + }, + { + "msg":"香皂", + "href":"#" + }, + { + "msg":"发膜", + "href":"#" + } + ] + }, + { + "tit":"口腔护理", + "goodsType":[ + { + "msg":"漱口水", + "href":"#" + }, + { + "msg":"牙线", + "href":"#" + }, + { + "msg":"牙膏", + "href":"#" + }, + { + "msg":"儿童牙刷", + "href":"#" + }, + { + "msg":"儿童牙膏", + "href":"#" + }, + { + "msg":"牙刷", + "href":"#" + }, + { + "msg":"牙签", + "href":"#" + }, + { + "msg":"牙刷", + "href":"#" + }, + { + "msg":"牙签", + "href":"#" + } + ] + }, + { + "tit":"女性护理", + "goodsType":[ + { + "msg":"日用卫生巾", + "href":"#" + }, + { + "msg":"夜用卫生巾", + "href":"#" + }, + { + "msg":"护垫", + "href":"#" + }, + { + "msg":"日夜用卫生巾", + "href":"#" + }, + { + "msg":"护理液", + "href":"#" + } + ] + }, + { + "tit":"成人用品", + "goodsType":[ + { + "msg":"避孕套", + "href":"#" + }, + { + "msg":"润滑液", + "href":"#" + }, + { + "msg":"验孕系列", + "href":"#" + } + ] + }, + { + "tit":"美妆用品", + "goodsType":[ + { + "msg":"剃须护理", + "href":"#" + }, + { + "msg":"洗面奶", + "href":"#" + }, + { + "msg":"美眼贴", + "href":"#" + }, + { + "msg":"压缩面膜", + "href":"#" + }, + { + "msg":"润唇膏", + "href":"#" + }, + { + "msg":"护肤霜", + "href":"#" + }, + { + "msg":"压缩面膜", + "href":"#" + }, + { + "msg":"润唇膏", + "href":"#" + }, + { + "msg":"护肤霜", + "href":"#" + } + ] + }, + { + "tit":"美妆用具", + "goodsType":[ + { + "msg":"暗疮针", + "href":"#" + }, + { + "msg":"梳子", + "href":"#" + }, + { + "msg":"化妆刷", + "href":"#" + }, + { + "msg":"睫毛夹", + "href":"#" + }, + { + "msg":"美甲工具", + "href":"#" + }, + { + "msg":"卷发器", + "href":"#" + }, + { + "msg":"修眉工具", + "href":"#" + }, + { + "msg":"喷瓶", + "href":"#" + }, + { + "msg":"修脚工具", + "href":"#" + }, + { + "msg":"镜子", + "href":"#" + } + ] + } + ] + }, + { + "title":"家庭清洁", + "id":1, + "img":"static/images/1457401660514371540.jpg", + "choose": + [ + { + "tit":"洗涤用品", + "goodsType":[ + { + "msg":"洗发露", + "href":"#" + }, + { + "msg":"护发素", + "href":"#" + }, + { + "msg":"沐浴露", + "href":"#" + }, + { + "msg":"染发剂", + "href":"#" + }, + { + "msg":"洗手液", + "href":"#" + }, + { + "msg":"香皂", + "href":"#" + }, + { + "msg":"发膜", + "href":"#" + } + ] + }, + { + "tit":"口腔护理", + "goodsType":[ + { + "msg":"漱口水", + "href":"#" + }, + { + "msg":"牙线", + "href":"#" + }, + { + "msg":"牙膏", + "href":"#" + }, + { + "msg":"儿童牙刷", + "href":"#" + }, + { + "msg":"儿童牙膏", + "href":"#" + }, + { + "msg":"牙刷", + "href":"#" + }, + { + "msg":"牙签", + "href":"#" + }, + { + "msg":"牙刷", + "href":"#" + }, + { + "msg":"牙签", + "href":"#" + } + ] + }, + { + "tit":"女性护理", + "goodsType":[ + { + "msg":"日用卫生巾", + "href":"#" + }, + { + "msg":"夜用卫生巾", + "href":"#" + }, + { + "msg":"护垫", + "href":"#" + }, + { + "msg":"日夜用卫生巾", + "href":"#" + }, + { + "msg":"护理液", + "href":"#" + } + ] + }, + { + "tit":"成人用品", + "goodsType":[ + { + "msg":"避孕套", + "href":"#" + }, + { + "msg":"润滑液", + "href":"#" + }, + { + "msg":"验孕系列", + "href":"#" + } + ] + }, + { + "tit":"美妆用品", + "goodsType":[ + { + "msg":"剃须护理", + "href":"#" + }, + { + "msg":"洗面奶", + "href":"#" + }, + { + "msg":"美眼贴", + "href":"#" + }, + { + "msg":"压缩面膜", + "href":"#" + }, + { + "msg":"润唇膏", + "href":"#" + }, + { + "msg":"护肤霜", + "href":"#" + }, + { + "msg":"压缩面膜", + "href":"#" + }, + { + "msg":"润唇膏", + "href":"#" + }, + { + "msg":"护肤霜", + "href":"#" + } + ] + }, + { + "tit":"美妆用具", + "goodsType":[ + { + "msg":"暗疮针", + "href":"#" + }, + { + "msg":"梳子", + "href":"#" + }, + { + "msg":"化妆刷", + "href":"#" + }, + { + "msg":"睫毛夹", + "href":"#" + }, + { + "msg":"美甲工具", + "href":"#" + }, + { + "msg":"卷发器", + "href":"#" + }, + { + "msg":"修眉工具", + "href":"#" + }, + { + "msg":"喷瓶", + "href":"#" + }, + { + "msg":"修脚工具", + "href":"#" + }, + { + "msg":"镜子", + "href":"#" + } + ] + } + ] + }, + { + "id":2, + "title":"家居用品", + "img":"static/images/1457430184616793730.jpg", + "choose": + [ + { + "tit":"运动杯", + "goodsType":[ + { + "msg":"洗发露", + "href":"#" + }, + { + "msg":"护发素", + "href":"#" + }, + { + "msg":"沐浴露", + "href":"#" + }, + { + "msg":"染发剂", + "href":"#" + }, + { + "msg":"洗手液", + "href":"#" + }, + { + "msg":"香皂", + "href":"#" + }, + { + "msg":"发膜", + "href":"#" + } + ] + }, + { + "tit":"口腔护理", + "goodsType":[ + { + "msg":"漱口水", + "href":"#" + }, + { + "msg":"牙线", + "href":"#" + }, + { + "msg":"牙膏", + "href":"#" + }, + { + "msg":"儿童牙刷", + "href":"#" + }, + { + "msg":"儿童牙膏", + "href":"#" + }, + { + "msg":"牙刷", + "href":"#" + }, + { + "msg":"牙签", + "href":"#" + }, + { + "msg":"牙刷", + "href":"#" + }, + { + "msg":"牙签", + "href":"#" + } + ] + }, + { + "tit":"女性护理", + "goodsType":[ + { + "msg":"日用卫生巾", + "href":"#" + }, + { + "msg":"夜用卫生巾", + "href":"#" + }, + { + "msg":"护垫", + "href":"#" + }, + { + "msg":"日夜用卫生巾", + "href":"#" + }, + { + "msg":"护理液", + "href":"#" + } + ] + }, + { + "tit":"成人用品", + "goodsType":[ + { + "msg":"避孕套", + "href":"#" + }, + { + "msg":"润滑液", + "href":"#" + }, + { + "msg":"验孕系列", + "href":"#" + } + ] + }, + { + "tit":"美妆用品", + "goodsType":[ + { + "msg":"剃须护理", + "href":"#" + }, + { + "msg":"洗面奶", + "href":"#" + }, + { + "msg":"美眼贴", + "href":"#" + }, + { + "msg":"压缩面膜", + "href":"#" + }, + { + "msg":"润唇膏", + "href":"#" + }, + { + "msg":"护肤霜", + "href":"#" + }, + { + "msg":"压缩面膜", + "href":"#" + }, + { + "msg":"润唇膏", + "href":"#" + }, + { + "msg":"护肤霜", + "href":"#" + } + ] + }, + { + "tit":"美妆用具", + "goodsType":[ + { + "msg":"暗疮针", + "href":"#" + }, + { + "msg":"梳子", + "href":"#" + }, + { + "msg":"化妆刷", + "href":"#" + }, + { + "msg":"睫毛夹", + "href":"#" + }, + { + "msg":"美甲工具", + "href":"#" + }, + { + "msg":"卷发器", + "href":"#" + }, + { + "msg":"修眉工具", + "href":"#" + }, + { + "msg":"喷瓶", + "href":"#" + }, + { + "msg":"修脚工具", + "href":"#" + }, + { + "msg":"镜子", + "href":"#" + } + ] + } + ] + } + ] + }, + "searchBox":[ + { + "tit":"安全套", + "href":"#" + }, + { + "tit":"洗衣", + "href":"#" + }, + { + "tit":"洗发", + "href":"#" + }, + { + "tit":"手套", + "href":"#" + }, + { + "tit":"鞋", + "href":"#" + }, + { + "tit":"袜", + "href":"#" + }, + { + "tit":"裤", + "href":"#" + }, + { + "tit":"晨光", + "href":"#" + }, + { + "tit":"卫生巾", + "href":"#" + }, + { + "tit":"纸巾", + "href":"#" + }, + { + "tit":"手机", + "href":"#" + }, + { + "tit":"毛巾", + "href":"#" + }, + { + "tit":"南北特", + "href":"#" + }, + { + "tit":"无穷", + "href":"#" + } + ] +} \ No newline at end of file diff --git a/FruitsKing-shop/package.json b/FruitsKing-shop/package.json new file mode 100644 index 0000000..eb9dc21 --- /dev/null +++ b/FruitsKing-shop/package.json @@ -0,0 +1,70 @@ +{ + "name": "lotour", + "version": "1.0.0", + "description": "A Vue.js project", + "author": "laofoye1204 <402948498@qq.com>", + "private": true, + "scripts": { + "dev": "node build/dev-server.js", + "start": "node build/dev-server.js", + "build": "node build/build.js", + "mock": "json-server --watch mock/db.json", + "mockdev": "npm run mock & npm run dev" + }, + "dependencies": { + "vue": "^2.2.2", + "vue-router": "^2.3.0" + }, + "devDependencies": { + "autoprefixer": "^6.7.2", + "babel-core": "^6.22.1", + "babel-loader": "^6.2.10", + "babel-plugin-transform-runtime": "^6.22.0", + "babel-preset-env": "^1.2.1", + "babel-preset-stage-2": "^6.22.0", + "babel-register": "^6.22.0", + "chalk": "^1.1.3", + "connect-history-api-fallback": "^1.3.0", + "copy-webpack-plugin": "^4.0.1", + "css-loader": "^0.26.1", + "eventsource-polyfill": "^0.9.6", + "express": "^4.14.1", + "extract-text-webpack-plugin": "^2.0.0", + "file-loader": "^0.10.0", + "friendly-errors-webpack-plugin": "^1.1.3", + "html-webpack-plugin": "^2.28.0", + "http-proxy-middleware": "^0.17.3", + "json-server": "^0.9.6", + "less": "^2.7.2", + "less-loader": "^3.0.0", + "opn": "^4.0.2", + "optimize-css-assets-webpack-plugin": "^1.3.0", + "ora": "^1.1.0", + "rimraf": "^2.6.0", + "semver": "^5.3.0", + "shelljs": "^0.7.6", + "style-loader": "^0.16.1", + "url-loader": "^0.5.8", + "vue-awesome-swiper": "^2.4.0", + "vue-lazyload": "^1.0.3", + "vue-loader": "^11.1.4", + "vue-resource": "^1.3.1", + "vue-style-loader": "^2.0.0", + "vue-template-compiler": "^2.2.4", + "vuex": "^2.3.0", + "webpack": "^2.2.1", + "webpack-bundle-analyzer": "^2.2.1", + "webpack-dev-middleware": "^1.10.0", + "webpack-hot-middleware": "^2.16.1", + "webpack-merge": "^2.6.1" + }, + "engines": { + "node": ">= 4.0.0", + "npm": ">= 3.0.0" + }, + "browserslist": [ + "> 1%", + "last 2 versions", + "not ie <= 8" + ] +} diff --git a/FruitsKing-shop/src/App.vue b/FruitsKing-shop/src/App.vue new file mode 100644 index 0000000..16e1637 --- /dev/null +++ b/FruitsKing-shop/src/App.vue @@ -0,0 +1,89 @@ + + + + diff --git a/FruitsKing-shop/src/assets/css/icon.css b/FruitsKing-shop/src/assets/css/icon.css new file mode 100644 index 0000000..e69de29 diff --git a/FruitsKing-shop/src/assets/css/reset.css b/FruitsKing-shop/src/assets/css/reset.css new file mode 100644 index 0000000..3615d55 --- /dev/null +++ b/FruitsKing-shop/src/assets/css/reset.css @@ -0,0 +1,54 @@ +/* CSS reset */ +html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { + margin:0; + padding:0; +} +*,*:after,*:before{ + -webkit-box-sizing:border-box; +} +body{ + font-family: "Helvetica Neue", Helvetica, STHeiTi, sans-serif; +} +table { + border-collapse:collapse; + border-spacing:0; +} +fieldset,img { + border:0; +} +address,caption,cite,code,dfn,th,var { + font-style:normal; + font-weight:normal; +} +ol,ul { + list-style:none; +} +caption,th { + text-align:left; +} +h1,h2,h3,h4,h5,h6 { + font-size:100%; + font-weight:normal; +} +abbr,acronym { border:0; +} +a{ + text-decoration:none; +} + +/* 解决兼容而加的样式 */ +a, img { + -webkit-touch-callout: none; /*禁止长按链接与图片弹出菜单*/} + +html, body { + -webkit-user-select: none; /*禁止选中文本*/ + -webkit-text-size-adjust: 100%;// + user-select: none; +} + +button,input,optgroup,select,textarea { + -webkit-appearance:none; /*去掉webkit默认的表单样式*/ +} + +a,button,input,optgroup,select,textarea { + -webkit-tap-highlight-color:rgba(0,0,0,0); outline:none;/*去掉a、input和button点击时的蓝色外边框和灰色半透明背景*/} \ No newline at end of file diff --git a/FruitsKing-shop/src/components/base/pro-item.vue b/FruitsKing-shop/src/components/base/pro-item.vue new file mode 100644 index 0000000..38458ba --- /dev/null +++ b/FruitsKing-shop/src/components/base/pro-item.vue @@ -0,0 +1,97 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/base/swiper.vue b/FruitsKing-shop/src/components/base/swiper.vue new file mode 100644 index 0000000..44012ce --- /dev/null +++ b/FruitsKing-shop/src/components/base/swiper.vue @@ -0,0 +1,35 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/cart/cart.vue b/FruitsKing-shop/src/components/cart/cart.vue new file mode 100644 index 0000000..7348cd8 --- /dev/null +++ b/FruitsKing-shop/src/components/cart/cart.vue @@ -0,0 +1,266 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/catalog/catalog.vue b/FruitsKing-shop/src/components/catalog/catalog.vue new file mode 100644 index 0000000..06638c7 --- /dev/null +++ b/FruitsKing-shop/src/components/catalog/catalog.vue @@ -0,0 +1,132 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/catalog/catalogChild.vue b/FruitsKing-shop/src/components/catalog/catalogChild.vue new file mode 100644 index 0000000..1c30d1d --- /dev/null +++ b/FruitsKing-shop/src/components/catalog/catalogChild.vue @@ -0,0 +1,72 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/detail/detail.vue b/FruitsKing-shop/src/components/detail/detail.vue new file mode 100644 index 0000000..730736c --- /dev/null +++ b/FruitsKing-shop/src/components/detail/detail.vue @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/footer/footer.vue b/FruitsKing-shop/src/components/footer/footer.vue new file mode 100644 index 0000000..d12b0b9 --- /dev/null +++ b/FruitsKing-shop/src/components/footer/footer.vue @@ -0,0 +1,98 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/header/header.vue b/FruitsKing-shop/src/components/header/header.vue new file mode 100644 index 0000000..464ce2e --- /dev/null +++ b/FruitsKing-shop/src/components/header/header.vue @@ -0,0 +1,192 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/home/LeftOneRightTwo.vue b/FruitsKing-shop/src/components/home/LeftOneRightTwo.vue new file mode 100644 index 0000000..9b45e31 --- /dev/null +++ b/FruitsKing-shop/src/components/home/LeftOneRightTwo.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/home/content-header.vue b/FruitsKing-shop/src/components/home/content-header.vue new file mode 100644 index 0000000..2d239a4 --- /dev/null +++ b/FruitsKing-shop/src/components/home/content-header.vue @@ -0,0 +1,58 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/home/home.vue b/FruitsKing-shop/src/components/home/home.vue new file mode 100644 index 0000000..792e462 --- /dev/null +++ b/FruitsKing-shop/src/components/home/home.vue @@ -0,0 +1,200 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/home/imgOnly.vue b/FruitsKing-shop/src/components/home/imgOnly.vue new file mode 100644 index 0000000..2bbe676 --- /dev/null +++ b/FruitsKing-shop/src/components/home/imgOnly.vue @@ -0,0 +1,41 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/home/scroll.vue b/FruitsKing-shop/src/components/home/scroll.vue new file mode 100644 index 0000000..ca6fbfd --- /dev/null +++ b/FruitsKing-shop/src/components/home/scroll.vue @@ -0,0 +1,73 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/search/search.vue b/FruitsKing-shop/src/components/search/search.vue new file mode 100644 index 0000000..2a1d7e0 --- /dev/null +++ b/FruitsKing-shop/src/components/search/search.vue @@ -0,0 +1,96 @@ + + + diff --git a/FruitsKing-shop/src/components/user/logIn.vue b/FruitsKing-shop/src/components/user/logIn.vue new file mode 100644 index 0000000..17124d8 --- /dev/null +++ b/FruitsKing-shop/src/components/user/logIn.vue @@ -0,0 +1,97 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/user/user.vue b/FruitsKing-shop/src/components/user/user.vue new file mode 100644 index 0000000..be542e4 --- /dev/null +++ b/FruitsKing-shop/src/components/user/user.vue @@ -0,0 +1,61 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/components/user/userCenter.vue b/FruitsKing-shop/src/components/user/userCenter.vue new file mode 100644 index 0000000..55addde --- /dev/null +++ b/FruitsKing-shop/src/components/user/userCenter.vue @@ -0,0 +1,26 @@ + + + \ No newline at end of file diff --git a/FruitsKing-shop/src/img/1477564056308455138.jpg b/FruitsKing-shop/src/img/1477564056308455138.jpg new file mode 100644 index 0000000..59fa4d4 Binary files /dev/null and b/FruitsKing-shop/src/img/1477564056308455138.jpg differ diff --git a/FruitsKing-shop/src/main.js b/FruitsKing-shop/src/main.js new file mode 100644 index 0000000..ab8a6bc --- /dev/null +++ b/FruitsKing-shop/src/main.js @@ -0,0 +1,111 @@ +// The Vue build version to load with the `import` command +// (runtime-only or standalone) has been set in webpack.base.conf with an alias. +import Vue from 'vue' +import App from './App' +import router from './router' +import VueLazyload from 'vue-lazyload' +import VueAwesomeSwiper from 'vue-awesome-swiper' +import VueResource from 'vue-resource' +import Vuex from 'vuex' +Vue.config.productionTip = false +Vue.use(VueLazyload); + +Vue.use(VueLazyload, { + preLoad: 1.3, + loading:"static/images/load.gif", + error:"static/images/error.jpg", + attempt: 1 +}) + +Vue.use(VueAwesomeSwiper);//全局绑定 +Vue.use(Vuex); +Vue.use(VueResource); + +const store=new Vuex.Store({ + state:{ + loadingShow:false, + proNum:0, + arr:[], + isAddPro:true + }, + mutations:{ + loadingShow(state,n){ + state.loadingShow=n; + }, + addProList(state,n){ + state.arr.push(n); + window.localStorage.arr=JSON.stringify(state.arr); + }, + addItemPro(state,arr){ //添加某一项商品数量 + var id=arr[1];//获取商品ID + var num=arr[0];//获取商品需要添加的数量 + state.arr.forEach( function(val, index) { + if(val.id==id){ + val.num+=num; + } + }); + }, + addNum(state,n){ //总的商品数 + state.proNum+=parseInt(n); + }, + setObj:function(state,obj){ + state.proNum=obj.num; + state.arr=obj.arr; + }, + judgePro:function(state,id){ //判断此商品是否已经添加过了 + state.arr.forEach( function(val) { + if(val.id==id){ + state.isAddPro=false; + }else{ + state.isAddPro=true; + } + }) + }, + setStorage(state,arr){ + window.localStorage.arr=JSON.stringify(arr); + } + }, + actions:{ //用于提交mutations + getStorage(context){ + var arr=JSON.parse(window.localStorage.arr); + var num=0; + var obj={}; + if(arr && arr.length>0){ + arr.forEach( function(val, index) { + num+=val.num; + }); + obj.arr=arr; + obj.num=num; + }else{ + obj.arr=[]; + obj.num=0; + } + context.commit('setObj',obj); + } + } + }) + +Vue.http.interceptors.push((request, next) => { + //获取页面本身的高度值 + var wh=document.documentElement.style['height']; + if(wh=='auto'){ + document.documentElement.style['height']=document.body.style['height']='100%'; + } + store.commit("loadingShow",true); + next((response) => { + store.commit("loadingShow",false); + document.documentElement.style['height']=document.body.style['height']=wh; + return response; + }); +}); + +new Vue({ + el: '#app', + router, + store, + template: '', + components: { App }, + created:function(){ + this.$store.dispatch('getStorage'); + } +}) diff --git a/FruitsKing-shop/src/router/index.js b/FruitsKing-shop/src/router/index.js new file mode 100644 index 0000000..329c7fb --- /dev/null +++ b/FruitsKing-shop/src/router/index.js @@ -0,0 +1,50 @@ +import Vue from 'vue' +import Router from 'vue-router' +import Home from '@/components/home/home' +import Catalog from '@/components/catalog/catalog' +import CatalogChild from '@/components/catalog/catalogChild' +import Search from '@/components/search/search' +import Cart from '@/components/cart/cart' +import User from '@/components/user/user' +import Detail from '@/components/detail/detail' + +Vue.use(Router); + +export default new Router({ + routes: [ + { + path: '/', + redirect:"/home" + }, + { + path: '/home', + component: Home + }, + { + path: '/catalog', + component: Catalog, + children:[ + { + path:'/catalog/:id', + component: CatalogChild + } + ] + }, + { + path: '/search', + component: Search + }, + { + path: '/cart', + component: Cart + }, + { + path: '/user', + component: User + }, + { + path: '/detail/:id', + component: Detail + } + ] +}) diff --git a/FruitsKing-shop/static/.gitkeep b/FruitsKing-shop/static/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/FruitsKing-shop/static/images/1028_thumb_G_1431770633215.jpg b/FruitsKing-shop/static/images/1028_thumb_G_1431770633215.jpg new file mode 100644 index 0000000..b43a9e0 Binary files /dev/null and b/FruitsKing-shop/static/images/1028_thumb_G_1431770633215.jpg differ diff --git a/FruitsKing-shop/static/images/1034_thumb_G_1440228822128.jpg b/FruitsKing-shop/static/images/1034_thumb_G_1440228822128.jpg new file mode 100644 index 0000000..bde8842 Binary files /dev/null and b/FruitsKing-shop/static/images/1034_thumb_G_1440228822128.jpg differ diff --git a/FruitsKing-shop/static/images/1202_thumb_G_1432024874742.jpg b/FruitsKing-shop/static/images/1202_thumb_G_1432024874742.jpg new file mode 100644 index 0000000..14b8689 Binary files /dev/null and b/FruitsKing-shop/static/images/1202_thumb_G_1432024874742.jpg differ diff --git a/FruitsKing-shop/static/images/1208_thumb_G_1432025914063.jpg b/FruitsKing-shop/static/images/1208_thumb_G_1432025914063.jpg new file mode 100644 index 0000000..1f94918 Binary files /dev/null and b/FruitsKing-shop/static/images/1208_thumb_G_1432025914063.jpg differ diff --git a/FruitsKing-shop/static/images/1218_thumb_G_1432026639164.jpg b/FruitsKing-shop/static/images/1218_thumb_G_1432026639164.jpg new file mode 100644 index 0000000..551496c Binary files /dev/null and b/FruitsKing-shop/static/images/1218_thumb_G_1432026639164.jpg differ diff --git a/FruitsKing-shop/static/images/1237_thumb_G_1449307135831.jpg b/FruitsKing-shop/static/images/1237_thumb_G_1449307135831.jpg new file mode 100644 index 0000000..288dd51 Binary files /dev/null and b/FruitsKing-shop/static/images/1237_thumb_G_1449307135831.jpg differ diff --git a/FruitsKing-shop/static/images/1241_thumb_G_1438662041192.jpg b/FruitsKing-shop/static/images/1241_thumb_G_1438662041192.jpg new file mode 100644 index 0000000..d1d9cc5 Binary files /dev/null and b/FruitsKing-shop/static/images/1241_thumb_G_1438662041192.jpg differ diff --git a/FruitsKing-shop/static/images/1256_thumb_G_1438667407797.jpg b/FruitsKing-shop/static/images/1256_thumb_G_1438667407797.jpg new file mode 100644 index 0000000..ab7d621 Binary files /dev/null and b/FruitsKing-shop/static/images/1256_thumb_G_1438667407797.jpg differ diff --git a/FruitsKing-shop/static/images/1263_thumb_G_1438667237900.jpg b/FruitsKing-shop/static/images/1263_thumb_G_1438667237900.jpg new file mode 100644 index 0000000..2542ee9 Binary files /dev/null and b/FruitsKing-shop/static/images/1263_thumb_G_1438667237900.jpg differ diff --git a/FruitsKing-shop/static/images/1412_thumb_G_1440561875253.jpg b/FruitsKing-shop/static/images/1412_thumb_G_1440561875253.jpg new file mode 100644 index 0000000..2de6155 Binary files /dev/null and b/FruitsKing-shop/static/images/1412_thumb_G_1440561875253.jpg differ diff --git a/FruitsKing-shop/static/images/1437127703767483148.jpg b/FruitsKing-shop/static/images/1437127703767483148.jpg new file mode 100644 index 0000000..8ffe41e Binary files /dev/null and b/FruitsKing-shop/static/images/1437127703767483148.jpg differ diff --git a/FruitsKing-shop/static/images/1457401580824276513.jpg b/FruitsKing-shop/static/images/1457401580824276513.jpg new file mode 100644 index 0000000..caebfd1 Binary files /dev/null and b/FruitsKing-shop/static/images/1457401580824276513.jpg differ diff --git a/FruitsKing-shop/static/images/1457401660514371540.jpg b/FruitsKing-shop/static/images/1457401660514371540.jpg new file mode 100644 index 0000000..63a073a Binary files /dev/null and b/FruitsKing-shop/static/images/1457401660514371540.jpg differ diff --git a/FruitsKing-shop/static/images/1457401703899980953.jpg b/FruitsKing-shop/static/images/1457401703899980953.jpg new file mode 100644 index 0000000..ed27efc Binary files /dev/null and b/FruitsKing-shop/static/images/1457401703899980953.jpg differ diff --git a/FruitsKing-shop/static/images/1457401740805838220.jpg b/FruitsKing-shop/static/images/1457401740805838220.jpg new file mode 100644 index 0000000..4316129 Binary files /dev/null and b/FruitsKing-shop/static/images/1457401740805838220.jpg differ diff --git a/FruitsKing-shop/static/images/1457401802810395530.jpg b/FruitsKing-shop/static/images/1457401802810395530.jpg new file mode 100644 index 0000000..51675dd Binary files /dev/null and b/FruitsKing-shop/static/images/1457401802810395530.jpg differ diff --git a/FruitsKing-shop/static/images/1457401835961403369.jpg b/FruitsKing-shop/static/images/1457401835961403369.jpg new file mode 100644 index 0000000..e0ce1ae Binary files /dev/null and b/FruitsKing-shop/static/images/1457401835961403369.jpg differ diff --git a/FruitsKing-shop/static/images/1457401862135371286.jpg b/FruitsKing-shop/static/images/1457401862135371286.jpg new file mode 100644 index 0000000..0995e41 Binary files /dev/null and b/FruitsKing-shop/static/images/1457401862135371286.jpg differ diff --git a/FruitsKing-shop/static/images/1457402526865739109.jpg b/FruitsKing-shop/static/images/1457402526865739109.jpg new file mode 100644 index 0000000..318da54 Binary files /dev/null and b/FruitsKing-shop/static/images/1457402526865739109.jpg differ diff --git a/FruitsKing-shop/static/images/1457430184616793730.jpg b/FruitsKing-shop/static/images/1457430184616793730.jpg new file mode 100644 index 0000000..4001961 Binary files /dev/null and b/FruitsKing-shop/static/images/1457430184616793730.jpg differ diff --git a/FruitsKing-shop/static/images/1458626045993660466.jpg b/FruitsKing-shop/static/images/1458626045993660466.jpg new file mode 100644 index 0000000..01d6678 Binary files /dev/null and b/FruitsKing-shop/static/images/1458626045993660466.jpg differ diff --git a/FruitsKing-shop/static/images/1459236479470758622.jpg b/FruitsKing-shop/static/images/1459236479470758622.jpg new file mode 100644 index 0000000..1c63cd4 Binary files /dev/null and b/FruitsKing-shop/static/images/1459236479470758622.jpg differ diff --git a/FruitsKing-shop/static/images/1462619616956655497.gif b/FruitsKing-shop/static/images/1462619616956655497.gif new file mode 100644 index 0000000..bec7856 Binary files /dev/null and b/FruitsKing-shop/static/images/1462619616956655497.gif differ diff --git a/FruitsKing-shop/static/images/1474344934475050992.jpg b/FruitsKing-shop/static/images/1474344934475050992.jpg new file mode 100644 index 0000000..b39db5b Binary files /dev/null and b/FruitsKing-shop/static/images/1474344934475050992.jpg differ diff --git a/FruitsKing-shop/static/images/1477564056308455138.jpg b/FruitsKing-shop/static/images/1477564056308455138.jpg new file mode 100644 index 0000000..59fa4d4 Binary files /dev/null and b/FruitsKing-shop/static/images/1477564056308455138.jpg differ diff --git a/FruitsKing-shop/static/images/1478049435080458669.jpg b/FruitsKing-shop/static/images/1478049435080458669.jpg new file mode 100644 index 0000000..9027c24 Binary files /dev/null and b/FruitsKing-shop/static/images/1478049435080458669.jpg differ diff --git a/FruitsKing-shop/static/images/1483493150974430666.jpg b/FruitsKing-shop/static/images/1483493150974430666.jpg new file mode 100644 index 0000000..6708a08 Binary files /dev/null and b/FruitsKing-shop/static/images/1483493150974430666.jpg differ diff --git a/FruitsKing-shop/static/images/1484390186132042917.gif b/FruitsKing-shop/static/images/1484390186132042917.gif new file mode 100644 index 0000000..3aa8d36 Binary files /dev/null and b/FruitsKing-shop/static/images/1484390186132042917.gif differ diff --git a/FruitsKing-shop/static/images/1486805011989460534.jpg b/FruitsKing-shop/static/images/1486805011989460534.jpg new file mode 100644 index 0000000..1efbc5d Binary files /dev/null and b/FruitsKing-shop/static/images/1486805011989460534.jpg differ diff --git a/FruitsKing-shop/static/images/1488598719991411286.jpg b/FruitsKing-shop/static/images/1488598719991411286.jpg new file mode 100644 index 0000000..257cc36 Binary files /dev/null and b/FruitsKing-shop/static/images/1488598719991411286.jpg differ diff --git a/FruitsKing-shop/static/images/1488600690805298411.jpg b/FruitsKing-shop/static/images/1488600690805298411.jpg new file mode 100644 index 0000000..bf00150 Binary files /dev/null and b/FruitsKing-shop/static/images/1488600690805298411.jpg differ diff --git a/FruitsKing-shop/static/images/1488600884050221958.jpg b/FruitsKing-shop/static/images/1488600884050221958.jpg new file mode 100644 index 0000000..65d2db7 Binary files /dev/null and b/FruitsKing-shop/static/images/1488600884050221958.jpg differ diff --git a/FruitsKing-shop/static/images/1488601070553504775.jpg b/FruitsKing-shop/static/images/1488601070553504775.jpg new file mode 100644 index 0000000..fa0382a Binary files /dev/null and b/FruitsKing-shop/static/images/1488601070553504775.jpg differ diff --git a/FruitsKing-shop/static/images/1488601256339267706.jpg b/FruitsKing-shop/static/images/1488601256339267706.jpg new file mode 100644 index 0000000..89c5928 Binary files /dev/null and b/FruitsKing-shop/static/images/1488601256339267706.jpg differ diff --git a/FruitsKing-shop/static/images/1488601310196640140.jpg b/FruitsKing-shop/static/images/1488601310196640140.jpg new file mode 100644 index 0000000..a8817fb Binary files /dev/null and b/FruitsKing-shop/static/images/1488601310196640140.jpg differ diff --git a/FruitsKing-shop/static/images/1488601403512891104.jpg b/FruitsKing-shop/static/images/1488601403512891104.jpg new file mode 100644 index 0000000..0af4196 Binary files /dev/null and b/FruitsKing-shop/static/images/1488601403512891104.jpg differ diff --git a/FruitsKing-shop/static/images/1488601450125636499.jpg b/FruitsKing-shop/static/images/1488601450125636499.jpg new file mode 100644 index 0000000..96c40c9 Binary files /dev/null and b/FruitsKing-shop/static/images/1488601450125636499.jpg differ diff --git a/FruitsKing-shop/static/images/1488601698340600369.jpg b/FruitsKing-shop/static/images/1488601698340600369.jpg new file mode 100644 index 0000000..6c098b3 Binary files /dev/null and b/FruitsKing-shop/static/images/1488601698340600369.jpg differ diff --git a/FruitsKing-shop/static/images/1488602416585920244.jpg b/FruitsKing-shop/static/images/1488602416585920244.jpg new file mode 100644 index 0000000..0bcb289 Binary files /dev/null and b/FruitsKing-shop/static/images/1488602416585920244.jpg differ diff --git a/FruitsKing-shop/static/images/1488602529741717760.jpg b/FruitsKing-shop/static/images/1488602529741717760.jpg new file mode 100644 index 0000000..d0a695c Binary files /dev/null and b/FruitsKing-shop/static/images/1488602529741717760.jpg differ diff --git a/FruitsKing-shop/static/images/1488602592590257923.jpg b/FruitsKing-shop/static/images/1488602592590257923.jpg new file mode 100644 index 0000000..023391f Binary files /dev/null and b/FruitsKing-shop/static/images/1488602592590257923.jpg differ diff --git a/FruitsKing-shop/static/images/1488614648799881266.jpg b/FruitsKing-shop/static/images/1488614648799881266.jpg new file mode 100644 index 0000000..1dc3bbb Binary files /dev/null and b/FruitsKing-shop/static/images/1488614648799881266.jpg differ diff --git a/FruitsKing-shop/static/images/1488614734076729235.jpg b/FruitsKing-shop/static/images/1488614734076729235.jpg new file mode 100644 index 0000000..3e585d5 Binary files /dev/null and b/FruitsKing-shop/static/images/1488614734076729235.jpg differ diff --git a/FruitsKing-shop/static/images/1488614977170211428.jpg b/FruitsKing-shop/static/images/1488614977170211428.jpg new file mode 100644 index 0000000..073c2b4 Binary files /dev/null and b/FruitsKing-shop/static/images/1488614977170211428.jpg differ diff --git a/FruitsKing-shop/static/images/1488615203630368207.jpg b/FruitsKing-shop/static/images/1488615203630368207.jpg new file mode 100644 index 0000000..9409b04 Binary files /dev/null and b/FruitsKing-shop/static/images/1488615203630368207.jpg differ diff --git a/FruitsKing-shop/static/images/1488617421735087927.jpg b/FruitsKing-shop/static/images/1488617421735087927.jpg new file mode 100644 index 0000000..2a1d8f9 Binary files /dev/null and b/FruitsKing-shop/static/images/1488617421735087927.jpg differ diff --git a/FruitsKing-shop/static/images/1598_thumb_G_1459324897716.jpg b/FruitsKing-shop/static/images/1598_thumb_G_1459324897716.jpg new file mode 100644 index 0000000..6c4762c Binary files /dev/null and b/FruitsKing-shop/static/images/1598_thumb_G_1459324897716.jpg differ diff --git a/FruitsKing-shop/static/images/1785_thumb_G_1434449028094.jpg b/FruitsKing-shop/static/images/1785_thumb_G_1434449028094.jpg new file mode 100644 index 0000000..5e64c60 Binary files /dev/null and b/FruitsKing-shop/static/images/1785_thumb_G_1434449028094.jpg differ diff --git a/FruitsKing-shop/static/images/1946_thumb_G_1438738041545.jpg b/FruitsKing-shop/static/images/1946_thumb_G_1438738041545.jpg new file mode 100644 index 0000000..c834613 Binary files /dev/null and b/FruitsKing-shop/static/images/1946_thumb_G_1438738041545.jpg differ diff --git a/FruitsKing-shop/static/images/2095_thumb_G_1439454678917.jpg b/FruitsKing-shop/static/images/2095_thumb_G_1439454678917.jpg new file mode 100644 index 0000000..d6a3aff Binary files /dev/null and b/FruitsKing-shop/static/images/2095_thumb_G_1439454678917.jpg differ diff --git a/FruitsKing-shop/static/images/2356_thumb_G_1442038925435.jpg b/FruitsKing-shop/static/images/2356_thumb_G_1442038925435.jpg new file mode 100644 index 0000000..a41547b Binary files /dev/null and b/FruitsKing-shop/static/images/2356_thumb_G_1442038925435.jpg differ diff --git a/FruitsKing-shop/static/images/2362_thumb_G_1442220611977.jpg b/FruitsKing-shop/static/images/2362_thumb_G_1442220611977.jpg new file mode 100644 index 0000000..c866c64 Binary files /dev/null and b/FruitsKing-shop/static/images/2362_thumb_G_1442220611977.jpg differ diff --git a/FruitsKing-shop/static/images/2375_thumb_G_1442222880740.jpg b/FruitsKing-shop/static/images/2375_thumb_G_1442222880740.jpg new file mode 100644 index 0000000..446458d Binary files /dev/null and b/FruitsKing-shop/static/images/2375_thumb_G_1442222880740.jpg differ diff --git a/FruitsKing-shop/static/images/2433_thumb_G_1442886990334.jpg b/FruitsKing-shop/static/images/2433_thumb_G_1442886990334.jpg new file mode 100644 index 0000000..918d719 Binary files /dev/null and b/FruitsKing-shop/static/images/2433_thumb_G_1442886990334.jpg differ diff --git a/FruitsKing-shop/static/images/2434_thumb_G_1442888017659.jpg b/FruitsKing-shop/static/images/2434_thumb_G_1442888017659.jpg new file mode 100644 index 0000000..9867388 Binary files /dev/null and b/FruitsKing-shop/static/images/2434_thumb_G_1442888017659.jpg differ diff --git a/FruitsKing-shop/static/images/2730_thumb_G_1444278333322.jpg b/FruitsKing-shop/static/images/2730_thumb_G_1444278333322.jpg new file mode 100644 index 0000000..9685b89 Binary files /dev/null and b/FruitsKing-shop/static/images/2730_thumb_G_1444278333322.jpg differ diff --git a/FruitsKing-shop/static/images/2790_thumb_G_1445322955707.jpg b/FruitsKing-shop/static/images/2790_thumb_G_1445322955707.jpg new file mode 100644 index 0000000..2be6aac Binary files /dev/null and b/FruitsKing-shop/static/images/2790_thumb_G_1445322955707.jpg differ diff --git a/FruitsKing-shop/static/images/2800_thumb_G_1445326457647.jpg b/FruitsKing-shop/static/images/2800_thumb_G_1445326457647.jpg new file mode 100644 index 0000000..37c77db Binary files /dev/null and b/FruitsKing-shop/static/images/2800_thumb_G_1445326457647.jpg differ diff --git a/FruitsKing-shop/static/images/333_thumb_G_1439254725936.jpg b/FruitsKing-shop/static/images/333_thumb_G_1439254725936.jpg new file mode 100644 index 0000000..500ebae Binary files /dev/null and b/FruitsKing-shop/static/images/333_thumb_G_1439254725936.jpg differ diff --git a/FruitsKing-shop/static/images/334_thumb_G_1439445555489.jpg b/FruitsKing-shop/static/images/334_thumb_G_1439445555489.jpg new file mode 100644 index 0000000..61b7d84 Binary files /dev/null and b/FruitsKing-shop/static/images/334_thumb_G_1439445555489.jpg differ diff --git a/FruitsKing-shop/static/images/3363_thumb_G_1449284678840.jpg b/FruitsKing-shop/static/images/3363_thumb_G_1449284678840.jpg new file mode 100644 index 0000000..a087a96 Binary files /dev/null and b/FruitsKing-shop/static/images/3363_thumb_G_1449284678840.jpg differ diff --git a/FruitsKing-shop/static/images/337_thumb_G_1438394647428.jpg b/FruitsKing-shop/static/images/337_thumb_G_1438394647428.jpg new file mode 100644 index 0000000..aa5bf73 Binary files /dev/null and b/FruitsKing-shop/static/images/337_thumb_G_1438394647428.jpg differ diff --git a/FruitsKing-shop/static/images/3979_thumb_G_1450679513405.jpg b/FruitsKing-shop/static/images/3979_thumb_G_1450679513405.jpg new file mode 100644 index 0000000..610119d Binary files /dev/null and b/FruitsKing-shop/static/images/3979_thumb_G_1450679513405.jpg differ diff --git a/FruitsKing-shop/static/images/4003_thumb_G_1450683131043.jpg b/FruitsKing-shop/static/images/4003_thumb_G_1450683131043.jpg new file mode 100644 index 0000000..1093e45 Binary files /dev/null and b/FruitsKing-shop/static/images/4003_thumb_G_1450683131043.jpg differ diff --git a/FruitsKing-shop/static/images/4022_thumb_G_1450767178720.jpg b/FruitsKing-shop/static/images/4022_thumb_G_1450767178720.jpg new file mode 100644 index 0000000..552e6c6 Binary files /dev/null and b/FruitsKing-shop/static/images/4022_thumb_G_1450767178720.jpg differ diff --git a/FruitsKing-shop/static/images/4208_thumb_G_1457684971575.jpg b/FruitsKing-shop/static/images/4208_thumb_G_1457684971575.jpg new file mode 100644 index 0000000..ea70944 Binary files /dev/null and b/FruitsKing-shop/static/images/4208_thumb_G_1457684971575.jpg differ diff --git a/FruitsKing-shop/static/images/4378_thumb_G_1458879714155.jpg b/FruitsKing-shop/static/images/4378_thumb_G_1458879714155.jpg new file mode 100644 index 0000000..c59a61a Binary files /dev/null and b/FruitsKing-shop/static/images/4378_thumb_G_1458879714155.jpg differ diff --git a/FruitsKing-shop/static/images/4478_thumb_G_1460173812316.jpg b/FruitsKing-shop/static/images/4478_thumb_G_1460173812316.jpg new file mode 100644 index 0000000..3478476 Binary files /dev/null and b/FruitsKing-shop/static/images/4478_thumb_G_1460173812316.jpg differ diff --git a/FruitsKing-shop/static/images/4572_thumb_G_1459306954347.jpg b/FruitsKing-shop/static/images/4572_thumb_G_1459306954347.jpg new file mode 100644 index 0000000..bde9518 Binary files /dev/null and b/FruitsKing-shop/static/images/4572_thumb_G_1459306954347.jpg differ diff --git a/FruitsKing-shop/static/images/4573_thumb_G_1459306991763.jpg b/FruitsKing-shop/static/images/4573_thumb_G_1459306991763.jpg new file mode 100644 index 0000000..6ee7a53 Binary files /dev/null and b/FruitsKing-shop/static/images/4573_thumb_G_1459306991763.jpg differ diff --git a/FruitsKing-shop/static/images/4832_thumb_G_1461747621631.jpg b/FruitsKing-shop/static/images/4832_thumb_G_1461747621631.jpg new file mode 100644 index 0000000..94df00a Binary files /dev/null and b/FruitsKing-shop/static/images/4832_thumb_G_1461747621631.jpg differ diff --git a/FruitsKing-shop/static/images/4921_thumb_G_1463714546692.jpg b/FruitsKing-shop/static/images/4921_thumb_G_1463714546692.jpg new file mode 100644 index 0000000..96023a6 Binary files /dev/null and b/FruitsKing-shop/static/images/4921_thumb_G_1463714546692.jpg differ diff --git a/FruitsKing-shop/static/images/4926_thumb_G_1463726560129.jpg b/FruitsKing-shop/static/images/4926_thumb_G_1463726560129.jpg new file mode 100644 index 0000000..37ecd01 Binary files /dev/null and b/FruitsKing-shop/static/images/4926_thumb_G_1463726560129.jpg differ diff --git a/FruitsKing-shop/static/images/4f692c60920342478a80c236e1665a83.gif b/FruitsKing-shop/static/images/4f692c60920342478a80c236e1665a83.gif new file mode 100644 index 0000000..947c5be Binary files /dev/null and b/FruitsKing-shop/static/images/4f692c60920342478a80c236e1665a83.gif differ diff --git a/FruitsKing-shop/static/images/5021_thumb_G_1465547816620.jpg b/FruitsKing-shop/static/images/5021_thumb_G_1465547816620.jpg new file mode 100644 index 0000000..382e94b Binary files /dev/null and b/FruitsKing-shop/static/images/5021_thumb_G_1465547816620.jpg differ diff --git a/FruitsKing-shop/static/images/5066_thumb_G_1469597876672.jpg b/FruitsKing-shop/static/images/5066_thumb_G_1469597876672.jpg new file mode 100644 index 0000000..f161c34 Binary files /dev/null and b/FruitsKing-shop/static/images/5066_thumb_G_1469597876672.jpg differ diff --git a/FruitsKing-shop/static/images/5080_thumb_G_1466761294080.jpg b/FruitsKing-shop/static/images/5080_thumb_G_1466761294080.jpg new file mode 100644 index 0000000..0b31ef4 Binary files /dev/null and b/FruitsKing-shop/static/images/5080_thumb_G_1466761294080.jpg differ diff --git a/FruitsKing-shop/static/images/5160_thumb_G_1469588683521.jpg b/FruitsKing-shop/static/images/5160_thumb_G_1469588683521.jpg new file mode 100644 index 0000000..cb63371 Binary files /dev/null and b/FruitsKing-shop/static/images/5160_thumb_G_1469588683521.jpg differ diff --git a/FruitsKing-shop/static/images/5328_thumb_G_1470198279391.jpg b/FruitsKing-shop/static/images/5328_thumb_G_1470198279391.jpg new file mode 100644 index 0000000..507893c Binary files /dev/null and b/FruitsKing-shop/static/images/5328_thumb_G_1470198279391.jpg differ diff --git a/FruitsKing-shop/static/images/5343_thumb_G_1469781482412.jpg b/FruitsKing-shop/static/images/5343_thumb_G_1469781482412.jpg new file mode 100644 index 0000000..a699cf1 Binary files /dev/null and b/FruitsKing-shop/static/images/5343_thumb_G_1469781482412.jpg differ diff --git a/FruitsKing-shop/static/images/5421_thumb_G_1473996969542.jpg b/FruitsKing-shop/static/images/5421_thumb_G_1473996969542.jpg new file mode 100644 index 0000000..a5b30da Binary files /dev/null and b/FruitsKing-shop/static/images/5421_thumb_G_1473996969542.jpg differ diff --git a/FruitsKing-shop/static/images/5466_thumb_G_1478146751048.jpg b/FruitsKing-shop/static/images/5466_thumb_G_1478146751048.jpg new file mode 100644 index 0000000..ff10ac5 Binary files /dev/null and b/FruitsKing-shop/static/images/5466_thumb_G_1478146751048.jpg differ diff --git a/FruitsKing-shop/static/images/5533_thumb_G_1482732158976.jpg b/FruitsKing-shop/static/images/5533_thumb_G_1482732158976.jpg new file mode 100644 index 0000000..98ed007 Binary files /dev/null and b/FruitsKing-shop/static/images/5533_thumb_G_1482732158976.jpg differ diff --git a/FruitsKing-shop/static/images/5545_thumb_G_1483608504487.jpg b/FruitsKing-shop/static/images/5545_thumb_G_1483608504487.jpg new file mode 100644 index 0000000..cfe2df7 Binary files /dev/null and b/FruitsKing-shop/static/images/5545_thumb_G_1483608504487.jpg differ diff --git a/FruitsKing-shop/static/images/5561_thumb_G_1487926237170.jpg b/FruitsKing-shop/static/images/5561_thumb_G_1487926237170.jpg new file mode 100644 index 0000000..b481161 Binary files /dev/null and b/FruitsKing-shop/static/images/5561_thumb_G_1487926237170.jpg differ diff --git a/FruitsKing-shop/static/images/5598_thumb_G_1490404444566.jpg b/FruitsKing-shop/static/images/5598_thumb_G_1490404444566.jpg new file mode 100644 index 0000000..c1b6de9 Binary files /dev/null and b/FruitsKing-shop/static/images/5598_thumb_G_1490404444566.jpg differ diff --git a/FruitsKing-shop/static/images/56a4b86e2ccd40559fd456374bbbec33.jpg b/FruitsKing-shop/static/images/56a4b86e2ccd40559fd456374bbbec33.jpg new file mode 100644 index 0000000..21fde22 Binary files /dev/null and b/FruitsKing-shop/static/images/56a4b86e2ccd40559fd456374bbbec33.jpg differ diff --git a/FruitsKing-shop/static/images/609_thumb_G_1438412812688.jpg b/FruitsKing-shop/static/images/609_thumb_G_1438412812688.jpg new file mode 100644 index 0000000..2cd231e Binary files /dev/null and b/FruitsKing-shop/static/images/609_thumb_G_1438412812688.jpg differ diff --git a/FruitsKing-shop/static/images/614_thumb_G_1431156257892.jpg b/FruitsKing-shop/static/images/614_thumb_G_1431156257892.jpg new file mode 100644 index 0000000..f3b553e Binary files /dev/null and b/FruitsKing-shop/static/images/614_thumb_G_1431156257892.jpg differ diff --git a/FruitsKing-shop/static/images/742_thumb_G_1431337460500.jpg b/FruitsKing-shop/static/images/742_thumb_G_1431337460500.jpg new file mode 100644 index 0000000..7017075 Binary files /dev/null and b/FruitsKing-shop/static/images/742_thumb_G_1431337460500.jpg differ diff --git a/FruitsKing-shop/static/images/971_thumb_G_1490253732394.jpg b/FruitsKing-shop/static/images/971_thumb_G_1490253732394.jpg new file mode 100644 index 0000000..d111357 Binary files /dev/null and b/FruitsKing-shop/static/images/971_thumb_G_1490253732394.jpg differ diff --git a/FruitsKing-shop/static/images/980_thumb_G_1461753733955.jpg b/FruitsKing-shop/static/images/980_thumb_G_1461753733955.jpg new file mode 100644 index 0000000..0b37de7 Binary files /dev/null and b/FruitsKing-shop/static/images/980_thumb_G_1461753733955.jpg differ diff --git a/FruitsKing-shop/static/images/cart.png b/FruitsKing-shop/static/images/cart.png new file mode 100644 index 0000000..26d2fb8 Binary files /dev/null and b/FruitsKing-shop/static/images/cart.png differ diff --git a/FruitsKing-shop/static/images/error.jpg b/FruitsKing-shop/static/images/error.jpg new file mode 100644 index 0000000..4bb22ec Binary files /dev/null and b/FruitsKing-shop/static/images/error.jpg differ diff --git a/FruitsKing-shop/static/images/ico_02.png b/FruitsKing-shop/static/images/ico_02.png new file mode 100644 index 0000000..c7869b2 Binary files /dev/null and b/FruitsKing-shop/static/images/ico_02.png differ diff --git a/FruitsKing-shop/static/images/ico_04_b.png b/FruitsKing-shop/static/images/ico_04_b.png new file mode 100644 index 0000000..73c0e7b Binary files /dev/null and b/FruitsKing-shop/static/images/ico_04_b.png differ diff --git a/FruitsKing-shop/static/images/ico_07.png b/FruitsKing-shop/static/images/ico_07.png new file mode 100644 index 0000000..a1e7cf6 Binary files /dev/null and b/FruitsKing-shop/static/images/ico_07.png differ diff --git a/FruitsKing-shop/static/images/ico_10.png b/FruitsKing-shop/static/images/ico_10.png new file mode 100644 index 0000000..4e8e2c6 Binary files /dev/null and b/FruitsKing-shop/static/images/ico_10.png differ diff --git a/FruitsKing-shop/static/images/ico_13.gif b/FruitsKing-shop/static/images/ico_13.gif new file mode 100644 index 0000000..33e64d2 Binary files /dev/null and b/FruitsKing-shop/static/images/ico_13.gif differ diff --git a/FruitsKing-shop/static/images/ico_16.png b/FruitsKing-shop/static/images/ico_16.png new file mode 100644 index 0000000..e988c34 Binary files /dev/null and b/FruitsKing-shop/static/images/ico_16.png differ diff --git a/FruitsKing-shop/static/images/ico_19.png b/FruitsKing-shop/static/images/ico_19.png new file mode 100644 index 0000000..6e110ca Binary files /dev/null and b/FruitsKing-shop/static/images/ico_19.png differ diff --git a/FruitsKing-shop/static/images/icon_indexn_04.png b/FruitsKing-shop/static/images/icon_indexn_04.png new file mode 100644 index 0000000..575291b Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_04.png differ diff --git a/FruitsKing-shop/static/images/icon_indexn_05.png b/FruitsKing-shop/static/images/icon_indexn_05.png new file mode 100644 index 0000000..f2c7c4e Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_05.png differ diff --git a/FruitsKing-shop/static/images/icon_indexn_11.png b/FruitsKing-shop/static/images/icon_indexn_11.png new file mode 100644 index 0000000..a334d24 Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_11.png differ diff --git a/FruitsKing-shop/static/images/icon_indexn_12.gif b/FruitsKing-shop/static/images/icon_indexn_12.gif new file mode 100644 index 0000000..04015ef Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_12.gif differ diff --git a/FruitsKing-shop/static/images/icon_indexn_13.gif b/FruitsKing-shop/static/images/icon_indexn_13.gif new file mode 100644 index 0000000..e65d2ed Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_13.gif differ diff --git a/FruitsKing-shop/static/images/icon_indexn_15.gif b/FruitsKing-shop/static/images/icon_indexn_15.gif new file mode 100644 index 0000000..b633389 Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_15.gif differ diff --git a/FruitsKing-shop/static/images/icon_indexn_16.gif b/FruitsKing-shop/static/images/icon_indexn_16.gif new file mode 100644 index 0000000..edda5cd Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_16.gif differ diff --git a/FruitsKing-shop/static/images/icon_indexn_17.png b/FruitsKing-shop/static/images/icon_indexn_17.png new file mode 100644 index 0000000..774df83 Binary files /dev/null and b/FruitsKing-shop/static/images/icon_indexn_17.png differ diff --git a/FruitsKing-shop/static/images/load.gif b/FruitsKing-shop/static/images/load.gif new file mode 100644 index 0000000..947c5be Binary files /dev/null and b/FruitsKing-shop/static/images/load.gif differ diff --git a/FruitsKing-shop/static/images/logo.png b/FruitsKing-shop/static/images/logo.png new file mode 100644 index 0000000..6ed1309 Binary files /dev/null and b/FruitsKing-shop/static/images/logo.png differ diff --git a/FruitsKing-shop/static/images/nocart.png b/FruitsKing-shop/static/images/nocart.png new file mode 100644 index 0000000..a5c55b1 Binary files /dev/null and b/FruitsKing-shop/static/images/nocart.png differ diff --git a/FruitsKing-shop/static/images/ssp_mob_float_3x.png b/FruitsKing-shop/static/images/ssp_mob_float_3x.png new file mode 100644 index 0000000..cb29549 Binary files /dev/null and b/FruitsKing-shop/static/images/ssp_mob_float_3x.png differ diff --git a/FruitsKing-shop/static/images/u=3593248742,1654771676&fm=76.jpg b/FruitsKing-shop/static/images/u=3593248742,1654771676&fm=76.jpg new file mode 100644 index 0000000..3627f4b Binary files /dev/null and b/FruitsKing-shop/static/images/u=3593248742,1654771676&fm=76.jpg differ diff --git a/FruitsKing-shop/static/images/u=4139712021,1947734414&fm=76.jpg b/FruitsKing-shop/static/images/u=4139712021,1947734414&fm=76.jpg new file mode 100644 index 0000000..8fe48af Binary files /dev/null and b/FruitsKing-shop/static/images/u=4139712021,1947734414&fm=76.jpg differ