import { memberCountDown } from '../public/commonFun.js';
import { fetchApi,onError} from '../public/api/fetch.js';
import { layerPopup} from '../public/commonFun.js';
import { apiPayPackage } from '../public/api/index.js';
import { getLoginStatus }from '../public/localstorage.js';
$(document).ready(function() {
// 登录状态
if (getLoginStatus()) {
//getUserInfo()
}else{
location.href="/login.html"
}
//限时优惠倒计时 无限循环
memberCountDown()
getOrderList()
function getOrderList() {
fetchApi(apiPayPackage, null,successFn, onError)
function successFn(res) {
if (res.code == '000') {
if (res.data.item.length != 0) {
res.data.item.forEach((card) => {
if (card.vp_id == 4) {
var $list = $(".yh-tc-yjvip");
var html = '';
html += `