2 Commits 4352adf4fd ... 6b6471bfa8

Author SHA1 Message Date
  pzc 6b6471bfa8 开发环境配置 4 years ago
  pzc 635bddfc1c 我的视频 4 years ago
2 changed files with 10 additions and 12 deletions
  1. 2 2
      .env.development
  2. 8 10
      src/views/shortVideo/MyVideos.vue

+ 2 - 2
.env.development

@@ -3,6 +3,6 @@ VUE_APP_Host='https://mem.360lj.com/ymp'
 VUE_APP_DoctorUserLoginUrl='http://mem.360lj.com/ymp1/ymallWechat/code?identity=1&redirectCode=doctorHome'
 VUE_APP_PartnerUserLoginUrl='http://mem.360lj.com/ymp1/ymallWechat/code?identity=2&redirectCode=partnerHome'
 //VUE_APP_PatientUserLoginUrl='https://ue.360lj.com/api/Home/Login?identity=0&backurl=https://ue.360lj.com/dist/PatientUser'
-VUE_APP_PatientUserLoginUrl='https://mem.360lj.com/ymp/api/Home/Login?identity=0&backurl=https://mem.360lj.com/uip/PatientUser'
+VUE_APP_PatientUserLoginUrl='https://mem.360lj.com/ymp1/ymallWechat/code?identity=0&redirectCode=PatientUser'
 VUE_APP_Url='https://mem.360lj.com/ymp1'
-VUE_APP_DoctorAPIUrl = '/ymp1'
+VUE_APP_DoctorAPIUrl = 'https://mem.360lj.com/ymp1'

+ 8 - 10
src/views/shortVideo/MyVideos.vue

@@ -91,8 +91,7 @@ export default {
     },
     // 获取正在转码的视频
     getMyVideoProcessingList() {
-      this.loading = true;
-      // this.isRequest();
+      this.isRequest();
       GetMyVideoListByTranscoding({ pageIndex: 1, pageSize: 1000, name: "" })
         .then(({ data }) => {
           if (data.isSuccess) {
@@ -102,24 +101,23 @@ export default {
             this.$toast(data.ResultMsg);
           }
           Toast.clear();
-          this.loading = false;
         })
         .catch(error => {
-          this.loading = false;
           Toast.clear();
         })
+      Toast.clear()
     },
 
     // 获取已发布的视频列表
     getMyVideoList() {
-      this.loading = true;
-      // this.isRequest();
+      // this.loading = true;
+      this.isRequest();
       getDoctorProduction(this.videoParams)
         .then(({ data }) => {
-          // return;
-          this.loading = false;
+          // this.loading = false;
+          console.log('toast: ',Toast)
+          Toast.clear();
           if (data.isSuccess) {
-            Toast.clear();
             this.videoListTotal = data.pager.totalItemCount;
             if (data.resultObject.length === 0 && this.videoParams.pageIndex === 1) {
               this.isShow = true;
@@ -139,8 +137,8 @@ export default {
         })
         .catch(err => { 
           Toast.clear()
-          this.loading = false;
         })
+          Toast.clear()
     },
 
     // 跳转视频播放页面