作者 lihan

渲染

... ... @@ -157,14 +157,84 @@ class ActivityController extends HomeBaseController
$calendar[$m - 1]['label'] = $label;
$calendar[$m - 1]['date'] = $date;
$calendar[$m - 1]['timestamp'] = strtotime(date("Y-$m-01"));
if ($m == date('m')) {
$is_current = 1;
} else {
$is_current = 0;
}
$calendar[$m - 1]['is_current'] = $is_current;
}
$monthStart = (empty(request()->param('timestamp'))) ? strtotime(date("Y-m-01")) : request()->param('timestamp');
$monthEnd = strtotime('+1months', $monthStart);
echo json_encode([
'nav' => $calendar,
'activity_list' => $this->journeyActivity($monthStart, $monthEnd)
]);
exit();
$list = $this->journeyActivity($monthStart, $monthEnd);
$html = '';
if (!empty($list)) {
foreach ($list as $item) {
if ($item['is_collect'] == 1) {
$class = 'iconfont icon-wuxing';
} else {
$class = 'iconfont icon-shoucang';
}
$html .= '
<div onclick="jumpUrl(this.id)" class="piclist center_mian" id="' . url('activity/Activity/detail', ['id' => $item['id']]) . '">
<div class="picture">
<img src="' . $item['thumb'] . '" alt="" />
</div>
<div class="qing">
<div class="qing_out">
<div class="run">
' . $item['name'] . '
</div>
<div class="year">
<div class="act acte">
<div class="cop">
<i class="iconfont icon-calendar"></i>
</div>
<div class="txt">
' . $item['start_time'] . '
</div>
</div>
<div onclick="collect(this.id)" class="act act_show" data-id="' . $item['id'] . '" id="' . $item['id'] . '">
<i class="' . $class . '"></i>
<div class="txt">
收藏
</div>
</div>
</div>
</div>
<div class="red">
<span class="mon">
<span class="jia">
¥' . $item['price'] . '
</span>
<span class="shou">
售' . $item['sales_num'] . ' 剩' . $item['residue_num'] . '
</span>
</span>
</div>
</div>
</div>
';
}
} else {
$html = '<div style="font-size: small; width: 100%; text-align: center">暂无活动</div>';
}
if (request()->isPost()) {
echo json_encode([
'nav' => $calendar,
'activity_list' => $list,
'html' => $html
]);
exit();
} else {
return $this->fetch(':calendar', [
'nav' => $calendar,
'activity_list' => $list
]);
}
}
private function journeyActivity($monthStart, $monthEnd)
... ...
... ... @@ -25,12 +25,12 @@ class CollectController extends HomeBaseController
{
//收藏的活动
$activity = Db::name('collect')->alias('c')
->field('a.name,a.thumb')
->field('a.id,a.name,a.thumb')
->join('activity a', 'a.id=c.activity_id')
->where(['c.user_id' => session('user.id')])
->select();
$news = Db::name('collect_news')->alias('c')
->field('p.post_title,p.more')
->field('p.id,p.post_title,p.more,p.post_hits')
->join('portal_post p', 'p.id=c.post_id')
->where(['c.user_id' => session('user.id')])
->select();
... ... @@ -44,8 +44,19 @@ class CollectController extends HomeBaseController
'activity' => $activity,
'news' => $news
];
echo json_encode(['data' => $data]);
exit();
if (request()->isPost()) {
echo json_encode(['data' => $data]);
exit();
} else {
if (request()->param('is_news') == 1) {
$view = ':collect2';
} else {
$view = ':collect';
}
return $this->fetch($view, [
'data' => $data
]);
}
}
}
\ No newline at end of file
... ...
... ... @@ -13,26 +13,34 @@ class CouponModel extends Model
{
/**
* 个人中心优惠券列表
* @param null $status
* @param $user_id
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getAllDiscountCouponByUniqueIdAndByStatus($status = null, $user_id)
public function getAllDiscountCouponByUniqueIdAndByStatus($user_id)
{
if ($status == null) {
$status = 1;
}
$map['status'] = array('eq', $status);
$data = [];
$x = 0;
$y = 0;
$z = 0;
$map['user_id'] = array('eq', $user_id);
$res = Db::name('discount_coupon')->field('id,reduce,discount_coupon_name,deadline')->where($map)->select()->toArray();
$res = Db::name('discount_coupon')->field('reduce,discount_coupon_name,deadline,status')->where($map)->order('status')->select()->toArray();
foreach ($res as $key => $item) {
$item['deadline'] = date('Y-m-d', $item['deadline']);
$res[$key] = $item;
$item['deadline'] = date('Y.m.d', $item['deadline']);
if ($item['status'] == 1) {
$data['unused'][$x] = $item;
$x++;
} elseif ($item['status'] == 2) {
$data['used'][$y] = $item;
$y++;
} else {
$data['expired'][$z] = $item;
$z++;
}
}
return $res;
return $data;
}
/**
... ...
... ... @@ -67,7 +67,7 @@ class NewsController extends HomeBaseController
* @description 接口说明(指定id为购买协议)
* @author sᴏᴜʟ ᴏғ ᴄɪɴᴅᴇʀ
* @url /news/News/detail
* @method GET
* @method POST
*
* @param name:id type:int require:1 default:1 other: desc:文章id
*/
... ... @@ -75,12 +75,18 @@ class NewsController extends HomeBaseController
{
$id = request()->param('id');
//阅读量+1
Db::name('portal_post')->where(['id'=>$id])->setInc('post_hits', 1);
Db::name('portal_post')->where(['id' => $id])->setInc('post_hits', 1);
$news = Db::name('portal_post')->field('post_title,post_content,published_time')->where(['id' => $id])->find();
$news['published_time'] = date('Y/m/d', $news['published_time']);
$news['post_content'] = html_entity_decode($news['post_content']);
echo json_encode(['news' => $news]);
exit();
if (request()->isPost()) {
echo json_encode(['news' => $news, 'code' => 20000]);
exit();
} else {
return $this->fetch(':detail', [
'news' => $news
]);
}
}
/**
... ...
... ... @@ -20,6 +20,11 @@ use EasyWeChat\Foundation\Application;
class IndexController extends HomeBaseController
{
function _initialize()
{
session('user.id', 2);
}
/**
* @title 接口返回参数说明
* @description 默认访问接口
... ...
... ... @@ -19,8 +19,9 @@ use app\order\model\OrderModel;
class CenterController extends HomeBaseController
{
function __construct()
function _initialize()
{
if (empty(session('user.id'))) {
echo json_encode(['msg' => '登陆失败', 'code' => 40001]);
exit();
... ... @@ -32,21 +33,27 @@ class CenterController extends HomeBaseController
* @description 默认访问接口
* @author sᴏᴜʟ ᴏғ ᴄɪɴᴅᴇʀ
* @url /user/Center/index
* @method GET
* @method POST
*/
public function index()
{
$userInfo = Db::name('user')->field('user_nickname,avatar')->where(['id' => session('user.id')])->find();
echo json_encode(['user_info' => $userInfo, 'code' => 20000]);
exit();
if (request()->isPost()) {
echo json_encode(['user_info' => $userInfo, 'code' => 20000]);
exit();
} else {
return $this->fetch(':index', [
'user_info' => $userInfo
]);
}
}
/**
* @title 我的资料
* @description 默认访问接口(post方式更改用户信息需要填写参数,post以外是模板渲染用户信息)
* @description 默认访问接口(post方式更改用户信息需要填写参数,put模板渲染用户信息)
* @author sᴏᴜʟ ᴏғ ᴄɪɴᴅᴇʀ
* @url /user/Center/myInfo
* @method GET
* @method PUT
*
* @param name:realname type:char require:1 default:李涵 desc:真实姓名
* @param name:tel type:char require:1 default:15122554644 desc:手机号
... ... @@ -82,16 +89,22 @@ class CenterController extends HomeBaseController
echo json_encode(['data' => '更改成功', 'code' => 20000]);
exit();
} else {
echo json_encode(['data' => '您做出任何修改', 'code' => 40000]);
echo json_encode(['data' => '您做出任何修改', 'code' => 40000]);
exit();
}
} else {
} elseif ($request->isPut()) {
$userInfo = Db::name('user')->field('avatar,user_nickname,realname,tel,wechat,identity')
->where(['id' => session('user.id')])
->find();
echo json_encode(['data' => $userInfo, 'code' => 20000]);
exit();
} else {
return $this->fetch(':edit', [
'info' => Db::name('user')->field('avatar,user_nickname,realname,tel,wechat,identity')
->where(['id' => session('user.id')])
->find()
]);
}
}
... ... @@ -102,8 +115,6 @@ class CenterController extends HomeBaseController
* @url /user/Center/discountCoupon
* @method POST
*
* @param name:status type:int require:1 default:1 desc:1未使用2已使用3已过期
*
* @return version:版本号
* @return code:错误码
* @return id:优惠券id
... ... @@ -114,11 +125,10 @@ class CenterController extends HomeBaseController
public function discountCoupon()
{
$request = request();
$user_id = session('user.id');
$model = new CouponModel;
$data = $model->getAllDiscountCouponByUniqueIdAndByStatus($user_id);
if ($request->isPost()) {
$post = $request->param();
$user_id = session('user.id');
$model = new CouponModel;
$data = $model->getAllDiscountCouponByUniqueIdAndByStatus($post['status'], $user_id);
if (empty($data)) {
echo json_encode(['msg' => '暂无数据', 'code' => 40000]);
exit();
... ... @@ -126,6 +136,10 @@ class CenterController extends HomeBaseController
echo json_encode(['data' => $data, 'code' => 20000]);
exit();
}
} else {
return $this->fetch(':coupon', [
'data' => $data
]);
}
}
... ... @@ -256,8 +270,21 @@ class CenterController extends HomeBaseController
'balance' => $balance,
'log' => $log
];
echo json_encode(['data' => $return, 'code' => 20000]);
exit();
if (request()->isPost()) {
echo json_encode(['data' => $return, 'code' => 20000]);
exit();
} else {
return $this->fetch(':log', [
'data' => $return
]);
}
}
public function wallet()
{
return $this->fetch(':wallet', [
'balance' => Db::name('user')->where(['id' => session('user.id')])->value('balance')
]);
}
}
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>行程日历</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_tu2va42yqo.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/travelCalendar.css" />
<link rel="stylesheet" href="__TMPL__/static/css/Peripheral-short-term.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
/*base*/
</style>
</head>
<body id="body">
<!--行程日历-->
<div class="travel" id="travel">
<ul>
<volist name="nav" id="vo">
<li <if condition="$vo['is_current'] eq '1'">class="acts"</if> data-var="{$vo.timestamp}">
<span >
{$vo.label}
</span>
<span class="p">
{$vo.date}
</span>
<span class="bottom_border"></span>
</li>
</volist>
</ul>
</div>
</div>
<div id="container">
<!--图片-->
<volist name="activity_list" id="vo">
<div class="piclist center_mian" data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
<div class="picture">
<img src="{$vo.thumb}" alt="" />
</div>
<div class="qing">
<div class="qing_out">
<div class="run">
{$vo.name}
</div>
<div class="year">
<div class="act acte">
<div class="cop">
<i class="iconfont icon-calendar"></i>
</div>
<div class="txt">
{$vo.start_time}
</div>
</div>
<div class="act act_show" data-id="{$vo.id}">
<i <if condition="$vo.is_collect eq '1'">class='iconfont icon-wuxing'<else/>class='iconfont icon-shoucang'</if>></i>
<div class="txt">
收藏
</div>
</div>
</div>
</div>
<div class="red">
<span class="mon">
<span class="jia">
¥{$vo.price}
</span>
<span class="shou">
售{$vo.sales_num} 剩{$vo.residue_num}
</span>
</span>
</div>
</div>
</div>
</volist>
</div>
<!--====底部=====-->
<div class="base">
<div class="base_img">
<ul class="baselist">
<a href="{:url('portal/Index/index')}">
<li class="base_index baselis">
<img class="first" src="__TMPL__/static/images/first1.png" alt="" />
<span class="base_options common ">首页</span>
</li>
</a>
<a href="{:url('activity/Activity/journeyCalendar')}">
<li class="base_travel baselis">
<span class="base_circle">
<i class='iconfont icon-rili base_rili mark '></i>
</span>
<span class="common checked_active">行程日历</span>
</li>
</a>
<a href="{:url('user/Center/index')}">
<li class="base_our baselis">
<img class="first" src="__TMPL__/static/images/person1.png" alt="" />
<span class="my common">我的</span>
</li>
</a>
</ul>
</div>
</div>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<!--<script type="text/javascript" src="../index.js"></script>-->
<script>
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 1500,//可选选项,自动滑动
loop : true
})
$('.act_show').click(function(event) {
event.stopPropagation();
if($(this).find('.iconfont').attr('class')=='iconfont icon-wuxing'){
$(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
}else{
$(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
}
$.ajax({
url:"{:url('activity/Activity/collectDo')}",
data:{
id:$(this).attr('data-id')
},
type:"POST",
dataType:"JSON"
})
});
function collect(id) {
event.stopPropagation();
var className=document.getElementById(id).children[0].className;
if(className == 'iconfont icon-wuxing') {
className='iconfont icon-shoucang';
}else {
className='iconfont icon-wuxing';
}
document.getElementById(id).children[0].className=className;
$.ajax({
url:"{:url('activity/Activity/collectDo')}",
data:{
id:id
},
type:"POST",
dataType:"JSON"
})
}
$('.center_mian').click(function(){
window.location.href=$(this).attr('data-target');
})
function jumpUrl(url) {
window.location.href=url;
}
$('.act_show').click(function(event) {
event.stopPropagation();
});
$('.acte').click(function(event) {
event.stopPropagation();
});
$(".piclist:last").css('margin-bottom','1.3rem');
$('.travel li').click(function(event) {
$(this).addClass('acts').siblings().removeClass('acts');
$('.acts').find('.bottom_border').css('background','#00CC99');
// $(this).siblings()
$('.acts').siblings().find('.bottom_border').css('background','#fff');
$.ajax({
url:"{:url('activity/Activity/journeyCalendar')}",
data:{
timestamp:$(this).attr('data-var')
},
type:"POST",
dataType:"JSON",
success: function (data) {
$("#container").html(data.html);
}
})
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的收藏</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_tu2va42yqo.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/Peripheral-short-term.css" />
<link rel="stylesheet" href="__TMPL__/static/css/myselect.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
.year {
padding-left: 0.3rem;
margin-top: 0.12rem;
}
.qing {
margin-top: 0.2rem;
padding: 0 0 0 0;
display: flex;
justify-content: space-between;
}
</style>
</head>
<body id="body">
<div class="con" style="margin-bottom: 30px">
<div class="collect">
<span class="coll">套餐收藏</span>
<a href="{:url('collect/Collect/index',['is_news'=>1])}">
<span>资讯收藏</span>
</a>
</div>
</div>
<div style="margin-top: 1.02rem">
<!--图片-->
<volist name="data.activity" id="vo">
<div class="center_mian" style="margin-bottom: 10px" data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
<div class="picture" id="picture">
<img src="{$vo.thumb}" alt="" />
</div>
<div class="qing">
<span class="qing_out qing_out_box">
<span class="run">
{$vo.name}
</span>
<div class="year">
<div class="act acts">
<!--<i class="iconfont icon-calendar"></i>-->
<!--<span class="txt">-->
<!--2018.08.13-->
<!--</span>-->
</div>
<div class="act actlist">
<i class="iconfont icon-wuxing"></i>
<span class="txt">
取消收藏
</span>
</div>
</div>
</span>
</div>
</div>
</volist>
</div>
<!---->
<div class="confirm_cancel" >
<div class="confirm_main">
<div class="hint">
确认取消?
</div>
<div class="true">确定取消订单吗?</div>
<div class="choose">
<span class="confirm_yes">取消</span>
<span class="confirm_no">确定</span>
</div>
</div>
</div>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<!--<script type="text/javascript" src="../index.js"></script>-->
<script>
//确认取消弹出框
$('.confirm_main').click(function(event) {
event.stopPropagation();
});
$('.confirm_main').click(function(event) {
event.stopPropagation();
});
$('.confirm_no').click(function(event) {
$('.confirm_cancel').css('display','none');
});
$('.confirm_yes').click(function(event) {
$('.confirm_cancel').css('display','none');
});
$('.confirm_cancel').click(function(event) {
$('.confirm_cancel').css('display','none');
});
$('.can').click(function() {
var id = $(this).parents('.good_out').data("id");
console.log(id);
$('.confirm_cancel').css('display', 'block');
$('.confirm_yes').click(function() {
console.log("点击确定按钮获取整个li的id为:" + id);
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_no').click(function() {
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_main').click(function() {
event.stopPropagation();
// $(this).css('display','none');
})
})
$('.actlist').click(function(){
$('.confirm_cancel').css('display','block');
})
//确认取消弹出框
$('.btnright').click(function() {
var id = $(this).parents('.good_out').data("id");
console.log(id);
$('.confirm_cancel').css('display', 'block');
$('.confirm_yes').click(function() {
console.log("点击确定按钮获取整个li的id为:" + id);
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_no').click(function() {
$('.confirm_cancel').css('display', 'none');
})
$('.confirm_main').click(function() {
event.stopPropagation();
// $(this).css('display','none');
})
})
//阻止按钮的点击冒泡
$('.btnlist').click(function(event) {
event.stopPropagation();
});
$('.choice .swiper-slide').click(function() {
$(this).addClass("active_top").siblings().removeClass("active_top");;
})
//点击跳转到已退款页面
$('.good_out_refundmoney').click(function() {
window.location.href = 'refundmoney.html';
})
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 1500, //可选选项,自动滑动
loop: true
})
$('.actlist').click(function(event) {
event.stopPropagation();
if($(this).find('.iconfont').attr('class') == 'iconfont icon-wuxing') {
$(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
} else {
$(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
}
});
$('.center_mian').click(function() {
window.location.href = $(this).attr('data-target');
})
$('.act_show').click(function(event) {
event.stopPropagation();
});
$('.acts').click(function(event) {
event.stopPropagation();
})
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的收藏</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_tu2va42yqo.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/Peripheral-short-term.css" />
<link rel="stylesheet" href="__TMPL__/static/css/informationCollection.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
</style>
</head>
<body id="body">
<div class="con">
<div class="collect">
<a href="myselect.html">
<span >套餐收藏</span>
</a>
<span class="coll">资讯收藏</span>
</div>
</div>
<div style="margin-top: 1.02rem"></div>
<volist name="data.news" id="vo">
<div class="center_mian" style="margin-bottom: 10px" data-target="{:url('news/News/detail',['id'=>$vo['id']])}">
<div class="picture pics">
<img src="{$vo.thumb}" alt="" />
</div>
<div class="qing">
<div class="qing_out qing_out_box">
<span class="run">
{$vo.post_title}
</span>
<div class="year" id="year">
<div class="act">
<i class="iconfont icon-wuxing"></i>
<span class="txt">
取消收藏
</span>
</div>
</div>
</div>
<div class="red">
阅读量{$vo.post_hits}
</div>
</div>
</div>
</volist>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<!--<script type="text/javascript" src="../index.js"></script>-->
<script>
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 1500,//可选选项,自动滑动
loop : true
})
var mySwiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 1500,//可选选项,自动滑动
loop : true
})
$('.year').click(function(event) {
event.stopPropagation();
if($(this).find('.iconfont').attr('class')=='iconfont icon-wuxing'){
$(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
}else{
$(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
}
});
$('.center_mian').click(function(){
window.location.href = $(this).attr('data-target');
})
$('.act_show').click(function(event) {
event.stopPropagation();
});
$('.acts').click(function(event) {event.stopPropagation();})
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>咨询详情</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_6y9erxzbkn2.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js"></script>
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" href="__TMPL__/static/css/advisoryDetails.css" />
</head>
<body>
<div class="show">
{$news.post_title}
</div>
<div class="time">
上传时间:{$news.published_time}
</div>
<div class="text">
{$news.post_content}
</div>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<script type="text/javascript" src="__TMPL__/static/index.js"></script>
<script>
</script>
</body>
</html>
\ No newline at end of file
... ...
... ... @@ -90,7 +90,7 @@
</li>
</ul>
</div>
<a href="html/travelCalendar.html">
<a href="{:url('activity/Activity/journeyCalendar')}">
<div class="riliout">
<div class="rili">
... ... @@ -197,7 +197,7 @@
<span class="base_options common checked_active">首页</span>
</li>
</a>
<a href="html/travelCalendar.html">
<a href="{:url('activity/Activity/journeyCalendar')}">
<li class="base_travel baselis">
<span class="base_circle">
<i class='iconfont icon-rili base_rili mark '></i>
... ... @@ -205,7 +205,7 @@
<span class="common">行程日历</span>
</li>
</a>
<a href="html/person.html">
<a href="{:url('user/Center/index')}">
<li class="base_our baselis">
<!--<div class="person">-->
<img class="first" src="__TMPL__/static/images/person1.png" alt="" />
... ...
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 我的评论</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav"/>
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav"/>
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-comments-o"></i> 我的评论</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>评论内容</th>
<th width="150">评论时间</th>
<th width="150">操作</th>
</tr>
</thead>
<tbody>
<foreach name="comments" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.content}</td>
<td>{$vo.create_time}</td>
<td>
<php>
$url = json_decode($vo['url'],true);
</php>
<a href="{:cmf_url($url['action'],$url['param'])}#comment{$vo.id}">查看</a> |
<a class="js-ajax-dialog-btn"
href="{:url('user/comment/delete',array('id'=>$vo['id']))}"
data-msg="您确定要删除评论吗?" data-ok="" data-cacel="取消">删除评论</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</div>
<ul class="pagination">{$page}</ul>
</div>
</div>
</div>
</div>
<include file="public@footer"/>
</div>
<!-- /container -->
<include file="public@scripts"/>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的优惠券</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_k1lcewwscuf.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/outdate.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
#wai2{
display: none;
}
#wai3{
display: none;
}
</style>
</head>
<body>
<div class="out">
<div class="use">
<span id="nouse" class="active">待使用</span>
<span id="outdata">已过期</span>
<span id="used">已使用</span>
</div>
<!--待使用优惠券-->
</div >
<div class="wai1" id="wai1">
<volist name="data.unused" id="vo">
<div class="wai">
<div class="youhui">
<div class="quan">
<img src="__TMPL__/static/images/f2.png" alt="" />
<div class="dai">
<div class="money">¥{$vo.reduce}</div>
<div class="date">
<span >{$vo.discount_coupon_name}</span>
<span class="you">有效期:{$vo.deadline}</span>
</div>
</div>
</div>
</div>
</div>
</volist>
</div>
<!--已过期代金券-->
<div id="wai2">
<volist name="data.expired" id="vo">
<div class="wai" >
<div class="youhui">
<div class="quan">
<img src="__TMPL__/static/images/f2.png" alt="" />
<div class="dai">
<span class="outdate"><img src="__TMPL__/static/images/outdate.png" alt="" /></span>
<div class="money">¥{$vo.reduce}</div>
<div class="date">
<span >{$vo.discount_coupon_name}</span>
<span class="you">有效期:{$vo.deadline}</span>
</div>
</div>
</div>
</div>
</div>
</volist>
</div>
<!--已使用代金券-->
<div id="wai3">
<volist name="data.used" id="vo">
<div class="wai" >
<div class="youhui">
<div class="quan">
<img src="__TMPL__/static/images/f2.png" alt="" />
<div class="dai">
<span class="outdate"><img src="__TMPL__/static/images/use.png" alt="" /></span>
<div class="money">¥{$vo.reduce}</div>
<div class="date">
<span >{$vo.discount_coupon_name}</span>
<span class="you">有效期:{$vo.deadline}</span>
</div>
</div>
</div>
</div>
</div>
</volist>
</div>
</body>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<script type="text/javascript" src="__TMPL__/static/index.js"></script>
<script>
var wai1 = $('#wai1');
var wai2 = $('#wai2');
var wai3 = $('#wai3');
var nouse = $('#nouse');
var outdata = $('#outdata');
var used = $('#used');
$('#nouse').click(function() {
wai1.css('display', 'block');
wai2.css('display', 'none');
wai3.css('display', 'none');
nouse.css('color', '#FE0A01');
outdata.css('color', '#252729');
used.css('color', '#252729');
})
$('#outdata').click(function() {
wai1.css('display', 'none');
wai2.css('display', 'block');
wai3.css('display', 'none');
nouse.css('color','#252729' );
outdata.css('color', '#FE0A01');
used.css('color', '#252729');
})
$('#used').click(function() {
wai1.css('display', 'none');
wai2.css('display', 'none');
wai3.css('display', 'block');
nouse.css('color', '#252729');
outdata.css('color', '#252729');
used.css('color', '#FE0A01');
})
</script>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的资料</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_6y9erxzbkn2.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/common.css" />
<link rel="stylesheet" href="__TMPL__/static/css/user_information.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
</style>
</head>
<body>
<div class="show">
<div class="tu">
<span class="circle">
<img src="{$info.avatar}" alt="" />
</span>
<span class="pic">点击可更换头像</span>
</div>
<div class="name">
<span class="name_left">
我的昵称
</span>
<span class="name_right">
{$info.user_nickname}
</span >
</div>
<div class="information">
完善个人信息,完善后可获得代金券一张
</div>
</div>
<ul class="list">
<li>
<span class="real ">真实姓名</span>
<input placeholder="请填写真实姓名" value="{$info.realname}" class="name1 add"/>
</li>
<li>
<span class="real">手机号</span>
<input class="add tel" value="{$info.tel}" placeholder="请填写手机号码" />
</li>
<li>
<span class="real">我的微信号</span>
<input class="add weixin" value="{$info.wechat}" placeholder="请填写微信号" />
</li>
<li>
<span class="real">身份证号码</span>
<input class="add zfzid" value="{$info.identity}" placeholder="请填写身份证号码" />
</li>
</ul>
<div class="footer ok">
保存
</div>
<div id="toast" style='display: none;'>
<div class="weui-mask_transparent"></div>
<div class="weui-toast">
<!--<i class="weui-icon-success-no-circle weui-icon_toast"></i>-->
<p class="weui-toast__content">已完成</p>
</div>
</body>
</html>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/common.js"></script>
<script type='text/javascript' src='__TMPL__/static/assets/js/Augly_Verification.js'></script>
<script>
$(function(){
$('.ok').click(function(){
if( $('.name1').val()=='' ){
toast('请填入您的姓名');
}else if($('.tel').val()==''){
toast('请输入电话号码');
}else if(!AuglyTest_phone.test($('.tel').val())){
toast('电话号码格式不正确');
}else if($('.weixin').val()==''){
toast('请输入微信号码');
}else if($('.zfzid').val()==''){
toast('请输入身份证号');
}else if(!AuglyTest_ID.test($('.zfzid').val())){
toast('身份证号输入不正确');
}else{
$.ajax({
url:"{:url('Center/myInfo')}",
data:{
realname:$('.name1').val(),
tel:$('.tel').val(),
wechat:$('.weixin').val(),
identity:$('.zfzid').val()
},
type:"POST",
dataType:"JSON",
success: function (data) {
if(data.code == 20000) {
toast('保存成功');
}else {
toast(data.data);
}
}
})
}
})
})
</script>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 我的收藏</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav" />
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-star"></i> 我的收藏</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<table class="table table-bordered table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>标题</th>
<th>描述</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="lists" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.title}</td>
<td>{$vo.description}</td>
<td>
<php>
$url = json_decode($vo['url'],true);
</php>
<a href="{:cmf_url($url['action'],$url['param'])}">查看</a> |
<a class="js-ajax-dialog-btn" href="{:url('user/favorite/delete',array('id'=>$vo['id']))}" data-msg="您确定要取消收藏吗?" data-ok="" data-cacel="取消">取消收藏</a>
</td>
</tr>
</foreach>
</tbody>
</table>
<div class="pagination">{$page|default=''}</div>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white">
<include file="public@nav"/>
<div class="container tc-main">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h2 class="text-center">忘记密码</h2>
<php>
$mobile_tab_active=empty($theme_vars['enable_mobile'])?'':'active';
$email_tab_active=empty($theme_vars['enable_mobile'])?'active':'';
</php>
<notempty name="theme_vars.enable_mobile">
<ul class="nav nav-tabs nav-justified" id="myTab" style="margin-bottom: 15px;">
<li class="active"><a href="#mobile" data-toggle="tab">通过手机找回</a></li>
<li><a href="#email" data-toggle="tab">通过邮箱找回</a></li>
</ul>
</notempty>
<div class="tab-content">
<notempty name="theme_vars.enable_mobile">
<div class="tab-pane {$mobile_tab_active}" id="mobile">
<form class="js-ajax-form" action="{:url('user/Login/passwordReset')}" method="post">
<div class="form-group">
<input type="text" name="username" placeholder="手机号" class="form-control"
id="js-mobile-input">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="verification_code" placeholder="手机验证码" style="width:170px;"
class="form-control">
<a class="btn btn-success js-get-mobile-code"
style="width: 163px;position: absolute;top:0;right: 0;"
data-wait-msg="[second]秒后才能再次获取" data-mobile-input="#js-mobile-input"
data-url="{:url('user/VerificationCode/send')}">获取手机验证码</a>
</div>
</div>
<div class="form-group">
<input type="password" name="password" placeholder="密码" class="form-control">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control"
style="width: 170px;float: left;margin-right: 30px">
<captcha height="38" width="160" font-size="20"/>
</div>
</div>
<div class="form-group">
<button class="btn btn-primary btn-block js-ajax-submit" type="submit" data-wait="1500"
style="margin-left: 0px;">确定
</button>
</div>
<div class="form-group" style="text-align: center;">
<ul class="list-inline">
<li><a href="{:cmf_url('user/Register/index')}">现在注册</a></li>
<li><a href="{:cmf_url('user/Login/index')}">现在登录</a></li>
</ul>
</div>
</form>
</div>
</notempty>
<div class="tab-pane {$email_tab_active}" id="email">
<form class="js-ajax-form" action="{:url('user/Login/passwordReset')}" method="post">
<div class="form-group">
<input type="text" name="username" placeholder="邮箱" class="form-control"
id="js-email-input">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="verification_code" placeholder="邮件验证码" style="width:170px;"
class="form-control">
<a class="btn btn-success js-get-email-code"
style="width: 163px;position: absolute;top:0;right: 0;"
data-wait-msg="[second]秒后才能再次获取" data-email-input="#js-email-input"
data-url="{:url('user/VerificationCode/send')}"
data-init-second-left="60">获取邮箱验证码</a>
</div>
</div>
<div class="form-group">
<input type="password" name="password" placeholder="密码" class="form-control">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control"
style="width: 170px;float: left;margin-right: 30px">
<captcha height="38" width="160" font-size="20"/>
</div>
</div>
<div class="form-group">
<button class="btn btn-primary btn-block js-ajax-submit" type="submit"
style="margin-left: 0px;">确定
</button>
</div>
<div class="form-group" style="text-align: center;">
<ul class="list-inline">
<li><a href="{:cmf_url('user/Register/index')}">现在注册</a></li>
<li><a href="{:cmf_url('user/Login/index')}">现在登录</a></li>
</ul>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /container -->
<include file="public@scripts"/>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>{$user_login}</title>
<meta name="keywords" content="" />
<meta name="description" content="">
<include file="public@head"/>
<style>
.control-label{
font-weight: bold;
float: left;
width: 70px;
}
</style>
<meta charset="UTF-8">
<title>个人中心</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_qlmo3nv5yz.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js"></script>
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" href="__TMPL__/static/css/person.css" />
<style>
.weui-picker__group {
font-size: 0.3rem;
}
</style>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="tabs col-md-offset-2 col-md-8">
<div class="tab-content">
<div class="tab-pane active" id="one">
<div class="col-md-3">
<a href="javascript:;">
<if condition="empty($avatar)">
<img src="/themes/simpleboot3/Public/assets/images/headicon_128.png" class="headicon" width="128" />
<else />
<img src="__ROOT__/upload/{$avatar}" class="headicon" width="128"/>
</if>
</a>
</div>
<div class="col-md-9">
<div class="form-group">
<label class="control-label" for="input-user_nicename">昵称</label>
<div>{$user_nickname|default='未填写'}</div>
</div>
<div class="form-group">
<label class="control-label" for="input-sex">性别</label>
<div>
<php> $sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");echo $sexs[$sex]; </php>
</div>
</div>
<div class="form-group">
<label class="control-label" for="input-birthday">生日</label>
<div>{:date('Y-m-d',$birthday)}</div>
</div>
<div class="form-group">
<label class="control-label" for="input-user_url">个人网址</label>
<div>{$user_url|default='未填写'}</div>
</div>
<div class="form-group">
<label class="control-label" for="input-signature">个性签名</label>
<div>{$signature|default='未填写'}</div>
</div>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
<body id="body">
<div class="tu" >
<div class="niu">
<div class="circle">
<img src="{$user_info.avatar}" alt="" />
</div>
<div class="pic">{$user_info.user_nickname}</div>
</div>
<a href="{:url('user/Center/myInfo')}" id="bianji">
<i class="iconfont icon-bianji"></i>
</a>
</div>
<a href="{:url('user/Center/wallet')}">
<div class="wallet">
<div class="wallet_main">
<i class="iconfont icon-qianbao"></i>
<span class="our">我的钱包</span>
</div>
<div class="main">
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
<a href="myOrder.html">
<div class="wallet wall">
<div class="wallet_main">
<i class="iconfont icon-yiwanchengdingdan"></i>
<span class="our">我的订单</span>
</div>
<div class="main">
<span class="look">
查看全部订单
</span>
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
<div class="sub_out">
<ul class="sub">
<li>
<span >
<i class="iconfont icon-daizhifu"></i>
</span>
<span class="dai">
待付定金
</span>
</li>
<li>
<span >
<i class="iconfont icon-dingdanyizhifu"></i>
</span>
<span class="dai">
已付定金
</span>
</li>
<li>
<span >
<i class="iconfont icon-daishouhuo"></i>
</span>
<span class="dai">
待付尾款
</span>
</li>
<li>
<span >
<i class="iconfont icon-daiwancheng"></i>
</span>
<span class="dai">
待完成
</span>
</li>
<li>
<span >
<i class="iconfont icon-pingjia"></i>
</span>
<span class="dai">
待评价
</span>
</li>
</ul>
</div>
<!-- /container -->
<include file="public@scripts" />
</a>
<a href="{:url('Center/discountCoupon')}">
<div class="wallet">
<div class="wallet_main">
<i class="iconfont icon-youhuiquan"></i>
<span class="our">我的优惠券</span>
</div>
<div class="main">
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
</a>
<a href="{:url('collect/Collect/index')}">
<div class="wallet">
<div class="wallet_main">
<i class="iconfont icon-Group-"></i>
<span class="our">我的收藏</span>
</div>
<div class="main">
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
</a>
<a href="peerManagement.html">
<div class="wallet">
<div class="wallet_main">
<i class="iconfont icon-hezuo"></i>
<span class="our">同行人管理</span>
</div>
<div class="main">
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
</a>
<a href="abouts.html">
<div class="wallet">
<div class="wallet_main">
<i class="iconfont icon-guanyuwomen"></i>
<span class="our">关于我们</span>
</div>
<div class="main">
<i class="iconfont icon-common-jinru-copy"></i>
</div>
</div>
</a>
<!--====底部=====-->
<div class="base">
<div class="base_img">
<ul class="baselist">
<a href="{:url('portal/Index/index')}">
<li class="base_index baselis">
<img class="first" src="__TMPL__/static/images/first1.png" alt="" />
<span class="base_options common ">首页</span>
</li>
</a>
<a href="{:url('activity/Activity/journeyCalendar')}">
<li class="base_travel baselis">
<span class="base_circle">
<i class='iconfont icon-rili base_rili mark '></i>
</span>
<span class="common">行程日历</span>
</li>
</a>
<a href="{:url('user/Center/index')}">
<li class="base_index baselis">
<img class="first" src="__TMPL__/static/images/person2.png" alt="" />
<span class="base_options common checked_active">我的</span>
</li>
</a>
</ul>
</div>
</div>
</body>
</html>
\ No newline at end of file
</html>
... ...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的钱包</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_6y9erxzbkn2.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js"></script>
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" href="__TMPL__/static/css/balance.css" />
<style>
.weui-picker__group {
font-size: 0.3rem;
}
</style>
</head>
<body>
<ul class="youhui">
<li class="present" id="present">
<span class="choose" id="choose">
当前账户余额
</span>
<span class="san">¥{$data.balance}</span>
</li>
<li class="shang" id="shang">
<span class="choose">
消费明细记录
</span>
</li>
<volist name="data.log" id="vo">
<li class="shang shan hei" >
<span class="chong ">
<if condition="$vo.type eq '0'">
<span class="pay consume">
消费
</span>
<span class="count">
<span class="yuan">
- ¥{$vo.cost}
</span>
<span class="hu">
账户充值
</span>
</span>
</if>
<if condition="$vo.type eq '1'">
<span class="pay chongzhi">
充值
</span>
<span class="count">
<span class="yuan">
+ ¥{$vo.cost}
</span>
<span class="hu">
账户充值
</span>
</span>
</if>
<if condition="$vo.type eq '2'">
<span class="pay refund">
退款
</span>
<span class="count">
<span class="yuan">
+ ¥{$vo.cost}
</span>
<span class="hu">
账户退款
</span>
</span>
</if>
</span>
<span class="time">
{$vo.create_time}
</span>
</li>
</volist>
</ul>
<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
<script type="text/javascript" src="__TMPL__/static/index.js"></script>
<script>
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="">
<include file="public@head" />
</head>
<body class="body-white">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h2 class="text-center">用户登录</h2>
<form class="js-ajax-form" action="{:url('user/login/doLogin')}" method="post">
<div class="form-group">
<input type="text" id="input_username" name="username" placeholder="手机号/邮箱/用户名" class="form-control">
</div>
<div class="form-group">
<input type="password" id="input_password" name="password" placeholder="密码" class="form-control">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control captcha" style="width: 170px;float: left;margin-right: 30px">
<captcha height="38" width="160" font-size="20"/>
</div>
</div>
<div class="form-group">
<input type="hidden" name="redirect" value="">
<button class="btn btn-primary btn-block js-ajax-submit" type="submit" style="margin-left: 0px">确定</button>
</div>
<div class="form-group" style="text-align: center;">
<ul class="list-inline">
<li><a href="{:cmf_url('user/Register/index')}">现在注册</a></li>
<li><a href="{:cmf_url('user/Login/findPassword')}">忘记密码</a></li>
</ul>
</div>
</form>
</div>
</div>
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>{$site_info.site_name}</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
<style type="text/css">
.tab-content {
overflow: visible;
}
.uploaded_avatar_area {
margin-top: 20px;
}
.uploaded_avatar_btns {
margin-top: 20px;
}
.uploaded_avatar_area .uploaded_avatar_btns {
display: none;
}
</style>
</head>
<body class="body-white" id="top">
<include file="public@nav"/>
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav"/>
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-user"></i> 修改头像</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<if condition="empty($avatar)">
<img src="__TMPL__/public/assets/images/headicon_128.png" class="headicon" width="128"/>
<else/>
<img src="{:cmf_get_user_avatar_url($avatar)}?t={:time()}" class="headicon" width="128"/>
</if>
<input type="file" onchange="avatar_upload(this)" id="avatar_uploder" name="file"/>
<div class="uploaded_avatar_area">
<div class="uploaded_avatar_btns">
<a class="btn btn-primary confirm_avatar_btn" onclick="update_avatar()">确定</a>
<a class="btn" onclick="reloadPage()">取消</a>
</div>
</div>
<p class="help-block">头像支持jpg,png,jpeg格式,文件大小最大不能超过1M</p>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer"/>
</div>
<!-- /container -->
<include file="public@scripts"/>
<script type="text/javascript">
function update_avatar() {
var area = $(".uploaded_avatar_area img").data("area");
$.post("{:url('Profile/avatarUpdate')}", area, function (data) {
if (data.code == 1) {
reloadPage(window);
}
}, "json");
}
function avatar_upload(obj) {
var $fileinput = $(obj);
/* $(obj)
.show()
.ajaxComplete(function(){
$(this).hide();
}); */
Wind.css("jcrop");
Wind.use("ajaxfileupload", "jcrop", "noty", function () {
$.ajaxFileUpload({
url: "{:url('Profile/avatarUpload')}",
secureuri: false,
fileElementId: "avatar_uploder",
dataType: 'json',
data: {},
success: function (data, status) {
if (data.code == 1) {
$("#avatar_uploder").hide();
var $uploaded_area = $(".uploaded_avatar_area");
$uploaded_area.find("img").remove();
var src = "__ROOT__/upload/" + data.data.file;
var $img = $("<img/>").attr("src", src);
$img.prependTo($uploaded_area);
$(".uploaded_avatar_btns").show();
var img = new Image();
img.src = src;
var callback = function () {
console.log(img.width);
$img.Jcrop({
aspectRatio: 1,
trueSize: [img.width, img.height],
setSelect: [0, 0, 100, 100],
onSelect: function (c) {
$img.data("area", c);
}
});
}
if (img.complete) {
callback();
} else {
img.onload = callback;
}
} else {
noty({
text: data.msg,
type: 'error',
layout: 'center',
callback: {
afterClose: function () {
reloadPage(window);
}
}
});
}
},
error: function (data, status, e) {
}
});
});
return false;
}
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 绑定账号</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav" />
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-exchange"></i> 绑定账号</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<if condition="!$mobile">
<form class="js-ajax-form" action="{:url('user/Profile/bindingMobile')}" method="post">
<div class="form-group">
<label for="js-mobile-input">手机号</label>
<div style="position: relative;height: 38px;">
<input type="text" class="form-control" placeholder="手机号"id="js-mobile-input" name="username" style="width: 180px;float: left;margin-right: 30px">
<input type="text" class="form-control" placeholder="手机验证码" name="verification_code" style="width: 180px;float: left;margin-right: 30px">
<a class="btn btn-success js-get-mobile-code" style="width: 180px;float: left;margin-right: 30px" data-wait-msg="[second]后才能再次获取" data-mobile-input="#js-mobile-input" data-url="{:url('user/VerificationCode/send')}">获取手机验证码</a>
<button type="submit" class="btn btn-primary js-ajax-submit"style="width: 170px;position: absolute;top:0;right: 0;">验证</button>
</div>
</div>
</form>
<else />
<div class="form-group">
<label for="js-mobile">手机号</label>
<div style="position: relative;height: 38px;">
<input type="text" class="form-control" placeholder="邮箱"id="js-mobile" name="mobile" value="{$mobile}" disabled>
<button type="submit" class="btn"style="width: 170px;position: absolute;top:0;right: 0;">已绑定邮箱</button>
</div>
</div>
</if>
<if condition="empty($user_email)">
<form class="js-ajax-form" action="{:url('user/Profile/bindingEmail')}" method="post">
<div class="form-group">
<label for="js-email-input">邮箱</label>
<div style="position: relative;height: 38px;">
<input type="text" class="form-control" placeholder="邮箱"id="js-email-input" name="username" style="width: 180px;float: left;margin-right: 30px">
<input type="text" class="form-control" placeholder="邮件验证码" name="verification_code" style="width: 180px;float: left;margin-right: 30px">
<a class="btn btn-success js-get-email-code" style="width: 180px;float: left;margin-right: 30px" data-wait-msg="[second]后才能再次获取" data-email-input="#js-email-input" data-url="{:url('user/VerificationCode/send')}" data-init-second-left="60">获取邮箱验证码</a>
<button type="submit" class="btn btn-primary js-ajax-submit"style="width: 170px;position: absolute;top:0;right: 0;">验证</button>
</div>
</div>
</form>
<else />
<div class="form-group">
<label for="js-email">邮箱</label>
<div style="position: relative;height: 38px;">
<input type="text" class="form-control" placeholder="邮箱"id="js-email" name="mobile" value="{$user_email}" disabled>
<button type="submit" class="btn"style="width: 170px;position: absolute;top:0;right: 0;">已绑定邮箱</button>
</div>
</div>
</if>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 个人中心</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
<style>
.control-label {
font-weight: bold;
float: left;
width: 70px;
}
</style>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav" />
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i>个人中心</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<div class="row">
<div class="col-md-3">
<a href="{:url('profile/avatar')}">
<if condition="empty($avatar)">
<img src="__TMPL__/public/assets/images/headicon_128.png" class="headicon" width="128" />
<else />
<img src="__ROOT__/upload/{$avatar}" class="headicon" width="128"/>
</if>
</a>
</div>
<div class="col-md-9">
<div class="form-group">
<label class="control-label" for="input-user_nicename">昵称</label>
<div>{$user_nickname|default='未填写'}</div>
</div>
<div class="form-group">
<label class="control-label" for="input-sex">性别</label>
<div>
<php> $sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");echo $sexs[$sex]; </php>
</div>
</div>
<div class="form-group">
<label class="control-label" for="input-birthday">生日</label>
<div>{:date('Y-m-d',$birthday)}</div>
</div>
<div class="form-group">
<label class="control-label" for="input-user_url">个人网址</label>
<div>{$user_url|default='未填写'}</div>
</div>
<div class="form-group">
<label class="control-label" for="input-signature">个性签名</label>
<div>{$signature|default='未填写'}</div>
</div>
<div class="form-group">
<a href="{:url('user/profile/edit')}" class="btn btn-primary">编辑</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 修改资料</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav" />
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i> 修改资料</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<form class="js-ajax-form" action="{:url('user/profile/editPost')}" method="post">
<div class="form-group">
<label for="input-user_nickname">昵称</label>
<input type="text" class="form-control" id="input-user_nickname" placeholder="昵称" name="user_nickname" value="{$user_nickname}">
</div>
<div class="form-group">
<label for="input-sex">性别</label>
<php>
$sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");
</php>
<select class="form-control" id="input-sex" name="sex">
<foreach name="sexs" item="vo">
<php>$sexselected=$key==$sex?"selected":"";</php>
<option value="{$key}" {$sexselected}>{$vo}</option>
</foreach>
</select>
</div>
<div class="form-group">
<label for="input-birthday">生日</label>
<input class="form-control js-bootstrap-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="{:date('Y-m-d',$birthday)}">
</div>
<div class="form-group">
<label for="input-user_url">个人网址</label>
<input class="form-control" type="text" id="input-user_url" placeholder="http://bronet.cn" name="user_url" value="{$user_url}">
</div>
<div class="form-group">
<label for="input-signature">个性签名</label>
<textarea class="form-control" id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>{$user_login} - 修改密码</title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white" id="top">
<include file="public@nav" />
<div class="container tc-main">
<div class="row">
<div class="col-md-3">
<include file="public@usernav" />
</div>
<div class="col-md-9">
<div class="tabs">
<ul class="nav nav-tabs">
<li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-lock"></i> 修改密码</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="one">
<br>
<form class="js-ajax-form" action="{:url('user/Profile/passwordPost')}" method="post">
<div class="form-group">
<label for="input-old_password">原始密码</label>
<input type="password" class="form-control" id="input-old_password" placeholder="原始密码" name="old_password">
</div>
<div class="form-group">
<label for="input-password">新密码</label>
<input type="password" class="form-control" id="input-password" placeholder="新密码" name="password">
</div>
<div class="form-group">
<label for="input-repassword">重复密码</label>
<input type="password" class="form-control" id="input-repassword" placeholder="重复密码" name="repassword">
</div>
<div class="form-group">
<button type="submit" class="btn js-ajax-submit" style="margin-right: 50px">保存</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<include file="public@footer" />
</div>
<!-- /container -->
<include file="public@scripts" />
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="keywords" content=""/>
<meta name="description" content="">
<include file="public@head"/>
</head>
<body class="body-white">
<include file="public@nav"/>
<div class="container tc-main">
<div class="row">
<div class="col-md-4 col-md-offset-4">
<h2 class="text-center">用户注册</h2>
<php>
$mobile_tab_active=empty($theme_vars['enable_mobile'])?'':'active';
$email_tab_active=empty($theme_vars['enable_mobile'])?'active':'';
</php>
<notempty name="theme_vars.enable_mobile">
<ul class="nav nav-tabs nav-justified" id="myTab" style="margin-bottom: 15px;">
<li class="active"><a href="#mobile" data-toggle="tab">手机注册</a></li>
<li><a href="#email" data-toggle="tab">邮箱注册</a></li>
</ul>
</notempty>
<php>
$is_open_registration = cmf_is_open_registration();
</php>
<div class="tab-content">
<notempty name="theme_vars.enable_mobile">
<div class="tab-pane {$mobile_tab_active}" id="mobile">
<form class="js-ajax-form" action="{:url('user/Register/doRegister')}" method="post">
<div class="form-group">
<input type="text" name="username" placeholder="手机号" class="form-control"
id="js-mobile-input">
</div>
<empty name="is_open_registration">
<div class="form-group">
<div style="position: relative;">
<input type="text" name="code" placeholder="手机验证码" style="width:170px;"
class="form-control">
<a class="btn btn-success js-get-mobile-code"
style="width: 163px;position: absolute;top:0;right: 0;"
data-wait-msg="[second]秒后才能再次获取" data-mobile-input="#js-mobile-input"
data-url="{:url('user/VerificationCode/send')}"
data-init-second-left="60">获取手机验证码</a>
</div>
</div>
</empty>
<div class="form-group">
<input type="password" name="password" placeholder="密码" class="form-control">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control"
style="width: 170px;float: left;margin-right: 30px">
<captcha height="38" width="160" font-size="20"/>
</div>
</div>
<div class="form-group">
<button class="btn btn-primary btn-block js-ajax-submit" type="submit" data-wait="1500"
style="margin-left: 0px;">确定注册
</button>
</div>
<div class="form-group" style="text-align: center;">
<p>
已有账号? <a href="{:cmf_url('user/Login/index')}">点击此处登录</a>
</p>
</div>
</form>
</div>
</notempty>
<div class="tab-pane {$email_tab_active}" id="email">
<form class="js-ajax-form" action="{:url('user/register/doRegister')}" method="post">
<div class="form-group">
<input type="text" name="username" placeholder="邮箱" class="form-control"
id="js-email-input">
</div>
<empty name="is_open_registration">
<div class="form-group">
<div style="position: relative;">
<input type="text" name="code" placeholder="邮件验证码" style="width:170px;"
class="form-control">
<a class="btn btn-success js-get-email-code"
style="width: 163px;position: absolute;top:0;right: 0;"
data-wait-msg="[second]秒后才能再次获取" data-email-input="#js-email-input"
data-url="{:url('user/VerificationCode/send')}"
data-init-second-left="60">获取邮箱验证码</a>
</div>
</div>
</empty>
<div class="form-group">
<input type="password" name="password" placeholder="密码" class="form-control">
</div>
<div class="form-group">
<div style="position: relative;">
<input type="text" name="captcha" placeholder="验证码" class="form-control"
style="width: 170px;float: left;margin-right: 30px">
<captcha height="38" width="160" font-size="20"/>
</div>
</div>
<div class="form-group">
<button class="btn btn-primary btn-block js-ajax-submit" type="submit" data-wait="1500"
style="margin-left: 0px;">确定注册
</button>
</div>
<div class="form-group" style="text-align: center;">
<p>
已有账号? <a href="{:cmf_url('user/Login/index')}">点击此处登录</a>
</p>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- /container -->
<include file="public@scripts"/>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>我的钱包</title>
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
<script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_6y9erxzbkn2.css" />
<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
</script>
<link rel="stylesheet" href="__TMPL__/static/css/wallet.css" />
<style type="text/css">
.swiper-container {
height: 3.6rem;
}
.swiper-container-horizontal>.swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
left: 44%;
}
</style>
</head>
<body>
<div class="show">
<div class="tu">
<i class="iconfont icon-qianbao"></i>
<span class="pic">当前余额 ¥{$balance}</span>
</div>
</div>
<ul class="list">
<a href="myWallet.html">
<li>
<span class="real">我要充值</span>
<i class="iconfont icon-common-jinru-copy"></i>
</li>
</a>
<a href="{:url('Center/walletLog')}">
<li>
<span class="real">消费明细记录</span>
<i class="iconfont icon-common-jinru-copy"></i>
</li>
</a>
</ul>
</body>
</html>
\ No newline at end of file
... ...