├── .babelrc ├── .editorconfig ├── .gitignore ├── .postcssrc.js ├── README.md ├── build ├── build.js ├── check-versions.js ├── dev-client.js ├── dev-server.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 ├── index.html ├── package.json ├── src ├── App.vue ├── assets │ ├── images │ │ ├── CBimg.jpg │ │ ├── activities │ │ │ ├── 815 │ │ │ │ ├── 09_05.png │ │ │ │ ├── 09_11.png │ │ │ │ ├── 09_17.png │ │ │ │ ├── 09_23.png │ │ │ │ ├── 09_29.png │ │ │ │ ├── 09_35.png │ │ │ │ ├── 09_41.png │ │ │ │ ├── 09_47.png │ │ │ │ ├── 09_53.png │ │ │ │ ├── 815BG.jpg │ │ │ │ ├── 815TOP_03.png │ │ │ │ ├── denglong_02.png │ │ │ │ ├── denglong_03.png │ │ │ │ └── zdzb_02.png │ │ │ ├── activegif.gif │ │ │ ├── activetis_03.png │ │ │ ├── activetis_05.png │ │ │ ├── activities_03.png │ │ │ ├── activities_05.png │ │ │ ├── activities_10.png │ │ │ ├── activities_14.png │ │ │ ├── avtive_03.png │ │ │ ├── avtive_07.png │ │ │ ├── cart.png │ │ │ ├── dcode.png │ │ │ └── dcode_03.png │ │ ├── arrow.png │ │ ├── arrow1.png │ │ ├── back22.png │ │ ├── banner │ │ │ ├── banner01.jpg │ │ │ ├── banner02.jpg │ │ │ ├── banner03.jpg │ │ │ ├── banner1.png │ │ │ ├── banner2.jpg │ │ │ ├── banner3.jpg │ │ │ └── banner4.jpg │ │ ├── cart │ │ │ ├── checked.png │ │ │ ├── completed.png │ │ │ ├── huo.png │ │ │ ├── unchecked.png │ │ │ ├── wx.png │ │ │ └── zfb.png │ │ ├── cart_03.png │ │ ├── category │ │ │ ├── back.png │ │ │ ├── baitea.jpg │ │ │ ├── category_03.png │ │ │ ├── category_07.png │ │ │ ├── chaju.jpg │ │ │ ├── heitea.jpg │ │ │ ├── hongtea.jpg │ │ │ ├── huangtea.jpg │ │ │ ├── huatea.jpg │ │ │ ├── lvtea.jpg │ │ │ ├── search.png │ │ │ └── wulongtea.jpeg │ │ ├── cbmall │ │ │ ├── cb_03.png │ │ │ ├── cb_07.png │ │ │ ├── cbmall1112.png │ │ │ ├── cbmall_03.png │ │ │ ├── cbmall_05.png │ │ │ ├── cbmall_09.png │ │ │ ├── cbmall_11.png │ │ │ ├── cbmall__03.png │ │ │ ├── cbshop_02.png │ │ │ └── cbshop_05.png │ │ ├── gotop.png │ │ ├── home │ │ │ ├── 987tea_01_03.png │ │ │ ├── 987tea_033.png │ │ │ ├── 987tea_077.png │ │ │ ├── 987tea_31.png │ │ │ ├── 987tea_35.png │ │ │ ├── 987tea_38.png │ │ │ ├── 987tea_logo_03.png │ │ │ ├── 987tea_search.png │ │ │ ├── homenew_03.gif │ │ │ ├── homenew_05.png │ │ │ ├── search_03.png │ │ │ ├── search_07.png │ │ │ └── wenhao.png │ │ ├── home_03.png │ │ ├── login®ister │ │ │ ├── login_03.png │ │ │ ├── message.png │ │ │ ├── password.png │ │ │ └── phone.png │ │ ├── myInfo │ │ │ ├── coupon_03.png │ │ │ ├── delete.png │ │ │ ├── edit.png │ │ │ ├── icon.1.png │ │ │ ├── icon.10.png │ │ │ ├── icon.11.png │ │ │ ├── icon.12.png │ │ │ ├── icon.13.png │ │ │ ├── icon.2.png │ │ │ ├── icon.3.png │ │ │ ├── icon.4.png │ │ │ ├── icon.5.png │ │ │ ├── icon.6.png │ │ │ ├── icon.7.png │ │ │ ├── icon.8.png │ │ │ ├── icon.9.png │ │ │ ├── myInfo_03.png │ │ │ ├── oo.png │ │ │ ├── order_03.png │ │ │ ├── timeout.png │ │ │ ├── toux.jpg │ │ │ └── used.png │ │ ├── noimg.png │ │ ├── productDetails │ │ │ ├── del.png │ │ │ ├── keyi.png │ │ │ ├── kf.png │ │ │ ├── wsc.png │ │ │ └── ysc.png │ │ ├── tabBar │ │ │ ├── 987tea_cart.png │ │ │ ├── 987tea_cart_current.png │ │ │ ├── 987tea_index.png │ │ │ ├── 987tea_index_current.png │ │ │ ├── 987tea_myCenter.png │ │ │ ├── 987tea_myCenter_current.png │ │ │ ├── 987tea_shop.png │ │ │ ├── 987tea_shop_current.png │ │ │ ├── 987tea_world.png │ │ │ └── 987tea_world_current.png │ │ ├── teaCommunity │ │ │ ├── comment (1).png │ │ │ ├── comment.png │ │ │ ├── del.png │ │ │ ├── ding.png │ │ │ ├── isding.png │ │ │ ├── look.png │ │ │ ├── msg.png │ │ │ ├── notification.png │ │ │ ├── post.png │ │ │ ├── reply.png │ │ │ ├── share.png │ │ │ ├── sucess.png │ │ │ ├── tag.png │ │ │ ├── tc_02.png │ │ │ ├── time.png │ │ │ ├── upimg.png │ │ │ └── zan.png │ │ └── tel.png │ ├── js │ │ └── Date.js │ └── logo.png ├── components │ ├── McityPicker.vue │ ├── Mdialog.vue │ ├── Mfooter.vue │ ├── Mheader.vue │ ├── Mmode.vue │ ├── MorderBox.vue │ └── linkage │ │ ├── address.js │ │ └── linkage.vue ├── main.js ├── pages │ ├── CBmall │ │ ├── CBmall.vue │ │ ├── CBmall1.vue │ │ ├── category.vue │ │ └── mall.vue │ ├── Login&Register │ │ ├── login.vue │ │ ├── msgLogin.vue │ │ ├── register.vue │ │ └── resetPassword.vue │ ├── activities │ │ ├── CBimg.vue │ │ ├── active815.vue │ │ ├── oldpromotion.vue │ │ ├── onSale.vue │ │ └── promotion.vue │ ├── cartPage │ │ ├── cart.vue │ │ ├── noIdPayment.vue │ │ ├── payment.vue │ │ └── paymentCompleted.vue │ ├── indexPage │ │ ├── evaluate.vue │ │ ├── home.vue │ │ ├── productDetails.vue │ │ └── searchPage.vue │ ├── mine │ │ ├── commentsBox.vue │ │ ├── coupon.vue │ │ ├── editAddress.vue │ │ ├── helpCenter.vue │ │ ├── logistics.vue │ │ ├── myAddress.vue │ │ ├── myCB.vue │ │ ├── myCollection.vue │ │ ├── myInfo.vue │ │ ├── myOrder.vue │ │ ├── mySet.vue │ │ └── preferences.vue │ ├── settled │ │ └── apply.vue │ └── teaCommunity │ │ ├── msgContent.vue │ │ ├── msgs.vue │ │ ├── post.vue │ │ ├── tcContent.vue │ │ ├── tcHome.vue │ │ └── teaLife.vue ├── router │ └── index.js └── store │ └── index.js └── static └── .gitkeep /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-2" 5 | ], 6 | "plugins": ["transform-runtime"], 7 | "comments": false, 8 | "env": { 9 | "test": { 10 | "presets": ["env", "stage-2"], 11 | "plugins": [ "istanbul" ] 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | // to edit target browsers: use "browserlist" field in package.json 6 | "autoprefixer": {} 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 987茶网 2 | 3 | > A Vue.js project 4 | 5 | ## Build Setup 6 | 7 | ``` bash 8 | # install dependencies 9 | npm install 10 | 11 | # serve with hot reload at localhost:8080 12 | npm run dev 13 | 14 | # build for production with minification 15 | npm run build 16 | 17 | # build for production and view the bundle analyzer report 18 | npm run build --report 19 | ``` 20 | 21 | 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). 22 | -------------------------------------------------------------------------------- /build/build.js: -------------------------------------------------------------------------------- 1 | require('./check-versions')() 2 | 3 | process.env.NODE_ENV = 'production' 4 | 5 | var ora = require('ora') 6 | var rm = require('rimraf') 7 | var path = require('path') 8 | var chalk = require('chalk') 9 | var webpack = require('webpack') 10 | var config = require('../config') 11 | var webpackConfig = require('./webpack.prod.conf') 12 | 13 | var spinner = ora('building for production...') 14 | spinner.start() 15 | 16 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { 17 | if (err) throw err 18 | webpack(webpackConfig, function (err, stats) { 19 | spinner.stop() 20 | if (err) throw err 21 | process.stdout.write(stats.toString({ 22 | colors: true, 23 | modules: false, 24 | children: false, 25 | chunks: false, 26 | chunkModules: false 27 | }) + '\n\n') 28 | 29 | console.log(chalk.cyan(' Build complete.\n')) 30 | console.log(chalk.yellow( 31 | ' Tip: built files are meant to be served over an HTTP server.\n' + 32 | ' Opening index.html over file:// won\'t work.\n' 33 | )) 34 | }) 35 | }) 36 | -------------------------------------------------------------------------------- /build/check-versions.js: -------------------------------------------------------------------------------- 1 | var chalk = require('chalk') 2 | var semver = require('semver') 3 | var packageConfig = require('../package.json') 4 | var shell = require('shelljs') 5 | function exec (cmd) { 6 | return require('child_process').execSync(cmd).toString().trim() 7 | } 8 | 9 | var versionRequirements = [ 10 | { 11 | name: 'node', 12 | currentVersion: semver.clean(process.version), 13 | versionRequirement: packageConfig.engines.node 14 | }, 15 | ] 16 | 17 | if (shell.which('npm')) { 18 | versionRequirements.push({ 19 | name: 'npm', 20 | currentVersion: exec('npm --version'), 21 | versionRequirement: packageConfig.engines.npm 22 | }) 23 | } 24 | 25 | module.exports = function () { 26 | var warnings = [] 27 | for (var i = 0; i < versionRequirements.length; i++) { 28 | var mod = versionRequirements[i] 29 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { 30 | warnings.push(mod.name + ': ' + 31 | chalk.red(mod.currentVersion) + ' should be ' + 32 | chalk.green(mod.versionRequirement) 33 | ) 34 | } 35 | } 36 | 37 | if (warnings.length) { 38 | console.log('') 39 | console.log(chalk.yellow('To use this template, you must update following to modules:')) 40 | console.log() 41 | for (var i = 0; i < warnings.length; i++) { 42 | var warning = warnings[i] 43 | console.log(' ' + warning) 44 | } 45 | console.log() 46 | process.exit(1) 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /build/dev-client.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | require('eventsource-polyfill') 3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') 4 | 5 | hotClient.subscribe(function (event) { 6 | if (event.action === 'reload') { 7 | window.location.reload() 8 | } 9 | }) 10 | -------------------------------------------------------------------------------- /build/dev-server.js: -------------------------------------------------------------------------------- 1 | require('./check-versions')() 2 | 3 | var config = require('../config') 4 | if (!process.env.NODE_ENV) { 5 | process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) 6 | } 7 | 8 | var opn = require('opn') 9 | var path = require('path') 10 | var express = require('express') 11 | var webpack = require('webpack') 12 | var proxyMiddleware = require('http-proxy-middleware') 13 | var webpackConfig = require('./webpack.dev.conf') 14 | 15 | // default port where dev server listens for incoming traffic 16 | var port = process.env.PORT || config.dev.port 17 | // automatically open browser, if not set will be false 18 | var autoOpenBrowser = !!config.dev.autoOpenBrowser 19 | // Define HTTP proxies to your custom API backend 20 | // https://github.com/chimurai/http-proxy-middleware 21 | var proxyTable = config.dev.proxyTable 22 | 23 | var app = express() 24 | var compiler = webpack(webpackConfig) 25 | 26 | var devMiddleware = require('webpack-dev-middleware')(compiler, { 27 | publicPath: webpackConfig.output.publicPath, 28 | quiet: true 29 | }) 30 | 31 | var hotMiddleware = require('webpack-hot-middleware')(compiler, { 32 | log: () => {} 33 | }) 34 | // force page reload when html-webpack-plugin template changes 35 | compiler.plugin('compilation', function (compilation) { 36 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { 37 | hotMiddleware.publish({ action: 'reload' }) 38 | cb() 39 | }) 40 | }) 41 | 42 | // proxy api requests 43 | Object.keys(proxyTable).forEach(function (context) { 44 | var options = proxyTable[context] 45 | if (typeof options === 'string') { 46 | options = { target: options } 47 | } 48 | app.use(proxyMiddleware(options.filter || context, options)) 49 | }) 50 | 51 | // handle fallback for HTML5 history API 52 | app.use(require('connect-history-api-fallback')()) 53 | 54 | // serve webpack bundle output 55 | app.use(devMiddleware) 56 | 57 | // enable hot-reload and state-preserving 58 | // compilation error display 59 | app.use(hotMiddleware) 60 | 61 | // serve pure static assets 62 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) 63 | app.use(staticPath, express.static('./static')) 64 | 65 | var uri = 'http://localhost:' + port 66 | 67 | var _resolve 68 | var readyPromise = new Promise(resolve => { 69 | _resolve = resolve 70 | }) 71 | 72 | console.log('> 开启本地服务...') 73 | devMiddleware.waitUntilValid(() => { 74 | console.log('> 网站在端口 ' + uri + '\n') 75 | // when env is testing, don't need open it 76 | if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') { 77 | opn(uri) 78 | } 79 | _resolve() 80 | }) 81 | 82 | var server = app.listen(port) 83 | 84 | module.exports = { 85 | ready: readyPromise, 86 | close: () => { 87 | server.close() 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /build/utils.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var config = require('../config') 3 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 4 | 5 | exports.assetsPath = function (_path) { 6 | var assetsSubDirectory = process.env.NODE_ENV === 'production' 7 | ? config.build.assetsSubDirectory 8 | : config.dev.assetsSubDirectory 9 | return path.posix.join(assetsSubDirectory, _path) 10 | } 11 | 12 | exports.cssLoaders = function (options) { 13 | options = options || {} 14 | 15 | var cssLoader = { 16 | loader: 'css-loader', 17 | options: { 18 | minimize: process.env.NODE_ENV === 'production', 19 | sourceMap: options.sourceMap 20 | } 21 | } 22 | 23 | // generate loader string to be used with extract text plugin 24 | function generateLoaders (loader, loaderOptions) { 25 | var loaders = [cssLoader] 26 | if (loader) { 27 | loaders.push({ 28 | loader: loader + '-loader', 29 | options: Object.assign({}, loaderOptions, { 30 | sourceMap: options.sourceMap 31 | }) 32 | }) 33 | } 34 | 35 | // Extract CSS when that option is specified 36 | // (which is the case during production build) 37 | if (options.extract) { 38 | return ExtractTextPlugin.extract({ 39 | use: loaders, 40 | fallback: 'vue-style-loader' 41 | }) 42 | } else { 43 | return ['vue-style-loader'].concat(loaders) 44 | } 45 | } 46 | 47 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html 48 | return { 49 | css: generateLoaders(), 50 | postcss: generateLoaders(), 51 | less: generateLoaders('less'), 52 | sass: generateLoaders('sass', { indentedSyntax: true }), 53 | scss: generateLoaders('sass'), 54 | stylus: generateLoaders('stylus'), 55 | styl: generateLoaders('stylus') 56 | } 57 | } 58 | 59 | // Generate loaders for standalone style files (outside of .vue) 60 | exports.styleLoaders = function (options) { 61 | var output = [] 62 | var loaders = exports.cssLoaders(options) 63 | for (var extension in loaders) { 64 | var loader = loaders[extension] 65 | output.push({ 66 | test: new RegExp('\\.' + extension + '$'), 67 | use: loader 68 | }) 69 | } 70 | return output 71 | } 72 | -------------------------------------------------------------------------------- /build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var config = require('../config') 3 | var isProduction = process.env.NODE_ENV === 'production' 4 | 5 | module.exports = { 6 | loaders: utils.cssLoaders({ 7 | sourceMap: isProduction 8 | ? config.build.productionSourceMap 9 | : config.dev.cssSourceMap, 10 | extract: isProduction 11 | }) 12 | } 13 | -------------------------------------------------------------------------------- /build/webpack.base.conf.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var utils = require('./utils') 3 | var config = require('../config') 4 | var vueLoaderConfig = require('./vue-loader.conf') 5 | 6 | function resolve (dir) { 7 | return path.join(__dirname, '..', dir) 8 | } 9 | 10 | module.exports = { 11 | entry: { 12 | app: './src/main.js' 13 | }, 14 | output: { 15 | path: config.build.assetsRoot, 16 | filename: '[name].js', 17 | publicPath: process.env.NODE_ENV === 'production' 18 | ? config.build.assetsPublicPath 19 | : config.dev.assetsPublicPath 20 | }, 21 | resolve: { 22 | extensions: ['.js', '.vue', '.json'], 23 | alias: { 24 | 'vue$': 'vue/dist/vue.esm.js', 25 | '@': resolve('src') 26 | } 27 | }, 28 | module: { 29 | rules: [ 30 | { 31 | test: /\.vue$/, 32 | loader: 'vue-loader', 33 | options: vueLoaderConfig 34 | }, 35 | { 36 | test: /\.js$/, 37 | loader: 'babel-loader', 38 | include: [resolve('src'), resolve('test')] 39 | }, 40 | { 41 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, 42 | loader: 'url-loader', 43 | options: { 44 | limit: 10000, 45 | name: utils.assetsPath('img/[name].[hash:7].[ext]') 46 | } 47 | }, 48 | { 49 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, 50 | loader: 'url-loader', 51 | options: { 52 | limit: 10000, 53 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]') 54 | } 55 | } 56 | ] 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /build/webpack.dev.conf.js: -------------------------------------------------------------------------------- 1 | var utils = require('./utils') 2 | var webpack = require('webpack') 3 | var config = require('../config') 4 | var merge = require('webpack-merge') 5 | var baseWebpackConfig = require('./webpack.base.conf') 6 | var HtmlWebpackPlugin = require('html-webpack-plugin') 7 | var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') 8 | 9 | // add hot-reload related code to entry chunks 10 | Object.keys(baseWebpackConfig.entry).forEach(function (name) { 11 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) 12 | }) 13 | 14 | module.exports = merge(baseWebpackConfig, { 15 | module: { 16 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) 17 | }, 18 | // cheap-module-eval-source-map is faster for development 19 | devtool: '#cheap-module-eval-source-map', 20 | plugins: [ 21 | new webpack.DefinePlugin({ 22 | 'process.env': config.dev.env 23 | }), 24 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage 25 | new webpack.HotModuleReplacementPlugin(), 26 | new webpack.NoEmitOnErrorsPlugin(), 27 | // https://github.com/ampedandwired/html-webpack-plugin 28 | new HtmlWebpackPlugin({ 29 | filename: 'index.html', 30 | template: 'index.html', 31 | inject: true 32 | }), 33 | new FriendlyErrorsPlugin() 34 | ] 35 | }) 36 | -------------------------------------------------------------------------------- /build/webpack.prod.conf.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var utils = require('./utils') 3 | var webpack = require('webpack') 4 | var config = require('../config') 5 | var merge = require('webpack-merge') 6 | var baseWebpackConfig = require('./webpack.base.conf') 7 | var CopyWebpackPlugin = require('copy-webpack-plugin') 8 | var HtmlWebpackPlugin = require('html-webpack-plugin') 9 | var ExtractTextPlugin = require('extract-text-webpack-plugin') 10 | var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') 11 | 12 | var env = config.build.env 13 | 14 | var webpackConfig = merge(baseWebpackConfig, { 15 | module: { 16 | rules: utils.styleLoaders({ 17 | sourceMap: config.build.productionSourceMap, 18 | extract: true 19 | }) 20 | }, 21 | devtool: config.build.productionSourceMap ? '#source-map' : false, 22 | output: { 23 | path: config.build.assetsRoot, 24 | filename: utils.assetsPath('js/[name].[chunkhash].js'), 25 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') 26 | }, 27 | plugins: [ 28 | // http://vuejs.github.io/vue-loader/en/workflow/production.html 29 | new webpack.DefinePlugin({ 30 | 'process.env': env 31 | }), 32 | new webpack.optimize.UglifyJsPlugin({ 33 | compress: { 34 | warnings: false 35 | }, 36 | sourceMap: true 37 | }), 38 | // extract css into its own file 39 | new ExtractTextPlugin({ 40 | filename: utils.assetsPath('css/[name].[contenthash].css') 41 | }), 42 | // Compress extracted CSS. We are using this plugin so that possible 43 | // duplicated CSS from different components can be deduped. 44 | new OptimizeCSSPlugin({ 45 | cssProcessorOptions: { 46 | safe: true 47 | } 48 | }), 49 | // generate dist index.html with correct asset hash for caching. 50 | // you can customize output by editing /index.html 51 | // see https://github.com/ampedandwired/html-webpack-plugin 52 | new HtmlWebpackPlugin({ 53 | filename: config.build.index, 54 | template: 'index.html', 55 | inject: true, 56 | minify: { 57 | removeComments: true, 58 | collapseWhitespace: true, 59 | removeAttributeQuotes: true 60 | // more options: 61 | // https://github.com/kangax/html-minifier#options-quick-reference 62 | }, 63 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin 64 | chunksSortMode: 'dependency' 65 | }), 66 | // split vendor js into its own file 67 | new webpack.optimize.CommonsChunkPlugin({ 68 | name: 'vendor', 69 | minChunks: function (module, count) { 70 | // any required modules inside node_modules are extracted to vendor 71 | return ( 72 | module.resource && 73 | /\.js$/.test(module.resource) && 74 | module.resource.indexOf( 75 | path.join(__dirname, '../node_modules') 76 | ) === 0 77 | ) 78 | } 79 | }), 80 | // extract webpack runtime and module manifest to its own file in order to 81 | // prevent vendor hash from being updated whenever app bundle is updated 82 | new webpack.optimize.CommonsChunkPlugin({ 83 | name: 'manifest', 84 | chunks: ['vendor'] 85 | }), 86 | // copy custom static assets 87 | new CopyWebpackPlugin([ 88 | { 89 | from: path.resolve(__dirname, '../static'), 90 | to: config.build.assetsSubDirectory, 91 | ignore: ['.*'] 92 | } 93 | ]) 94 | ] 95 | }) 96 | 97 | if (config.build.productionGzip) { 98 | var CompressionWebpackPlugin = require('compression-webpack-plugin') 99 | 100 | webpackConfig.plugins.push( 101 | new CompressionWebpackPlugin({ 102 | asset: '[path].gz[query]', 103 | algorithm: 'gzip', 104 | test: new RegExp( 105 | '\\.(' + 106 | config.build.productionGzipExtensions.join('|') + 107 | ')$' 108 | ), 109 | threshold: 10240, 110 | minRatio: 0.8 111 | }) 112 | ) 113 | } 114 | 115 | if (config.build.bundleAnalyzerReport) { 116 | var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin 117 | webpackConfig.plugins.push(new BundleAnalyzerPlugin()) 118 | } 119 | 120 | module.exports = webpackConfig 121 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /config/index.js: -------------------------------------------------------------------------------- 1 | // see http://vuejs-templates.github.io/webpack for documentation. 2 | var path = require('path') 3 | 4 | module.exports = { 5 | build: { 6 | env: require('./prod.env'), 7 | index: path.resolve(__dirname, '../dist/index.html'), 8 | assetsRoot: path.resolve(__dirname, '../dist'), 9 | assetsSubDirectory: 'static', 10 | assetsPublicPath: '/vue/', 11 | productionSourceMap: true, 12 | // Gzip off by default as many popular static hosts such as 13 | // Surge or Netlify already gzip all static assets for you. 14 | // Before setting to `true`, make sure to: 15 | // npm install --save-dev compression-webpack-plugin 16 | productionGzip: false, 17 | productionGzipExtensions: ['js', 'css'], 18 | // Run the build command with an extra argument to 19 | // View the bundle analyzer report after build finishes: 20 | // `npm run build --report` 21 | // Set to `true` or `false` to always turn it on or off 22 | bundleAnalyzerReport: process.env.npm_config_report 23 | }, 24 | dev: { 25 | env: require('./dev.env'), 26 | port: 7898, 27 | autoOpenBrowser: true, 28 | assetsSubDirectory: 'static', 29 | assetsPublicPath: '/', 30 | proxyTable: {}, 31 | // CSS Sourcemaps off by default because relative paths are "buggy" 32 | // with this option, according to the CSS-Loader README 33 | // (https://github.com/webpack/css-loader#sourcemaps) 34 | // In our experience, they generally work as expected, 35 | // just be aware of this issue when enabling this option. 36 | cssSourceMap: false 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 网上购买茶叶茶具商城|正宗平价、货到付款-中榕茗茶(987Tea.com) 6 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 23 | 32 | 36 | 37 | 38 |
39 | 40 | 41 | 42 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "987tea", 3 | "version": "1.0.0", 4 | "description": "A Vue.js project", 5 | "author": "LLM<857381350@qq.com>", 6 | "private": true, 7 | "scripts": { 8 | "dev": "node build/dev-server.js", 9 | "start": "node build/dev-server.js", 10 | "build": "node build/build.js" 11 | }, 12 | "dependencies": { 13 | "axios": "^0.16.2", 14 | "exif-js": "^2.2.1", 15 | "js-base64": "^2.1.9", 16 | "mint-ui": "^2.2.7", 17 | "vue": "^2.3.3", 18 | "vue-router": "^2.3.1", 19 | "vuex": "^2.3.1" 20 | }, 21 | "devDependencies": { 22 | "autoprefixer": "^6.7.2", 23 | "babel-core": "^6.22.1", 24 | "babel-loader": "^6.2.10", 25 | "babel-plugin-transform-runtime": "^6.22.0", 26 | "babel-preset-env": "^1.3.2", 27 | "babel-preset-stage-2": "^6.22.0", 28 | "babel-register": "^6.22.0", 29 | "chalk": "^1.1.3", 30 | "connect-history-api-fallback": "^1.3.0", 31 | "copy-webpack-plugin": "^4.0.1", 32 | "css-loader": "^0.28.0", 33 | "eventsource-polyfill": "^0.9.6", 34 | "express": "^4.14.1", 35 | "extract-text-webpack-plugin": "^2.0.0", 36 | "file-loader": "^0.11.1", 37 | "friendly-errors-webpack-plugin": "^1.1.3", 38 | "html-webpack-plugin": "^2.28.0", 39 | "http-proxy-middleware": "^0.17.3", 40 | "less": "^2.7.2", 41 | "node-sass": "^4.5.3", 42 | "opn": "^4.0.2", 43 | "optimize-css-assets-webpack-plugin": "^1.3.0", 44 | "ora": "^1.2.0", 45 | "rimraf": "^2.6.0", 46 | "sass-loader": "^6.0.6", 47 | "semver": "^5.3.0", 48 | "shelljs": "^0.7.6", 49 | "url-loader": "^0.5.8", 50 | "vue-loader": "^12.1.0", 51 | "vue-style-loader": "^3.0.1", 52 | "vue-template-compiler": "^2.3.3", 53 | "vux-loader": "^1.1.1", 54 | "webpack": "^2.6.1", 55 | "webpack-bundle-analyzer": "^2.2.1", 56 | "webpack-dev-middleware": "^1.10.0", 57 | "webpack-hot-middleware": "^2.18.0", 58 | "webpack-merge": "^4.1.0" 59 | }, 60 | "engines": { 61 | "node": ">= 4.0.0", 62 | "npm": ">= 3.0.0" 63 | }, 64 | "browserslist": [ 65 | "> 1%", 66 | "last 2 versions", 67 | "not ie <= 8" 68 | ] 69 | } 70 | -------------------------------------------------------------------------------- /src/assets/images/CBimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/CBimg.jpg -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_05.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_11.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_17.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_23.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_29.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_35.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_41.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_47.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_47.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/09_53.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/09_53.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/815BG.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/815BG.jpg -------------------------------------------------------------------------------- /src/assets/images/activities/815/815TOP_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/815TOP_03.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/denglong_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/denglong_02.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/denglong_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/denglong_03.png -------------------------------------------------------------------------------- /src/assets/images/activities/815/zdzb_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/815/zdzb_02.png -------------------------------------------------------------------------------- /src/assets/images/activities/activegif.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activegif.gif -------------------------------------------------------------------------------- /src/assets/images/activities/activetis_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activetis_03.png -------------------------------------------------------------------------------- /src/assets/images/activities/activetis_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activetis_05.png -------------------------------------------------------------------------------- /src/assets/images/activities/activities_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activities_03.png -------------------------------------------------------------------------------- /src/assets/images/activities/activities_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activities_05.png -------------------------------------------------------------------------------- /src/assets/images/activities/activities_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activities_10.png -------------------------------------------------------------------------------- /src/assets/images/activities/activities_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/activities_14.png -------------------------------------------------------------------------------- /src/assets/images/activities/avtive_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/avtive_03.png -------------------------------------------------------------------------------- /src/assets/images/activities/avtive_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/avtive_07.png -------------------------------------------------------------------------------- /src/assets/images/activities/cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/cart.png -------------------------------------------------------------------------------- /src/assets/images/activities/dcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/dcode.png -------------------------------------------------------------------------------- /src/assets/images/activities/dcode_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/activities/dcode_03.png -------------------------------------------------------------------------------- /src/assets/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/arrow.png -------------------------------------------------------------------------------- /src/assets/images/arrow1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/arrow1.png -------------------------------------------------------------------------------- /src/assets/images/back22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/back22.png -------------------------------------------------------------------------------- /src/assets/images/banner/banner01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner01.jpg -------------------------------------------------------------------------------- /src/assets/images/banner/banner02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner02.jpg -------------------------------------------------------------------------------- /src/assets/images/banner/banner03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner03.jpg -------------------------------------------------------------------------------- /src/assets/images/banner/banner1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner1.png -------------------------------------------------------------------------------- /src/assets/images/banner/banner2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner2.jpg -------------------------------------------------------------------------------- /src/assets/images/banner/banner3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner3.jpg -------------------------------------------------------------------------------- /src/assets/images/banner/banner4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/banner/banner4.jpg -------------------------------------------------------------------------------- /src/assets/images/cart/checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart/checked.png -------------------------------------------------------------------------------- /src/assets/images/cart/completed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart/completed.png -------------------------------------------------------------------------------- /src/assets/images/cart/huo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart/huo.png -------------------------------------------------------------------------------- /src/assets/images/cart/unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart/unchecked.png -------------------------------------------------------------------------------- /src/assets/images/cart/wx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart/wx.png -------------------------------------------------------------------------------- /src/assets/images/cart/zfb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart/zfb.png -------------------------------------------------------------------------------- /src/assets/images/cart_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cart_03.png -------------------------------------------------------------------------------- /src/assets/images/category/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/back.png -------------------------------------------------------------------------------- /src/assets/images/category/baitea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/baitea.jpg -------------------------------------------------------------------------------- /src/assets/images/category/category_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/category_03.png -------------------------------------------------------------------------------- /src/assets/images/category/category_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/category_07.png -------------------------------------------------------------------------------- /src/assets/images/category/chaju.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/chaju.jpg -------------------------------------------------------------------------------- /src/assets/images/category/heitea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/heitea.jpg -------------------------------------------------------------------------------- /src/assets/images/category/hongtea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/hongtea.jpg -------------------------------------------------------------------------------- /src/assets/images/category/huangtea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/huangtea.jpg -------------------------------------------------------------------------------- /src/assets/images/category/huatea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/huatea.jpg -------------------------------------------------------------------------------- /src/assets/images/category/lvtea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/lvtea.jpg -------------------------------------------------------------------------------- /src/assets/images/category/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/search.png -------------------------------------------------------------------------------- /src/assets/images/category/wulongtea.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/category/wulongtea.jpeg -------------------------------------------------------------------------------- /src/assets/images/cbmall/cb_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cb_03.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cb_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cb_07.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbmall1112.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbmall1112.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbmall_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbmall_03.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbmall_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbmall_05.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbmall_09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbmall_09.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbmall_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbmall_11.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbmall__03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbmall__03.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbshop_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbshop_02.png -------------------------------------------------------------------------------- /src/assets/images/cbmall/cbshop_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/cbmall/cbshop_05.png -------------------------------------------------------------------------------- /src/assets/images/gotop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/gotop.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_01_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_01_03.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_033.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_033.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_077.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_077.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_31.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_35.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_38.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_logo_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_logo_03.png -------------------------------------------------------------------------------- /src/assets/images/home/987tea_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/987tea_search.png -------------------------------------------------------------------------------- /src/assets/images/home/homenew_03.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/homenew_03.gif -------------------------------------------------------------------------------- /src/assets/images/home/homenew_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/homenew_05.png -------------------------------------------------------------------------------- /src/assets/images/home/search_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/search_03.png -------------------------------------------------------------------------------- /src/assets/images/home/search_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/search_07.png -------------------------------------------------------------------------------- /src/assets/images/home/wenhao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home/wenhao.png -------------------------------------------------------------------------------- /src/assets/images/home_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/home_03.png -------------------------------------------------------------------------------- /src/assets/images/login®ister/login_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/login®ister/login_03.png -------------------------------------------------------------------------------- /src/assets/images/login®ister/message.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/login®ister/message.png -------------------------------------------------------------------------------- /src/assets/images/login®ister/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/login®ister/password.png -------------------------------------------------------------------------------- /src/assets/images/login®ister/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/login®ister/phone.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/coupon_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/coupon_03.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/delete.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/edit.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.1.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.10.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.11.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.12.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.13.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.2.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.3.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.4.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.5.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.6.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.7.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.8.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/icon.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/icon.9.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/myInfo_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/myInfo_03.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/oo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/oo.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/order_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/order_03.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/timeout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/timeout.png -------------------------------------------------------------------------------- /src/assets/images/myInfo/toux.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/toux.jpg -------------------------------------------------------------------------------- /src/assets/images/myInfo/used.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/myInfo/used.png -------------------------------------------------------------------------------- /src/assets/images/noimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/noimg.png -------------------------------------------------------------------------------- /src/assets/images/productDetails/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/productDetails/del.png -------------------------------------------------------------------------------- /src/assets/images/productDetails/keyi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/productDetails/keyi.png -------------------------------------------------------------------------------- /src/assets/images/productDetails/kf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/productDetails/kf.png -------------------------------------------------------------------------------- /src/assets/images/productDetails/wsc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/productDetails/wsc.png -------------------------------------------------------------------------------- /src/assets/images/productDetails/ysc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/productDetails/ysc.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_cart.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_cart_current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_cart_current.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_index.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_index_current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_index_current.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_myCenter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_myCenter.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_myCenter_current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_myCenter_current.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_shop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_shop.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_shop_current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_shop_current.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_world.png -------------------------------------------------------------------------------- /src/assets/images/tabBar/987tea_world_current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tabBar/987tea_world_current.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/comment (1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/comment (1).png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/comment.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/del.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/ding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/ding.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/isding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/isding.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/look.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/look.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/msg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/msg.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/notification.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/notification.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/post.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/post.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/reply.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/reply.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/share.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/sucess.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/sucess.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/tag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/tag.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/tc_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/tc_02.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/time.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/upimg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/upimg.png -------------------------------------------------------------------------------- /src/assets/images/teaCommunity/zan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/teaCommunity/zan.png -------------------------------------------------------------------------------- /src/assets/images/tel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/images/tel.png -------------------------------------------------------------------------------- /src/assets/js/Date.js: -------------------------------------------------------------------------------- 1 | export function formatDate(val) { 2 | if(!!!val){ 3 | return; 4 | } 5 | let time = val.replace("T", " "); 6 | let result = time.split(' ')[0]; 7 | let date = new Date(time.replace(/-/g,"/")); 8 | let oneminute = 1000 * 60; 9 | let onehour = oneminute * 60; 10 | let oneday = onehour * 24; 11 | let nowdate = new Date(); 12 | let timeDiff = nowdate.getTime() - date.getTime(); 13 | let dayDiff = nowdate.getDate() - date.getDate(); 14 | if (timeDiff < 0) { 15 | result = "刚刚"; 16 | } 17 | else if (timeDiff < oneminute * 5) { 18 | result = "刚刚"; 19 | } 20 | else if (timeDiff < onehour) { 21 | result = Math.floor(timeDiff / oneminute) + "分钟前"; 22 | } 23 | else if (timeDiff < oneday && dayDiff == 0) { 24 | result = Math.floor(timeDiff / onehour) + "小时前"; 25 | } 26 | else if (timeDiff < oneday * 2 && dayDiff == 1) { 27 | result = "昨天 " + date.Format("hh:mm"); 28 | } 29 | else if (timeDiff < oneday * 3 && dayDiff == 2) { 30 | result = "前天 " + date.Format("hh:mm"); 31 | } 32 | return result; 33 | }; 34 | 35 | Date.prototype.Format = function (fmt) { //author: meizz 36 | var o = { 37 | "M+": this.getMonth() + 1, //月份 38 | "d+": this.getDate(), //日 39 | "h+": this.getHours(), //小时 40 | "m+": this.getMinutes(), //分 41 | "s+": this.getSeconds(), //秒 42 | "q+": Math.floor((this.getMonth() + 3) / 3), //季度 43 | "S": this.getMilliseconds() //毫秒 44 | }; 45 | if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); 46 | for (var k in o) 47 | if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); 48 | return fmt; 49 | } -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/src/assets/logo.png -------------------------------------------------------------------------------- /src/components/Mdialog.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 29 | 30 | 97 | -------------------------------------------------------------------------------- /src/components/Mfooter.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 33 | 34 | 103 | -------------------------------------------------------------------------------- /src/components/Mheader.vue: -------------------------------------------------------------------------------- 1 | 14 | 15 | 35 | 87 | -------------------------------------------------------------------------------- /src/components/Mmode.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 30 | 31 | 33 | -------------------------------------------------------------------------------- /src/components/MorderBox.vue: -------------------------------------------------------------------------------- 1 | 29 | 30 | 41 | 42 | 110 | -------------------------------------------------------------------------------- /src/components/linkage/linkage.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 72 | 73 | 157 | -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | // The Vue build version to load with the `import` command 2 | // (runtime-only or standalone) has been set in webpack.base.conf with an alias. 3 | import Vue from 'vue' 4 | import App from './App' 5 | import router from './router' 6 | import store from './store/index' 7 | 8 | 9 | import axios from 'axios' 10 | import Mint from 'mint-ui' 11 | import 'mint-ui/lib/style.css' 12 | 13 | 14 | Vue.use(Mint) 15 | //Vue.use(axios) 16 | Vue.prototype.axios = axios 17 | 18 | import { Toast } from 'mint-ui' 19 | //添加一个返回拦截器 20 | axios.interceptors.response.use(function (response) { 21 | //对返回的数据进行一些处理 22 | return response; 23 | }, function (err) { 24 | //对返回的错误进行一些处理 25 | if (err.response.config.url.includes('/api/Product/IsFavourite')) { 26 | //过滤商品详情页的登录跳转进行处理 27 | localStorage.removeItem('lut'); 28 | } 29 | else if (err.response.config.url.includes('/api/ShoppingCar/UserShoppingCar')) { 30 | //过滤购物车的登录跳转进行处理 31 | localStorage.removeItem('lut'); 32 | } 33 | else if (err.response.config.url.includes('/api/CM_Information/GetInfoCount')) { 34 | //过滤茶友圈的登录跳转进行处理 35 | localStorage.removeItem('lut'); 36 | } else if (err.response.config.url.includes('/api/Product/GetUserViewProduct')) { 37 | //过滤获取用户喜欢的茶的登录跳转进行处理 38 | localStorage.removeItem('lut'); 39 | } 40 | 41 | else if (err.response.status == 401) { 42 | let instance = Toast('还未登录,请先登录'); 43 | setTimeout(() => { 44 | 45 | instance.close(); 46 | router.replace({ 47 | path: '/login/', 48 | query: { redirect: router.currentRoute.fullPath } 49 | }) 50 | }, 1500); 51 | 52 | } else { 53 | //Toast('网络请求错误'); 54 | return Promise.reject(error); 55 | } 56 | 57 | }); 58 | 59 | 60 | // 内网地址: 'http://192.168.1.110:8088' 61 | //本地地址: 'http://localhost:55338' //'http://localhost:8088' 62 | //正式地址: 'http://api.987tea.com' 63 | Vue.prototype.url = 'http://192.168.1.110:8088' 64 | // Vue.prototype.url='http://localhost:55338' 65 | // Vue.prototype.url='http://api.987tea.com' 66 | 67 | 68 | Vue.config.productionTip = false 69 | 70 | 71 | /* eslint-disable no-new */ 72 | new Vue({ 73 | el: '#app', 74 | router, 75 | store: store, 76 | template: '', 77 | components: { App } 78 | }) 79 | -------------------------------------------------------------------------------- /src/pages/CBmall/CBmall.vue: -------------------------------------------------------------------------------- 1 | 70 | 71 | 176 | 177 | 283 | -------------------------------------------------------------------------------- /src/pages/CBmall/CBmall1.vue: -------------------------------------------------------------------------------- 1 | 32 | 33 | 171 | 172 | 248 | -------------------------------------------------------------------------------- /src/pages/CBmall/category.vue: -------------------------------------------------------------------------------- 1 | 20 | 21 | 81 | 82 | 136 | -------------------------------------------------------------------------------- /src/pages/CBmall/mall.vue: -------------------------------------------------------------------------------- 1 | 34 | 35 | 173 | 174 | 250 | -------------------------------------------------------------------------------- /src/pages/Login&Register/login.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 114 | 115 | 172 | -------------------------------------------------------------------------------- /src/pages/Login&Register/msgLogin.vue: -------------------------------------------------------------------------------- 1 | 47 | 48 | 213 | 214 | 311 | -------------------------------------------------------------------------------- /src/pages/Login&Register/resetPassword.vue: -------------------------------------------------------------------------------- 1 | 31 | 32 | 195 | 196 | 291 | -------------------------------------------------------------------------------- /src/pages/activities/CBimg.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 53 | 54 | 94 | -------------------------------------------------------------------------------- /src/pages/activities/active815.vue: -------------------------------------------------------------------------------- 1 | 42 | 43 | 52 | 53 | 118 | -------------------------------------------------------------------------------- /src/pages/cartPage/paymentCompleted.vue: -------------------------------------------------------------------------------- 1 | 26 | 27 | 38 | 39 | 72 | -------------------------------------------------------------------------------- /src/pages/indexPage/evaluate.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 55 | 56 | 88 | -------------------------------------------------------------------------------- /src/pages/indexPage/searchPage.vue: -------------------------------------------------------------------------------- 1 | 58 | 59 | 165 | 166 | 240 | -------------------------------------------------------------------------------- /src/pages/mine/commentsBox.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 66 | 67 | 98 | -------------------------------------------------------------------------------- /src/pages/mine/coupon.vue: -------------------------------------------------------------------------------- 1 | 38 | 39 | 113 | 114 | 185 | -------------------------------------------------------------------------------- /src/pages/mine/editAddress.vue: -------------------------------------------------------------------------------- 1 | 27 | 28 | 186 | 187 | 285 | -------------------------------------------------------------------------------- /src/pages/mine/logistics.vue: -------------------------------------------------------------------------------- 1 | 30 | 31 | 96 | 97 | 166 | -------------------------------------------------------------------------------- /src/pages/mine/myAddress.vue: -------------------------------------------------------------------------------- 1 | 33 | 34 | 81 | 82 | 146 | -------------------------------------------------------------------------------- /src/pages/mine/myCB.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 149 | 150 | 214 | -------------------------------------------------------------------------------- /src/pages/mine/myCollection.vue: -------------------------------------------------------------------------------- 1 | 40 | 41 | 105 | 106 | 160 | -------------------------------------------------------------------------------- /src/pages/mine/myInfo.vue: -------------------------------------------------------------------------------- 1 | 108 | 109 | 152 | 153 | 244 | -------------------------------------------------------------------------------- /src/pages/mine/mySet.vue: -------------------------------------------------------------------------------- 1 | 85 | 86 | 198 | 199 | 280 | -------------------------------------------------------------------------------- /src/pages/mine/preferences.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 157 | 158 | 171 | -------------------------------------------------------------------------------- /src/pages/teaCommunity/msgContent.vue: -------------------------------------------------------------------------------- 1 | 45 | 46 | 138 | 139 | 193 | -------------------------------------------------------------------------------- /src/pages/teaCommunity/msgs.vue: -------------------------------------------------------------------------------- 1 | 28 | 29 | 98 | 99 | 111 | -------------------------------------------------------------------------------- /src/router/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Router from 'vue-router' 3 | 4 | // 首页 5 | import Home from '@/pages/indexPage/home' 6 | import ProductDetails from '@/pages/indexPage/productDetails' 7 | import SearchPage from '@/pages/indexPage/searchPage' 8 | import Category from '@/pages/CBmall/category' 9 | import Evaluate from '@/pages/indexPage/evaluate' 10 | 11 | // 购物车 12 | import Cart from '@/pages/cartPage/cart' 13 | import Payment from '@/pages/cartPage/payment' 14 | import NoIdPayment from '@/pages/cartPage/noIdPayment' 15 | import PaymentCompleted from '@/pages/cartPage/paymentCompleted' 16 | 17 | // 茶圈子 18 | import TcHome from '@/pages/teaCommunity/tcHome' 19 | // import TcContent from '@/pages/teaCommunity/tcContent' 20 | import TeaLife from '@/pages/teaCommunity/teaLife' 21 | import Post from '@/pages/teaCommunity/post' 22 | import MsgContent from '@/pages/teaCommunity/msgContent' 23 | import Msgs from '@/pages/teaCommunity/msgs' 24 | 25 | // 活动页 26 | // import OnSale from '@/pages/activities/onSale' 27 | import CBimg from '@/pages/activities/CBimg' 28 | import Promotion from '@/pages/activities/promotion' 29 | import Active815 from '@/pages/activities/Active815' 30 | 31 | //登录注册 32 | import Register from '@/pages/Login&Register/register' 33 | import Login from '@/pages/Login&Register/login' 34 | import MsgLogin from '@/pages/Login&Register/msgLogin' 35 | import ResetPassword from '@/pages/Login&Register/resetPassword' 36 | 37 | // 个人中心 38 | import MyInfo from '@/pages/mine/myInfo' 39 | import MySet from '@/pages/mine/mySet' 40 | import MyCB from '@/pages/mine/myCB' 41 | import MyOrder from '@/pages/mine/myOrder' 42 | import MyCollection from '@/pages/mine/myCollection' 43 | import Coupon from '@/pages/mine/coupon' 44 | import HelpCenter from '@/pages/mine/HelpCenter' 45 | import MyAddress from '@/pages/mine/myAddress' 46 | import EditAddress from '@/pages/mine/editAddress' 47 | import CommentsBox from '@/pages/mine/commentsBox' 48 | import Preferences from '@/pages/mine/preferences' 49 | import Logistics from '@/pages/mine/logistics' 50 | 51 | // 商城 52 | import CBmall from '@/pages/CBmall/CBmall' 53 | import CBmall1 from '@/pages/CBmall/CBmall1' 54 | import Mall from '@/pages/CBmall/mall' 55 | 56 | // 入驻申请 57 | import Apply from '@/pages/settled/apply' 58 | 59 | 60 | Vue.use(Router) 61 | 62 | export default new Router({ 63 | mode: 'history', 64 | hashbang: false, 65 | // base: '/vue/', 66 | routes: [ 67 | // 首页 68 | { 69 | path: '/', 70 | component: Home 71 | }, { 72 | path: '/Category', 73 | component: Category 74 | }, { 75 | path: '/SearchPage', 76 | component: SearchPage 77 | }, { 78 | path: '/ProductDetails/:productID', 79 | component: ProductDetails 80 | }, { 81 | path: '/Evaluate/:orderId', 82 | component: Evaluate 83 | }, 84 | // 购物车 85 | { 86 | path: '/Cart', 87 | component: Cart 88 | }, { 89 | path: '/Payment', 90 | component: Payment 91 | },{ 92 | path: '/NoIdPayment', 93 | component: NoIdPayment 94 | }, { 95 | path: '/PaymentCompleted', 96 | component: PaymentCompleted 97 | }, 98 | // 茶圈子 99 | { 100 | path: '/TcHome', 101 | component: TcHome 102 | }, { 103 | path: '/TeaLife/:themeId', 104 | component: TeaLife 105 | }, 106 | // { 107 | // path: '/Post', 108 | // component: Post 109 | // }, 110 | { 111 | path: '/MsgContent/:typeId', 112 | component: MsgContent 113 | }, { 114 | path: '/Msgs', 115 | component: Msgs 116 | }, 117 | // 活动页 118 | // { 119 | // path: '/onSale', 120 | // component: OnSale 121 | // } 122 | ,{ 123 | path: '/Promotion/:id', 124 | component: Promotion 125 | },{ 126 | path: '/CBimg', 127 | component: CBimg 128 | }, 129 | { 130 | path: '/Active815', 131 | component: Active815 132 | }, 133 | //登录注册 134 | { 135 | path: '/Login', 136 | component: Login 137 | }, { 138 | path: '/MsgLogin', 139 | component: MsgLogin 140 | }, { 141 | path: '/Register', 142 | component: Register 143 | }, { 144 | path: '/ResetPassword', 145 | component: ResetPassword 146 | }, 147 | // 个人中心 148 | { 149 | path: '/MyInfo', 150 | component: MyInfo 151 | }, { 152 | path: '/MySet', 153 | component: MySet 154 | }, { 155 | path: '/MyCB', 156 | component: MyCB 157 | }, { 158 | path: '/MyOrder/:title/:tabNum', 159 | component: MyOrder 160 | }, { 161 | path: '/MyCollection', 162 | component: MyCollection 163 | }, { 164 | path: '/MyAddress', 165 | component: MyAddress 166 | }, { 167 | path: '/HelpCenter', 168 | component: HelpCenter 169 | }, { 170 | path: '/EditAddress/:aId', 171 | component: EditAddress 172 | }, { 173 | path: '/CommentsBox', 174 | component: CommentsBox 175 | }, { 176 | path: '/Coupon', 177 | component: Coupon 178 | }, { 179 | path: '/Preferences/:title/:id', 180 | component: Preferences 181 | }, { 182 | path: '/Logistics', 183 | component: Logistics 184 | }, 185 | // 商城 186 | { 187 | path: '/CBmall', 188 | component: CBmall 189 | },{ 190 | path: '/CBmall1', 191 | component: CBmall1 192 | }, { 193 | path: '/Mall', 194 | component: Mall 195 | }, 196 | // 入驻申请 197 | { 198 | path:'/Apply', 199 | component: Apply 200 | } 201 | ] 202 | }) 203 | -------------------------------------------------------------------------------- /src/store/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2017/7/12. 3 | */ 4 | import Vue from 'vue'; 5 | import Vuex from 'vuex'; 6 | Vue.use(Vuex); 7 | 8 | // 定义数据源 9 | const state = { 10 | 11 | //订单的收货地址 12 | receiveAddress:'', 13 | //话题类型标签 14 | themeTags:'', 15 | //话题标题 16 | themeTitle:'', 17 | //话题内容 18 | themeContent:'' 19 | 20 | } 21 | 22 | // 定义方法 23 | const mutations = { 24 | changeUserName(state,ll) { 25 | state.user_name = ll 26 | }, 27 | showUserName(state){ 28 | alert(state.cc); 29 | } 30 | 31 | } 32 | 33 | 34 | 35 | 36 | export default new Vuex.Store({ 37 | state, 38 | mutations 39 | }) 40 | -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LLM-stack/987tea/7a233c465741044f3fd0f5ce3e3d2dedba866fec/static/.gitkeep --------------------------------------------------------------------------------