huaisianhuang vor 3 Jahren
Ursprung
Commit
6e9a255e03
2 geänderte Dateien mit 5 neuen und 48 gelöschten Zeilen
  1. 0 37
      html/script_profiles.js
  2. 5 11
      html/user_profile.html

+ 0 - 37
html/script_profiles.js

@@ -46,44 +46,7 @@ function renderView() {
 
 renderView();
 
-renderHistoryList();
 
-function renderHistoryList() {
-    let token = getCookie('jwt_token');
-  axios({
-    method: 'post',
-    url: 'https://www.choozmo.com:8887/history_input',
-    headers: { 
-        'accept': 'application/json',
-        'Authorization': `Bearer ${token}`
-     }
-  }).then(res => {
-    console.log(res.data);
-    const history = res.data;
-    let str = '';
-    for(let i = 0;i < history.length;i++){
-    str += `<div class="historyList-item row">
-                  <div class="col-3">
-                      <div class="listimg__fr"><img src="${history[i]['image_urls'][0]}" alt="${history[i].name}"></div>
-                  </div>
-                  <div class="col-6">
-                      <p class="my-3">${history[i].name}</p>
-                  </div>
-                  <div class="col-3 d-flex align-items-center">
-                      <span onlick="view()" data-vlink="${history[i].link}"><i class="fas fa-play-circle me-1"></i>觀看影片</span>
-                  </div>
-              </div>`
-    }
-    $('#content_block .col-12').html(str);
-  }).catch(err => {
-    console.log(err);
-  });
-}
-
-function view() {
-    window.open(`http://${event.target.data.vlink}`, '_blank');
-    console.log("link view");
-  }
 
 function checkLogin() {
     let token = getCookie('jwt_token');

+ 5 - 11
html/user_profile.html

@@ -87,29 +87,23 @@
                     <div class="card card-profile">
                         <img src="static/img/undraw_male_avatar_323b.svg" alt="">
                         <p class="card-profile-txt">User Profile</p>
-                        <p class="card-profile-cnt">${userInfo.user_info.userName}</p>
-                        <p class="card-profile-cnt">${userInfo.user_info.email}</p>
+                        <p class="card-profile-cnt"></p>
+                        <p class="card-profile-cnt"></p>
                         <div class="d-flex justify-content-around">
                             <div>
                                 <p set-lan="html:used">已使用</p>
-                                <p><strong>${use}</strong><span set-lan="html:sec">秒</span></p>
+                                <p><strong></strong><span set-lan="html:sec">秒</span></p>
                             </div>
                             <div>
                                 <p set-lan="html:left">未使用</p>
-                                <p><strong>${user</strong><span set-lan="html:sec">秒</span></p>
+                                <p><strong></strong><span set-lan="html:sec">秒</span></p>
                             </div>
                         </div>
                     </div>
                 </div> 
             </div>
             <div class="col-xs-12 col-md-8">
-                <div class="history ms-auto">
-                      <div class="row" id="content_block">
-                        <div class="col-12">
-                            
-                          </div>
-                      </div>
-                  </div>
+                
             </div>
         </div>