├── .babelrc
├── .editorconfig
├── .gitignore
├── .postcssrc.js
├── README.md
├── build
├── build.js
├── check-versions.js
├── logo.png
├── 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
├── data.json
├── index.html
├── package-lock.json
├── package.json
├── resource
├── PSD
│ ├── 外卖01_商品页.mkm
│ ├── 外卖01_商品页.psd
│ ├── 外卖01_商品页_spec.png
│ ├── 外卖02_商品页_公告及优惠信息.mkm
│ ├── 外卖02_商品页_公告及优惠信息.psd
│ ├── 外卖02_商品页_公告及优惠信息_spec.png
│ ├── 外卖03_商品页_购物车详情.mkm
│ ├── 外卖03_商品页_购物车详情.psd
│ ├── 外卖03_商品页_购物车详情_spec.png
│ ├── 外卖04_商品页面_商品详情.mkm
│ ├── 外卖04_商品页面_商品详情.psd
│ ├── 外卖04_商品页面_商品详情_spec.png
│ ├── 外卖05_评价页.mkm
│ ├── 外卖05_评价页.psd
│ ├── 外卖05_评价页_spec.png
│ ├── 外卖06_商家页.mkm
│ ├── 外卖06_商家页.psd
│ └── 外卖06_商家页_spec.png
├── SVG
│ ├── add_circle.svg
│ ├── arrow_lift.svg
│ ├── check_circle.svg
│ ├── close.svg
│ ├── favorite.svg
│ ├── keyboard_arrow_right.svg
│ ├── remove_circle_outline.svg
│ ├── shopping_cart.svg
│ ├── thumb_down.svg
│ └── thumb_up.svg
├── img
│ ├── PSD
│ │ ├── icon_@2x.psd
│ │ ├── icon_@3x.psd
│ │ ├── star_24px_@2x.psd
│ │ ├── star_24px_@3x.psd
│ │ ├── star_36px_@2x.psd
│ │ ├── star_36px_@3x.psd
│ │ ├── star_48px_@2x.psd
│ │ └── star_48px_@3x.psd
│ ├── brand@2x.png
│ ├── brand@3x.png
│ ├── bulletin@2x.png
│ ├── bulletin@3x.png
│ ├── decrease_1@2x.png
│ ├── decrease_1@3x.png
│ ├── decrease_2@2x.png
│ ├── decrease_2@3x.png
│ ├── decrease_3@2x.png
│ ├── decrease_3@3x.png
│ ├── decrease_4@2x.png
│ ├── decrease_4@3x.png
│ ├── discount_1@2x.png
│ ├── discount_1@3x.png
│ ├── discount_2@2x.png
│ ├── discount_2@3x.png
│ ├── discount_3@2x.png
│ ├── discount_3@3x.png
│ ├── discount_4@2x.png
│ ├── discount_4@3x.png
│ ├── guarantee_1@2x.png
│ ├── guarantee_1@3x.png
│ ├── guarantee_2@2x.png
│ ├── guarantee_2@3x.png
│ ├── guarantee_3@2x.png
│ ├── guarantee_3@3x.png
│ ├── guarantee_4@2x.png
│ ├── guarantee_4@3x.png
│ ├── invoice_1@2x.png
│ ├── invoice_1@3x.png
│ ├── invoice_2@2x.png
│ ├── invoice_2@3x.png
│ ├── invoice_3@2x.png
│ ├── invoice_3@3x.png
│ ├── invoice_4@2x.png
│ ├── invoice_4@3x.png
│ ├── special_1@2x.png
│ ├── special_1@3x.png
│ ├── special_2@2x.png
│ ├── special_2@3x.png
│ ├── special_3@2x.png
│ ├── special_3@3x.png
│ ├── special_4@2x.png
│ ├── special_4@3x.png
│ ├── star24_half@2x.png
│ ├── star24_half@3x.png
│ ├── star24_off@2x.png
│ ├── star24_off@3x.png
│ ├── star24_on@2x.png
│ ├── star24_on@3x.png
│ ├── star36_half@2x.png
│ ├── star36_half@3x.png
│ ├── star36_off@2x.png
│ ├── star36_off@3x.png
│ ├── star36_on@2x.png
│ ├── star36_on@3x.png
│ ├── star48_half@2x.png
│ ├── star48_half@3x.png
│ ├── star48_off@2x.png
│ ├── star48_off@3x.png
│ ├── star48_on@2x.png
│ └── star48_on@3x.png
├── 外卖01_商品页.jpg
├── 外卖02_商品页_公告及优惠信息.jpg
├── 外卖03_商品页_购物车详情.jpg
├── 外卖04_商品页面_商品详情.jpg
├── 外卖05_评价页.jpg
├── 外卖06_商家页.jpg
└── 标注
│ ├── 外卖01_商品页_spec.png
│ ├── 外卖02_商品页_公告及优惠信息_spec.png
│ ├── 外卖03_商品页_购物车详情_spec.png
│ ├── 外卖04_商品页面_商品详情_spec.png
│ ├── 外卖05_评价页_spec.png
│ └── 外卖06_商家页_spec.png
├── src
├── App.vue
├── common
│ ├── fonts
│ │ ├── sell-icon.eot
│ │ ├── sell-icon.svg
│ │ ├── sell-icon.ttf
│ │ └── sell-icon.woff
│ ├── js
│ │ ├── date.js
│ │ ├── store.js
│ │ └── util.js
│ └── stylus
│ │ ├── base.styl
│ │ ├── icon.styl
│ │ ├── index.styl
│ │ └── mixin.styl
├── components
│ ├── cartcontrol
│ │ └── cartcontrol.vue
│ ├── food
│ │ └── food.vue
│ ├── goods
│ │ ├── decrease_3@2x.png
│ │ ├── decrease_3@3x.png
│ │ ├── discount_3@2x.png
│ │ ├── discount_3@3x.png
│ │ ├── goods.vue
│ │ ├── guarantee_3@2x.png
│ │ ├── guarantee_3@3x.png
│ │ ├── invoice_3@2x.png
│ │ ├── invoice_3@3x.png
│ │ ├── special_3@2x.png
│ │ └── special_3@3x.png
│ ├── header
│ │ ├── brand@2x.png
│ │ ├── brand@3x.png
│ │ ├── bulletin@2x.png
│ │ ├── bulletin@3x.png
│ │ ├── decrease_1@2x.png
│ │ ├── decrease_1@3x.png
│ │ ├── decrease_2@2x.png
│ │ ├── decrease_2@3x.png
│ │ ├── discount_1@2x.png
│ │ ├── discount_1@3x.png
│ │ ├── discount_2@2x.png
│ │ ├── discount_2@3x.png
│ │ ├── guarantee_1@2x.png
│ │ ├── guarantee_1@3x.png
│ │ ├── guarantee_2@2x.png
│ │ ├── guarantee_2@3x.png
│ │ ├── header.vue
│ │ ├── invoice_1@2x.png
│ │ ├── invoice_1@3x.png
│ │ ├── invoice_2@2x.png
│ │ ├── invoice_2@3x.png
│ │ ├── special_1@2x.png
│ │ ├── special_1@3x.png
│ │ ├── special_2@2x.png
│ │ └── special_2@3x.png
│ ├── ratings
│ │ └── ratings.vue
│ ├── ratingselect
│ │ └── ratingselect.vue
│ ├── seller
│ │ ├── decrease_4@2x.png
│ │ ├── decrease_4@3x.png
│ │ ├── discount_4@2x.png
│ │ ├── discount_4@3x.png
│ │ ├── guarantee_4@2x.png
│ │ ├── guarantee_4@3x.png
│ │ ├── invoice_4@2x.png
│ │ ├── invoice_4@3x.png
│ │ ├── seller.vue
│ │ ├── special_4@2x.png
│ │ └── special_4@3x.png
│ ├── shopcart
│ │ └── shopcart.vue
│ ├── split
│ │ └── split.vue
│ └── star
│ │ ├── star.vue
│ │ ├── star24_half@2x.png
│ │ ├── star24_half@3x.png
│ │ ├── star24_off@2x.png
│ │ ├── star24_off@3x.png
│ │ ├── star24_on@2x.png
│ │ ├── star24_on@3x.png
│ │ ├── star36_half@2x.png
│ │ ├── star36_half@3x.png
│ │ ├── star36_off@2x.png
│ │ ├── star36_off@3x.png
│ │ ├── star36_on@2x.png
│ │ ├── star36_on@3x.png
│ │ ├── star48_half@2x.png
│ │ ├── star48_half@3x.png
│ │ ├── star48_off@2x.png
│ │ ├── star48_off@3x.png
│ │ ├── star48_on@2x.png
│ │ └── star48_on@3x.png
├── main.js
├── router
│ └── index.js
└── theme.styl
├── static
├── .gitkeep
└── css
│ └── reset.css
└── yarn.lock
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", {
4 | "modules": false,
5 | "targets": {
6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
7 | }
8 | }],
9 | "stage-2"
10 | ],
11 | "plugins": ["transform-vue-jsx", "transform-runtime"]
12 | }
13 |
--------------------------------------------------------------------------------
/.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 |
8 | # Editor directories and files
9 | .idea
10 | .vscode
11 | *.suo
12 | *.ntvs*
13 | *.njsproj
14 | *.sln
15 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | "postcss-import": {},
6 | "postcss-url": {},
7 | // to edit target browsers: use "browserslist" field in package.json
8 | "autoprefixer": {}
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # sell
2 |
3 | > sell app
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 a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
22 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | require('./check-versions')()
3 |
4 | process.env.NODE_ENV = 'production'
5 |
6 | const ora = require('ora')
7 | const rm = require('rimraf')
8 | const path = require('path')
9 | const chalk = require('chalk')
10 | const webpack = require('webpack')
11 | const config = require('../config')
12 | const webpackConfig = require('./webpack.prod.conf')
13 |
14 | const spinner = ora('building for production...')
15 | spinner.start()
16 |
17 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
18 | if (err) throw err
19 | webpack(webpackConfig, (err, stats) => {
20 | spinner.stop()
21 | if (err) throw err
22 | process.stdout.write(stats.toString({
23 | colors: true,
24 | modules: false,
25 | children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
26 | chunks: false,
27 | chunkModules: false
28 | }) + '\n\n')
29 |
30 | if (stats.hasErrors()) {
31 | console.log(chalk.red(' Build failed with errors.\n'))
32 | process.exit(1)
33 | }
34 |
35 | console.log(chalk.cyan(' Build complete.\n'))
36 | console.log(chalk.yellow(
37 | ' Tip: built files are meant to be served over an HTTP server.\n' +
38 | ' Opening index.html over file:// won\'t work.\n'
39 | ))
40 | })
41 | })
42 |
--------------------------------------------------------------------------------
/build/check-versions.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const chalk = require('chalk')
3 | const semver = require('semver')
4 | const packageConfig = require('../package.json')
5 | const shell = require('shelljs')
6 |
7 | function exec (cmd) {
8 | return require('child_process').execSync(cmd).toString().trim()
9 | }
10 |
11 | const versionRequirements = [
12 | {
13 | name: 'node',
14 | currentVersion: semver.clean(process.version),
15 | versionRequirement: packageConfig.engines.node
16 | }
17 | ]
18 |
19 | if (shell.which('npm')) {
20 | versionRequirements.push({
21 | name: 'npm',
22 | currentVersion: exec('npm --version'),
23 | versionRequirement: packageConfig.engines.npm
24 | })
25 | }
26 |
27 | module.exports = function () {
28 | const warnings = []
29 |
30 | for (let i = 0; i < versionRequirements.length; i++) {
31 | const mod = versionRequirements[i]
32 |
33 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
34 | warnings.push(mod.name + ': ' +
35 | chalk.red(mod.currentVersion) + ' should be ' +
36 | chalk.green(mod.versionRequirement)
37 | )
38 | }
39 | }
40 |
41 | if (warnings.length) {
42 | console.log('')
43 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
44 | console.log()
45 |
46 | for (let i = 0; i < warnings.length; i++) {
47 | const warning = warnings[i]
48 | console.log(' ' + warning)
49 | }
50 |
51 | console.log()
52 | process.exit(1)
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/build/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/build/logo.png
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const config = require('../config')
4 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
5 | const packageConfig = require('../package.json')
6 |
7 | exports.assetsPath = function (_path) {
8 | const assetsSubDirectory = process.env.NODE_ENV === 'production'
9 | ? config.build.assetsSubDirectory
10 | : config.dev.assetsSubDirectory
11 |
12 | return path.posix.join(assetsSubDirectory, _path)
13 | }
14 |
15 | exports.cssLoaders = function (options) {
16 | options = options || {}
17 |
18 | const cssLoader = {
19 | loader: 'css-loader',
20 | options: {
21 | sourceMap: options.sourceMap
22 | }
23 | }
24 |
25 | const postcssLoader = {
26 | loader: 'postcss-loader',
27 | options: {
28 | sourceMap: options.sourceMap
29 | }
30 | }
31 |
32 | // generate loader string to be used with extract text plugin
33 | function generateLoaders (loader, loaderOptions) {
34 | const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
35 |
36 | if (loader) {
37 | loaders.push({
38 | loader: loader + '-loader',
39 | options: Object.assign({}, loaderOptions, {
40 | sourceMap: options.sourceMap
41 | })
42 | })
43 | }
44 |
45 | // Extract CSS when that option is specified
46 | // (which is the case during production build)
47 | if (options.extract) {
48 | return ExtractTextPlugin.extract({
49 | use: loaders,
50 | fallback: 'vue-style-loader'
51 | })
52 | } else {
53 | return ['vue-style-loader'].concat(loaders)
54 | }
55 | }
56 |
57 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html
58 | return {
59 | css: generateLoaders(),
60 | postcss: generateLoaders(),
61 | less: generateLoaders('less'),
62 | sass: generateLoaders('sass', { indentedSyntax: true }),
63 | scss: generateLoaders('sass'),
64 | stylus: generateLoaders('stylus'),
65 | styl: generateLoaders('stylus')
66 | }
67 | }
68 |
69 | // Generate loaders for standalone style files (outside of .vue)
70 | exports.styleLoaders = function (options) {
71 | const output = []
72 | const loaders = exports.cssLoaders(options)
73 |
74 | for (const extension in loaders) {
75 | const loader = loaders[extension]
76 | output.push({
77 | test: new RegExp('\\.' + extension + '$'),
78 | use: loader
79 | })
80 | }
81 |
82 | return output
83 | }
84 |
85 | exports.createNotifierCallback = () => {
86 | const notifier = require('node-notifier')
87 |
88 | return (severity, errors) => {
89 | if (severity !== 'error') return
90 |
91 | const error = errors[0]
92 | const filename = error.file && error.file.split('!').pop()
93 |
94 | notifier.notify({
95 | title: packageConfig.name,
96 | message: severity + ': ' + error.name,
97 | subtitle: filename || '',
98 | icon: path.join(__dirname, 'logo.png')
99 | })
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const config = require('../config')
4 | const isProduction = process.env.NODE_ENV === 'production'
5 | const sourceMapEnabled = isProduction
6 | ? config.build.productionSourceMap
7 | : config.dev.cssSourceMap
8 |
9 | module.exports = {
10 | loaders: utils.cssLoaders({
11 | sourceMap: sourceMapEnabled,
12 | extract: isProduction
13 | }),
14 | cssSourceMap: sourceMapEnabled,
15 | cacheBusting: config.dev.cacheBusting,
16 | transformToRequire: {
17 | video: ['src', 'poster'],
18 | source: 'src',
19 | img: 'src',
20 | image: 'xlink:href'
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const config = require('../config')
5 | const vueLoaderConfig = require('./vue-loader.conf')
6 |
7 | function resolve (dir) {
8 | return path.join(__dirname, '..', dir)
9 | }
10 |
11 |
12 |
13 | module.exports = {
14 | context: path.resolve(__dirname, '../'),
15 | entry: {
16 | app: './src/main.js'
17 | },
18 | output: {
19 | path: config.build.assetsRoot,
20 | filename: '[name].js',
21 | publicPath: process.env.NODE_ENV === 'production'
22 | ? config.build.assetsPublicPath
23 | : config.dev.assetsPublicPath
24 | },
25 | resolve: {
26 | extensions: ['.js', '.vue', '.json'],
27 | alias: {
28 | 'vue$': 'vue/dist/vue.esm.js',
29 | '@': resolve('src'),
30 | 'common': resolve('src/common'),
31 | }
32 | },
33 | module: {
34 | rules: [
35 | {
36 | test: /\.vue$/,
37 | loader: 'vue-loader',
38 | options: vueLoaderConfig
39 | },
40 | {
41 | test: /\.js$/,
42 | loader: 'babel-loader',
43 | include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
44 | },
45 | {
46 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
47 | loader: 'url-loader',
48 | options: {
49 | limit: 10000,
50 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
51 | }
52 | },
53 | {
54 | test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
55 | loader: 'url-loader',
56 | options: {
57 | limit: 10000,
58 | name: utils.assetsPath('media/[name].[hash:7].[ext]')
59 | }
60 | },
61 | {
62 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
63 | loader: 'url-loader',
64 | options: {
65 | limit: 10000,
66 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
67 | }
68 | }
69 | ]
70 | },
71 | node: {
72 | // prevent webpack from injecting useless setImmediate polyfill because Vue
73 | // source contains it (although only uses it if it's native).
74 | setImmediate: false,
75 | // prevent webpack from injecting mocks to Node native modules
76 | // that does not make sense for the client
77 | dgram: 'empty',
78 | fs: 'empty',
79 | net: 'empty',
80 | tls: 'empty',
81 | child_process: 'empty'
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const utils = require('./utils')
3 | const webpack = require('webpack')
4 | const config = require('../config')
5 | const merge = require('webpack-merge')
6 | const path = require('path')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
11 | const portfinder = require('portfinder')
12 |
13 | const HOST = process.env.HOST
14 | const PORT = process.env.PORT && Number(process.env.PORT)
15 |
16 | const express = require('express')
17 | var app = express()
18 |
19 | var apiRoutes = express.Router()
20 |
21 | var appData = require('../data.json')
22 | var seller = appData.seller
23 | var ratings = appData.ratings
24 | var goods = appData.goods
25 |
26 | app.use('/api', apiRoutes)
27 |
28 | const devWebpackConfig = merge(baseWebpackConfig, {
29 | module: {
30 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
31 | },
32 | // cheap-module-eval-source-map is faster for development
33 | devtool: config.dev.devtool,
34 |
35 | // these devServer options should be customized in /config/index.js
36 | devServer: {
37 | clientLogLevel: 'warning',
38 | historyApiFallback: {
39 | rewrites: [
40 | { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
41 | ],
42 | },
43 | hot: true,
44 | contentBase: false, // since we use CopyWebpackPlugin.
45 | compress: true,
46 | host: HOST || config.dev.host,
47 | port: PORT || config.dev.port,
48 | open: config.dev.autoOpenBrowser,
49 | overlay: config.dev.errorOverlay
50 | ? { warnings: false, errors: true }
51 | : false,
52 | publicPath: config.dev.assetsPublicPath,
53 | proxy: config.dev.proxyTable,
54 | quiet: true, // necessary for FriendlyErrorsPlugin
55 | watchOptions: {
56 | poll: config.dev.poll,
57 | },
58 | before(apiRouter) {
59 | apiRouter.get('/api/seller', function (req, res) {
60 | res.send({
61 | errno: 0,
62 | data: seller
63 | })
64 | }),
65 | apiRouter.get('/api/ratings', function (req, res) {
66 | res.send({
67 | errno: 0,
68 | data: ratings
69 | })
70 | }),
71 | apiRouter.get('/api/goods', function (req, res) {
72 | res.send({
73 | errno: 0,
74 | data: goods
75 | })
76 | })
77 | }
78 | },
79 | plugins: [
80 | new webpack.DefinePlugin({
81 | 'process.env': require('../config/dev.env')
82 | }),
83 | new webpack.HotModuleReplacementPlugin(),
84 | new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
85 | new webpack.NoEmitOnErrorsPlugin(),
86 | // https://github.com/ampedandwired/html-webpack-plugin
87 | new HtmlWebpackPlugin({
88 | filename: 'index.html',
89 | template: 'index.html',
90 | inject: true
91 | }),
92 | // copy custom static assets
93 | new CopyWebpackPlugin([
94 | {
95 | from: path.resolve(__dirname, '../static'),
96 | to: config.dev.assetsSubDirectory,
97 | ignore: ['.*']
98 | }
99 | ])
100 | ]
101 | })
102 |
103 | module.exports = new Promise((resolve, reject) => {
104 | portfinder.basePort = process.env.PORT || config.dev.port
105 | portfinder.getPort((err, port) => {
106 | if (err) {
107 | reject(err)
108 | } else {
109 | // publish the new Port, necessary for e2e tests
110 | process.env.PORT = port
111 | // add port to devServer config
112 | devWebpackConfig.devServer.port = port
113 |
114 | // Add FriendlyErrorsPlugin
115 | devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
116 | compilationSuccessInfo: {
117 | messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
118 | },
119 | onErrors: config.dev.notifyOnErrors
120 | ? utils.createNotifierCallback()
121 | : undefined
122 | }))
123 |
124 | resolve(devWebpackConfig)
125 | }
126 | })
127 | })
128 |
--------------------------------------------------------------------------------
/build/webpack.prod.conf.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const path = require('path')
3 | const utils = require('./utils')
4 | const webpack = require('webpack')
5 | const config = require('../config')
6 | const merge = require('webpack-merge')
7 | const baseWebpackConfig = require('./webpack.base.conf')
8 | const CopyWebpackPlugin = require('copy-webpack-plugin')
9 | const HtmlWebpackPlugin = require('html-webpack-plugin')
10 | const ExtractTextPlugin = require('extract-text-webpack-plugin')
11 | const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12 | const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13 |
14 | const env = require('../config/prod.env')
15 |
16 | const webpackConfig = merge(baseWebpackConfig, {
17 | module: {
18 | rules: utils.styleLoaders({
19 | sourceMap: config.build.productionSourceMap,
20 | extract: true,
21 | usePostCSS: true
22 | })
23 | },
24 | devtool: config.build.productionSourceMap ? config.build.devtool : false,
25 | output: {
26 | path: config.build.assetsRoot,
27 | filename: utils.assetsPath('js/[name].[chunkhash].js'),
28 | chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29 | },
30 | plugins: [
31 | // http://vuejs.github.io/vue-loader/en/workflow/production.html
32 | new webpack.DefinePlugin({
33 | 'process.env': env
34 | }),
35 | new UglifyJsPlugin({
36 | uglifyOptions: {
37 | compress: {
38 | warnings: false
39 | }
40 | },
41 | sourceMap: config.build.productionSourceMap,
42 | parallel: true
43 | }),
44 | // extract css into its own file
45 | new ExtractTextPlugin({
46 | filename: utils.assetsPath('css/[name].[contenthash].css'),
47 | // Setting the following option to `false` will not extract CSS from codesplit chunks.
48 | // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
49 | // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
50 | // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
51 | allChunks: true,
52 | }),
53 | // Compress extracted CSS. We are using this plugin so that possible
54 | // duplicated CSS from different components can be deduped.
55 | new OptimizeCSSPlugin({
56 | cssProcessorOptions: config.build.productionSourceMap
57 | ? { safe: true, map: { inline: false } }
58 | : { safe: true }
59 | }),
60 | // generate dist index.html with correct asset hash for caching.
61 | // you can customize output by editing /index.html
62 | // see https://github.com/ampedandwired/html-webpack-plugin
63 | new HtmlWebpackPlugin({
64 | filename: config.build.index,
65 | template: 'index.html',
66 | inject: true,
67 | minify: {
68 | removeComments: true,
69 | collapseWhitespace: true,
70 | removeAttributeQuotes: true
71 | // more options:
72 | // https://github.com/kangax/html-minifier#options-quick-reference
73 | },
74 | // necessary to consistently work with multiple chunks via CommonsChunkPlugin
75 | chunksSortMode: 'dependency'
76 | }),
77 | // keep module.id stable when vendor modules does not change
78 | new webpack.HashedModuleIdsPlugin(),
79 | // enable scope hoisting
80 | new webpack.optimize.ModuleConcatenationPlugin(),
81 | // split vendor js into its own file
82 | new webpack.optimize.CommonsChunkPlugin({
83 | name: 'vendor',
84 | minChunks (module) {
85 | // any required modules inside node_modules are extracted to vendor
86 | return (
87 | module.resource &&
88 | /\.js$/.test(module.resource) &&
89 | module.resource.indexOf(
90 | path.join(__dirname, '../node_modules')
91 | ) === 0
92 | )
93 | }
94 | }),
95 | // extract webpack runtime and module manifest to its own file in order to
96 | // prevent vendor hash from being updated whenever app bundle is updated
97 | new webpack.optimize.CommonsChunkPlugin({
98 | name: 'manifest',
99 | minChunks: Infinity
100 | }),
101 | // This instance extracts shared chunks from code splitted chunks and bundles them
102 | // in a separate chunk, similar to the vendor chunk
103 | // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
104 | new webpack.optimize.CommonsChunkPlugin({
105 | name: 'app',
106 | async: 'vendor-async',
107 | children: true,
108 | minChunks: 3
109 | }),
110 |
111 | // copy custom static assets
112 | new CopyWebpackPlugin([
113 | {
114 | from: path.resolve(__dirname, '../static'),
115 | to: config.build.assetsSubDirectory,
116 | ignore: ['.*']
117 | }
118 | ])
119 | ]
120 | })
121 |
122 | if (config.build.productionGzip) {
123 | const CompressionWebpackPlugin = require('compression-webpack-plugin')
124 |
125 | webpackConfig.plugins.push(
126 | new CompressionWebpackPlugin({
127 | asset: '[path].gz[query]',
128 | algorithm: 'gzip',
129 | test: new RegExp(
130 | '\\.(' +
131 | config.build.productionGzipExtensions.join('|') +
132 | ')$'
133 | ),
134 | threshold: 10240,
135 | minRatio: 0.8
136 | })
137 | )
138 | }
139 |
140 | if (config.build.bundleAnalyzerReport) {
141 | const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
142 | webpackConfig.plugins.push(new BundleAnalyzerPlugin())
143 | }
144 |
145 | module.exports = webpackConfig
146 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | const merge = require('webpack-merge')
3 | const prodEnv = require('./prod.env')
4 |
5 | module.exports = merge(prodEnv, {
6 | NODE_ENV: '"development"'
7 | })
8 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | // Template version: 1.3.1
3 | // see http://vuejs-templates.github.io/webpack for documentation.
4 |
5 | const path = require('path')
6 |
7 | module.exports = {
8 | dev: {
9 |
10 | // Paths
11 | assetsSubDirectory: 'static',
12 | assetsPublicPath: '/',
13 | proxyTable: {},
14 |
15 | // Various Dev Server settings
16 | host: '0.0.0.0', // can be overwritten by process.env.HOST
17 | port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
18 | autoOpenBrowser: false,
19 | errorOverlay: true,
20 | notifyOnErrors: true,
21 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
22 |
23 |
24 | /**
25 | * Source Maps
26 | */
27 |
28 | // https://webpack.js.org/configuration/devtool/#development
29 | devtool: 'cheap-module-eval-source-map',
30 |
31 | // If you have problems debugging vue-files in devtools,
32 | // set this to false - it *may* help
33 | // https://vue-loader.vuejs.org/en/options.html#cachebusting
34 | cacheBusting: true,
35 |
36 | cssSourceMap: true
37 | },
38 |
39 | build: {
40 | // Template for index.html
41 | index: path.resolve(__dirname, '../dist/index.html'),
42 |
43 | // Paths
44 | assetsRoot: path.resolve(__dirname, '../dist'),
45 | assetsSubDirectory: 'static',
46 | assetsPublicPath: '/',
47 |
48 | /**
49 | * Source Maps
50 | */
51 |
52 | productionSourceMap: true,
53 | // https://webpack.js.org/configuration/devtool/#production
54 | devtool: '#source-map',
55 |
56 | // Gzip off by default as many popular static hosts such as
57 | // Surge or Netlify already gzip all static assets for you.
58 | // Before setting to `true`, make sure to:
59 | // npm install --save-dev compression-webpack-plugin
60 | productionGzip: false,
61 | productionGzipExtensions: ['js', 'css'],
62 |
63 | // Run the build command with an extra argument to
64 | // View the bundle analyzer report after build finishes:
65 | // `npm run build --report`
66 | // Set to `true` or `false` to always turn it on or off
67 | bundleAnalyzerReport: process.env.npm_config_report
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | 'use strict'
2 | module.exports = {
3 | NODE_ENV: '"production"'
4 | }
5 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | sell
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "sell",
3 | "version": "1.0.0",
4 | "private": true,
5 | "description": "sell app",
6 | "author": "sfm <2231962562@qq.com>",
7 | "scripts": {
8 | "build": "node build/build.js",
9 | "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
10 | "start": "npm run dev"
11 | },
12 | "dependencies": {
13 | "axios": "^0.19.0",
14 | "better-scroll": "^1.15.2",
15 | "cube-ui": "~1.12.15",
16 | "express": "^4.17.1",
17 | "vue": "^2.5.2",
18 | "vue-router": "^3.0.1"
19 | },
20 | "devDependencies": {
21 | "autoprefixer": "^7.1.2",
22 | "babel-core": "^6.22.1",
23 | "babel-helper-vue-jsx-merge-props": "^2.0.3",
24 | "babel-loader": "^7.1.1",
25 | "babel-plugin-syntax-jsx": "^6.18.0",
26 | "babel-plugin-transform-runtime": "^6.22.0",
27 | "babel-plugin-transform-vue-jsx": "^3.5.0",
28 | "babel-preset-env": "^1.3.2",
29 | "babel-preset-stage-2": "^6.22.0",
30 | "chalk": "^2.0.1",
31 | "copy-webpack-plugin": "^4.0.1",
32 | "css-loader": "^0.28.0",
33 | "extract-text-webpack-plugin": "^3.0.0",
34 | "file-loader": "^1.1.4",
35 | "friendly-errors-webpack-plugin": "^1.6.1",
36 | "html-webpack-plugin": "^2.30.1",
37 | "node-notifier": "^5.1.2",
38 | "optimize-css-assets-webpack-plugin": "^3.2.0",
39 | "ora": "^1.2.0",
40 | "portfinder": "^1.0.13",
41 | "postcss-import": "^11.0.0",
42 | "postcss-loader": "^2.0.8",
43 | "postcss-url": "^7.2.1",
44 | "rimraf": "^2.6.0",
45 | "semver": "^5.3.0",
46 | "shelljs": "^0.7.6",
47 | "stylus": "^0.54.5",
48 | "stylus-loader": "^3.0.2",
49 | "uglifyjs-webpack-plugin": "^1.1.1",
50 | "url-loader": "^0.5.8",
51 | "vue-cli-plugin-cube-ui": "^0.2.5",
52 | "vue-loader": "^13.3.0",
53 | "vue-style-loader": "^3.0.1",
54 | "vue-template-compiler": "^2.5.2",
55 | "webpack": "^3.6.0",
56 | "webpack-bundle-analyzer": "^2.9.0",
57 | "webpack-dev-server": "^2.11.5",
58 | "webpack-merge": "^4.1.0"
59 | },
60 | "browserslist": [
61 | "> 1%",
62 | "last 2 versions",
63 | "not ie <= 8",
64 | "not ie <= 11",
65 | "Android >= 4.0",
66 | "iOS >= 8"
67 | ],
68 | "engines": {
69 | "node": ">= 6.0.0",
70 | "npm": ">= 3.0.0"
71 | },
72 | "transformModules": {
73 | "cube-ui": {
74 | "transform": "cube-ui/src/modules/${member}",
75 | "kebabCase": true
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/resource/PSD/外卖01_商品页.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖01_商品页.psd
--------------------------------------------------------------------------------
/resource/PSD/外卖01_商品页_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖01_商品页_spec.png
--------------------------------------------------------------------------------
/resource/PSD/外卖02_商品页_公告及优惠信息.mkm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/resource/PSD/外卖02_商品页_公告及优惠信息.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖02_商品页_公告及优惠信息.psd
--------------------------------------------------------------------------------
/resource/PSD/外卖02_商品页_公告及优惠信息_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖02_商品页_公告及优惠信息_spec.png
--------------------------------------------------------------------------------
/resource/PSD/外卖03_商品页_购物车详情.mkm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/resource/PSD/外卖03_商品页_购物车详情.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖03_商品页_购物车详情.psd
--------------------------------------------------------------------------------
/resource/PSD/外卖03_商品页_购物车详情_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖03_商品页_购物车详情_spec.png
--------------------------------------------------------------------------------
/resource/PSD/外卖04_商品页面_商品详情.mkm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/resource/PSD/外卖04_商品页面_商品详情.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖04_商品页面_商品详情.psd
--------------------------------------------------------------------------------
/resource/PSD/外卖04_商品页面_商品详情_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖04_商品页面_商品详情_spec.png
--------------------------------------------------------------------------------
/resource/PSD/外卖05_评价页.mkm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/resource/PSD/外卖05_评价页.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖05_评价页.psd
--------------------------------------------------------------------------------
/resource/PSD/外卖05_评价页_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖05_评价页_spec.png
--------------------------------------------------------------------------------
/resource/PSD/外卖06_商家页.mkm:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/resource/PSD/外卖06_商家页.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖06_商家页.psd
--------------------------------------------------------------------------------
/resource/PSD/外卖06_商家页_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/PSD/外卖06_商家页_spec.png
--------------------------------------------------------------------------------
/resource/SVG/add_circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
103 |
--------------------------------------------------------------------------------
/resource/SVG/arrow_lift.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
--------------------------------------------------------------------------------
/resource/SVG/check_circle.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
103 |
--------------------------------------------------------------------------------
/resource/SVG/close.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
103 |
--------------------------------------------------------------------------------
/resource/SVG/favorite.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
103 |
--------------------------------------------------------------------------------
/resource/SVG/keyboard_arrow_right.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
103 |
--------------------------------------------------------------------------------
/resource/img/PSD/icon_@2x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/icon_@2x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/icon_@3x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/icon_@3x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/star_24px_@2x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/star_24px_@2x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/star_24px_@3x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/star_24px_@3x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/star_36px_@2x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/star_36px_@2x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/star_36px_@3x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/star_36px_@3x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/star_48px_@2x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/star_48px_@2x.psd
--------------------------------------------------------------------------------
/resource/img/PSD/star_48px_@3x.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/PSD/star_48px_@3x.psd
--------------------------------------------------------------------------------
/resource/img/brand@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/brand@2x.png
--------------------------------------------------------------------------------
/resource/img/brand@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/brand@3x.png
--------------------------------------------------------------------------------
/resource/img/bulletin@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/bulletin@2x.png
--------------------------------------------------------------------------------
/resource/img/bulletin@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/bulletin@3x.png
--------------------------------------------------------------------------------
/resource/img/decrease_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_1@2x.png
--------------------------------------------------------------------------------
/resource/img/decrease_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_1@3x.png
--------------------------------------------------------------------------------
/resource/img/decrease_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_2@2x.png
--------------------------------------------------------------------------------
/resource/img/decrease_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_2@3x.png
--------------------------------------------------------------------------------
/resource/img/decrease_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_3@2x.png
--------------------------------------------------------------------------------
/resource/img/decrease_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_3@3x.png
--------------------------------------------------------------------------------
/resource/img/decrease_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_4@2x.png
--------------------------------------------------------------------------------
/resource/img/decrease_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/decrease_4@3x.png
--------------------------------------------------------------------------------
/resource/img/discount_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_1@2x.png
--------------------------------------------------------------------------------
/resource/img/discount_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_1@3x.png
--------------------------------------------------------------------------------
/resource/img/discount_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_2@2x.png
--------------------------------------------------------------------------------
/resource/img/discount_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_2@3x.png
--------------------------------------------------------------------------------
/resource/img/discount_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_3@2x.png
--------------------------------------------------------------------------------
/resource/img/discount_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_3@3x.png
--------------------------------------------------------------------------------
/resource/img/discount_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_4@2x.png
--------------------------------------------------------------------------------
/resource/img/discount_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/discount_4@3x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_1@2x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_1@3x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_2@2x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_2@3x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_3@2x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_3@3x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_4@2x.png
--------------------------------------------------------------------------------
/resource/img/guarantee_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/guarantee_4@3x.png
--------------------------------------------------------------------------------
/resource/img/invoice_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_1@2x.png
--------------------------------------------------------------------------------
/resource/img/invoice_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_1@3x.png
--------------------------------------------------------------------------------
/resource/img/invoice_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_2@2x.png
--------------------------------------------------------------------------------
/resource/img/invoice_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_2@3x.png
--------------------------------------------------------------------------------
/resource/img/invoice_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_3@2x.png
--------------------------------------------------------------------------------
/resource/img/invoice_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_3@3x.png
--------------------------------------------------------------------------------
/resource/img/invoice_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_4@2x.png
--------------------------------------------------------------------------------
/resource/img/invoice_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/invoice_4@3x.png
--------------------------------------------------------------------------------
/resource/img/special_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_1@2x.png
--------------------------------------------------------------------------------
/resource/img/special_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_1@3x.png
--------------------------------------------------------------------------------
/resource/img/special_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_2@2x.png
--------------------------------------------------------------------------------
/resource/img/special_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_2@3x.png
--------------------------------------------------------------------------------
/resource/img/special_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_3@2x.png
--------------------------------------------------------------------------------
/resource/img/special_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_3@3x.png
--------------------------------------------------------------------------------
/resource/img/special_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_4@2x.png
--------------------------------------------------------------------------------
/resource/img/special_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/special_4@3x.png
--------------------------------------------------------------------------------
/resource/img/star24_half@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star24_half@2x.png
--------------------------------------------------------------------------------
/resource/img/star24_half@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star24_half@3x.png
--------------------------------------------------------------------------------
/resource/img/star24_off@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star24_off@2x.png
--------------------------------------------------------------------------------
/resource/img/star24_off@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star24_off@3x.png
--------------------------------------------------------------------------------
/resource/img/star24_on@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star24_on@2x.png
--------------------------------------------------------------------------------
/resource/img/star24_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star24_on@3x.png
--------------------------------------------------------------------------------
/resource/img/star36_half@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star36_half@2x.png
--------------------------------------------------------------------------------
/resource/img/star36_half@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star36_half@3x.png
--------------------------------------------------------------------------------
/resource/img/star36_off@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star36_off@2x.png
--------------------------------------------------------------------------------
/resource/img/star36_off@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star36_off@3x.png
--------------------------------------------------------------------------------
/resource/img/star36_on@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star36_on@2x.png
--------------------------------------------------------------------------------
/resource/img/star36_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star36_on@3x.png
--------------------------------------------------------------------------------
/resource/img/star48_half@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star48_half@2x.png
--------------------------------------------------------------------------------
/resource/img/star48_half@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star48_half@3x.png
--------------------------------------------------------------------------------
/resource/img/star48_off@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star48_off@2x.png
--------------------------------------------------------------------------------
/resource/img/star48_off@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star48_off@3x.png
--------------------------------------------------------------------------------
/resource/img/star48_on@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star48_on@2x.png
--------------------------------------------------------------------------------
/resource/img/star48_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/img/star48_on@3x.png
--------------------------------------------------------------------------------
/resource/外卖01_商品页.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/外卖01_商品页.jpg
--------------------------------------------------------------------------------
/resource/外卖02_商品页_公告及优惠信息.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/外卖02_商品页_公告及优惠信息.jpg
--------------------------------------------------------------------------------
/resource/外卖03_商品页_购物车详情.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/外卖03_商品页_购物车详情.jpg
--------------------------------------------------------------------------------
/resource/外卖04_商品页面_商品详情.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/外卖04_商品页面_商品详情.jpg
--------------------------------------------------------------------------------
/resource/外卖05_评价页.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/外卖05_评价页.jpg
--------------------------------------------------------------------------------
/resource/外卖06_商家页.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/外卖06_商家页.jpg
--------------------------------------------------------------------------------
/resource/标注/外卖01_商品页_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/标注/外卖01_商品页_spec.png
--------------------------------------------------------------------------------
/resource/标注/外卖02_商品页_公告及优惠信息_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/标注/外卖02_商品页_公告及优惠信息_spec.png
--------------------------------------------------------------------------------
/resource/标注/外卖03_商品页_购物车详情_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/标注/外卖03_商品页_购物车详情_spec.png
--------------------------------------------------------------------------------
/resource/标注/外卖04_商品页面_商品详情_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/标注/外卖04_商品页面_商品详情_spec.png
--------------------------------------------------------------------------------
/resource/标注/外卖05_评价页_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/标注/外卖05_评价页_spec.png
--------------------------------------------------------------------------------
/resource/标注/外卖06_商家页_spec.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/resource/标注/外卖06_商家页_spec.png
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 商品
9 |
10 |
11 | 评论
12 |
13 |
14 | 商家
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
59 |
60 |
80 |
--------------------------------------------------------------------------------
/src/common/fonts/sell-icon.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/common/fonts/sell-icon.eot
--------------------------------------------------------------------------------
/src/common/fonts/sell-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/src/common/fonts/sell-icon.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/common/fonts/sell-icon.ttf
--------------------------------------------------------------------------------
/src/common/fonts/sell-icon.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/common/fonts/sell-icon.woff
--------------------------------------------------------------------------------
/src/common/js/date.js:
--------------------------------------------------------------------------------
1 | export function formatDate(date,fmt){
2 | if(/(y+)/.test(fmt)){
3 | fmt = fmt.replace(RegExp.$1,(date.getFullYear()+'').substr(4-RegExp.$1.length));
4 | }
5 | let o = {
6 | 'M+':date.getMonth()+1,
7 | 'd+':date.getDate(),
8 | 'h+':date.getHours(),
9 | 'm+':date.getMinutes(),
10 | 's+':date.getSeconds()
11 | };
12 | for(let k in o){
13 | if(new RegExp(`(${k})`).test(fmt)){
14 | let str = o[k]+'';
15 | fmt = fmt.replace(RegExp.$1,(RegExp.$1.length===1)?str:padLeftZero(str));
16 | }
17 | }
18 | return fmt;
19 | };
20 | function padLeftZero(str) {
21 | return ('00'+str).substr(str.length);
22 | }
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/common/js/store.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 存储到本地
3 | * @param id
4 | * @param key
5 | * @param value
6 | */
7 | export function saveToLocal(id, key, value) {
8 | let seller = window.localStorage.__seller__;
9 | if (!seller) { // 不存在Seller
10 | seller = {};
11 | seller[id] = {};
12 | } else {
13 | seller = JSON.parse(seller);
14 | if (!seller[id]) {
15 | seller[id] = {};
16 | }
17 | }
18 | seller[id][key] = value;
19 | window.localStorage.__seller__ = JSON.stringify(seller);
20 | };
21 |
22 | /**
23 | * 读取本地数据
24 | * @param id
25 | * @param key
26 | * @param def 如果娶不到,设置的默认值
27 | * @returns {*}
28 | */
29 | export function loadFromLocal(id, key, def) {
30 | let seller = window.localStorage.__seller__;
31 | if (!seller) {
32 | return def;
33 | }
34 | seller = JSON.parse(seller)[id];
35 | if (!seller) {
36 | return def;
37 | }
38 | let ret = seller[key];
39 | return ret || def;
40 | };
41 |
--------------------------------------------------------------------------------
/src/common/js/util.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 解析url参数
3 | * @example ?id=12345&a=b
4 | * @return Object {id:12345,a:b}
5 | */
6 | export function urlParse() {
7 | let url = window.location.search;
8 | let obj = {};
9 | let reg = /[?&][^?&]+=[^?&]+/g; // ?和&开头-->非?和&(一个或多个字符) ---> = ---> 非?和&(一个或多个字符) ====>全局匹配
10 | let arr = url.match(reg);
11 | // ['?id=12345', '&a=b']
12 | if (arr) {
13 | arr.forEach((item) => {
14 | let tempArr = item.substring(1).split('=');
15 | let key = decodeURIComponent(tempArr[0]);
16 | let val = decodeURIComponent(tempArr[1]);
17 | obj[key] = val;
18 | });
19 | }
20 | return obj;
21 | };
22 |
--------------------------------------------------------------------------------
/src/common/stylus/base.styl:
--------------------------------------------------------------------------------
1 | body,html
2 | line-height: 1
3 | font-weight: 200
4 | font-family: 'PingFang Sc','STHeitiSC-Light','Helvetica-Light',arial,sans-serif
5 |
6 | .clearfix
7 | display: inline-block
8 | &:after
9 | display: block
10 | content: "."
11 | height: 0
12 | line-height: 0
13 | clear: both
14 | visibility: hidden
15 |
16 | @media (-webkit-min-device-pixel-ratio:1.5),(min-device-pixel-ratio:1.5)
17 | .border-1px
18 | &::after
19 | -webkit-transform: scaleY(0.7)
20 | transform: scaleY(0.7)
21 |
22 | @media (-webkit-min-device-pixel-ratio:2),(min-device-pixel-ratio:2)
23 | .border-1px
24 | &::after
25 | -webkit-transform: scaleY(0.5)
26 | transform: scaleY(0.5)
27 |
28 |
--------------------------------------------------------------------------------
/src/common/stylus/icon.styl:
--------------------------------------------------------------------------------
1 | @font-face
2 | font-family: 'sell-icon';
3 | src: url('../fonts/sell-icon.eot?yfs6cf');
4 | src: url('../fonts/sell-icon.eot?yfs6cf#iefix') format('embedded-opentype'),
5 | url('../fonts/sell-icon.ttf?yfs6cf') format('truetype'),
6 | url('../fonts/sell-icon.woff?yfs6cf') format('woff'),
7 | url('../fonts/sell-icon.svg?yfs6cf#sell-icon') format('svg')
8 | font-weight: normal
9 | font-style: normal
10 |
11 |
12 | [class^="icon-"], [class*=" icon-"]
13 | /* use !important to prevent issues with browser extensions that change fonts */
14 | font-family: 'sell-icon' !important
15 | speak: none
16 | font-style: normal
17 | font-weight: normal
18 | font-variant: normal
19 | text-transform: none
20 | line-height: 1
21 |
22 | /* Better Font Rendering =========== */
23 | -webkit-font-smoothing: antialiased
24 | -moz-osx-font-smoothing: grayscale
25 |
26 |
27 | .icon-add_circle:before
28 | content: "\e900"
29 | .icon-arrow_lift:before
30 | content: "\e901"
31 | .icon-check_circle:before
32 | content: "\e902"
33 | .icon-close:before
34 | content: "\e903"
35 | .icon-favorite:before
36 | content: "\e904"
37 | .icon-keyboard_arrow_right:before
38 | content: "\e905"
39 | .icon-remove_circle_outline:before
40 | content: "\e906"
41 | .icon-shopping_cart:before
42 | content: "\e907"
43 | .icon-thumb_down:before
44 | content: "\e908"
45 | .icon-thumb_up:before
46 | content: "\e909"
47 |
--------------------------------------------------------------------------------
/src/common/stylus/index.styl:
--------------------------------------------------------------------------------
1 | @import "./mixin"
2 | @import "./icon"
3 | @import "./base"
4 |
--------------------------------------------------------------------------------
/src/common/stylus/mixin.styl:
--------------------------------------------------------------------------------
1 | border-1px($color)
2 | position: relative
3 | &:after
4 | display: block
5 | position: absolute
6 | left: 0
7 | bottom: 0
8 | width: 100%
9 | border-top: 1px solid $color
10 | content: ' '
11 |
12 | border-none()
13 | &:after
14 | display:none
15 |
16 | bg-image($url)
17 | background-image:url($url+"@2x.png")
18 | @media (-webkit-min-device-pixel-ratic: 3),(min-device-pixel-ratio: 3)
19 | background-image: url($url+"@3x.png")
20 |
--------------------------------------------------------------------------------
/src/components/cartcontrol/cartcontrol.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
{{food.count}}
11 |
12 |
13 |
14 |
50 |
88 |
--------------------------------------------------------------------------------
/src/components/goods/decrease_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/decrease_3@2x.png
--------------------------------------------------------------------------------
/src/components/goods/decrease_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/decrease_3@3x.png
--------------------------------------------------------------------------------
/src/components/goods/discount_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/discount_3@2x.png
--------------------------------------------------------------------------------
/src/components/goods/discount_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/discount_3@3x.png
--------------------------------------------------------------------------------
/src/components/goods/goods.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
14 |
15 |
16 |
17 | -
18 |
{{item.name}}
19 |
20 | -
21 |
22 |
23 |
![]()
24 |
25 |
26 |
27 |
28 |
{{food.name}}
29 |
30 |
{{food.description}}
31 |
32 |
35 |
36 |
37 | ¥{{food.price}}¥{{food.oldPrice}}
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
186 |
293 |
294 |
--------------------------------------------------------------------------------
/src/components/goods/guarantee_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/guarantee_3@2x.png
--------------------------------------------------------------------------------
/src/components/goods/guarantee_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/guarantee_3@3x.png
--------------------------------------------------------------------------------
/src/components/goods/invoice_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/invoice_3@2x.png
--------------------------------------------------------------------------------
/src/components/goods/invoice_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/invoice_3@3x.png
--------------------------------------------------------------------------------
/src/components/goods/special_3@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/special_3@2x.png
--------------------------------------------------------------------------------
/src/components/goods/special_3@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/goods/special_3@3x.png
--------------------------------------------------------------------------------
/src/components/header/brand@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/brand@2x.png
--------------------------------------------------------------------------------
/src/components/header/brand@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/brand@3x.png
--------------------------------------------------------------------------------
/src/components/header/bulletin@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/bulletin@2x.png
--------------------------------------------------------------------------------
/src/components/header/bulletin@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/bulletin@3x.png
--------------------------------------------------------------------------------
/src/components/header/decrease_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/decrease_1@2x.png
--------------------------------------------------------------------------------
/src/components/header/decrease_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/decrease_1@3x.png
--------------------------------------------------------------------------------
/src/components/header/decrease_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/decrease_2@2x.png
--------------------------------------------------------------------------------
/src/components/header/decrease_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/decrease_2@3x.png
--------------------------------------------------------------------------------
/src/components/header/discount_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/discount_1@2x.png
--------------------------------------------------------------------------------
/src/components/header/discount_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/discount_1@3x.png
--------------------------------------------------------------------------------
/src/components/header/discount_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/discount_2@2x.png
--------------------------------------------------------------------------------
/src/components/header/discount_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/discount_2@3x.png
--------------------------------------------------------------------------------
/src/components/header/guarantee_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/guarantee_1@2x.png
--------------------------------------------------------------------------------
/src/components/header/guarantee_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/guarantee_1@3x.png
--------------------------------------------------------------------------------
/src/components/header/guarantee_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/guarantee_2@2x.png
--------------------------------------------------------------------------------
/src/components/header/guarantee_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/guarantee_2@3x.png
--------------------------------------------------------------------------------
/src/components/header/header.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
89 |
90 |
120 |
322 |
--------------------------------------------------------------------------------
/src/components/header/invoice_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/invoice_1@2x.png
--------------------------------------------------------------------------------
/src/components/header/invoice_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/invoice_1@3x.png
--------------------------------------------------------------------------------
/src/components/header/invoice_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/invoice_2@2x.png
--------------------------------------------------------------------------------
/src/components/header/invoice_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/invoice_2@3x.png
--------------------------------------------------------------------------------
/src/components/header/special_1@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/special_1@2x.png
--------------------------------------------------------------------------------
/src/components/header/special_1@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/special_1@3x.png
--------------------------------------------------------------------------------
/src/components/header/special_2@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/special_2@2x.png
--------------------------------------------------------------------------------
/src/components/header/special_2@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/header/special_2@3x.png
--------------------------------------------------------------------------------
/src/components/ratings/ratings.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
{{seller.score}}
9 |
综合评分
10 |
高于周边商家{{seller.rankRate}}%
11 |
12 |
13 |
14 | 服务态度
15 |
16 | {{seller.serviceScore}}
17 |
18 |
19 | 商品评分
20 |
21 | {{seller.foodScore}}
22 |
23 |
24 | 送达时间
25 | {{seller.deliveryTime}}分钟
26 |
27 |
28 |
29 |
30 |
32 |
33 |
34 | -
35 |
36 |
![头像]()
37 |
38 |
39 |
{{rating.username}}
40 |
41 |
42 | {{rating.deliveryTime}}
43 |
44 |
{{rating.text}}
45 |
46 |
47 |
48 | {{item}}
49 |
50 |
51 |
52 | {{ rating.rateTime | formatDate }}
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
133 |
264 |
--------------------------------------------------------------------------------
/src/components/ratingselect/ratingselect.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{ desc.all }}
7 | {{ ratings.length }}
8 |
9 |
10 |
11 | {{ desc.positive }}
12 | {{ positives.length }}
13 |
14 |
15 | {{ desc.negative }}
16 | {{ negatives.length }}
17 |
18 |
19 |
20 |
21 |
22 | 只看有内容的评价
23 |
24 |
25 |
26 |
94 |
142 |
--------------------------------------------------------------------------------
/src/components/seller/decrease_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/decrease_4@2x.png
--------------------------------------------------------------------------------
/src/components/seller/decrease_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/decrease_4@3x.png
--------------------------------------------------------------------------------
/src/components/seller/discount_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/discount_4@2x.png
--------------------------------------------------------------------------------
/src/components/seller/discount_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/discount_4@3x.png
--------------------------------------------------------------------------------
/src/components/seller/guarantee_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/guarantee_4@2x.png
--------------------------------------------------------------------------------
/src/components/seller/guarantee_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/guarantee_4@3x.png
--------------------------------------------------------------------------------
/src/components/seller/invoice_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/invoice_4@2x.png
--------------------------------------------------------------------------------
/src/components/seller/invoice_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/invoice_4@3x.png
--------------------------------------------------------------------------------
/src/components/seller/seller.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
{{seller.name}}
7 |
8 |
9 | ({{seller.ratingCount}})
10 | 月售{{seller.sellCount}}单
11 |
12 |
32 |
33 |
34 | {{ favoriteText }}
35 |
36 |
37 |
38 |
39 |
公共与活动
40 |
41 |
{{seller.bulletin}}
42 |
43 |
44 | -
45 |
46 | {{seller.supports[index].description}}
47 |
48 |
49 |
50 |
51 |
52 |
商家实景
53 |
54 |
55 | -
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
商家信息
64 |
65 |
66 | - 该商家支持发票,请下单写好发票抬头
67 | - 品类:其他菜系,包子粥店
68 | - 北京市昌平区回龙观西大街龙观置业大厦底商B座102单元1340
69 | - 营业时间:10:00-20:30
70 |
71 |
72 |
73 |
74 |
75 |
76 |
137 |
285 |
--------------------------------------------------------------------------------
/src/components/seller/special_4@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/special_4@2x.png
--------------------------------------------------------------------------------
/src/components/seller/special_4@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/seller/special_4@3x.png
--------------------------------------------------------------------------------
/src/components/split/split.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
11 |
19 |
--------------------------------------------------------------------------------
/src/components/star/star.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
44 |
94 |
--------------------------------------------------------------------------------
/src/components/star/star24_half@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star24_half@2x.png
--------------------------------------------------------------------------------
/src/components/star/star24_half@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star24_half@3x.png
--------------------------------------------------------------------------------
/src/components/star/star24_off@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star24_off@2x.png
--------------------------------------------------------------------------------
/src/components/star/star24_off@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star24_off@3x.png
--------------------------------------------------------------------------------
/src/components/star/star24_on@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star24_on@2x.png
--------------------------------------------------------------------------------
/src/components/star/star24_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star24_on@3x.png
--------------------------------------------------------------------------------
/src/components/star/star36_half@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star36_half@2x.png
--------------------------------------------------------------------------------
/src/components/star/star36_half@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star36_half@3x.png
--------------------------------------------------------------------------------
/src/components/star/star36_off@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star36_off@2x.png
--------------------------------------------------------------------------------
/src/components/star/star36_off@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star36_off@3x.png
--------------------------------------------------------------------------------
/src/components/star/star36_on@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star36_on@2x.png
--------------------------------------------------------------------------------
/src/components/star/star36_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star36_on@3x.png
--------------------------------------------------------------------------------
/src/components/star/star48_half@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star48_half@2x.png
--------------------------------------------------------------------------------
/src/components/star/star48_half@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star48_half@3x.png
--------------------------------------------------------------------------------
/src/components/star/star48_off@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star48_off@2x.png
--------------------------------------------------------------------------------
/src/components/star/star48_off@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star48_off@3x.png
--------------------------------------------------------------------------------
/src/components/star/star48_on@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star48_on@2x.png
--------------------------------------------------------------------------------
/src/components/star/star48_on@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/src/components/star/star48_on@3x.png
--------------------------------------------------------------------------------
/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 VueRouter from 'vue-router'
7 | import axios from 'axios'
8 |
9 | Vue.prototype.$axios = axios
10 | Vue.config.productionTip = false
11 | Vue.use(VueRouter)
12 |
13 | /* eslint-disable no-new */
14 | new Vue({
15 | el: '#app',
16 | router,
17 | components: { App },
18 | template: ''
19 | })
20 |
--------------------------------------------------------------------------------
/src/router/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Router from 'vue-router'
3 | import goods from '../components/goods/goods';
4 | import ratings from '../components/ratings/ratings';
5 | import seller from '../components/seller/seller';
6 |
7 | import 'common/stylus/index.styl';
8 | // import './com'
9 | Vue.use(Router)
10 |
11 | export default new Router({
12 | linkActiveClass:'active',
13 | routes: [
14 | {
15 | path: '/',
16 | redirect: '/goods'
17 | },
18 | {
19 | path: '/goods',
20 | name: 'goods',
21 | component: goods
22 | },{
23 | path: '/ratings',
24 | name: 'ratings',
25 | component: ratings
26 | },{
27 | path: '/seller',
28 | name: 'seller',
29 | component: seller
30 | }
31 | ]
32 | })
33 |
--------------------------------------------------------------------------------
/src/theme.styl:
--------------------------------------------------------------------------------
1 | @require "~cube-ui/src/common/stylus/var/color.styl"
2 |
3 |
4 | // action-sheet
5 | $action-sheet-color := $color-grey
6 | $action-sheet-active-color := $color-orange
7 | $action-sheet-bgc := $color-white
8 | $action-sheet-active-bgc := $color-light-grey-opacity
9 | $action-sheet-title-color := $color-dark-grey
10 | $action-sheet-space-bgc := $color-mask-bg
11 | /// picker style
12 | $action-sheet-picker-cancel-color := $color-light-grey
13 | $action-sheet-picker-cancel-active-color := $color-light-grey-s
14 |
15 | // bubble
16 |
17 | // button
18 | $btn-color := $color-white
19 | $btn-bgc := $color-regular-blue
20 | $btn-bdc := $color-regular-blue
21 | $btn-active-bgc := $color-blue
22 | $btn-active-bdc := $color-blue
23 | $btn-disabled-color := $color-white
24 | $btn-disabled-bgc := $color-light-grey-s
25 | $btn-disabled-bdc := $color-light-grey-s
26 | /// primary
27 | $btn-primary-color := $color-white
28 | $btn-primary-bgc := $color-orange
29 | $btn-primary-bdc := $color-orange
30 | $btn-primary-active-bgc := $color-dark-orange
31 | $btn-primary-active-bdc := $color-dark-orange
32 | /// light
33 | $btn-light-color := $color-grey
34 | $btn-light-bgc := $color-light-grey-sss
35 | $btn-light-bdc := $color-light-grey-sss
36 | $btn-light-active-bgc := $color-active-grey
37 | $btn-light-active-bdc := $color-active-grey
38 | /// outline
39 | $btn-outline-color := $color-grey
40 | $btn-outline-bgc := transparent
41 | $btn-outline-bdc := $color-grey
42 | $btn-outline-active-bgc := $color-grey-opacity
43 | $btn-outline-active-bdc := $color-grey
44 | /// outline-primary
45 | $btn-outline-primary-color := $color-orange
46 | $btn-outline-primary-bgc := transparent
47 | $btn-outline-primary-bdc := $color-orange
48 | $btn-outline-primary-active-bgc := $color-orange-opacity
49 | $btn-outline-primary-active-bdc := $color-dark-orange
50 |
51 | // toolbar
52 | $toolbar-bgc := $color-light-grey-sss
53 | $toolbar-active-bgc := $color-active-grey
54 |
55 | // checkbox
56 | $checkbox-color := $color-grey
57 | $checkbox-icon-color := $color-light-grey-s
58 | /// checked
59 | $checkbox-checked-icon-color := $color-orange
60 | $checkbox-checked-icon-bgc := $color-white
61 | /// disabled
62 | $checkbox-disabled-icon-color := $color-light-grey-ss
63 | $checkbox-disabled-icon-bgc := $color-light-grey-ss
64 | // checkbox hollow
65 | $checkbox-hollow-checked-icon-color := $color-orange
66 | $checkbox-hollow-disabled-icon-color := $color-light-grey-ss
67 | // checkbox-group
68 | $checkbox-group-bgc := $color-white
69 | $checkbox-group-horizontal-bdc := $color-light-grey-s
70 |
71 | // radio
72 | $radio-group-bgc := $color-white
73 | $radio-group-horizontal-bdc := $color-light-grey-s
74 | $radio-color := $color-grey
75 | $radio-icon-color := $color-light-grey-s
76 | /// selected
77 | $radio-selected-icon-color := $color-white
78 | $radio-selected-icon-bgc := $color-orange
79 | /// disabled
80 | $radio-disabled-icon-bgc := $color-light-grey-ss
81 | // radio hollow
82 | $radio-hollow-selected-icon-color := $color-orange
83 | $radio-hollow-disabled-icon-color := $color-light-grey-ss
84 |
85 | // dialog
86 | $dialog-color := $color-grey
87 | $dialog-bgc := $color-white
88 | $dialog-icon-color := $color-regular-blue
89 | $dialog-icon-bgc := $color-background
90 | $dialog-title-color := $color-dark-grey
91 | $dialog-close-color := $color-light-grey
92 | $dialog-btn-color := $color-light-grey
93 | $dialog-btn-bgc := $color-white
94 | $dialog-btn-active-bgc := $color-light-grey-opacity
95 | $dialog-btn-highlight-color := $color-orange
96 | $dialog-btn-highlight-active-bgc := $color-light-orange-opacity
97 | $dialog-btn-disabled-color := $color-light-grey
98 | $dialog-btn-disabled-active-bgc := transparent
99 | $dialog-btns-split-color := $color-row-line
100 |
101 | // index-list
102 | $index-list-bgc := $color-white
103 | $index-list-title-color := $color-dark-grey
104 | $index-list-anchor-color := $color-light-grey
105 | $index-list-anchor-bgc := #f7f7f7
106 | $index-list-item-color := $color-dark-grey
107 | $index-list-item-active-bgc := $color-light-grey-opacity
108 | $index-list-nav-color := $color-grey
109 | $index-list-nav-active-color := $color-orange
110 |
111 | // loading
112 |
113 | // picker
114 | $picker-bgc := $color-white
115 | $picker-title-color := $color-dark-grey
116 | $picker-subtitle-color := $color-light-grey
117 | $picker-confirm-btn-color := $color-orange
118 | $picker-confirm-btn-active-color := $color-light-orange
119 | $picker-cancel-btn-color := $color-light-grey
120 | $picker-cancel-btn-active-color := $color-light-grey-s
121 | $picker-item-color := $color-dark-grey
122 |
123 | // popup
124 | $popup-mask-bgc := rgb(37, 38, 45)
125 | $popup-mask-opacity := .4
126 |
127 | //scroll
128 |
129 | // slide
130 | $slide-dot-bgc := $color-light-grey-s
131 | $slide-dot-active-bgc := $color-orange
132 |
133 | // time-picker
134 |
135 | // tip
136 | $tip-color := $color-white
137 | $tip-bgc := $color-dark-grey-opacity
138 |
139 | // toast
140 | $toast-color := $color-light-grey-s
141 | $toast-bgc := rgba(37, 38, 45, 0.9)
142 |
143 | // upload
144 | $upload-btn-color := $color-grey
145 | $upload-btn-bgc := $color-white
146 | $upload-btn-active-bgc := $color-light-grey-opacity
147 | $upload-btn-box-shadow := 0 0 6px 2px $color-grey-opacity
148 | $upload-btn-border-color := #e5e5e5
149 | $upload-file-bgc := $color-white
150 | $upload-file-remove-color := rgba(0, 0, 0, .8)
151 | $upload-file-remove-bgc := $color-white
152 | $upload-file-state-bgc := $color-mask-bg
153 | $upload-file-success-color := $color-orange
154 | $upload-file-error-color := #f43530
155 | $upload-file-status-bgc := $color-white
156 | $upload-file-progress-color := $color-white
157 |
158 | // switch
159 | $switch-on-bgc := $color-orange
160 | $switch-off-bgc := $color-white
161 | $switch-off-border-color := #e4e4e4
162 |
163 | // input
164 | $input-color := $color-grey
165 | $input-bgc := $color-white
166 | $input-border-color := $color-row-line
167 | $input-focus-border-color := $color-orange
168 | $input-placeholder-color := $color-light-grey-s
169 | $input-clear-icon-color := $color-light-grey
170 |
171 | //textarea
172 | $textarea-color := $color-grey
173 | $textarea-bgc := $color-white
174 | $textarea-border-color := $color-row-line
175 | $textarea-focus-border-color := $color-orange
176 | $textarea-outline-color := $color-orange
177 | $textarea-placeholder-color := $color-light-grey-s
178 | $textarea-indicator-color := $color-light-grey-s
179 |
180 | // validator
181 | $validator-msg-def-color := #e64340
182 |
183 | // select
184 | $select-color := $color-grey
185 | $select-bgc := $color-white
186 | $select-disabled-color := #b8b8b8
187 | $select-disabled-bgc := $color-light-grey-opacity
188 | $select-border-color := $color-light-grey-s
189 | $select-border-active-color := $color-orange
190 | $select-icon-color := $color-light-grey
191 | $select-placeholder-color := $color-light-grey-s
192 |
193 | // swipe
194 | $swipe-btn-color := $color-white
195 |
196 | // form
197 | $form-color := $color-grey
198 | $form-bgc := $color-white
199 | $form-invalid-color := #e64340
200 | $form-group-legend-color := $color-light-grey
201 | $form-group-legend-bgc := $color-background
202 | $form-label-required-color := #e64340
203 |
204 | // drawer
205 | $drawer-color := $color-dark-grey
206 | $drawer-title-bdc := $color-light-grey-ss
207 | $drawer-title-bgc := $color-white
208 | $drawer-panel-bgc := $color-white
209 | $drawer-item-active-bgc := $color-light-grey-opacity
210 |
211 | // scroll-nav
212 | $scroll-nav-bgc := $color-white
213 | $scroll-nav-color := $color-grey
214 | $scroll-nav-active-color := $color-orange
215 |
216 | // image-preview
217 | $image-preview-counter-color := $color-white
218 |
219 | // tab-bar & tab-panel
220 | $tab-color := $color-grey
221 | $tab-active-color := $color-dark-orange
222 | $tab-slider-bgc := $color-dark-orange
223 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/shifengming/sell/e3ec450f3b928b9b77af06953c901668564f6287/static/.gitkeep
--------------------------------------------------------------------------------
/static/css/reset.css:
--------------------------------------------------------------------------------
1 | /**
2 | * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
3 | * http://cssreset.com
4 | */
5 | html, body, div, span, applet, object, iframe,
6 | h1, h2, h3, h4, h5, h6, p, blockquote, pre,
7 | a, abbr, acronym, address, big, cite, code,
8 | del, dfn, em, img, ins, kbd, q, s, samp,
9 | small, strike, strong, sub, sup, tt, var,
10 | b, u, i, center,
11 | dl, dt, dd, ol, ul, li,
12 | fieldset, form, label, legend,
13 | table, caption, tbody, tfoot, thead, tr, th, td,
14 | article, aside, canvas, details, embed,
15 | figure, figcaption, footer, header,
16 | menu, nav, output, ruby, section, summary,
17 | time, mark, audio, video, input {
18 | margin: 0;
19 | padding: 0;
20 | border: 0;
21 | font-size: 100%;
22 | font-weight: normal;
23 | vertical-align: baseline;
24 | }
25 |
26 | /* HTML5 display-role reset for older browsers */
27 | article, aside, details, figcaption, figure,
28 | footer, header, menu, nav, section {
29 | display: block;
30 | }
31 |
32 | body {
33 | line-height: 1;
34 | }
35 |
36 | blockquote, q {
37 | quotes: none;
38 | }
39 |
40 | blockquote:before, blockquote:after,
41 | q:before, q:after {
42 | content: none;
43 | }
44 |
45 | table {
46 | border-collapse: collapse;
47 | border-spacing: 0;
48 | }
49 |
50 | /* custom */
51 | a {
52 | color: #7e8c8d;
53 | text-decoration: none;
54 | -webkit-backface-visibility: hidden;
55 | }
56 |
57 | li {
58 | list-style: none;
59 | }
60 |
61 | ::-webkit-scrollbar {
62 | width: 5px;
63 | height: 5px;
64 | }
65 |
66 | ::-webkit-scrollbar-track-piece {
67 | background-color: rgba(0, 0, 0, 0.2);
68 | -webkit-border-radius: 6px;
69 | }
70 |
71 | ::-webkit-scrollbar-thumb:vertical {
72 | height: 5px;
73 | background-color: rgba(125, 125, 125, 0.7);
74 | -webkit-border-radius: 6px;
75 | }
76 |
77 | ::-webkit-scrollbar-thumb:horizontal {
78 | width: 5px;
79 | background-color: rgba(125, 125, 125, 0.7);
80 | -webkit-border-radius: 6px;
81 | }
82 |
83 | html, body {
84 | width: 100%;
85 | }
86 |
87 | body {
88 | -webkit-text-size-adjust: none;
89 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
90 | }
--------------------------------------------------------------------------------