├── static ├── .gitkeep └── images │ ├── home.png │ ├── profile.png │ ├── home-actived.png │ └── profile-actived.png ├── config ├── prod.env.js ├── dev.env.js └── index.js ├── screenshots ├── 1.png ├── 2.png ├── 3.png ├── 4.png ├── 5.jpg ├── 6.jpg └── mywechatpay.jpg ├── src ├── pages │ ├── free │ │ ├── main.json │ │ ├── main.js │ │ └── index.vue │ ├── my │ │ ├── main.json │ │ ├── main.js │ │ └── index.vue │ ├── index │ │ ├── main.json │ │ ├── main.js │ │ └── index.vue │ ├── express │ │ ├── main.js │ │ ├── main.json │ │ └── index.vue │ ├── item │ │ ├── main.js │ │ ├── main.json │ │ └── index.vue │ ├── orders │ │ ├── main.js │ │ ├── main.json │ │ └── index.vue │ └── transactions │ │ ├── main.js │ │ ├── main.json │ │ └── index.vue ├── main.js ├── common │ ├── card.vue │ ├── imgitem.vue │ ├── listitems.vue │ ├── xlistitem.vue │ ├── xorder.vue │ └── tools │ │ └── index.js ├── app.json └── App.vue ├── .postcssrc.js ├── .editorconfig ├── .gitignore ├── package.swan.json ├── index.html ├── .babelrc ├── project.config.json ├── README.md └── package.json /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/1.png -------------------------------------------------------------------------------- /screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/2.png -------------------------------------------------------------------------------- /screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/3.png -------------------------------------------------------------------------------- /screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/4.png -------------------------------------------------------------------------------- /screenshots/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/5.jpg -------------------------------------------------------------------------------- /screenshots/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/6.jpg -------------------------------------------------------------------------------- /static/images/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/static/images/home.png -------------------------------------------------------------------------------- /static/images/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/static/images/profile.png -------------------------------------------------------------------------------- /screenshots/mywechatpay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/screenshots/mywechatpay.jpg -------------------------------------------------------------------------------- /src/pages/free/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "肋力免费拿", 3 | 4 | "usingComponents": 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/pages/my/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": " 我的", 3 | 4 | "usingComponents": 5 | { 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /static/images/home-actived.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/static/images/home-actived.png -------------------------------------------------------------------------------- /src/pages/index/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "首页", 3 | 4 | "usingComponents": 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/my/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /static/images/profile-actived.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinhe9527/nwei_shopv2/HEAD/static/images/profile-actived.png -------------------------------------------------------------------------------- /src/pages/express/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/free/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/index/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/item/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/orders/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/orders/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "我的订单", 3 | 4 | "usingComponents": 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/transactions/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './index' 3 | 4 | const app = new Vue(App) 5 | app.$mount() 6 | -------------------------------------------------------------------------------- /src/pages/transactions/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "我的订单", 3 | 4 | "usingComponents": 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/express/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "宝贝详情", 3 | "enablePullDownRefresh": false, 4 | "usingComponents": 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/pages/item/main.json: -------------------------------------------------------------------------------- 1 | { 2 | "navigationBarTitleText": "宝贝详情", 3 | "enablePullDownRefresh": false, 4 | "usingComponents": 5 | { 6 | 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-mpvue-wxss": {} 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var prodEnv = require('./prod.env') 3 | 4 | module.exports = merge(prodEnv, { 5 | NODE_ENV: '"development"' 6 | }) 7 | -------------------------------------------------------------------------------- /.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 | *.suo 11 | *.ntvs* 12 | *.njsproj 13 | *.sln 14 | -------------------------------------------------------------------------------- /package.swan.json: -------------------------------------------------------------------------------- 1 | { 2 | "appid": "touristappid", 3 | "setting": { 4 | "urlCheck": false 5 | }, 6 | "condition": { 7 | "swan": { 8 | "current": -1, 9 | "list": [] 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App' 3 | import t from 't' 4 | 5 | // import 'mpvue-weui/src/style/weui.css'; 6 | Vue.config.productionTip = false 7 | App.mpType = 'app' 8 | const app = new Vue(App) 9 | app.$mount() 10 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 |4 | {{text}} 5 |
6 |
27 | ##
28 | ##
29 | ##
30 | ##
31 | ##
32 |
33 |
34 | ## Getting Started
35 | To get the project set up just run by command:
36 | ```
37 | yarn dev
38 | ```
39 | It will:
40 | * pack all your codes to 小程序开发工具
41 |
42 | After it is finished you can simply open `小程序开发工具` and `自动运行`
43 |
44 |
45 | ## Known Issues
46 | not yet
47 |
48 | ## For Contributors
49 | If you want to help us out, you are more than welcome to. However please make sure you have followed the guidelines in [CONTRIBUTING](CONTRIBUTING.md).
50 |
51 | ## License
52 |
53 | [`nwei_shopv2` is BSD-licensed](LICENSE). We also provide an additional [patent grant](PATENTS).
54 |
55 | Have fun!
56 |
57 | ## 送作者一杯茶
58 | -
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 | var fileExtConfig = {
4 | swan: {
5 | template: 'swan',
6 | script: 'js',
7 | style: 'css',
8 | platform: 'swan'
9 | },
10 | wx: {
11 | template: 'wxml',
12 | script: 'js',
13 | style: 'wxss',
14 | platform: 'wx'
15 | }
16 | }
17 | var fileExt = fileExtConfig[process.env.PLATFORM]
18 |
19 | module.exports = {
20 | build: {
21 | env: require('./prod.env'),
22 | index: path.resolve(__dirname, `../dist/${fileExt.platform}/index.html`),
23 | assetsRoot: path.resolve(__dirname, `../dist/${fileExt.platform}`),
24 | assetsSubDirectory: '',
25 | assetsPublicPath: '/',
26 | productionSourceMap: false,
27 | // Gzip off by default as many popular static hosts such as
28 | // Surge or Netlify already gzip all static assets for you.
29 | // Before setting to `true`, make sure to:
30 | // npm install --save-dev compression-webpack-plugin
31 | productionGzip: false,
32 | productionGzipExtensions: ['js', 'css'],
33 | // Run the build command with an extra argument to
34 | // View the bundle analyzer report after build finishes:
35 | // `npm run build --report`
36 | // Set to `true` or `false` to always turn it on or off
37 | bundleAnalyzerReport: process.env.npm_config_report,
38 | fileExt: fileExt
39 | },
40 | dev: {
41 | env: require('./dev.env'),
42 | port: 8080,
43 | // 在小程序开发者工具中不需要自动打开浏览器
44 | autoOpenBrowser: false,
45 | assetsSubDirectory: '',
46 | assetsPublicPath: '/',
47 | proxyTable: {},
48 | // CSS Sourcemaps off by default because relative paths are "buggy"
49 | // with this option, according to the CSS-Loader README
50 | // (https://github.com/webpack/css-loader#sourcemaps)
51 | // In our experience, they generally work as expected,
52 | // just be aware of this issue when enabling this option.
53 | cssSourceMap: false,
54 | fileExt: fileExt
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Hmbb",
3 | "version": "1.0.0",
4 | "mpvueTemplateProjectVersion": "0.0.1",
5 | "description": "A Mpvue project",
6 | "author": "Blake",
7 | "private": true,
8 | "scripts": {
9 | "git": "git add -A&&git commit -m 一周工作80小时s以上&&git push --set-upstream origin master",
10 | "dev:wx": "node build/dev-server.js wx",
11 | "start:wx": "npm run dev:wx",
12 | "build:wx": "node build/build.js wx",
13 | "dev:swan": "node build/dev-server.js swan",
14 | "start:swan": "npm run dev:swan",
15 | "build:swan": "node build/build.js swan",
16 | "dev": "node build/dev-server.js wx",
17 | "start": "npm run dev",
18 | "build": "node build/build.js wx"
19 | },
20 | "dependencies": {
21 | "await-sleep": "^0.0.1",
22 | "lerp": "^1.0.3",
23 | "less": "^3.9.0",
24 | "less-loader": "^4.1.0",
25 | "moment": "^2.23.0",
26 | "mpvue": "^1.0.11",
27 | "mpvue-weui": "^1.0.4",
28 | "mpvue-zanui": "^1.0.3",
29 | "raf": "^3.4.1",
30 | "siriwave": "^1.2.4",
31 | "vuex": "^3.0.1"
32 | },
33 | "devDependencies": {
34 | "babel-core": "^6.22.1",
35 | "babel-loader": "^7.1.1",
36 | "babel-plugin-transform-runtime": "^6.22.0",
37 | "babel-preset-env": "^1.3.2",
38 | "babel-preset-stage-2": "^6.22.0",
39 | "babel-register": "^6.22.0",
40 | "chalk": "^2.4.0",
41 | "connect-history-api-fallback": "^1.3.0",
42 | "copy-webpack-plugin": "^4.5.1",
43 | "css-loader": "^0.28.11",
44 | "cssnano": "^3.10.0",
45 | "eventsource-polyfill": "^0.9.6",
46 | "express": "^4.17.3",
47 | "extract-text-webpack-plugin": "^3.0.2",
48 | "file-loader": "^1.1.11",
49 | "friendly-errors-webpack-plugin": "^1.7.0",
50 | "glob": "^7.1.2",
51 | "html-webpack-plugin": "^3.2.0",
52 | "http-proxy-middleware": "^0.18.0",
53 | "mpvue-loader": "^1.1.2",
54 | "mpvue-template-compiler": "^1.0.11",
55 | "mpvue-webpack-target": "^1.0.3",
56 | "optimize-css-assets-webpack-plugin": "^3.2.0",
57 | "ora": "^2.0.0",
58 | "portfinder": "^1.0.13",
59 | "postcss-loader": "^2.1.4",
60 | "postcss-mpvue-wxss": "^1.0.0",
61 | "prettier": "~1.12.1",
62 | "px2rpx-loader": "^0.1.10",
63 | "relative": "^3.0.2",
64 | "rimraf": "^2.6.0",
65 | "semver": "^5.3.0",
66 | "shelljs": "^0.8.1",
67 | "uglifyjs-webpack-plugin": "^1.2.5",
68 | "url-loader": "^1.0.1",
69 | "vue-style-loader": "^4.1.0",
70 | "webpack": "^3.11.0",
71 | "webpack-bundle-analyzer": "^2.2.1",
72 | "webpack-dev-middleware-hard-disk": "^1.12.0",
73 | "webpack-merge": "^4.1.0",
74 | "webpack-mpvue-asset-plugin": "^0.1.2",
75 | "webpack-mpvue-vendor-plugin": "^0.0.1"
76 | },
77 | "engines": {
78 | "node": ">= 4.0.0",
79 | "npm": ">= 3.0.0"
80 | },
81 | "browserslist": [
82 | "> 1%",
83 | "last 2 versions",
84 | "not ie <= 8"
85 | ]
86 | }
87 |
--------------------------------------------------------------------------------
/src/common/listitems.vue:
--------------------------------------------------------------------------------
1 |
2 |