xvying 2 years ago
parent
commit
4306bf18d0
100 changed files with 371 additions and 3 deletions
  1. 2 2
      common/http.interceptor.js
  2. 1 1
      online/index.html
  3. 0 0
      online/static/js/index.9e146d94.js
  4. 0 0
      online/static/js/pages-index-index.f35f6e02.js
  5. 0 0
      online/static/js/pages-mine-record.ab06f2f1.js
  6. 0 0
      online/static/js/pages-scheduling-index.f57bc4b5.js
  7. 0 0
      online/static/js/pages-student-details.333ca675.js
  8. 0 0
      online/static/js/pages-student-index_new.1cec6676.js
  9. 5 0
      online1/index.html
  10. BIN
      online1/static/.DS_Store
  11. 363 0
      online1/static/common/js/touch-emulator.js
  12. BIN
      online1/static/empty.png
  13. BIN
      online1/static/images/01.png
  14. BIN
      online1/static/images/active-bg.png
  15. BIN
      online1/static/images/active-bg1.png
  16. BIN
      online1/static/images/active-fill.png
  17. BIN
      online1/static/images/active.png
  18. BIN
      online1/static/images/ad-bg.png
  19. BIN
      online1/static/images/add-bg.png
  20. BIN
      online1/static/images/add.png
  21. BIN
      online1/static/images/add_duty.png
  22. BIN
      online1/static/images/all.png
  23. BIN
      online1/static/images/avator.png
  24. BIN
      online1/static/images/change_pwd.png
  25. BIN
      online1/static/images/chuang.png
  26. BIN
      online1/static/images/class.png
  27. BIN
      online1/static/images/date.png
  28. BIN
      online1/static/images/details-bg.png
  29. BIN
      online1/static/images/e-mail.png
  30. BIN
      online1/static/images/edit.png
  31. BIN
      online1/static/images/edit_arrow.png
  32. BIN
      online1/static/images/home-fill.png
  33. BIN
      online1/static/images/home.png
  34. BIN
      online1/static/images/icon-1.png
  35. BIN
      online1/static/images/icon-2.png
  36. BIN
      online1/static/images/icon-3.png
  37. BIN
      online1/static/images/icon.png
  38. BIN
      online1/static/images/index_class.png
  39. BIN
      online1/static/images/index_clock.png
  40. BIN
      online1/static/images/index_date.png
  41. BIN
      online1/static/images/index_none.png
  42. BIN
      online1/static/images/list_1.png
  43. BIN
      online1/static/images/list_2.png
  44. BIN
      online1/static/images/list_3.png
  45. BIN
      online1/static/images/list_arrow.png
  46. BIN
      online1/static/images/liuyan.png
  47. BIN
      online1/static/images/logo.png
  48. BIN
      online1/static/images/mine-bg.png
  49. BIN
      online1/static/images/mine-fill.png
  50. BIN
      online1/static/images/mine-icon.png
  51. BIN
      online1/static/images/mine.png
  52. BIN
      online1/static/images/mine_1.png
  53. BIN
      online1/static/images/mine_2.png
  54. BIN
      online1/static/images/mine_3.png
  55. BIN
      online1/static/images/mine_bg.png
  56. BIN
      online1/static/images/nock.png
  57. BIN
      online1/static/images/pass.png
  58. BIN
      online1/static/images/pass1.png
  59. BIN
      online1/static/images/phone.png
  60. BIN
      online1/static/images/plus.png
  61. BIN
      online1/static/images/remark.png
  62. BIN
      online1/static/images/remark1.png
  63. BIN
      online1/static/images/scheduling-fill.png
  64. BIN
      online1/static/images/scheduling.png
  65. BIN
      online1/static/images/shiming.png
  66. BIN
      online1/static/images/stu-bg.png
  67. BIN
      online1/static/images/stu-top.png
  68. BIN
      online1/static/images/stu_class.png
  69. BIN
      online1/static/images/stu_email.png
  70. BIN
      online1/static/images/stu_nan.png
  71. BIN
      online1/static/images/stu_nv.png
  72. BIN
      online1/static/images/stu_tel.png
  73. BIN
      online1/static/images/student-fill.png
  74. BIN
      online1/static/images/student.png
  75. BIN
      online1/static/images/success.png
  76. BIN
      online1/static/images/wenjuan.png
  77. BIN
      online1/static/img/01.1a5acf0a.png
  78. BIN
      online1/static/img/active-bg.05376446.png
  79. BIN
      online1/static/img/ad-bg.d8690265.png
  80. BIN
      online1/static/img/add-bg.6caa1bfe.png
  81. BIN
      online1/static/img/change_pwd.4212bdc3.png
  82. BIN
      online1/static/img/chuang.8478276e.png
  83. BIN
      online1/static/img/empty.f330efae.png
  84. BIN
      online1/static/img/index_class.3400f8ff.png
  85. BIN
      online1/static/img/list_1.5223e1d4.png
  86. BIN
      online1/static/img/list_2.86499c4e.png
  87. BIN
      online1/static/img/list_3.afbae14b.png
  88. BIN
      online1/static/img/liuyan.f3795747.png
  89. BIN
      online1/static/img/logo.b7fa16f9.png
  90. BIN
      online1/static/img/nock.3faa8ffb.png
  91. BIN
      online1/static/img/pass1.372d9b32.png
  92. BIN
      online1/static/img/shiming.a6902121.png
  93. BIN
      online1/static/img/stu-top.5d06004b.png
  94. BIN
      online1/static/img/success.71229ffe.png
  95. BIN
      online1/static/img/wenjuan.a533c9b8.png
  96. 0 0
      online1/static/index.css
  97. 0 0
      online1/static/js/chunk-vendors.46cc4b09.js
  98. 0 0
      online1/static/js/index.d3746cff.js
  99. 0 0
      online1/static/js/pages-activity-add.98075f3b.js
  100. 0 0
      online1/static/js/pages-activity-add~pages-activity-index~pages-index-index~pages-index-realname~pages-login-index~pag~33e2e626.4bdb097e.js

+ 2 - 2
common/http.interceptor.js

@@ -7,8 +7,8 @@ const install = (Vue, vm) => {
 	Vue.prototype.$u.http.setConfig({
 
 		// baseUrl: 'http://mt.mentor.site.ximengnaikang.com/api',
-		baseUrl: '/api',
-		// baseUrl:'https://zhsz.hactcm.edu.cn/api',
+		// baseUrl: '/api',
+		baseUrl:'https://zhsz.hactcm.edu.cn/api',
 		originalData: true,
 		dataType: 'json',
 		showLoading: true, // 是否显示请求中的loading

+ 1 - 1
online/index.html

@@ -2,4 +2,4 @@
                 display: none;
             }</style><script>document.addEventListener('DOMContentLoaded', function() {
 				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
-			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.d3746cff.js></script></body></html>
+			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.9e146d94.js></script></body></html>

File diff suppressed because it is too large
+ 0 - 0
online/static/js/index.9e146d94.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-index-index.f35f6e02.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-mine-record.ab06f2f1.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-scheduling-index.f57bc4b5.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-student-details.333ca675.js


File diff suppressed because it is too large
+ 0 - 0
online/static/js/pages-student-index_new.1cec6676.js


+ 5 - 0
online1/index.html

@@ -0,0 +1,5 @@
+<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><link rel="shortcut icon" type=image/x-icon href=/static/logo.ico><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>智慧导师预约-教师端</title><style>::-webkit-scrollbar{
+                display: none;
+            }</style><script>document.addEventListener('DOMContentLoaded', function() {
+				document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
+			})</script><link rel=stylesheet href=/h5-teacher/static/index.css></head><body><noscript><strong>本站点必须要开启JavaScript才能运行</strong></noscript><div id=app></div><script>/*BAIDU_STAT*/</script><script src=/h5-teacher/static/js/chunk-vendors.46cc4b09.js></script><script src=/h5-teacher/static/js/index.d3746cff.js></script></body></html>

BIN
online1/static/.DS_Store


+ 363 - 0
online1/static/common/js/touch-emulator.js

@@ -0,0 +1,363 @@
+(function(window, document, exportName, undefined) {
+    "use strict";
+
+    var isMultiTouch = false;
+    var multiTouchStartPos;
+    var eventTarget;
+    var touchElements = {};
+
+    // polyfills
+    if(!document.createTouch) {
+        document.createTouch = function(view, target, identifier, pageX, pageY, screenX, screenY, clientX, clientY) {
+            // auto set
+            if(clientX == undefined || clientY == undefined) {
+                clientX = pageX - window.pageXOffset;
+                clientY = pageY - window.pageYOffset;
+            }
+
+            return new Touch(target, identifier, {
+                pageX: pageX,
+                pageY: pageY,
+                screenX: screenX,
+                screenY: screenY,
+                clientX: clientX,
+                clientY: clientY
+            });
+        };
+    }
+
+    if(!document.createTouchList) {
+        document.createTouchList = function() {
+            var touchList = new TouchList();
+            for (var i = 0; i < arguments.length; i++) {
+                touchList[i] = arguments[i];
+            }
+            touchList.length = arguments.length;
+            return touchList;
+        };
+    }
+
+    /**
+     * create an touch point
+     * @constructor
+     * @param target
+     * @param identifier
+     * @param pos
+     * @param deltaX
+     * @param deltaY
+     * @returns {Object} touchPoint
+     */
+    function Touch(target, identifier, pos, deltaX, deltaY) {
+        deltaX = deltaX || 0;
+        deltaY = deltaY || 0;
+
+        this.identifier = identifier;
+        this.target = target;
+        this.clientX = pos.clientX + deltaX;
+        this.clientY = pos.clientY + deltaY;
+        this.screenX = pos.screenX + deltaX;
+        this.screenY = pos.screenY + deltaY;
+        this.pageX = pos.pageX + deltaX;
+        this.pageY = pos.pageY + deltaY;
+    }
+
+    /**
+     * create empty touchlist with the methods
+     * @constructor
+     * @returns touchList
+     */
+    function TouchList() {
+        var touchList = [];
+
+        touchList.item = function(index) {
+            return this[index] || null;
+        };
+
+        // specified by Mozilla
+        touchList.identifiedTouch = function(id) {
+            return this[id + 1] || null;
+        };
+
+        return touchList;
+    }
+
+
+    /**
+     * Simple trick to fake touch event support
+     * this is enough for most libraries like Modernizr and Hammer
+     */
+    function fakeTouchSupport() {
+        var objs = [window, document.documentElement];
+        var props = ['ontouchstart', 'ontouchmove', 'ontouchcancel', 'ontouchend'];
+
+        for(var o=0; o<objs.length; o++) {
+            for(var p=0; p<props.length; p++) {
+                if(objs[o] && objs[o][props[p]] == undefined) {
+                    objs[o][props[p]] = null;
+                }
+            }
+        }
+    }
+
+    /**
+     * we don't have to emulate on a touch device
+     * @returns {boolean}
+     */
+    function hasTouchSupport() {
+        return ("ontouchstart" in window) || // touch events
+               (window.Modernizr && window.Modernizr.touch) || // modernizr
+               (navigator.msMaxTouchPoints || navigator.maxTouchPoints) > 2; // pointer events
+    }
+
+    /**
+     * disable mouseevents on the page
+     * @param ev
+     */
+    function preventMouseEvents(ev) {
+		// 注释启用默认事件
+        // ev.preventDefault();
+        // ev.stopPropagation();
+    }
+
+    /**
+     * only trigger touches when the left mousebutton has been pressed
+     * @param touchType
+     * @returns {Function}
+     */
+    function onMouse(touchType) {
+        return function(ev) {
+            // prevent mouse events
+            preventMouseEvents(ev);
+
+            if (ev.which !== 1) {
+                return;
+            }
+
+            // The EventTarget on which the touch point started when it was first placed on the surface,
+            // even if the touch point has since moved outside the interactive area of that element.
+            // also, when the target doesnt exist anymore, we update it
+            if (ev.type == 'mousedown' || !eventTarget || (eventTarget && !eventTarget.dispatchEvent)) {
+                eventTarget = ev.target;
+            }
+
+            // shiftKey has been lost, so trigger a touchend
+            if (isMultiTouch && !ev.shiftKey) {
+                triggerTouch('touchend', ev);
+                isMultiTouch = false;
+            }
+
+            triggerTouch(touchType, ev);
+
+            // we're entering the multi-touch mode!
+            if (!isMultiTouch && ev.shiftKey) {
+                isMultiTouch = true;
+                multiTouchStartPos = {
+                    pageX: ev.pageX,
+                    pageY: ev.pageY,
+                    clientX: ev.clientX,
+                    clientY: ev.clientY,
+                    screenX: ev.screenX,
+                    screenY: ev.screenY
+                };
+                triggerTouch('touchstart', ev);
+            }
+
+            // reset
+            if (ev.type == 'mouseup') {
+                multiTouchStartPos = null;
+                isMultiTouch = false;
+                eventTarget = null;
+            }
+        }
+    }
+
+    /**
+     * trigger a touch event
+     * @param eventName
+     * @param mouseEv
+     */
+    function triggerTouch(eventName, mouseEv) {
+        var touchEvent = document.createEvent('Event');
+        touchEvent.initEvent(eventName, true, true);
+
+        touchEvent.altKey = mouseEv.altKey;
+        touchEvent.ctrlKey = mouseEv.ctrlKey;
+        touchEvent.metaKey = mouseEv.metaKey;
+        touchEvent.shiftKey = mouseEv.shiftKey;
+
+        touchEvent.touches = getActiveTouches(mouseEv, eventName);
+        touchEvent.targetTouches = getActiveTouches(mouseEv, eventName);
+        touchEvent.changedTouches = getChangedTouches(mouseEv, eventName);
+
+        eventTarget.dispatchEvent(touchEvent);
+    }
+
+    /**
+     * create a touchList based on the mouse event
+     * @param mouseEv
+     * @returns {TouchList}
+     */
+    function createTouchList(mouseEv) {
+        var touchList = new TouchList();
+
+        if (isMultiTouch) {
+            var f = TouchEmulator.multiTouchOffset;
+            var deltaX = multiTouchStartPos.pageX - mouseEv.pageX;
+            var deltaY = multiTouchStartPos.pageY - mouseEv.pageY;
+
+            touchList.push(new Touch(eventTarget, 1, multiTouchStartPos, (deltaX*-1) - f, (deltaY*-1) + f));
+            touchList.push(new Touch(eventTarget, 2, multiTouchStartPos, deltaX+f, deltaY-f));
+        } else {
+            touchList.push(new Touch(eventTarget, 1, mouseEv, 0, 0));
+        }
+
+        return touchList;
+    }
+
+    /**
+     * receive all active touches
+     * @param mouseEv
+     * @returns {TouchList}
+     */
+    function getActiveTouches(mouseEv, eventName) {
+        // empty list
+        if (mouseEv.type == 'mouseup') {
+            return new TouchList();
+        }
+
+        var touchList = createTouchList(mouseEv);
+        if(isMultiTouch && mouseEv.type != 'mouseup' && eventName == 'touchend') {
+            touchList.splice(1, 1);
+        }
+        return touchList;
+    }
+
+    /**
+     * receive a filtered set of touches with only the changed pointers
+     * @param mouseEv
+     * @param eventName
+     * @returns {TouchList}
+     */
+    function getChangedTouches(mouseEv, eventName) {
+        var touchList = createTouchList(mouseEv);
+
+        // we only want to return the added/removed item on multitouch
+        // which is the second pointer, so remove the first pointer from the touchList
+        //
+        // but when the mouseEv.type is mouseup, we want to send all touches because then
+        // no new input will be possible
+        if(isMultiTouch && mouseEv.type != 'mouseup' &&
+            (eventName == 'touchstart' || eventName == 'touchend')) {
+            touchList.splice(0, 1);
+        }
+
+        return touchList;
+    }
+
+    /**
+     * show the touchpoints on the screen
+     */
+    function showTouches(ev) {
+        var touch, i, el, styles;
+
+        // first all visible touches
+        for(i = 0; i < ev.touches.length; i++) {
+            touch = ev.touches[i];
+            el = touchElements[touch.identifier];
+            if(!el) {
+                el = touchElements[touch.identifier] = document.createElement("div");
+                document.body.appendChild(el);
+            }
+
+            styles = TouchEmulator.template(touch);
+            for(var prop in styles) {
+                el.style[prop] = styles[prop];
+            }
+        }
+
+        // remove all ended touches
+        if(ev.type == 'touchend' || ev.type == 'touchcancel') {
+            for(i = 0; i < ev.changedTouches.length; i++) {
+                touch = ev.changedTouches[i];
+                el = touchElements[touch.identifier];
+                if(el) {
+                    el.parentNode.removeChild(el);
+                    delete touchElements[touch.identifier];
+                }
+            }
+        }
+    }
+
+    /**
+     * TouchEmulator initializer
+     */
+    function TouchEmulator() {
+        if (hasTouchSupport()) {
+            return;
+        }
+
+        fakeTouchSupport();
+
+        window.addEventListener("mousedown", onMouse('touchstart'), true);
+        window.addEventListener("mousemove", onMouse('touchmove'), true);
+        window.addEventListener("mouseup", onMouse('touchend'), true);
+
+        window.addEventListener("mouseenter", preventMouseEvents, true);
+        window.addEventListener("mouseleave", preventMouseEvents, true);
+        window.addEventListener("mouseout", preventMouseEvents, true);
+        window.addEventListener("mouseover", preventMouseEvents, true);
+
+        // it uses itself!
+        window.addEventListener("touchstart", showTouches, true);
+        window.addEventListener("touchmove", showTouches, true);
+        window.addEventListener("touchend", showTouches, true);
+        window.addEventListener("touchcancel", showTouches, true);
+    }
+
+    // start distance when entering the multitouch mode
+    TouchEmulator.multiTouchOffset = 75;
+
+    /**
+     * css template for the touch rendering
+     * @param touch
+     * @returns object
+     */
+    TouchEmulator.template = function(touch) {
+        var size = 0;
+        var transform = 'translate('+ (touch.clientX-(size/2)) +'px, '+ (touch.clientY-(size/2)) +'px)';
+        return {
+            position: 'fixed',
+            left: 0,
+            top: 0,
+            background: '#fff',
+            border: 'solid 1px #999',
+            opacity: .6,
+            borderRadius: '100%',
+            height: size + 'px',
+            width: size + 'px',
+            padding: 0,
+            margin: 0,
+            display: 'block',
+            overflow: 'hidden',
+            pointerEvents: 'none',
+            webkitUserSelect: 'none',
+            mozUserSelect: 'none',
+            userSelect: 'none',
+            webkitTransform: transform,
+            mozTransform: transform,
+            transform: transform,
+            zIndex: 100
+        }
+    };
+
+    // export
+    if (typeof define == "function" && define.amd) {
+        define(function() {
+            return TouchEmulator;
+        });
+    } else if (typeof module != "undefined" && module.exports) {
+        module.exports = TouchEmulator;
+    } else {
+        window[exportName] = TouchEmulator;
+    }
+})(window, document, "TouchEmulator");

BIN
online1/static/empty.png


BIN
online1/static/images/01.png


BIN
online1/static/images/active-bg.png


BIN
online1/static/images/active-bg1.png


BIN
online1/static/images/active-fill.png


BIN
online1/static/images/active.png


BIN
online1/static/images/ad-bg.png


BIN
online1/static/images/add-bg.png


BIN
online1/static/images/add.png


BIN
online1/static/images/add_duty.png


BIN
online1/static/images/all.png


BIN
online1/static/images/avator.png


BIN
online1/static/images/change_pwd.png


BIN
online1/static/images/chuang.png


BIN
online1/static/images/class.png


BIN
online1/static/images/date.png


BIN
online1/static/images/details-bg.png


BIN
online1/static/images/e-mail.png


BIN
online1/static/images/edit.png


BIN
online1/static/images/edit_arrow.png


BIN
online1/static/images/home-fill.png


BIN
online1/static/images/home.png


BIN
online1/static/images/icon-1.png


BIN
online1/static/images/icon-2.png


BIN
online1/static/images/icon-3.png


BIN
online1/static/images/icon.png


BIN
online1/static/images/index_class.png


BIN
online1/static/images/index_clock.png


BIN
online1/static/images/index_date.png


BIN
online1/static/images/index_none.png


BIN
online1/static/images/list_1.png


BIN
online1/static/images/list_2.png


BIN
online1/static/images/list_3.png


BIN
online1/static/images/list_arrow.png


BIN
online1/static/images/liuyan.png


BIN
online1/static/images/logo.png


BIN
online1/static/images/mine-bg.png


BIN
online1/static/images/mine-fill.png


BIN
online1/static/images/mine-icon.png


BIN
online1/static/images/mine.png


BIN
online1/static/images/mine_1.png


BIN
online1/static/images/mine_2.png


BIN
online1/static/images/mine_3.png


BIN
online1/static/images/mine_bg.png


BIN
online1/static/images/nock.png


BIN
online1/static/images/pass.png


BIN
online1/static/images/pass1.png


BIN
online1/static/images/phone.png


BIN
online1/static/images/plus.png


BIN
online1/static/images/remark.png


BIN
online1/static/images/remark1.png


BIN
online1/static/images/scheduling-fill.png


BIN
online1/static/images/scheduling.png


BIN
online1/static/images/shiming.png


BIN
online1/static/images/stu-bg.png


BIN
online1/static/images/stu-top.png


BIN
online1/static/images/stu_class.png


BIN
online1/static/images/stu_email.png


BIN
online1/static/images/stu_nan.png


BIN
online1/static/images/stu_nv.png


BIN
online1/static/images/stu_tel.png


BIN
online1/static/images/student-fill.png


BIN
online1/static/images/student.png


BIN
online1/static/images/success.png


BIN
online1/static/images/wenjuan.png


BIN
online1/static/img/01.1a5acf0a.png


BIN
online1/static/img/active-bg.05376446.png


BIN
online1/static/img/ad-bg.d8690265.png


BIN
online1/static/img/add-bg.6caa1bfe.png


BIN
online1/static/img/change_pwd.4212bdc3.png


BIN
online1/static/img/chuang.8478276e.png


BIN
online1/static/img/empty.f330efae.png


BIN
online1/static/img/index_class.3400f8ff.png


BIN
online1/static/img/list_1.5223e1d4.png


BIN
online1/static/img/list_2.86499c4e.png


BIN
online1/static/img/list_3.afbae14b.png


BIN
online1/static/img/liuyan.f3795747.png


BIN
online1/static/img/logo.b7fa16f9.png


BIN
online1/static/img/nock.3faa8ffb.png


BIN
online1/static/img/pass1.372d9b32.png


BIN
online1/static/img/shiming.a6902121.png


BIN
online1/static/img/stu-top.5d06004b.png


BIN
online1/static/img/success.71229ffe.png


BIN
online1/static/img/wenjuan.a533c9b8.png


File diff suppressed because it is too large
+ 0 - 0
online1/static/index.css


File diff suppressed because it is too large
+ 0 - 0
online1/static/js/chunk-vendors.46cc4b09.js


+ 0 - 0
online/static/js/index.d3746cff.js → online1/static/js/index.d3746cff.js


File diff suppressed because it is too large
+ 0 - 0
online1/static/js/pages-activity-add.98075f3b.js


File diff suppressed because it is too large
+ 0 - 0
online1/static/js/pages-activity-add~pages-activity-index~pages-index-index~pages-index-realname~pages-login-index~pag~33e2e626.4bdb097e.js


Some files were not shown because too many files changed in this diff