提交 dd9d05e4 authored 作者: GOD_ZYX's avatar GOD_ZYX

修改 积分多次请求问题

上级 6c8ab064
...@@ -43,7 +43,8 @@ export default { ...@@ -43,7 +43,8 @@ export default {
}, },
watch: { watch: {
videoId: { videoId: {
handler () { handler (oldId, newId) {
// if (newId === undefined) { return }
if (this.videoId) { if (this.videoId) {
/* 注意 flash 初始化时,需要页面DOM存在 + videoId存在 */ /* 注意 flash 初始化时,需要页面DOM存在 + videoId存在 */
continueStart = this.lastTime || 0 // 如果传递有上次播放时间,则记录缓存,以便player.start时使用 continueStart = this.lastTime || 0 // 如果传递有上次播放时间,则记录缓存,以便player.start时使用
......
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
</template> </template>
<script> <script>
import { request } from '@actions'
import mPage from '../../components/module/mPage.vue' import mPage from '../../components/module/mPage.vue'
export default { export default {
...@@ -85,6 +83,16 @@ export default { ...@@ -85,6 +83,16 @@ export default {
// nameExcel: 'getStatSummaryExcel', // nameExcel: 'getStatSummaryExcel',
nameExcel: 'getExportExcel3_4_14', nameExcel: 'getExportExcel3_4_14',
callback: (_this, data) => { callback: (_this, data) => {
this.score = data
this.percent1 = Math.floor(this.score.myTotal / this.score.total * 100) || 0
this.percent2 = Math.floor(this.score.myMust / this.score.must * 100) || 0
this.percent3 = Math.floor(this.score.myUnmust / (this.score.unmust ? this.score.unmust : 1) * 100) || 0
// console.log(111, this.score, this.percent1, this.percent2, this.percent3)
console.log(this.$refs['credit_total'])
this.$refs['credit_total'].$el.children[0].children[0].children[0].children[0].innerHTML = this.score.myTotal + '(分)'
this.$refs['credit_must'].$el.children[0].children[0].children[0].children[0].innerHTML = this.score.myMust + '(分)'
this.$refs['credit_unmust'].$el.children[0].children[0].children[0].children[0].innerHTML = this.score.myUnmust + '(分)'
_this.params.total = 100 _this.params.total = 100
data = data.list data = data.list
data.forEach((elem, i) => { data.forEach((elem, i) => {
...@@ -97,26 +105,6 @@ export default { ...@@ -97,26 +105,6 @@ export default {
} }
}, },
mounted () { mounted () {
request({
component: this,
actionName: 'scoreAction',
functionName: 'getMyScore',
data: {},
thenCallback: data => {
this.score = data
},
catchCallback: () => {},
finallyCallback: () => {
this.percent1 = Math.floor(this.score.myTotal / this.score.total * 100) || 0
this.percent2 = Math.floor(this.score.myMust / this.score.must * 100) || 0
this.percent3 = Math.floor(this.score.myUnmust / (this.score.unmust ? this.score.unmust : 1) * 100) || 0
// console.log(111, this.score, this.percent1, this.percent2, this.percent3)
console.log(this.$refs['credit_total'])
this.$refs['credit_total'].$el.children[0].children[0].children[0].children[0].innerHTML = this.score.myTotal + '(分)'
this.$refs['credit_must'].$el.children[0].children[0].children[0].children[0].innerHTML = this.score.myMust + '(分)'
this.$refs['credit_unmust'].$el.children[0].children[0].children[0].children[0].innerHTML = this.score.myUnmust + '(分)'
}
})
this.VueEvent.$on('command-tablelist-x', (data) => { this.VueEvent.$on('command-tablelist-x', (data) => {
if (data.command.command === 're-start') { if (data.command.command === 're-start') {
const _data = data.tableData[data.index - 1] const _data = data.tableData[data.index - 1]
......
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script> <script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.92b08224.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.b388921e.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.ca81bfb5.js"></script></body></html> <![endif]--><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.7f776b5b.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.b388921e.js"></script><script type="text/javascript" src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.ca81bfb5.js"></script></body></html>
\ No newline at end of file \ No newline at end of file
.table-box[data-v-735f2bce]{overflow:hidden}.table-box .img-inline[data-v-735f2bce]{width:100%;max-height:40px;overflow:hidden}.table-box .img-inline img[data-v-735f2bce]{display:block;width:100%}.table-box .el-dropdown[data-v-735f2bce]{cursor:pointer}.table-box .el-dropdown[data-v-735f2bce]:hover{color:#f2730b}.table-box .router-link-class[data-v-735f2bce]{text-decoration:none;color:#f2730b}.table-box .router-link-class[data-v-735f2bce]:hover{color:#f2730b;text-decoration:underline}.table-box .pagination-right[data-v-735f2bce]{float:right;margin:15px 10px 0 0}.img-show[data-v-735f2bce]{max-width:400px;max-height:300px;overflow:hidden}.img-show img[data-v-735f2bce]{display:block;width:100%;height:auto}.bg-box[data-v-88cb09c0]{background:#fff;overflow:hidden}.compulsory-core[data-v-3622d5ed],.elective-core[data-v-3622d5ed],.total-core[data-v-3622d5ed]{margin-top:.1rem;font-size:16px;line-height:36px}.compulsory-core .title[data-v-3622d5ed],.elective-core .title[data-v-3622d5ed],.total-core .title[data-v-3622d5ed]{float:left}.compulsory-core .core[data-v-3622d5ed],.elective-core .core[data-v-3622d5ed],.total-core .core[data-v-3622d5ed]{float:right;margin-right:3px;font-size:12px}.color-box[data-v-3622d5ed]{padding:.1rem 0 .2rem;text-align:right}.color-box .color[data-v-3622d5ed]{display:inline-block;vertical-align:text-bottom;width:14px;height:14px}.color-box .txt[data-v-3622d5ed]{display:inline-block;padding:0 .2rem 0 .1rem;font-size:14px;line-height:36px} .table-box[data-v-735f2bce]{overflow:hidden}.table-box .img-inline[data-v-735f2bce]{width:100%;max-height:40px;overflow:hidden}.table-box .img-inline img[data-v-735f2bce]{display:block;width:100%}.table-box .el-dropdown[data-v-735f2bce]{cursor:pointer}.table-box .el-dropdown[data-v-735f2bce]:hover{color:#f2730b}.table-box .router-link-class[data-v-735f2bce]{text-decoration:none;color:#f2730b}.table-box .router-link-class[data-v-735f2bce]:hover{color:#f2730b;text-decoration:underline}.table-box .pagination-right[data-v-735f2bce]{float:right;margin:15px 10px 0 0}.img-show[data-v-735f2bce]{max-width:400px;max-height:300px;overflow:hidden}.img-show img[data-v-735f2bce]{display:block;width:100%;height:auto}.bg-box[data-v-88cb09c0]{background:#fff;overflow:hidden}.compulsory-core[data-v-90157d28],.elective-core[data-v-90157d28],.total-core[data-v-90157d28]{margin-top:.1rem;font-size:16px;line-height:36px}.compulsory-core .title[data-v-90157d28],.elective-core .title[data-v-90157d28],.total-core .title[data-v-90157d28]{float:left}.compulsory-core .core[data-v-90157d28],.elective-core .core[data-v-90157d28],.total-core .core[data-v-90157d28]{float:right;margin-right:3px;font-size:12px}.color-box[data-v-90157d28]{padding:.1rem 0 .2rem;text-align:right}.color-box .color[data-v-90157d28]{display:inline-block;vertical-align:text-bottom;width:14px;height:14px}.color-box .txt[data-v-90157d28]{display:inline-block;padding:0 .2rem 0 .1rem;font-size:14px;line-height:36px}
\ No newline at end of file \ No newline at end of file
!function(d){function e(e){for(var t,r,a=e[0],n=e[1],f=e[2],o=0,c=[];o<a.length;o++)r=a[o],Object.prototype.hasOwnProperty.call(s,r)&&s[r]&&c.push(s[r][0]),s[r]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(d[t]=n[t]);for(p&&p(e);c.length;)c.shift()();return i.push.apply(i,f||[]),u()}function u(){for(var e,t=0;t<i.length;t++){for(var r=i[t],a=!0,n=1;n<r.length;n++){var f=r[n];0!==s[f]&&(a=!1)}a&&(i.splice(t--,1),e=b(b.s=r[0]))}return e}var r={},l={3:0},s={3:0},i=[];function b(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,b),t.l=!0,t.exports}b.e=function(i){var e=[];l[i]?e.push(l[i]):0!==l[i]&&{0:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1}[i]&&e.push(l[i]=new Promise(function(e,a){for(var t="resources/"+({}[i]||i)+"."+{0:"8c0fccc8dcdf",1:"31d6cfe0d16a",5:"930984a29124",6:"1f5b7a073162",7:"9106a9a5aa0f",8:"0f44f155a214",9:"7acee47d5dff",10:"7af67fe88b2d",11:"5429a27bb7bb",12:"233ef3b61b0f",13:"35e9fd271343",14:"96e432718f45",15:"ae04a260ff2d",16:"66f6f1b2e2f8",17:"e49666539688",18:"0ba27a54f3b2",19:"a029dc0f3a68",20:"1781a847a9fa",21:"d9a6860bffda",22:"ea3ddb59c757",23:"ac46a7f215a5",24:"d0a83561e812",25:"074cd78c0ecf",26:"f9edc40b7bd4",27:"31d6cfe0d16a",28:"31d6cfe0d16a",29:"31d6cfe0d16a",30:"31d6cfe0d16a",31:"31d6cfe0d16a",32:"31d6cfe0d16a",33:"31d6cfe0d16a",34:"31d6cfe0d16a",35:"31d6cfe0d16a"}[i]+".css",n=b.p+t,r=document.getElementsByTagName("link"),f=0;f<r.length;f++){var o=(d=r[f]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(o===t||o===n))return e()}var c=document.getElementsByTagName("style");for(f=0;f<c.length;f++){var d;if((o=(d=c[f]).getAttribute("data-href"))===t||o===n)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||n,r=new Error("Loading CSS chunk "+i+" failed.\n("+t+")");r.request=t,delete l[i],u.parentNode.removeChild(u),a(r)},u.href=n,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){l[i]=0}));var r=s[i];if(0!==r)if(r)e.push(r[2]);else{var t=new Promise(function(e,t){r=s[i]=[e,t]});e.push(r[2]=t);var a,n=document.createElement("script");n.charset="utf-8",n.timeout=120,b.nc&&n.setAttribute("nonce",b.nc),n.src=function(e){return b.p+"resources/"+({}[e]||e)+"."+{0:"c28ab134",1:"f1b282bf",5:"b82cded8",6:"ad65b330",7:"e8bb84e7",8:"781e1e89",9:"cda77657",10:"749ebb9a",11:"b9a0f211",12:"5041185f",13:"b80e2183",14:"71455ff6",15:"fa23ee4c",16:"281206cf",17:"a023a7b6",18:"358ade5e",19:"b8e65b39",20:"fd8f9a8b",21:"a3af92e9",22:"8ded5618",23:"207b7137",24:"168bd3f3",25:"7daab159",26:"2c1bb4b4",27:"8c85fa33",28:"06406c1e",29:"472e302b",30:"ab5826d0",31:"73286291",32:"a6981eaf",33:"f5d7e6f7",34:"d0f7ea55",35:"1b5301d2"}[e]+".js"}(i);var f=new Error;a=function(e){n.onerror=n.onload=null,clearTimeout(o);var t=s[i];if(0!==t){if(t){var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;f.message="Loading chunk "+i+" failed.\n("+r+": "+a+")",f.name="ChunkLoadError",f.type=r,f.request=a,t[1](f)}s[i]=void 0}};var o=setTimeout(function(){a({type:"timeout",target:n})},12e4);n.onerror=n.onload=a,document.head.appendChild(n)}return Promise.all(e)},b.m=d,b.c=r,b.d=function(e,t,r){b.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(t,e){if(1&e&&(t=b(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(b.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)b.d(r,a,function(e){return t[e]}.bind(null,a));return r},b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,"a",t),t},b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},b.p="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/",b.oe=function(e){throw console.error(e),e};var t=window.webpackJsonp=window.webpackJsonp||[],a=t.push.bind(t);t.push=e,t=t.slice();for(var n=0;n<t.length;n++)e(t[n]);var p=a;u()}([]); !function(d){function e(e){for(var t,r,a=e[0],n=e[1],f=e[2],o=0,c=[];o<a.length;o++)r=a[o],Object.prototype.hasOwnProperty.call(s,r)&&s[r]&&c.push(s[r][0]),s[r]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(d[t]=n[t]);for(p&&p(e);c.length;)c.shift()();return i.push.apply(i,f||[]),u()}function u(){for(var e,t=0;t<i.length;t++){for(var r=i[t],a=!0,n=1;n<r.length;n++){var f=r[n];0!==s[f]&&(a=!1)}a&&(i.splice(t--,1),e=b(b.s=r[0]))}return e}var r={},l={3:0},s={3:0},i=[];function b(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return d[e].call(t.exports,t,t.exports,b),t.l=!0,t.exports}b.e=function(i){var e=[];l[i]?e.push(l[i]):0!==l[i]&&{0:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1}[i]&&e.push(l[i]=new Promise(function(e,a){for(var t="resources/"+({}[i]||i)+"."+{0:"8c0fccc8dcdf",1:"31d6cfe0d16a",5:"930984a29124",6:"1f5b7a073162",7:"5aff6cfc48d7",8:"0f44f155a214",9:"7acee47d5dff",10:"7af67fe88b2d",11:"5429a27bb7bb",12:"233ef3b61b0f",13:"35e9fd271343",14:"96e432718f45",15:"ae04a260ff2d",16:"66f6f1b2e2f8",17:"e49666539688",18:"0ba27a54f3b2",19:"a029dc0f3a68",20:"1781a847a9fa",21:"d9a6860bffda",22:"ea3ddb59c757",23:"ac46a7f215a5",24:"d0a83561e812",25:"074cd78c0ecf",26:"f9edc40b7bd4",27:"31d6cfe0d16a",28:"31d6cfe0d16a",29:"31d6cfe0d16a",30:"31d6cfe0d16a",31:"31d6cfe0d16a",32:"31d6cfe0d16a",33:"31d6cfe0d16a",34:"31d6cfe0d16a",35:"31d6cfe0d16a"}[i]+".css",n=b.p+t,r=document.getElementsByTagName("link"),f=0;f<r.length;f++){var o=(d=r[f]).getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(o===t||o===n))return e()}var c=document.getElementsByTagName("style");for(f=0;f<c.length;f++){var d;if((o=(d=c[f]).getAttribute("data-href"))===t||o===n)return e()}var u=document.createElement("link");u.rel="stylesheet",u.type="text/css",u.onload=e,u.onerror=function(e){var t=e&&e.target&&e.target.src||n,r=new Error("Loading CSS chunk "+i+" failed.\n("+t+")");r.request=t,delete l[i],u.parentNode.removeChild(u),a(r)},u.href=n,document.getElementsByTagName("head")[0].appendChild(u)}).then(function(){l[i]=0}));var r=s[i];if(0!==r)if(r)e.push(r[2]);else{var t=new Promise(function(e,t){r=s[i]=[e,t]});e.push(r[2]=t);var a,n=document.createElement("script");n.charset="utf-8",n.timeout=120,b.nc&&n.setAttribute("nonce",b.nc),n.src=function(e){return b.p+"resources/"+({}[e]||e)+"."+{0:"c28ab134",1:"f1b282bf",5:"b82cded8",6:"ad65b330",7:"210f0f54",8:"781e1e89",9:"cda77657",10:"749ebb9a",11:"fad8f36b",12:"5041185f",13:"b80e2183",14:"71455ff6",15:"fa23ee4c",16:"281206cf",17:"a023a7b6",18:"358ade5e",19:"b8e65b39",20:"fd8f9a8b",21:"a3af92e9",22:"8ded5618",23:"207b7137",24:"168bd3f3",25:"7daab159",26:"2c1bb4b4",27:"8c85fa33",28:"06406c1e",29:"472e302b",30:"ab5826d0",31:"73286291",32:"a6981eaf",33:"f5d7e6f7",34:"d0f7ea55",35:"1b5301d2"}[e]+".js"}(i);var f=new Error;a=function(e){n.onerror=n.onload=null,clearTimeout(o);var t=s[i];if(0!==t){if(t){var r=e&&("load"===e.type?"missing":e.type),a=e&&e.target&&e.target.src;f.message="Loading chunk "+i+" failed.\n("+r+": "+a+")",f.name="ChunkLoadError",f.type=r,f.request=a,t[1](f)}s[i]=void 0}};var o=setTimeout(function(){a({type:"timeout",target:n})},12e4);n.onerror=n.onload=a,document.head.appendChild(n)}return Promise.all(e)},b.m=d,b.c=r,b.d=function(e,t,r){b.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.t=function(t,e){if(1&e&&(t=b(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(b.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)b.d(r,a,function(e){return t[e]}.bind(null,a));return r},b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,"a",t),t},b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},b.p="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/",b.oe=function(e){throw console.error(e),e};var t=window.webpackJsonp=window.webpackJsonp||[],a=t.push.bind(t);t.push=e,t=t.slice();for(var n=0;n<t.length;n++)e(t[n]);var p=a;u()}([]);
\ No newline at end of file \ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论