├── static ├── .gitkeep └── .idea │ ├── modules.xml │ ├── static.iml │ ├── misc.xml │ └── workspace.xml ├── .eslintignore ├── config ├── prod.env.js ├── test.env.js ├── dev.env.js └── index.js ├── src ├── vuex │ ├── modules │ │ ├── home.js │ │ ├── app.js │ │ ├── userAchievement.js │ │ ├── userCard.js │ │ └── errorNote.js │ ├── getters.js │ ├── types.js │ ├── store.js │ └── actions.js ├── assets │ ├── img │ │ ├── pk.png │ │ ├── up.png │ │ ├── down.png │ │ ├── fav.png │ │ ├── home.png │ │ ├── lock.png │ │ ├── logo.png │ │ ├── math.png │ │ ├── mine.png │ │ ├── vip.png │ │ ├── account.png │ │ ├── action.png │ │ ├── avtar.png │ │ ├── bind-bg.png │ │ ├── biology.png │ │ ├── chinese.png │ │ ├── clock.png │ │ ├── english.png │ │ ├── history.png │ │ ├── money.png │ │ ├── paper.png │ │ ├── physics.png │ │ ├── profile.png │ │ ├── analysis.png │ │ ├── avtar-bg.png │ │ ├── chemistry.png │ │ ├── error-fix.png │ │ ├── exercise.png │ │ ├── geography.png │ │ ├── politics.png │ │ ├── relation.png │ │ ├── analysis-nav.png │ │ ├── arrow_down.png │ │ ├── compensate.png │ │ ├── dialog-logo.png │ │ ├── error-book.png │ │ ├── error-fix-bg.png │ │ ├── exercise-nav.png │ │ ├── home-active.png │ │ ├── logo-white.png │ │ ├── mine-active.png │ │ ├── penceil-logo.png │ │ ├── profile-bg.png │ │ ├── action-active.png │ │ ├── compensate-bg.png │ │ ├── dialog-logo-ok.png │ │ ├── error-book-bg.png │ │ ├── analysis-active.png │ │ └── exercise-active.png │ ├── logo.png │ ├── scss │ │ ├── wy-mint.scss │ │ └── base.scss │ └── css │ │ └── app.css ├── service │ ├── constant.js │ ├── feCache.js │ ├── util.js │ ├── httpInterceptor.js │ ├── authenticateService.js │ └── httpService.js ├── components │ ├── Klass.vue │ ├── Analysis.vue │ ├── errorNote │ │ ├── ErrorQuestions.vue │ │ ├── QuestionCard.vue │ │ ├── ErrorNote.vue │ │ ├── ErrorQuestionDetail.vue │ │ └── SubjectCarousel.vue │ ├── Action.vue │ ├── mine │ │ ├── UseInfo.vue │ │ ├── AchievementDetail.vue │ │ └── Achievement.vue │ ├── common │ │ ├── wyInput.vue │ │ ├── wySelect.vue │ │ └── wyDialog.vue │ ├── Mine.vue │ ├── home │ │ ├── Schedule.vue │ │ ├── noticeCard.vue │ │ └── UserCard.vue │ ├── Exercise.vue │ ├── Home.vue │ ├── exercise │ │ ├── SameQuestionTest.vue │ │ ├── PaperSelectCard.vue │ │ └── ErrorFix.vue │ └── bind │ │ └── Bind.vue ├── api │ └── index.js ├── MainEntry.vue ├── filter │ └── wyFilter.js ├── config.js ├── main.js ├── routerConfig.js └── App.vue ├── .babelrc ├── .gitignore ├── .idea ├── dictionaries │ └── Administrator.xml ├── watcherTasks.xml ├── vcs.xml ├── modules.xml ├── jsLibraryMappings.xml ├── wechat.iml ├── webResources.xml ├── libraries │ └── wechat_node_modules.xml ├── file.template.settings.xml └── misc.xml ├── test └── e2e │ ├── specs │ └── test.js │ ├── custom-assertions │ └── elementCount.js │ ├── nightwatch.conf.js │ └── runner.js ├── README.md ├── package.json └── index.html /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | build/*.js 2 | config/*.js 3 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | NODE_ENV: '"production"' 3 | } 4 | -------------------------------------------------------------------------------- /src/vuex/modules/home.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/5. 3 | */ 4 | -------------------------------------------------------------------------------- /src/assets/img/pk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/pk.png -------------------------------------------------------------------------------- /src/assets/img/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/up.png -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/logo.png -------------------------------------------------------------------------------- /src/assets/img/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/down.png -------------------------------------------------------------------------------- /src/assets/img/fav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/fav.png -------------------------------------------------------------------------------- /src/assets/img/home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/home.png -------------------------------------------------------------------------------- /src/assets/img/lock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/lock.png -------------------------------------------------------------------------------- /src/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/logo.png -------------------------------------------------------------------------------- /src/assets/img/math.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/math.png -------------------------------------------------------------------------------- /src/assets/img/mine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/mine.png -------------------------------------------------------------------------------- /src/assets/img/vip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/vip.png -------------------------------------------------------------------------------- /src/assets/img/account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/account.png -------------------------------------------------------------------------------- /src/assets/img/action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/action.png -------------------------------------------------------------------------------- /src/assets/img/avtar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/avtar.png -------------------------------------------------------------------------------- /src/assets/img/bind-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/bind-bg.png -------------------------------------------------------------------------------- /src/assets/img/biology.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/biology.png -------------------------------------------------------------------------------- /src/assets/img/chinese.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/chinese.png -------------------------------------------------------------------------------- /src/assets/img/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/clock.png -------------------------------------------------------------------------------- /src/assets/img/english.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/english.png -------------------------------------------------------------------------------- /src/assets/img/history.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/history.png -------------------------------------------------------------------------------- /src/assets/img/money.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/money.png -------------------------------------------------------------------------------- /src/assets/img/paper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/paper.png -------------------------------------------------------------------------------- /src/assets/img/physics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/physics.png -------------------------------------------------------------------------------- /src/assets/img/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/profile.png -------------------------------------------------------------------------------- /src/assets/img/analysis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/analysis.png -------------------------------------------------------------------------------- /src/assets/img/avtar-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/avtar-bg.png -------------------------------------------------------------------------------- /src/assets/img/chemistry.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/chemistry.png -------------------------------------------------------------------------------- /src/assets/img/error-fix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/error-fix.png -------------------------------------------------------------------------------- /src/assets/img/exercise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/exercise.png -------------------------------------------------------------------------------- /src/assets/img/geography.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/geography.png -------------------------------------------------------------------------------- /src/assets/img/politics.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/politics.png -------------------------------------------------------------------------------- /src/assets/img/relation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/relation.png -------------------------------------------------------------------------------- /src/assets/img/analysis-nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/analysis-nav.png -------------------------------------------------------------------------------- /src/assets/img/arrow_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/arrow_down.png -------------------------------------------------------------------------------- /src/assets/img/compensate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/compensate.png -------------------------------------------------------------------------------- /src/assets/img/dialog-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/dialog-logo.png -------------------------------------------------------------------------------- /src/assets/img/error-book.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/error-book.png -------------------------------------------------------------------------------- /src/assets/img/error-fix-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/error-fix-bg.png -------------------------------------------------------------------------------- /src/assets/img/exercise-nav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/exercise-nav.png -------------------------------------------------------------------------------- /src/assets/img/home-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/home-active.png -------------------------------------------------------------------------------- /src/assets/img/logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/logo-white.png -------------------------------------------------------------------------------- /src/assets/img/mine-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/mine-active.png -------------------------------------------------------------------------------- /src/assets/img/penceil-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/penceil-logo.png -------------------------------------------------------------------------------- /src/assets/img/profile-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/profile-bg.png -------------------------------------------------------------------------------- /src/assets/img/action-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/action-active.png -------------------------------------------------------------------------------- /src/assets/img/compensate-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/compensate-bg.png -------------------------------------------------------------------------------- /src/assets/img/dialog-logo-ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/dialog-logo-ok.png -------------------------------------------------------------------------------- /src/assets/img/error-book-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/error-book-bg.png -------------------------------------------------------------------------------- /src/service/constant.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/4. 3 | */ 4 | export default { 5 | 6 | } -------------------------------------------------------------------------------- /src/service/feCache.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/11. 3 | */ 4 | export const cache = { 5 | 6 | }; -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-2"], 3 | "plugins": ["transform-runtime"], 4 | "comments": false 5 | } 6 | -------------------------------------------------------------------------------- /src/assets/img/analysis-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/analysis-active.png -------------------------------------------------------------------------------- /src/assets/img/exercise-active.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hquestion/wechat-vue/HEAD/src/assets/img/exercise-active.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log 5 | selenium-debug.log 6 | test/unit/coverage 7 | test/e2e/reports 8 | -------------------------------------------------------------------------------- /.idea/dictionaries/Administrator.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /.idea/watcherTasks.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /config/test.env.js: -------------------------------------------------------------------------------- 1 | var merge = require('webpack-merge') 2 | var devEnv = require('./dev.env') 3 | 4 | module.exports = merge(devEnv, { 5 | NODE_ENV: '"testing"' 6 | }) 7 | -------------------------------------------------------------------------------- /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: '"production"' 6 | }) 7 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/vuex/getters.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/6. 3 | */ 4 | export const getAppTitle = function({state}){ 5 | return state.app.title; 6 | }; 7 | 8 | export const getUserCardInfo = ({state}) => state.userCard.user; -------------------------------------------------------------------------------- /src/assets/scss/wy-mint.scss: -------------------------------------------------------------------------------- 1 | @import './base'; 2 | .mint-header { 3 | background-color: $green; 4 | font-size: 18px; 5 | height: 50px; 6 | line-height: 50px; 7 | } 8 | .mint-tabbar>.mint-tab-item.is-selected { 9 | background: inherit; 10 | color: $green; 11 | } -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /static/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /static/.idea/static.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/service/util.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/5. 3 | */ 4 | export default { 5 | deepCopy: function(arr){ 6 | return JSON.parse(JSON.stringify(arr)); 7 | }, 8 | pluck: function(arr, key){ 9 | return arr.map(function(item){ 10 | return item[key]; 11 | }); 12 | } 13 | } -------------------------------------------------------------------------------- /.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/wechat.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/components/Klass.vue: -------------------------------------------------------------------------------- 1 | 6 | 18 | -------------------------------------------------------------------------------- /src/vuex/modules/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/5. 3 | */ 4 | import { INIT_TITLE } from '../types' 5 | 6 | // 该模块的初始状态 7 | const state = { 8 | title: '云智教育服务' 9 | }; 10 | 11 | // 相关的 mutations 12 | const mutations = { 13 | [INIT_TITLE] (state, title) { 14 | state.title = title; 15 | } 16 | }; 17 | 18 | export default { 19 | state, 20 | mutations 21 | } -------------------------------------------------------------------------------- /.idea/webResources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/components/Analysis.vue: -------------------------------------------------------------------------------- 1 | 6 | 11 | -------------------------------------------------------------------------------- /test/e2e/specs/test.js: -------------------------------------------------------------------------------- 1 | // For authoring Nightwatch tests, see 2 | // http://nightwatchjs.org/guide#usage 3 | 4 | module.exports = { 5 | 'default e2e tests': function (browser) { 6 | browser 7 | .url('http://localhost:8080') 8 | .waitForElementVisible('#app', 5000) 9 | .assert.elementPresent('.logo') 10 | .assert.containsText('h1', 'Hello World!') 11 | .assert.elementCount('p', 3) 12 | .end() 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/assets/scss/base.scss: -------------------------------------------------------------------------------- 1 | $baseFontSize: 18; 2 | $baseFontFamily: '微软雅黑','microsoft yahei','Arial'; 3 | $baseWidth: 525; 4 | $white: #FFF; 5 | $green: #3B9A82; 6 | $black: #000; 7 | $grey: #CCC; 8 | $golden: #E9D445; 9 | $red: #F26D6E; 10 | $bgGrey: #EFEEEA; 11 | $orange: #F69200; 12 | $textGrey: #6b6b6b; 13 | $textDrak: #404040; 14 | 15 | $font18: 1rem; 16 | $font24: 24 / $baseFontSize +rem; 17 | 18 | @function toPercent($n){ 19 | @return $n * 100%; 20 | } -------------------------------------------------------------------------------- /src/vuex/modules/userAchievement.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/12. 3 | */ 4 | import { GET_USER_ACHIEVEMENT } from '../types'; 5 | import api from '../../api'; 6 | 7 | // 该模块的初始状态 8 | const state = { 9 | achievement: {} 10 | }; 11 | 12 | // 相关的 mutations 13 | const mutations = { 14 | [GET_USER_ACHIEVEMENT] (state, achievement) { 15 | state.achievement = achievement; 16 | } 17 | }; 18 | 19 | export default { 20 | state, 21 | mutations 22 | } -------------------------------------------------------------------------------- /.idea/libraries/wechat_node_modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /src/service/httpInterceptor.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Administrator on 2016/7/1. 3 | */ 4 | import { Indicator } from 'mint-ui'; 5 | var loadingTimer = null; 6 | 7 | export const request = function(req, next){ 8 | Indicator.open({ 9 | text: '拼命加载中...', 10 | spinnerType: 'fading-circle' 11 | }); 12 | next(); 13 | }; 14 | 15 | export const response = function(res, next){ 16 | clearTimeout(loadingTimer); 17 | loadingTimer = setTimeout(()=>{ 18 | Indicator.close(); 19 | }, 300); 20 | next(); 21 | }; -------------------------------------------------------------------------------- /.idea/file.template.settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |