diff --git a/css/workspace.css b/css/workspace.css index 290b246..8f666d6 100644 --- a/css/workspace.css +++ b/css/workspace.css @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/html/workspace.html b/html/workspace.html index 9e162a5..6b70641 100644 --- a/html/workspace.html +++ b/html/workspace.html @@ -1,6 +1,12 @@ - - -
abcdefg
+
@@ -12,69 +18,72 @@ -
- - - - - - - - - - - - - - - - - - - - - - - - +
-
- Postal Address
- - -
Delivery: - Direct Post
- Pickup from Patrick Sun -
-
- -
- -
- - - - - -
- - - - - -
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Postal Address
+ + +
Delivery: + Direct Post
+ Pickup from Patrick Sun +
+
+ +
+ +
+ + + +
+
+ +
+ + + +
+
+ +
- - -
- - -
- + + +
+ + +
\ No newline at end of file diff --git a/img/loading_user.gif b/img/loading_user.gif new file mode 100644 index 0000000..3702170 Binary files /dev/null and b/img/loading_user.gif differ diff --git a/js/workspace.js b/js/workspace.js index 32a2ea2..89dbc8a 100644 --- a/js/workspace.js +++ b/js/workspace.js @@ -73,7 +73,7 @@ return '
'+ item.username +'-'+ item.userid +'
'; }, pending: function (query) { - return ''; + return ''; }, }, 'updater' : function(item) { @@ -109,7 +109,7 @@ }, function(response, status, xhr){ step2_verify_user(response); }).fail(function(){ - errUserName("网络错误,请稍后尝试"); + errUserName("Network Error, Please try again later"); }); }); @@ -122,5 +122,55 @@ el.slideToggle(); } + //verify + $(document).on("click", "#step2", function(){ + var el = $('#details'); + el.slideDown(); + }); + //apply card + $(document).on("click", "#cardbtn", function(){ + var loading = $('#cardloading'); + var check = $('#card'); + $(this).hide(); + loading.show(); + setTimeout(function(){ + loading.hide(); + check.show(); + }, 2000); + + }); + + //apply 90 meda; + $(document).on("click", "#btn90", function(){ + var loading = $('#loading90'); + var check = $('#medal90'); + $(this).hide(); + loading.show(); + + setTimeout(function(){ + loading.hide(); + check.show(); + }, 2000); + }); + + //confirm; + $(document).on("click", "#confirm", function(){ + var search = $("#search"); + var verify = $("#userpass"); + var details = $("#details"); + var btn = $('#confirm'); + var img = $('#done'); + $(this).hide(); + verify.hide(); + details.hide(); + search.hide(); + img.show(); + + setTimeout(function(){ + btn.show(); + img.hide(); + }, 4000); + }); + })(jQuery); \ No newline at end of file diff --git a/member.php b/member.php index d463ed5..42bab3c 100644 --- a/member.php +++ b/member.php @@ -93,6 +93,7 @@ class Member{ 'display_name' => wp_get_current_user()->display_name, 'loading' => plugins_url('img/loading.gif', __FILE__), 'done' => plugins_url('img/done.gif', __FILE__), + 'search_user' => plugins_url('img/loading_user.gif', __FILE__), 'anonymous' => !is_user_logged_in(), ) ); }