feat:增加详情地址
This commit is contained in:
parent
1bc59b0092
commit
15b63a143f
|
@ -26,6 +26,7 @@
|
|||
<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="./detail-style.css">
|
||||
<link rel="stylesheet" href="./style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#app {
|
||||
width: 100%;
|
||||
padding-bottom: 0.2rem;
|
||||
background-color: #3387c2;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
|
@ -132,6 +131,7 @@
|
|||
top: 0;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pop-main {
|
||||
|
|
54
index.html
54
index.html
|
@ -25,11 +25,14 @@
|
|||
<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">
|
||||
|
@ -66,7 +69,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="pop">
|
||||
<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="">
|
||||
|
@ -84,11 +87,56 @@
|
|||
</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 } = Vue
|
||||
const { createApp, ref, onMounted, reactive } = Vue
|
||||
createApp({
|
||||
setup() { }
|
||||
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>
|
||||
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
.skeleton-box {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background-color: #ffffff;
|
||||
padding: 0.2rem 0.1rem;
|
||||
}
|
||||
|
||||
.skeleton-loader {
|
||||
width: 100%;
|
||||
height: 1rem;
|
||||
border-radius: 0.04rem;
|
||||
background: #f0f0f0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.skeleton-loader::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
transparent 0%,
|
||||
#e3e3e3 50%,
|
||||
transparent 100%
|
||||
);
|
||||
animation: loading 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes loading {
|
||||
0% {
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
100% {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue