|
@@ -516,10 +516,6 @@
|
|
|
@endif -->
|
|
|
</div>
|
|
|
<p class="vip-tips">温馨提示:VIP会员到期后将直接转为非VIP会员</p>
|
|
|
-
|
|
|
- <p class="pay-line">
|
|
|
- 优惠券:<span id="coupon-price">10元</span> <span id="btn-coupon" style="color:#999; text-decoration: underline; font-size:12px; margin-left:15px;cursor: pointer;" onclick="showCoupon(true)">查看优惠券</span>
|
|
|
- </p>
|
|
|
<p class="pay-line">
|
|
|
支付金额:<span id="payMoney" class="money-color">0</span>元
|
|
|
</p>
|
|
@@ -586,19 +582,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
-<div class="coupon-modal" id="coupon-modal">
|
|
|
- <div class="coupon-bg">
|
|
|
- <span class="coupon-close" onclick="showCoupon(false)">+</span>
|
|
|
- <div>
|
|
|
- <span style="color:#ed4014;">¥</span><span class="coupon-price">10</span> <span class="coupon-desc">满{{ floatval($productInfo->price4) + 10 }}元可用</span>
|
|
|
- </div>
|
|
|
- <div class="coupon-time">有效期至<span id="coupon-time">2022-12-31 13:66:24</span></div>
|
|
|
- <div class="coupon-tips">新人有礼活动,仅适用于本软件</div>
|
|
|
- </div>
|
|
|
-
|
|
|
-</div>
|
|
|
-
|
|
|
-
|
|
|
<script type="text/javascript" src="/static/js/qrcode.js"></script>
|
|
|
<script>
|
|
|
let buyContext;
|
|
@@ -644,7 +627,7 @@
|
|
|
createPayCode();
|
|
|
|
|
|
// 账户登录信息
|
|
|
- getUserInfo();
|
|
|
+ // getUserInfo();
|
|
|
|
|
|
function createPayCode() {
|
|
|
document.getElementById('spinnerShow').style.display = ""
|
|
@@ -753,17 +736,6 @@
|
|
|
axios.post(target + '/api/login/getUserInfo', {}, {headers: {Authorization: token}}).then(function (response) {
|
|
|
if (!response.data.error) {
|
|
|
let userInfo = response.data.result;
|
|
|
- let nowDate = new Date().getTime() / 1000;
|
|
|
- document.getElementById('coupon-time').innerText = formatTime(Number(userInfo.created_at)+86400);
|
|
|
- document.getElementById('btn-coupon').style.display = 'block';
|
|
|
- if(Number(userInfo.created_at) + 86400 < Number(nowDate)){ // 注册时间超过1天
|
|
|
- document.getElementById('coupon-price').innerText = '暂无可用优惠券';
|
|
|
- document.getElementById('btn-coupon').style.display = 'none';
|
|
|
- document.getElementById('permanentPrice').innerHTML = permanentPrice;
|
|
|
- }else{
|
|
|
- document.getElementById('coupon-modal').style.display = "block";
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
}).catch(function (error) {
|
|
|
|
|
@@ -788,14 +760,6 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- function showCoupon(e){
|
|
|
- if(e){
|
|
|
- document.getElementById('coupon-modal').style.display = "block";
|
|
|
- }else{
|
|
|
- document.getElementById('coupon-modal').style.display = "none";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
function formatTime(str){
|
|
|
let date = new Date(str*1000);
|
|
|
const year = date.getFullYear();
|