|
@@ -103,11 +103,8 @@ try {
|
|
|
uIcon: function() {
|
|
|
return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, 396))
|
|
|
},
|
|
|
- uLineProgress: function() {
|
|
|
- return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-line-progress/u-line-progress")]).then(__webpack_require__.bind(null, 427))
|
|
|
- },
|
|
|
uButton: function() {
|
|
|
- return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, 435))
|
|
|
+ return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-button/u-button")]).then(__webpack_require__.bind(null, 427))
|
|
|
},
|
|
|
uPopup: function() {
|
|
|
return Promise.all([__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, 413))
|
|
@@ -134,15 +131,6 @@ var render = function() {
|
|
|
var _vm = this
|
|
|
var _h = _vm.$createElement
|
|
|
var _c = _vm._self._c || _h
|
|
|
- var g0 = _vm.login ? Object.keys(_vm.myCourse) : null
|
|
|
- _vm.$mp.data = Object.assign(
|
|
|
- {},
|
|
|
- {
|
|
|
- $root: {
|
|
|
- g0: g0
|
|
|
- }
|
|
|
- }
|
|
|
- )
|
|
|
}
|
|
|
var recyclableRender = false
|
|
|
var staticRenderFns = []
|
|
@@ -387,15 +375,19 @@ var _api = _interopRequireDefault(__webpack_require__(
|
|
|
|
|
|
|
|
|
|
|
|
-var _default = { data: function data() {return { login: false, user: {}, avatar: '/static/images/logo.jpg', myCourse: {}, list: [{ src: '/static/images/mine/icon1.png', title: '我的考试' }, { src: '/static/images/mine/icon2.png', title: '我的订单' }, { src: '/static/images/mine/icon3.png', title: '我的评论' }, { src: '/static/images/mine/icon4.png', title: '我的收藏' }, { src: '/static/images/mine/icon5.png', title: '修改密码' }, { src: '/static/images/mine/icon6.png', title: '我的证书' }], showInvite: false, page: 1, limit: 1 };}, onLoad: function onLoad() {this.getCourse();
|
|
|
+var _default = { data: function data() {return { login: false, user: {}, avatar: '/static/images/logo.jpg', myCourse: {}, list: [{ src: '/static/images/mine/icon1.png', title: '积分商城' }, { src: '/static/images/mine/icon1.png', title: '我的考试' }, { src: '/static/images/mine/icon2.png', title: '我的订单' }, { src: '/static/images/mine/icon3.png', title: '我的评论' }, { src: '/static/images/mine/icon4.png', title: '我的收藏' }, { src: '/static/images/mine/icon5.png', title: '修改密码' }, { src: '/static/images/mine/icon6.png', title: '我的证书' }], showInvite: false, page: 1, limit: 1 };}, onLoad: function onLoad() {this.getCourse();
|
|
|
}, onShow: function onShow() {this.getUser();
|
|
|
this.isLogin();}, methods: {
|
|
|
getUser: function getUser() {var that = this;_api.default.req({ url: '/api/User/userinfo' }, function (res) {console.log("个人信息:", res);if (res.code == 1) {that.user = res.data;var base64 = res.data.invite_img;var times = new Date().getTime();that.user.invite_img = wx.env.USER_DATA_PATH + '/' + times + '.png';var imageData = base64.replace(/^data:image\/\w+;base64,/, "");var fs = wx.getFileSystemManager();fs.writeFileSync(that.user.invite_img, imageData, "base64");}});},
|
|
|
getCourse: function getCourse() {var that = this;_api.default.req({ url: '/api/User/myCourseList', data: { page: that.page, limit: that.limit, type: 1 } }, function (res) {console.log("我的课程", res);if (res.code == 1) {that.myCourse = res.data.list[0];if (res.data.count !== 0) {that.totalProgress();}}});},
|
|
|
toLogin: function toLogin() {_api.default.jump('/pages/login/choose');}, isLogin: function isLogin() {var that = this;var token = uni.getStorageSync("token");console.log(token);if (token.token) {that.login = true;} else {_api.default.info('请先登录');}},
|
|
|
totalProgress: function totalProgress() {var myCourse = this.myCourse;myCourse.progress = myCourse.study_class_count / myCourse.class_count * 100;this.myCourse = myCourse;},
|
|
|
- _saveCode: function _saveCode() {console.log("长按保存图片到相册");},
|
|
|
- personalInfo: function personalInfo() {_api.default.jump('/pages/mine/personal');
|
|
|
+ _saveCode: function _saveCode() {
|
|
|
+ console.log("长按保存图片到相册");
|
|
|
+ },
|
|
|
+
|
|
|
+ personalInfo: function personalInfo() {
|
|
|
+ _api.default.jump('/pages/mine/personal');
|
|
|
},
|
|
|
|
|
|
toInvite: function toInvite() {
|
|
@@ -417,21 +409,24 @@ var _default = { data: function data() {return { login: false, user: {}, avatar:
|
|
|
var url = '';
|
|
|
switch (index) {
|
|
|
case 0:
|
|
|
- url = '/pages/mine/exam/exam';
|
|
|
+ url = '/pages/integral/integral';
|
|
|
break;
|
|
|
case 1:
|
|
|
- url = '/pages/mine/order/order';
|
|
|
+ url = '/pages/mine/exam/exam';
|
|
|
break;
|
|
|
case 2:
|
|
|
- url = '/pages/mine/comment';
|
|
|
+ url = '/pages/mine/order/order';
|
|
|
break;
|
|
|
case 3:
|
|
|
- url = '/pages/mine/collect';
|
|
|
+ url = '/pages/mine/comment';
|
|
|
break;
|
|
|
case 4:
|
|
|
- url = '/pages/mine/password/editPassword';
|
|
|
+ url = '/pages/mine/collect';
|
|
|
break;
|
|
|
case 5:
|
|
|
+ url = '/pages/mine/password/editPassword';
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
url = '/pages/mine/certificate';
|
|
|
break;}
|
|
|
|