Unipay-H5/index.html

143 lines
6.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<!-- A11Y注意设置页面的 lang 属性 -->
<html lang="zh">
<head>
<meta charset="utf-8" />
<!-- A11Y打开页面时屏幕阅读器会首先阅读 title 的内容,确保 title 准确描述页面 -->
<title>权益会员N选1</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no, email=no" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" />
<!-- A11Y如果有无障碍方面的需求建议使用下面的 viewport 设置,不要禁止页面缩放 -->
<!--<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />-->
<script>
var docEl = document.documentElement;
docEl.style.fontSize = 100 / 375 * docEl.clientWidth + 'px';
window.addEventListener('resize', function () {
docEl.style.fontSize = 100 / 375 * docEl.clientWidth + 'px';
});
</script>
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/common/axios.js?v=1367936144999"></script>
<script src="./dof-api.js"></script>
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/libs/vue.global.js"></script>
<link rel="stylesheet" href="https://gw.alipayobjects.com/as/g/antui/antui/10.1.10/rem/widget/toast.css">
<link rel="stylesheet" href="./index-style.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div id="app">
<div v-if="state.showPage">
<div class="banner"></div>
<div class="goods-box">
<div class="goods-list-box-bg">
<div class="goods-list-box">
<h2 class="goods-title">兑换商品列表</h2>
<div class="goods-main">
<div class="goods-info" v-for="item in 6">
<img src="https://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/department-of-finance/img/tx-box-icon.png"
alt="">
<div class="goods-info-text">
<p class="goods-name">腾讯视频VIP</p>
<p class="goods-type">会有月卡</p>
</div>
<div class="goods-checked">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
fill="none" version="1.1" width="11" height="8" viewBox="0 0 11 8">
<g>
<path
d="M10.7716,0.256416C10.4617,-0.0798496,9.95367,-0.0861736,9.6369,0.242132L4.16883,5.90732L1.34478,2.91081C1.05152,2.59933,0.559823,2.61661,0.246253,2.94906C-0.0673045,3.28156,-0.0836348,3.80343,0.209982,4.11484L3.66203,7.77757C3.95522,8.08862,4.44698,8.07134,4.76048,7.7389C4.83232,7.66275,4.8861,7.57641,4.92645,7.48511C4.95749,7.46114,4.98845,7.4384,5.01657,7.40895L10.7582,1.46051C11.0754,1.13188,11.0811,0.593098,10.7716,0.256416L10.7716,0.256416Z"
fill="#4B99FB" fill-opacity="1" />
</g>
</svg>
</div>
</div>
</div>
<div class="goods-btn">
立即兑换
</div>
</div>
</div>
</div>
<div class="pop" v-show="state.showPop">
<div class="pop-main">
<img src="https://lsxd-customcard-h5.oss-cn-hangzhou.aliyuncs.com/department-of-finance/img/pop-bg.png"
alt="">
<div class="pop-info">
<h1>充值确认</h1>
<p class="pop-msg">即将充值到尾号0829的手机号</p>
<p class="pop-pip">该权益只能充值到银联无界卡数字生活礼遇活动报名手机号</p>
</div>
<div class="pop-footer">
<button type="button" class="close-btn">取消</button>
<button type="button" class="ok-btn">我已确认</button>
</div>
</div>
</div>
</div>
<div v-else class="skeleton-box">
<div class="skeleton-loader" style="width: 2rem; height: 0.3rem;"></div>
<div class="skeleton-loader" style="height: 0.2rem;"></div>
<div class="skeleton-loader" style="height: 0.2rem;"></div>
<div class="skeleton-loader" style="height: 0.2rem;"></div>
<div class="skeleton-loader" style="height: 0.2rem;"></div>
<div class="skeleton-loader" style="width: 2.5rem; height: 0.2rem;"></div>
</div>
<div class="am-toast text" v-show="state.toast">
<div class="am-toast-text">
{{ state.toastText }}
</div>
</div>
</div>
</body>
<script>
const { createApp, ref, onMounted, reactive } = Vue
createApp({
setup() {
const state = reactive({
token: "",
showPage: false,
showPop: "",
checkedGoods: "",
toast: false,
toastText: ""
})
// 获取商品列表
const getGoodsList = () => {
}
onMounted(() => {
const url = new URL(window.location.href);
const searchParams = new URLSearchParams(url.search);
const token = searchParams.get("token");
if (token) {
state.token = token;
}
})
return {
state
}
}
}).mount('#app')
</script>
</html>