Browse Source

修改loading问题

lex-xin 4 years ago
parent
commit
e725ec8cde

File diff suppressed because it is too large
+ 0 - 0
dist/app.f84129caae2abf8bec18.js


+ 0 - 1
dist/css/PeriodAdjust.4b1e312e.css

@@ -1 +0,0 @@
-.periodadjust[data-v-b1192890]{height:100vh;position:relative;background-color:#f3f4f8}.periodadjust .container[data-v-b1192890]{min-height:calc(100vh - .5rem);overflow-y:auto;overflow-x:hidden;position:relative}.periodadjust .button-group[data-v-b1192890]{width:100%}.periodadjust .button-group .van-button[data-v-b1192890]{font-size:.16rem;width:50%;height:.5rem;line-height:.48rem}.periodadjust .button-group .van-button--primary[data-v-b1192890]{background:#14928a;border-color:#14928a}[data-v-b1192890] .van-icon-underway-o{font-size:.18rem}[data-v-b1192890] .van-cell{line-height:inherit}[data-v-b1192890] .van-cell__title{font-size:.16rem;color:#444}[data-v-b1192890] .van-cell-group{margin-top:.05rem}.title-content[data-v-b1192890]{-webkit-box-flex:1;-ms-flex:1 auto;flex:1 auto;font-weight:700}.title-content .van-cell__label[data-v-b1192890]{font-weight:400;margin-top:.06rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.title-content .van-icon-location[data-v-b1192890]{margin-right:.05rem}.value-content[data-v-b1192890]{width:50px}[data-v-b1192890] .van-cell__label,[data-v-b1192890] .van-cell__value{color:#444;font-size:.14rem;-webkit-box-flex:1;-ms-flex:1 auto;flex:1 auto}[data-v-b1192890] .van-cell__label span,[data-v-b1192890] .van-cell__value span{padding-right:.1rem}.input-cell[data-v-b1192890]{padding:.12rem .16rem .2rem}.input-cell .van-radio[data-v-b1192890]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-v-b1192890] .van-radio__icon--disabled .van-icon{border-color:transparent;background:#fff}[data-v-b1192890] .van-radio__icon--checked .van-icon{background:#f97215;border-color:#f97215}[data-v-b1192890] .icon{margin-top:.3rem}

+ 1 - 0
dist/css/PeriodAdjust.b0c11587.css

@@ -0,0 +1 @@
+.periodadjust[data-v-02527346]{height:100vh;position:relative;background-color:#f3f4f8}.periodadjust .container[data-v-02527346]{min-height:calc(100vh - .5rem);overflow-y:auto;overflow-x:hidden;position:relative}.periodadjust .button-group[data-v-02527346]{width:100%}.periodadjust .button-group .van-button[data-v-02527346]{font-size:.16rem;width:50%;height:.5rem;line-height:.48rem}.periodadjust .button-group .van-button--primary[data-v-02527346]{background:#14928a;border-color:#14928a}[data-v-02527346] .van-icon-underway-o{font-size:.18rem}[data-v-02527346] .van-cell{line-height:inherit}[data-v-02527346] .van-cell__title{font-size:.16rem;color:#444}[data-v-02527346] .van-cell-group{margin-top:.05rem}.title-content[data-v-02527346]{-webkit-box-flex:1;-ms-flex:1 auto;flex:1 auto;font-weight:700}.title-content .van-cell__label[data-v-02527346]{font-weight:400;margin-top:.06rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.title-content .van-icon-location[data-v-02527346]{margin-right:.05rem}.value-content[data-v-02527346]{width:50px}[data-v-02527346] .van-cell__label,[data-v-02527346] .van-cell__value{color:#444;font-size:.14rem;-webkit-box-flex:1;-ms-flex:1 auto;flex:1 auto}[data-v-02527346] .van-cell__label span,[data-v-02527346] .van-cell__value span{padding-right:.1rem}.input-cell[data-v-02527346]{padding:.12rem .16rem .2rem}.input-cell .van-radio[data-v-02527346]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}[data-v-02527346] .van-radio__icon--disabled .van-icon{border-color:transparent;background:#fff}[data-v-02527346] .van-radio__icon--checked .van-icon{background:#f97215;border-color:#f97215}[data-v-02527346] .icon{margin-top:.3rem}

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/PeriodAdjust.1bc8b726.js


+ 8 - 14
src/views/teacher/PeriodAdjust.vue

@@ -97,6 +97,7 @@ export default {
             try {
                 await getCourseScheduleDateByMonth({ month: month, type: 'VIP' }).then(res => {
                     let result = res.data
+                    setLoading(false)
                     if(result.code == 200) {
                         this.getMonthDay = []
                         result.data.forEach(item => {
@@ -105,25 +106,18 @@ export default {
                         this.isCalendar = true
                     }
                 })
-                setLoading(false)
             } catch(err) {
                 setLoading(false)
             }
         },
         async getCourseDate(date) {
-            setLoading(true)
-            try {
-                await getCourseSchedulesWithDate({ date: date, type: 'VIP' }).then(res => {
-                    let result = res.data
-                    if(result.code == 200 && result.data) {
-                        this.dataList = result.data.rows
-                        this.dataShow = result.data.rows.length > 0 ? true : false
-                    }
-                })
-                setLoading(false)
-            } catch(err) {
-                setLoading(false)
-            }
+            await getCourseSchedulesWithDate({ date: date, type: 'VIP' }).then(res => {
+                let result = res.data
+                if(result.code == 200 && result.data) {
+                    this.dataList = result.data.rows
+                    this.dataShow = result.data.rows.length > 0 ? true : false
+                }
+            })
         },
         onSubmit() {
             if(!this.radioSelect) {

+ 2 - 2
vue.config.js

@@ -1,8 +1,8 @@
-// let targetUrl = 'http://mteadev.dayaedu.com'
+let targetUrl = 'http://mteadev.dayaedu.com'
 // let targetUrl = 'http://192.168.3.139:8000' // 箭河
 // let targetUrl = 'https://online.dayaedu.com'
 // let targetUrl = 'http://dev.dayaedu.com/'
-let targetUrl = 'http://192.168.3.196'
+// let targetUrl = 'http://192.168.3.196'
 module.exports = {
   chainWebpack: config => {
     config.devtool('inline-source-map')

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