Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
4a43f4dd
Commit
4a43f4dd
authored
May 13, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
1fedd3bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
258 additions
and
253 deletions
+258
-253
apps/home/Tpl/default/UserShow/index_w3g.html
+258
-253
No files found.
apps/home/Tpl/default/UserShow/index_w3g.html
View file @
4a43f4dd
<include
file=
"__THEME__/public_header_w3g"
/>
<!-- <link rel="stylesheet" href="__APP__/css/userShowIndex.css">
<style media="screen">
.bot_box #con_num, .bot_box img,.bot_box div{
display: none;
}
</style> -->
<style
type=
"text/css"
>
.van-cell__title
{
display
:
flex
;
align-items
:
center
;
}
.van-cell__value
{
display
:
flex
;
flex-direction
:
row-reverse
;
}
.van-cell
{
align-items
:
center
;
}
.van-cell
::after
{
right
:
1rem
;
}
</style>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<van-cell
title=
"头像"
is-link
>
<slot>
<van-uploader
result-type=
"file"
:after-read=
"onRead"
>
<van-image
@
error=
"onError"
height=
"44"
width=
"44"
fit=
"cover"
round
:src=
"currentAvatar"
/>
</van-uploader>
</slot>
</van-cell>
<van-cell
@
click=
"onNickName"
title=
"昵称"
is-link
:value=
"currentNickName"
></van-cell>
<van-cell
@
click=
"onGender"
title=
"性别"
is-link
:value=
"currentGender"
></van-cell>
<van-cell
@
click=
"onAddress"
title=
"收货信息"
is-link
></van-cell>
<div
@
click=
"onConfirm"
class=
"confirm_button"
style=
"margin-top: 7.125rem;"
>
<span>
确认修改
</span>
</div>
</div>
</div>
<!-- <div class="my-info-three">
<div class="my-info-threeMin">
<div>
<h3 class="my-info-num">{$user['credit_user']}</h3>
<p class="my-info-text">
<php>if($_GET['uid'] == $_SESSION['mid']){</php>
我的积分
<php>} else {</php>
ta的积分
<php>}</php>
</p>
</div>
<div>
<h3 class="my-info-num">{$tmp[$uid]['follower']}</h3>
<p class="my-info-text">
<php>if($_GET['uid'] == $_SESSION['mid']){</php>
我的粉丝
<php>} else {</php>
ta的粉丝
<php>}</php>
</p>
</div>
<div>
<h3 class="my-info-num">{$video_count}</h3>
<p class="my-info-text">
<php>if($_GET['uid'] == $_SESSION['mid']){</php>
我的课程
<php>} else {</php>
ta的课程
<php>}</php>
</p>
</div>
</div>
</div> -->
<!-- <dl class="my-data-list">
<dd>
<div class="leftColor">
<div class="textColor">
<img src="__APP__/icon/homePage/address.png" alt="">
<span>所在地:</span>
</div>
<p>{$user['location']|default='暂未完善信息'} </p>
</div>
<div>
<i class="icon icon-youjiantou"></i>
</div>
</dd>
<dd>
<div class="leftColor">
<div class="textColor">
<img src="__APP__/icon/homePage/gender.png" alt="">
<span>性别:</span>
</div>
<p>{$user['sex'] ==1 ? 男 : 女}</p>
</div>
<div>
<i class="icon icon-youjiantou"></i>
</div>
</dd>
<dd>
<div class="leftColor">
<div class="textColor">
<img src="__APP__/icon/homePage/info.png" alt="">
<span>简介:</span>
</div>
<p style="width: 70%;"><if condition="$user['intro']">
{:mStr(t($user['intro']),30)}
<else/>
这个人很懒,什么都没留下。。
</if></p>
</div>
<div>
<i class="icon icon-youjiantou"></i>
</div>
</dd>
</dl> -->
<!-- <div class="my-course">
<h3 class="my-course-title">我的点播 <a href="{:U('home/UserShow/course',array('uid'=>$userid))}">更多</a></h3>
<div class="my-course-content">
<if condition="$video_data['data']">
<volist name="video_data.data" id="dtt">
<div class="my-course-item">
<a href="{:U('course/Video/view',array('id'=>$dtt['id']))}">
<div class="my-course-pos">
<img class="my-icon" src="__APP__/icon/homePage/course.png" alt="">
<img class="my-img" src="{:getCover($dtt['cover'],580,320)}" alt="{$dtt.video_title}">
</div>
<div class="my-course-text">
<h3 class="my-course-name">{:mStr(t($dtt['video_title']),12)}</h3>
<div class="my-spw">
<p><span>¥{$dtt['t_price']}</span></p>
<p><php>if($marketConf['order_switch']){</php>{$dtt['video_order_count_mark']}<php>}else{</php>{$dtt['video_order_count']}<php>}</php>人已购买</p>
</div>
</div>
</a>
</div>
</volist>
<else/>
<include file="__THEME__/no_data_w3g" />
</if>
</div>
</div> -->
<!-- <div class="my-course">
<h3 class="my-course-title">我的直播 <a href="{:U('home/UserShow/live',array('uid'=>$userid))}">更多</a></h3>
<div class="my-course-content">
<if condition="$live_data['data']">
<volist name="live_data.data" id="dtt">
<div class="my-course-item">
<a href="{:U('live/Index/view',array('id'=>$dtt['id']))}">
<div class="my-course-pos">
<img class="my-icon" src="__APP__/icon/homePage/live.png" alt="">
<img class="my-img" src="{:getCover($dtt['cover'],580,320)}" alt="{$dtt.video_title}">
</div>
<div class="my-course-text">
<h3 class="my-course-name">{:mStr(t($dtt['video_title']),12)}</h3>
<div class="my-spw">
<p><span>¥{$dtt['t_price']}</span></p>
<p><php>if($marketConf['order_switch']){</php>{$dtt['video_order_count_mark']}<php>}else{</php>{$dtt['video_order_count']}<php>}</php>已购买</p>
</div>
</div>
</a>
</div>
</volist>
<else/>
<include file="__THEME__/no_data_w3g" />
</if>
</div>
</div> -->
</div>
<script
type=
"text/javascript"
>
// var _ifpcorh5=true;
// function setCreditScore(num){
// if(!num) return ;
// setTimeout(function(){
// var val = parseInt($('#setCreditScore').text());
// $('#setCreditScore').text(val+num);
// }, 2000);
// }
new
Vue
({
el
:
'#app'
,
data
:
function
()
{
return
{
currentAvatar
:
"{:getUserFace($user['uid'],'b')}"
,
currentNickName
:
"{:getUserName($user['uid'])}"
,
currentGender
:
"{$user['sex'] ==1 ? 男 : 女}"
}
},
methods
:
{
onConfirm
:
function
()
{
let
that
=
this
if
(
that
.
currentNickName
.
length
==
0
)
{
ui
.
error
(
'昵称必须要填写'
)
return
}
if
(
!
/^
[\u
4E00-
\u
9FA5
\w]{1,}
$/
.
test
(
that
.
currentNickName
))
{
ui
.
error
(
'昵称仅支持中英文、数字、下划线'
)
return
}
$
.
post
(
U
(
'home/User/saveUser'
),
{},
function
(
data
)
{
if
(
data
.
status
)
{
ui
.
success
(
'基本信息更改成功'
);
setTimeout
(
'window.location.reload();'
,
2000
);
}
else
{
ui
.
error
(
data
.
info
);
}
},
'json'
);
},
onRead
:
function
(
r
)
{
if
(
"undefined"
!=
typeof
(
core
.
uploadFile
))
{
core
.
uploadFile
.
filehash
=
new
Array
();
}
core
.
plugInit
(
'uploadFile'
,
{},
function
(
data
)
{
let
picurl
=
data
.
save_path
+
data
.
save_name
;
console
.
log
(
data
)
},
'image'
);
},
onNickName
:
function
()
{
},
onGender
:
function
()
{
},
onAddress
:
function
()
{
},
onError
:
function
()
{
}
}
})
</script>
<include
file=
"__THEME__/public_footer_w3g"
/>
<include
file=
"__THEME__/public_header_w3g"
/>
<!-- <link rel="stylesheet" href="__APP__/css/userShowIndex.css">
<style media="screen">
.bot_box #con_num, .bot_box img,.bot_box div{
display: none;
}
</style> -->
<style
type=
"text/css"
>
.van-cell__title
{
display
:
flex
;
align-items
:
center
;
}
.van-cell__value
{
display
:
flex
;
flex-direction
:
row-reverse
;
}
.van-cell
{
align-items
:
center
;
}
.van-cell
::after
{
right
:
1rem
;
}
</style>
<div
id=
"app"
>
<div
class=
"layout_v"
>
<van-cell
title=
"头像"
is-link
>
<slot>
<van-uploader
result-type=
"file"
:after-read=
"onRead"
>
<van-image
@
error=
"onError"
height=
"44"
width=
"44"
fit=
"cover"
round
:src=
"currentAvatar"
/>
</van-uploader>
</slot>
</van-cell>
<van-cell
@
click=
"onNickName"
title=
"昵称"
is-link
:value=
"currentNickName"
></van-cell>
<van-cell
@
click=
"onGender"
title=
"性别"
is-link
:value=
"currentGender"
></van-cell>
<van-cell
@
click=
"onAddress"
title=
"收货信息"
is-link
></van-cell>
<div
@
click=
"onConfirm"
class=
"confirm_button"
style=
"margin-top: 7.125rem;"
>
<span>
确认修改
</span>
</div>
</div>
</div>
<!-- <div class="my-info-three">
<div class="my-info-threeMin">
<div>
<h3 class="my-info-num">{$user['credit_user']}</h3>
<p class="my-info-text">
<php>if($_GET['uid'] == $_SESSION['mid']){</php>
我的积分
<php>} else {</php>
ta的积分
<php>}</php>
</p>
</div>
<div>
<h3 class="my-info-num">{$tmp[$uid]['follower']}</h3>
<p class="my-info-text">
<php>if($_GET['uid'] == $_SESSION['mid']){</php>
我的粉丝
<php>} else {</php>
ta的粉丝
<php>}</php>
</p>
</div>
<div>
<h3 class="my-info-num">{$video_count}</h3>
<p class="my-info-text">
<php>if($_GET['uid'] == $_SESSION['mid']){</php>
我的课程
<php>} else {</php>
ta的课程
<php>}</php>
</p>
</div>
</div>
</div> -->
<!-- <dl class="my-data-list">
<dd>
<div class="leftColor">
<div class="textColor">
<img src="__APP__/icon/homePage/address.png" alt="">
<span>所在地:</span>
</div>
<p>{$user['location']|default='暂未完善信息'} </p>
</div>
<div>
<i class="icon icon-youjiantou"></i>
</div>
</dd>
<dd>
<div class="leftColor">
<div class="textColor">
<img src="__APP__/icon/homePage/gender.png" alt="">
<span>性别:</span>
</div>
<p>{$user['sex'] ==1 ? 男 : 女}</p>
</div>
<div>
<i class="icon icon-youjiantou"></i>
</div>
</dd>
<dd>
<div class="leftColor">
<div class="textColor">
<img src="__APP__/icon/homePage/info.png" alt="">
<span>简介:</span>
</div>
<p style="width: 70%;"><if condition="$user['intro']">
{:mStr(t($user['intro']),30)}
<else/>
这个人很懒,什么都没留下。。
</if></p>
</div>
<div>
<i class="icon icon-youjiantou"></i>
</div>
</dd>
</dl> -->
<!-- <div class="my-course">
<h3 class="my-course-title">我的点播 <a href="{:U('home/UserShow/course',array('uid'=>$userid))}">更多</a></h3>
<div class="my-course-content">
<if condition="$video_data['data']">
<volist name="video_data.data" id="dtt">
<div class="my-course-item">
<a href="{:U('course/Video/view',array('id'=>$dtt['id']))}">
<div class="my-course-pos">
<img class="my-icon" src="__APP__/icon/homePage/course.png" alt="">
<img class="my-img" src="{:getCover($dtt['cover'],580,320)}" alt="{$dtt.video_title}">
</div>
<div class="my-course-text">
<h3 class="my-course-name">{:mStr(t($dtt['video_title']),12)}</h3>
<div class="my-spw">
<p><span>¥{$dtt['t_price']}</span></p>
<p><php>if($marketConf['order_switch']){</php>{$dtt['video_order_count_mark']}<php>}else{</php>{$dtt['video_order_count']}<php>}</php>人已购买</p>
</div>
</div>
</a>
</div>
</volist>
<else/>
<include file="__THEME__/no_data_w3g" />
</if>
</div>
</div> -->
<!-- <div class="my-course">
<h3 class="my-course-title">我的直播 <a href="{:U('home/UserShow/live',array('uid'=>$userid))}">更多</a></h3>
<div class="my-course-content">
<if condition="$live_data['data']">
<volist name="live_data.data" id="dtt">
<div class="my-course-item">
<a href="{:U('live/Index/view',array('id'=>$dtt['id']))}">
<div class="my-course-pos">
<img class="my-icon" src="__APP__/icon/homePage/live.png" alt="">
<img class="my-img" src="{:getCover($dtt['cover'],580,320)}" alt="{$dtt.video_title}">
</div>
<div class="my-course-text">
<h3 class="my-course-name">{:mStr(t($dtt['video_title']),12)}</h3>
<div class="my-spw">
<p><span>¥{$dtt['t_price']}</span></p>
<p><php>if($marketConf['order_switch']){</php>{$dtt['video_order_count_mark']}<php>}else{</php>{$dtt['video_order_count']}<php>}</php>已购买</p>
</div>
</div>
</a>
</div>
</volist>
<else/>
<include file="__THEME__/no_data_w3g" />
</if>
</div>
</div> -->
</div>
<script
type=
"text/javascript"
>
// var _ifpcorh5=true;
// function setCreditScore(num){
// if(!num) return ;
// setTimeout(function(){
// var val = parseInt($('#setCreditScore').text());
// $('#setCreditScore').text(val+num);
// }, 2000);
// }
new
Vue
({
el
:
'#app'
,
data
:
function
()
{
return
{
currentAvatar
:
"{:getUserFace($user['uid'],'b')}"
,
currentNickName
:
"{:getUserName($user['uid'])}"
,
currentGender
:
"{$user['sex'] ==1 ? 男 : 女}"
}
},
methods
:
{
onConfirm
:
function
()
{
let
that
=
this
if
(
that
.
currentNickName
.
length
==
0
)
{
ui
.
error
(
'昵称必须要填写'
)
return
}
if
(
!
/^
[\u
4E00-
\u
9FA5
\w]{1,}
$/
.
test
(
that
.
currentNickName
))
{
ui
.
error
(
'昵称仅支持中英文、数字、下划线'
)
return
}
$
.
post
(
U
(
'home/User/saveUser'
),
{},
function
(
data
)
{
if
(
data
.
status
)
{
ui
.
success
(
'基本信息更改成功'
);
setTimeout
(
'window.location.reload();'
,
2000
);
}
else
{
ui
.
error
(
data
.
info
);
}
},
'json'
);
},
onRead
:
function
(
r
)
{
let
formData
=
new
FormData
()
formData
.
append
(
'file'
,
f
.
file
)
let
url
=
U
(
'widget/Upload/save'
)
+
'&attach_type=avatar&upload_type=image&thumb=1&width=44&height=44&cut=false'
$
.
ajax
({
url
:
url
,
type
:
"post"
,
data
:
formData
,
contentType
:
false
,
processData
:
false
,
success
:
function
(
data
)
{
console
.
log
(
data
)
},
error
:
function
(
data
)
{
console
.
log
(
data
)
}
})
},
onNickName
:
function
()
{
},
onGender
:
function
()
{
},
onAddress
:
function
()
{
},
onError
:
function
()
{
}
}
})
</script>
<include
file=
"__THEME__/public_footer_w3g"
/>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment