Commit c054d744 by libai

测试

parent 64c8b74d
......@@ -555,6 +555,7 @@ html * {
width: 197px;
position: absolute;
top: 120px;
cursor: pointer;
}
.down-light {
width: 2231px;
......
......@@ -581,6 +581,7 @@
width: 197px;
position: absolute;
top: 120px;
cursor: pointer;
}
.down-light{
width: 2231px;
......
......@@ -954,7 +954,8 @@ function loginGo(){
countrycode:phoneNum,
phone:$(".login-box4 .login-input1").val(),
authcode:$(".login-box4 .login-code-input").val(),
pageID:localStorage.canvasCode
pageID:localStorage.canvasCode,
pwd:$(".login-new-password1 .login-new-password-input").val()
},
success:function(data){
console.log('重置密码',data)
......
$.fn.selectDate = function(){
var minYear = 1900
var maxYear = (new Date).getFullYear()
var yearSel = document.getElementById('year')
var monthSel = document.getElementById('month')
var daySel = document.getElementById('days')
for(var y = maxYear;y >= minYear;y--){
var yearOpt = document.createElement('option')
yearOpt.value = y
yearOpt.innerHTML = y+'年'
yearSel.appendChild(yearOpt)
}
$("#year").click(function(event){
if(!$("#year option:selected").val()) return;
removeOption(monthSel)
addOption(12,'月',monthSel)
removeOption(daySel)
})
$("#month").click(function(){
removeOption(daySel)
var year = $("#year option:selected").val()
var month = $("#month option:selected").val()
if(month==1 || month==3 || month==5 || month==7 || month==8 || month==10 || month==12){
addOption(31,'日',daySel)
}else if(month==4 || month==6 || month==9 || month==11){
addOption(30,'日',daySel)
}else if(month==2){
if((year%4 == 0 && year%100 != 0 ) || (year%400 == 0)){
addOption(29,'日',daySel)
}else{
addOption(28,'日',daySel)
}
}
})
function addOption(num,unit,parent){
//num:选项个数
//unit:单位(年/月/日)
//parent:父对象
for(var index=1;index <= num;index++){
var opt =document.createElement('option')
$(opt).attr('value',index)
if(index<10){index = '0'+index}
$(opt).html(index+unit)
$(parent).append(opt)
}
}
function removeOption(parent){
//parent:父对象
var options = $(parent).find('option')
for(var index = 1;index < options.length;index++){
parent.removeChild(options[index])
}
}
}
\ No newline at end of file
......@@ -571,7 +571,7 @@ $(function(){
})
$(".down-apk-btn").on("click",function(){
window.location.href='https://bgps2.yazhai.co/footseexyz/apk/ftsBH5PC.apk'
})
function likeList(){
$.ajax({
......
......@@ -880,7 +880,7 @@ body::-webkit-scrollbar {
text-indent: 10px;
}
.height-select {
width: 90px;
width: 200px;
height: 36px;
position: absolute;
top: 7px;
......@@ -890,7 +890,7 @@ body::-webkit-scrollbar {
text-indent: 10px;
}
.weight-select {
width: 90px;
width: 200px;
height: 36px;
position: absolute;
top: 7px;
......@@ -900,12 +900,62 @@ body::-webkit-scrollbar {
text-indent: 10px;
}
.education-select {
width: 90px;
width: 200px;
height: 36px;
position: absolute;
top: 7px;
left: 88px;
background: #F4F5F8;
border-radius: 8px;
text-indent: 10px;
}
.profession-input {
width: 200px;
height: 36px;
position: absolute;
top: 7px;
left: 88px;
background: #F4F5F8;
border-radius: 8px;
text-indent: 10px;
}
.sign-input {
width: 600px;
height: 36px;
position: absolute;
top: 7px;
left: 88px;
background: #F4F5F8;
border-radius: 8px;
text-indent: 10px;
}
#year {
height: 36px;
position: absolute;
top: 7px;
left: 88px;
width: 90px;
border-radius: 8px;
text-indent: 10px;
background: #F4F5F8;
}
#month {
height: 36px;
position: absolute;
top: 7px;
left: 184px;
width: 90px;
border-radius: 8px;
text-indent: 10px;
background: #F4F5F8;
}
#days {
height: 36px;
position: absolute;
top: 7px;
left: 280px;
width: 90px;
border-radius: 8px;
text-indent: 10px;
background: #F4F5F8;
}
......@@ -907,7 +907,7 @@ body::-webkit-scrollbar {
text-indent: 10px;
}
.height-select{
width: 90px;
width: 200px;
height: 36px;
position: absolute;
top: 7px;
......@@ -917,7 +917,7 @@ body::-webkit-scrollbar {
text-indent: 10px;
}
.weight-select{
width: 90px;
width: 200px;
height: 36px;
position: absolute;
top: 7px;
......@@ -927,12 +927,62 @@ body::-webkit-scrollbar {
text-indent: 10px;
}
.education-select{
width: 90px;
width: 200px;
height: 36px;
position: absolute;
top: 7px;
left: 88px;
background: #F4F5F8;
border-radius: 8px;
text-indent: 10px;
}
.profession-input{
width: 200px;
height: 36px;
position: absolute;
top: 7px;
left: 88px;
background: #F4F5F8;
border-radius: 8px;
text-indent: 10px;
}
.sign-input{
width: 600px;
height: 36px;
position: absolute;
top: 7px;
left: 88px;
background: #F4F5F8;
border-radius: 8px;
text-indent: 10px;
}
#year{
height: 36px;
position: absolute;
top: 7px;
left: 88px;
width: 90px;
border-radius: 8px;
text-indent: 10px;
background: #F4F5F8;
}
#month{
height: 36px;
position: absolute;
top: 7px;
left: 184px;
width: 90px;
border-radius: 8px;
text-indent: 10px;
background: #F4F5F8;
}
#days{
height: 36px;
position: absolute;
top: 7px;
left: 280px;
width: 90px;
border-radius: 8px;
text-indent: 10px;
background: #F4F5F8;
}
\ No newline at end of file
......@@ -51,7 +51,7 @@
<p class="myRoom-tips-p">檔案格式 : JPG,PNG(限制10MB以內)</p>
</div>
<h2 class="myRoom-h2"><div></div> 基本資訊 <span class="myRoom-text-exc">編輯</span></h2>
<h2 class="myRoom-h2"><div></div> 基本資訊 <span data-type="1" class="myRoom-text-exc">編輯</span></h2>
<ul style="display: none;" class="myRoom-ul">
<!-- <li>暱稱: <span>主播暱稱預留</span></li>
<li>ID: <span>1235512</span></li>
......@@ -68,11 +68,22 @@
<li>ID : <span class="id-tips">1235512</span></li>
<li>性別 :
<select name="sex" class="sex-select" >
<option value=""></option>
<option value="">保密</option>
<option value=""></option>
<option value=""></option>
</select>
</li>
<li>生日 :
<select name="year" id="year">
<option value="">选择年份</option>
</select>
<select name="month" id="month">
<option value="">选择月份</option>
</select>
<select id="days" class="day">
<option value="">选择日期</option>
</select>
</li>
<li>生日 : <input placeholder="用户昵称预留" type="text"></li>
<li>身高 :
<select name="man-height" class="height-select" >
<option value="">180cm</option>
......@@ -100,7 +111,7 @@
</select>
</li>
<li>職業 : <input class="profession-input" placeholder="輸入您的職業" type="text"></li>
<li>簽名 : <input placeholder="請輸入簽名" type="text"></li>
<li>簽名 : <input class="sign-input" placeholder="請輸入簽名" type="text"></li>
</ul>
</div>
</div>
......@@ -108,6 +119,7 @@
</body>
<script src="../lib/jquery-3.1.1.min.js"></script>
<script src="../layer-v3.1.0/layer/layer.js"></script>
<script src="../lib/select.js"></script>
<script src="../lib/default.js?v='20220407'"></script>
<script src="../lib/login.js"></script>
<script>
......@@ -124,7 +136,6 @@ $(function(){
},
success:function(data){
console.log("用戶資料卡",data);
$(".myRoom-face").attr("src","https://zhibocdn.yabolive.net/comm"+data.zoneInfo.face+"?x-oss-process=image/resize,w_90")
var html=[];
html+='<li>暱稱: <span>'+data.zoneInfo.nickname+'</span></li>';
......@@ -132,18 +143,39 @@ $(function(){
if(data.zoneInfo.sex==-1)html+='<li>性別: <span>保密</span></li>';
else if(data.zoneInfo.sex==0)html+='<li>性別: <span></span></li>';
else if(data.zoneInfo.sex==1)html+='<li>性別: <span></span></li>';
html+='<li>生日: <span>1996-06-13</span></li>';
html+='<li>身高: <span>180cm</span></li>';
if(data.zoneInfo.birth=='')html+='<li>生日: <span>未知</span></li>';
else html+='<li>生日: <span>'+data.zoneInfo.birth+'</span></li>';
if(data.zoneInfo.height=='')html+='<li>身高: <span>未知</span></li>';
html+='<li>體重: <span>'+data.zoneInfo.height+'</span></li>';
html+='<li>學歷: <span>'+data.zoneInfo.culture+'</span></li>';
html+='<li>職業: <span>'+data.zoneInfo.work+'</span></li>';
html+='<li>簽名: <span>'+data.zoneInfo.sign+'</span></li>';
$(".myRoom-ul").html(html);
$(".myRoom-face-box").append('<a href="index.html?fid='+data.zoneInfo.uid+'"><span class="myRoom-go-space">前往我的主頁 ></span></a>')
$(".myRoom-text-exc").unbind("click").on("click",function(){
if($(".myRoom-text-exc").attr("data-type")==1){
$(".myRoom-ul").hide()
$(".myRoom-exc-ul").show()
$(".name-input").val(data.zoneInfo.nickname)
$(".id-tips").text(data.zoneInfo.uid)
if(data.zoneInfo.sex==-1)$(".sex-select option").eq(0).attr("selected","true");
else if(data.zoneInfo.sex==0)$(".sex-select option").eq(1).attr("selected","true");
else if(data.zoneInfo.sex==1)$(".sex-select option").eq(2).attr("selected","true");
}
else{
}
})
}
})
$("#date").selectDate()
$("#days").focusout(function(){
var year = $("#year option:selected").html()
var month = $("#month option:selected").html()
var day = $("#days option:selected").html()
})
console.log($(".sex-select option:selected").html())
$(".myRoom-face-exc").on("click",function(){
localStorage.face=0
layer.open({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment