用户中心(百搭)YtUser修复自带界面购买页面错误;优化会员等级显示名称;
时间:2023年09月14日
/来源:网络
/编辑:佚名
3 个文件发生了变化
第一个: YtUser/template/t_buy.php
{if !$zbp->Config('YtUser')->payment}
<li class="col-24 col-m-24"><p class="tx-input-full"><button type="button" onclick="return Ytbuypay();" class="tx-btn tx-btn-big bg-black">提交</button></p></li>
{else}
{if $zbp->Config('YtUser')->payment=='2'}
<li class="col-24 col-m-24"><p class="tx-input-full"><button type="button" onclick="return Ytbuypay();" class="tx-btn tx-btn-big bg-black">余额支付</button></p></li>
{/if}
<li class="col-24 col-m-24"><p class="tx-input-full"><button type="button" onclick="return VipRegPage();" class="tx-btn tx-btn-big bg-black">支付宝</button></p></li>
<script type="text/javascript">function VipRegPage(){document.getElementById("edit").action="{$host}zb_users/plugin/YtUser/cmd.php?act=UploadPst&token={$zbp->GetToken()}";}</script>
{/if}
第二个: YtUser/template/t_upgrade.php
{template:t_header}
<div class="col-19 col-m-24">
<div class="tx-box bg-white pd15 mb15">
<h2 class="f-22 mb10">会员级别:{if $user.Level > 4}普通会员{else}VIP会员{/if} {if $user.Level < 5}<span class="f-14">到期时间:{if $user.Level == 1}永久有效{else}{$user.Vipendtime}{/if}</span>{/if}</h2>
<h2 class="f-22 mb10">会员级别:{if $user.Level > 4}普通用户{else}VIP会员{/if} {if $user.Level < 5}<span class="f-14">到期时间:{if $user.Level == 1}永久有效{else}{$user.Vipendtime}{/if}</span>{/if}</h2>
<p>{$zbp.Config('YtUser').readme_text}</p>
</div>
第三个: YtUser/template/t_user.php
<div class="col-19 col-m-24">
<div class="user-information">
<ul class="row">
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Upgrade}" class="bg-cyan"><i class="iconfont icon-crown"></i> {if $user.Level < 4}VIP会员{else}普通会员{/if}</a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Upgrade}" class="bg-cyan"><i class="iconfont icon-crown"></i> {if $user.Level <= 4}VIP会员{else}普通用户{/if}</a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Integral}" class="bg-blue"><i class="iconfont icon-recharge"></i> 余额 {$user.YtUser('Price')} </a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Articlelist}" class="bg-orange"><i class="iconfont icon-copy"></i> 文章 {$zbp->user->Articles}</a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Commentlist}" class="bg-green"><i class="iconfont icon-liuyan"></i> 评论 {$zbp->user->Comments}</a></li>
第一个: YtUser/template/t_buy.php
{if !$zbp->Config('YtUser')->payment}
<li class="col-24 col-m-24"><p class="tx-input-full"><button type="button" onclick="return Ytbuypay();" class="tx-btn tx-btn-big bg-black">提交</button></p></li>
{else}
{if $zbp->Config('YtUser')->payment=='2'}
<li class="col-24 col-m-24"><p class="tx-input-full"><button type="button" onclick="return Ytbuypay();" class="tx-btn tx-btn-big bg-black">余额支付</button></p></li>
{/if}
<li class="col-24 col-m-24"><p class="tx-input-full"><button type="button" onclick="return VipRegPage();" class="tx-btn tx-btn-big bg-black">支付宝</button></p></li>
<script type="text/javascript">function VipRegPage(){document.getElementById("edit").action="{$host}zb_users/plugin/YtUser/cmd.php?act=UploadPst&token={$zbp->GetToken()}";}</script>
{/if}
第二个: YtUser/template/t_upgrade.php
{template:t_header}
<div class="col-19 col-m-24">
<div class="tx-box bg-white pd15 mb15">
<h2 class="f-22 mb10">会员级别:{if $user.Level > 4}普通会员{else}VIP会员{/if} {if $user.Level < 5}<span class="f-14">到期时间:{if $user.Level == 1}永久有效{else}{$user.Vipendtime}{/if}</span>{/if}</h2>
<h2 class="f-22 mb10">会员级别:{if $user.Level > 4}普通用户{else}VIP会员{/if} {if $user.Level < 5}<span class="f-14">到期时间:{if $user.Level == 1}永久有效{else}{$user.Vipendtime}{/if}</span>{/if}</h2>
<p>{$zbp.Config('YtUser').readme_text}</p>
</div>
第三个: YtUser/template/t_user.php
<div class="col-19 col-m-24">
<div class="user-information">
<ul class="row">
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Upgrade}" class="bg-cyan"><i class="iconfont icon-crown"></i> {if $user.Level < 4}VIP会员{else}普通会员{/if}</a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Upgrade}" class="bg-cyan"><i class="iconfont icon-crown"></i> {if $user.Level <= 4}VIP会员{else}普通用户{/if}</a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Integral}" class="bg-blue"><i class="iconfont icon-recharge"></i> 余额 {$user.YtUser('Price')} </a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Articlelist}" class="bg-orange"><i class="iconfont icon-copy"></i> 文章 {$zbp->user->Articles}</a></li>
<li class="col-6 col-m-12 mb15"><a href="{$host}{$zbp->Config('YtUser')->YtUser_Commentlist}" class="bg-green"><i class="iconfont icon-liuyan"></i> 评论 {$zbp->user->Comments}</a></li>
新闻资讯 更多
热门文章
- 178Moban源码谈谈免费源码与收费源码的区别
- 2帝国CMS忘记后台登陆用户名、密码、认证码的解决方法
- 3帝国CMS(EmpireCMS) v7.5后台任意代码执行漏洞及具体修复方法
- 4帝国CMS和WordPress 哪个好?哪个适合建站?
- 5如何解决Discuz的密码错误次数过多请15分钟后登陆的问题
- 6帝国cms灵动标签取得内容和栏目链接地址
- 7emlog pro 注册码“开心”教程(如果有一天,emlog官方版 或者 emlog免费版 跑路了,那用户怎么办?)
- 8织梦CMS在nginx下设置伪静态方法(附nginx伪静态规则)
- 9帝国cms后台登录出现”您还未登录”怎么解决?
- 10帝国cms7.5忘记登录密码 和忘记登录认证码以及多次登录 失败被锁定解决办法