3 changed files with 476 additions and 479 deletions
@ -1,482 +1,478 @@ |
|||||
<template> |
<template> |
||||
<!-- <Loading class="loading-div" type="spinner" v-show="isLoading" color="#1989fa"/>--> |
<!-- <Loading class="loading-div" type="spinner" v-show="isLoading" color="#1989fa"/> --> |
||||
<!-- <div class="home app_content" v-if="!isLoading">--> |
<!-- <div class="home app_content" v-if="!isLoading"> --> |
||||
<div class="home app_content"> |
<div class="home app_content"> |
||||
<!-- 导航栏 --> |
<!-- 导航栏 --> |
||||
<!-- <div class="header_body">--> |
<!-- <div class="header_body">--> |
||||
<!-- <header-nav :leftArrow="false" titelText="执法监督码"></header-nav>--> |
<!-- <header-nav :leftArrow="false" titelText="执法监督码"></header-nav>--> |
||||
<!-- </div>--> |
<!-- </div>--> |
||||
|
|
||||
<!-- 中间 --> |
<!-- 中间 --> |
||||
<div class="warp_body"> |
<div class="warp_body"> |
||||
<div class="logobox"></div> |
<div class="logobox"></div> |
||||
<!-- <refresh-list v-model:freshMap="freshMap" @refresh="onRefresh" @onLoad="onLoad"> --> |
<!-- <refresh-list v-model:freshMap="freshMap" @refresh="onRefresh" @onLoad="onLoad"> --> |
||||
<div class="carousel_box" @onLoad="onLoad"> |
<div class="carousel_box" @onLoad="onLoad"> |
||||
<carousel-card v-if="carouselList.length" v-model:carouselList="carouselList"></carousel-card> |
<carousel-card v-if="carouselList.length" v-model:carouselList="carouselList"></carousel-card> |
||||
</div> |
</div> |
||||
<div class="boutique_box"> |
<div class="boutique_box"> |
||||
<!-- <van-cell :border="false" title="精品" /> --> |
<!-- <van-cell :border="false" title="精品" /> --> |
||||
<div class="boutique_body"> |
<div class="boutique_body"> |
||||
<!-- <goodsCard :goodsList="boutique" :cardAttr="boutiqueAttr"></goodsCard> --> |
<!-- <goodsCard :goodsList="boutique" :cardAttr="boutiqueAttr"></goodsCard> --> |
||||
<div class="box-qr-code" @click="toRegisterView"> |
<div class="box-qr-code" @click="toRegisterView"> |
||||
<span class="box-qr-code-text">执法监督码</span> |
<span class="box-qr-code-text">执法监督码</span> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
<div class="boutique_body"> |
<div class="boutique_body"> |
||||
<!-- <goodsCard :goodsList="boutique" :cardAttr="boutiqueAttr"></goodsCard> --> |
<!-- <goodsCard :goodsList="boutique" :cardAttr="boutiqueAttr"></goodsCard> --> |
||||
<div class="box-info" @click="toRegistrationListView"> |
<div class="box-info" @click="toRegistrationListView"> |
||||
<span class="box-info-text">历史检查信息</span> |
<span class="box-info-text">历史检查信息</span> |
||||
</div> |
</div> |
||||
<div class="box-complaint" @click="toComplaintView"> |
<div class="box-complaint" @click="toComplaintView"> |
||||
<span class="box-complaint-text">执法投诉</span> |
<span class="box-complaint-text">执法投诉</span> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
<!-- <div class="recommend_box"> |
<!-- <div class="recommend_box"> |
||||
<van-cell :border="false" title="推荐" /> |
<van-cell :border="false" title="推荐" /> |
||||
<div class="recommend_body"> |
<div class="recommend_body"> |
||||
<goodsCard :goodsList="recommend"></goodsCard> |
<goodsCard :goodsList="recommend"></goodsCard> |
||||
</div> |
</div> |
||||
</div> --> |
</div> --> |
||||
<!-- </refresh-list> --> |
<!-- </refresh-list> --> |
||||
</div> |
</div> |
||||
|
|
||||
<!-- 底部 --> |
<!-- 底部 --> |
||||
<div class="footer_body"> |
<div class="footer_body"> |
||||
<footer-nav></footer-nav> |
<footer-nav></footer-nav> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script setup name="Home"> |
<script setup name="Home"> |
||||
import Vconsolefrom from 'vconsole'; |
import Vconsolefrom from 'vconsole'; |
||||
import * as w6s from 'szient-js-sdk'; |
import * as w6s from 'szient-js-sdk'; |
||||
import sha1 from 'crypto-js/sha1'; |
import sha1 from 'crypto-js/sha1'; |
||||
import {getEnterpriseMerchantAuthorization, getSiqLoginAuth, getSiqLoginAuthTest, siqCode} from '../api/Home'; |
import {getEnterpriseMerchantAuthorization, getSiqLoginAuth, getSiqLoginAuthTest, siqCode} from '../api/Home'; |
||||
import {Loading, showFailToast, showSuccessToast} from "vant"; |
import {Loading, showFailToast, showSuccessToast} from "vant"; |
||||
import 'vant/es/toast/style'; |
import 'vant/es/toast/style'; |
||||
const {useCommon} = $globalStore; |
const {useCommon} = $globalStore; |
||||
const router = useRouter(); |
const router = useRouter(); |
||||
const route = useRoute(); |
const route = useRoute(); |
||||
let carouselList = reactive([]); // 轮播列表 |
let carouselList = reactive([]); // 轮播列表 |
||||
const isLoading = ref(true); |
const isLoading = ref(true); |
||||
let freshMap = reactive({ |
let freshMap = reactive({ |
||||
refreshLoad: false, // 是否刷新 |
refreshLoad: false, // 是否刷新 |
||||
listLoading: false, // 是否加载中 |
listLoading: false, // 是否加载中 |
||||
listFinished: false, // 是否加载完成标识 |
listFinished: false, // 是否加载完成标识 |
||||
}); |
}); |
||||
const data = reactive({}); |
const data = reactive({}); |
||||
const boutiqueAttr = reactive({ |
const boutiqueAttr = reactive({ |
||||
columnNum: 4, |
columnNum: 4, |
||||
itemClass: "boutique_item", |
itemClass: "boutique_item", |
||||
goodsCradclass: "boutique-crad", |
goodsCradclass: "boutique-crad", |
||||
}); // 商品卡片展示 |
}); // 商品卡片展示 |
||||
|
|
||||
//获取轮播 |
//获取轮播 |
||||
const getCarousel = async () => { |
const getCarousel = async () => { |
||||
// const res = await useHome.getCarousel(); |
// const res = await useHome.getCarousel(); |
||||
// if (res?.code === 20000) { |
// if (res?.code === 20000) { |
||||
// carouselList = res?.data; |
// carouselList = res?.data; |
||||
// } |
// } |
||||
}; |
}; |
||||
|
|
||||
//精品 |
//精品 |
||||
const boutiqueGoods = async () => { |
const boutiqueGoods = async () => { |
||||
// const res = await useHome.boutiqueGoods(); |
// const res = await useHome.boutiqueGoods(); |
||||
// if (res?.code === 20000) { |
// if (res?.code === 20000) { |
||||
// boutique = res?.data; |
// boutique = res?.data; |
||||
// } |
// } |
||||
}; |
}; |
||||
|
|
||||
const toRegisterView = async () => { |
const toRegisterView = async () => { |
||||
if (useCommon.enterpriseNumber == null || useCommon.enterpriseNumber == "") { |
if (useCommon.enterpriseNumber == null || useCommon.enterpriseNumber == "") { |
||||
router.push({path: "/enterprise/register"}); |
router.push({path: "/enterprise/register"}); |
||||
} else { |
} else { |
||||
router.push({ |
router.push({ |
||||
path: "/enterprise/qrCode", |
path: "/enterprise/qrCode", |
||||
query: { |
query: { |
||||
enterpriseNumber: useCommon.enterpriseNumber, |
enterpriseNumber: useCommon.enterpriseNumber, |
||||
} |
} |
||||
}); |
}); |
||||
} |
} |
||||
}; |
}; |
||||
|
|
||||
const toRegistrationListView = async () => { |
const toRegistrationListView = async () => { |
||||
router.push({ |
router.push({ |
||||
path: "/enterprise/registrationList", |
path: "/enterprise/registrationList", |
||||
}); |
}); |
||||
} |
} |
||||
const toComplaintView = async () => { |
const toComplaintView = async () => { |
||||
router.push({ |
router.push({ |
||||
path: "/compaintBase", |
path: "/compaintBase", |
||||
query: { |
query: { |
||||
isSelect: true |
isSelect: true |
||||
} |
} |
||||
}); |
}); |
||||
} |
} |
||||
|
|
||||
//下拉刷新 |
//下拉刷新 |
||||
const onRefresh = () => { |
const onRefresh = () => { |
||||
freshMap.listFinished = false; |
freshMap.listFinished = false; |
||||
freshMap.listLoading = true; |
freshMap.listLoading = true; |
||||
freshMap.refreshLoad = true; |
freshMap.refreshLoad = true; |
||||
// Promise.all([getCarousel(), boutiqueGoods(), recommendGoods()]).then(() => { |
// Promise.all([getCarousel(), boutiqueGoods(), recommendGoods()]).then(() => { |
||||
// freshMap.refreshLoad = false; |
// freshMap.refreshLoad = false; |
||||
// }); |
// }); |
||||
}; |
}; |
||||
|
|
||||
// 触底加载 |
// 触底加载 |
||||
const onLoad = () => { |
const onLoad = () => { |
||||
// recommendGoods(true); |
// recommendGoods(true); |
||||
}; |
}; |
||||
|
|
||||
const generateRandomNumber = () => { |
const generateRandomNumber = () => { |
||||
const min = 100000; |
const min = 100000; |
||||
const max = 999999; |
const max = 999999; |
||||
const randomNum = (Math.floor(Math.random() * (max - min + 1)) + min); |
const randomNum = (Math.floor(Math.random() * (max - min + 1)) + min); |
||||
return randomNum.toString().padStart(6, '0'); |
return randomNum.toString().padStart(6, '0'); |
||||
} |
} |
||||
|
|
||||
const getEnterpriseMerchant = (phoneNumber) => { |
const getEnterpriseMerchant = (phoneNumber) => { |
||||
getEnterpriseMerchantAuthorization({merchantTel: phoneNumber}, success => { |
getEnterpriseMerchantAuthorization({merchantTel: phoneNumber}, success => { |
||||
console.log("-----> : ", success); |
if (!(success.data == null && success.data.length == 0)) { |
||||
if (!(success.data == null && success.data.length == 0)) { |
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber); |
||||
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber); |
} |
||||
} |
}, error => { |
||||
}, error => { |
}) |
||||
}) |
} |
||||
} |
|
||||
|
onMounted(() => { |
||||
const getEnterpriseMerchant2 = (enterpriseNumber) => { |
// console.log(useCommon.phonenumber) |
||||
getEnterpriseMerchantAuthorization({enterpriseNumber: enterpriseNumber}, success => { |
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber); |
||||
if (!(success.data == null && success.data.length == 0)) { |
// new Vconsolefrom(); |
||||
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber); |
|
||||
} |
// const access_key = '6374106c5eb449a4ad6c2430f30796e6'; |
||||
}, error => { |
// const access_secret = '434fec85aa5846e88bbeb8fac6cf6d7f'; |
||||
}) |
// generateRandomNumber() |
||||
} |
console.log(useCommon.firstLoad); |
||||
|
isLoading.value = useCommon.firstLoad; |
||||
onMounted(() => { |
siqCode(null, success => { |
||||
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber); |
let access_key = ""; |
||||
// new Vconsolefrom(); |
let access_secret = ""; |
||||
|
if (success.success) { |
||||
// const access_key = '6374106c5eb449a4ad6c2430f30796e6'; |
access_key = success.data.accessKey; |
||||
// const access_secret = '434fec85aa5846e88bbeb8fac6cf6d7f'; |
access_secret = success.data.accessSecret; |
||||
// generateRandomNumber() |
} |
||||
isLoading.value = useCommon.firstLoad; |
|
||||
siqCode(null, success => { |
const nonce = generateRandomNumber(); |
||||
let access_key = ""; |
const timestamp = `${Date.now()}`; |
||||
let access_secret = ""; |
|
||||
if (success.success) { |
const str = [access_secret, nonce, timestamp] |
||||
access_key = success.data.accessKey; |
.sort() |
||||
access_secret = success.data.accessSecret; |
.reduce((str, item) => str += item, ''); |
||||
} |
|
||||
|
// 最终还需要转成全小写 |
||||
const nonce = generateRandomNumber(); |
const signature = sha1(str).toString().toLowerCase(); |
||||
const timestamp = `${Date.now()}`; |
|
||||
|
//深i企鉴权测试 |
||||
const str = [access_secret, nonce, timestamp] |
// getSiqLoginAuthTest({userId: "1608644307579883522", userName: "汪鑫"}, success => { |
||||
.sort() |
// getSiqLoginAuthTest({userId: "1795031916332843009", userName: "陈瑞"}, success => { |
||||
.reduce((str, item) => str += item, ''); |
// console.log(success.data); |
||||
|
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
||||
// 最终还需要转成全小写 |
// useCommon.SET_USER_ID(success.data.userId); |
||||
const signature = sha1(str).toString().toLowerCase(); |
// console.log("-----> success.data: ", success.data); |
||||
|
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
||||
//深i企鉴权测试 |
// useCommon.SET_TOKEN(success.data.token); |
||||
// // getSiqLoginAuthTest({userId: "1430910304107227029", userName: "韦婵娟"}, success => { |
// console.log("-----> useCommon.userId: ", useCommon.userId); |
||||
// getSiqLoginAuthTest({userId: "1795031916332843009", userName: "陈瑞"}, success => { |
// console.log("-----> useCommon.firstLoad: ", useCommon.firstLoad); |
||||
// console.log("-----> getSiqLoginAuthTest : ", success); |
// //设置已经初始化 |
||||
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
// useCommon.SET_IS_FIRST_LOAD(false) |
||||
// useCommon.SET_USER_ID(success.data.userId); |
// getEnterpriseMerchant(success.data.phonenumber.toString()); |
||||
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
// isLoading.value = false; |
||||
// useCommon.SET_TOKEN(success.data.token); |
// }, error => { |
||||
// //设置已经初始化 |
// }) |
||||
// useCommon.SET_IS_FIRST_LOAD(false) |
|
||||
// // getEnterpriseMerchant(success.data.phonenumber.toString()); |
w6s.config({ |
||||
// getEnterpriseMerchant2(success.data.enterpriseNumber); |
access_key: access_key, |
||||
// isLoading.value = false; |
nonce: nonce, |
||||
// }, error => { |
timestamp: timestamp, |
||||
// }) |
signature: signature, |
||||
|
}).then((res) => { |
||||
w6s.config({ |
// 成功 |
||||
access_key: access_key, |
console.log("鉴权", res); |
||||
nonce: nonce, |
|
||||
timestamp: timestamp, |
}).catch((err) => { |
||||
signature: signature, |
// 失败 |
||||
}).then((res) => { |
// console.log(err) |
||||
// 成功 |
console.log("鉴权", err); |
||||
console.log("鉴权", res); |
// todo 临时工 |
||||
|
getEnterpriseMerchant(useCommon.phonenumber.toString()); |
||||
}).catch((err) => { |
}); |
||||
// 失败 |
|
||||
// console.log(err) |
w6s.ready(() => { |
||||
console.log("鉴权", err); |
w6s.szient.getAuthCode({ |
||||
// todo 临时工 |
success: function (res) { |
||||
getEnterpriseMerchant2(useCommon.enterpriseNumber); |
console.log(res) |
||||
}); |
console.log("认证", res); |
||||
|
console.log("code: " + res.result.result.code); |
||||
w6s.ready(() => { |
getSiqLoginAuth({code: res.result.result.code}, success => { |
||||
w6s.szient.getAuthCode({ |
useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
||||
success: function (res) { |
useCommon.SET_USER_ID(success.data.userId); |
||||
console.log(res) |
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
||||
console.log("认证", res); |
console.log(success.data); |
||||
console.log("code: " + res.result.result.code); |
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
||||
getSiqLoginAuth({code: res.result.result.code}, success => { |
// useCommon.SET_USER_ID(success.data.userId); |
||||
useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
||||
useCommon.SET_USER_ID(success.data.userId); |
useCommon.SET_TOKEN(success.data.token); |
||||
useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
console.log(useCommon.userId); |
||||
console.log(success.data); |
console.log(useCommon.firstLoad); |
||||
// useCommon.SET_USER_PHONENUMBER(success.data.phonenumber.toString()); |
if(useCommon.firstLoad){ |
||||
// useCommon.SET_USER_ID(success.data.userId); |
isLoading.value = false; |
||||
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data.enterpriseNumber); |
} |
||||
useCommon.SET_TOKEN(success.data.token); |
//设置已经初始化 |
||||
console.log(useCommon.userId); |
useCommon.SET_IS_FIRST_LOAD(false) |
||||
console.log(useCommon.firstLoad); |
getEnterpriseMerchant(success.data.phonenumber.toString()); |
||||
if(useCommon.firstLoad){ |
isLoading.value = false; |
||||
isLoading.value = false; |
}, error => { |
||||
} |
console.log("error : " + error) |
||||
//设置已经初始化 |
}) |
||||
useCommon.SET_IS_FIRST_LOAD(false) |
}, |
||||
getEnterpriseMerchant2(useCommon.enterpriseNumber); |
fail: function (err) { |
||||
isLoading.value = false; |
console.log(err) |
||||
}, error => { |
console.log("认证", err); |
||||
console.log("error : " + error) |
}, |
||||
}) |
}); |
||||
}, |
}); |
||||
fail: function (err) { |
|
||||
console.log(err) |
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{ |
||||
console.log("认证", err); |
// if(!(success.data == null && success.data.length == 0)){ |
||||
}, |
// console.log("success.data[0].enterpriseNumber :" + success.data[0].enterpriseNumber) |
||||
}); |
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber); |
||||
}); |
// } |
||||
|
// },error =>{ |
||||
// getEnterpriseMerchantAuthorization({merchantTel: useCommon.phonenumber},success =>{ |
// }) |
||||
// if(!(success.data == null && success.data.length == 0)){ |
|
||||
// console.log("success.data[0].enterpriseNumber :" + success.data[0].enterpriseNumber) |
|
||||
// useCommon.SET_USER_ENTERPRISE_NUMBER(success.data[0].enterpriseNumber); |
}); |
||||
// } |
const { VITE_BASE_URL,access_key,access_secret } = import.meta.env; |
||||
// },error =>{ |
console.log(VITE_BASE_URL); |
||||
// }) |
const apiUrl = ref(import.meta.env.accessKey); |
||||
|
console.log(access_key); |
||||
|
console.log(access_secret); |
||||
}); |
|
||||
const { VITE_BASE_URL,access_key,access_secret } = import.meta.env; |
}); |
||||
console.log(VITE_BASE_URL); |
|
||||
const apiUrl = ref(import.meta.env.accessKey); |
|
||||
console.log(access_key); |
|
||||
console.log(access_secret); |
|
||||
|
|
||||
}); |
|
||||
</script> |
</script> |
||||
|
|
||||
<style lang="less" scoped> |
<style lang="less" scoped> |
||||
.home { |
.home { |
||||
display: flex; |
display: flex; |
||||
flex-direction: column; |
flex-direction: column; |
||||
height: 100%; |
height: 100%; |
||||
overflow: hidden; |
overflow: hidden; |
||||
background-color: #f4f4f4; |
background-color: #f4f4f4; |
||||
|
|
||||
.warp_body { |
.warp_body { |
||||
position: relative; |
position: relative; |
||||
margin: 0; |
margin: 0; |
||||
width: 100%; |
width: 100%; |
||||
height: 100%; |
height: 100%; |
||||
background: #c6e6ff url("../assets/images/bg_c.jpg") no-repeat top; |
background: #c6e6ff url("../assets/images/bg_c.jpg") no-repeat top; |
||||
background-size: auto 100%; |
background-size: auto 100%; |
||||
overflow-x: hidden; |
overflow-x: hidden; |
||||
overflow-y: auto; |
overflow-y: auto; |
||||
|
|
||||
.carousel_box { |
.carousel_box { |
||||
height: 4rem; |
height: 4rem; |
||||
width: 100%; |
width: 100%; |
||||
padding-bottom: 0.27rem; |
padding-bottom: 0.27rem; |
||||
} |
|
||||
|
} |
||||
} |
|
||||
|
} |
||||
.boutique_box { |
|
||||
position: absolute; |
.boutique_box { |
||||
width: 100%; |
position: absolute; |
||||
bottom: 0.5rem; |
width: 100%; |
||||
|
bottom: calc(0.5rem + constant(safe-area-inset-bottom)); |
||||
.boutique_body { |
bottom: calc(0.5rem + env(safe-area-inset-bottom)); |
||||
padding: 0 0 0.27rem 0; |
|
||||
display: flex; |
.boutique_body { |
||||
justify-content: center; |
padding: 0 0 0.27rem 0; |
||||
} |
display: flex; |
||||
|
justify-content: center; |
||||
.box-qr-code { |
} |
||||
position: relative; |
|
||||
margin: 2% 0; |
.box-qr-code { |
||||
width: 90%; |
position: relative; |
||||
height: 3.67rem; |
margin: 2% 0; |
||||
text-align: right; |
width: 90%; |
||||
border-radius: 0.27rem; |
height: 3.67rem; |
||||
|
text-align: right; |
||||
.box-qr-code-text { |
border-radius: 0.27rem; |
||||
position: absolute; |
|
||||
z-index: 10; |
.box-qr-code-text { |
||||
top: 0.35rem; |
position: absolute; |
||||
right: 0.35rem; |
z-index: 10; |
||||
display: block; |
top: 0.35rem; |
||||
font-size: 0.5rem; |
right: 0.35rem; |
||||
} |
display: block; |
||||
} |
font-size: 0.5rem; |
||||
|
} |
||||
.box-qr-code::before { |
} |
||||
content: ""; |
|
||||
position: absolute; |
.box-qr-code::before { |
||||
top: -0.14rem; |
content: ""; |
||||
left: -0.14rem; |
position: absolute; |
||||
z-index: 0; |
top: -0.14rem; |
||||
width: calc(100% + 0.13rem); |
left: -0.14rem; |
||||
height: calc(100% + 0.13rem); |
z-index: 0; |
||||
background-color: #fff; |
width: calc(100% + 0.13rem); |
||||
border: 0.14rem solid rgba(255, 255, 255, 0.5); |
height: calc(100% + 0.13rem); |
||||
border-radius: 0.27rem; |
background-color: #fff; |
||||
} |
border: 0.14rem solid rgba(255, 255, 255, 0.5); |
||||
|
border-radius: 0.27rem; |
||||
.box-qr-code::after { |
} |
||||
content: ""; |
|
||||
position: absolute; |
.box-qr-code::after { |
||||
top: 0; |
content: ""; |
||||
left: 0; |
position: absolute; |
||||
z-index: 1; |
top: 0; |
||||
width: 100%; |
left: 0; |
||||
height: 100%; |
z-index: 1; |
||||
border-radius: 0.27rem; |
width: 100%; |
||||
background: #fff url("../assets/images/item_code.jpg") no-repeat left; |
height: 100%; |
||||
background-size: auto 100%; |
border-radius: 0.27rem; |
||||
border: 1px solid #8db4ff; |
background: #fff url("../assets/images/item_code.jpg") no-repeat left; |
||||
} |
background-size: auto 100%; |
||||
|
border: 1px solid #8db4ff; |
||||
.box-info { |
} |
||||
position: relative; |
|
||||
margin-right: 2%; |
.box-info { |
||||
width: 50%; |
position: relative; |
||||
height: 3.67rem; |
margin-right: 2%; |
||||
text-align: right; |
width: 50%; |
||||
border-radius: 0.27rem; |
height: 3.67rem; |
||||
|
text-align: right; |
||||
.box-info-text { |
border-radius: 0.27rem; |
||||
position: absolute; |
|
||||
z-index: 10; |
.box-info-text { |
||||
top: 0.35rem; |
position: absolute; |
||||
right: 0.35rem; |
z-index: 10; |
||||
display: block; |
top: 0.35rem; |
||||
font-size: 0.5rem; |
right: 0.35rem; |
||||
} |
display: block; |
||||
} |
font-size: 0.5rem; |
||||
|
} |
||||
.box-info::before { |
} |
||||
content: ""; |
|
||||
position: absolute; |
.box-info::before { |
||||
top: -0.14rem; |
content: ""; |
||||
left: -0.14rem; |
position: absolute; |
||||
z-index: 0; |
top: -0.14rem; |
||||
width: calc(100% + 0.13rem); |
left: -0.14rem; |
||||
height: calc(100% + 0.13rem); |
z-index: 0; |
||||
background-color: #fff; |
width: calc(100% + 0.13rem); |
||||
border: 0.14rem solid rgba(255, 255, 255, 0.5); |
height: calc(100% + 0.13rem); |
||||
border-radius: 0.27rem; |
background-color: #fff; |
||||
} |
border: 0.14rem solid rgba(255, 255, 255, 0.5); |
||||
|
border-radius: 0.27rem; |
||||
.box-info::after { |
} |
||||
content: ""; |
|
||||
position: absolute; |
.box-info::after { |
||||
top: 0; |
content: ""; |
||||
left: 0; |
position: absolute; |
||||
z-index: 1; |
top: 0; |
||||
width: 100%; |
left: 0; |
||||
height: 100%; |
z-index: 1; |
||||
border-radius: 0.27rem; |
width: 100%; |
||||
background: #fff url("../assets/images/item_checkc.jpg") no-repeat left; |
height: 100%; |
||||
background-size: auto 100%; |
border-radius: 0.27rem; |
||||
border: 1px solid #8db4ff; |
background: #fff url("../assets/images/item_checkc.jpg") no-repeat left; |
||||
} |
background-size: auto 100%; |
||||
|
border: 1px solid #8db4ff; |
||||
.box-complaint { |
} |
||||
position: relative; |
|
||||
margin-left: 3%; |
.box-complaint { |
||||
width: 35%; |
position: relative; |
||||
height: 3.67rem; |
margin-left: 3%; |
||||
text-align: right; |
width: 35%; |
||||
border-radius: 0.27rem; |
height: 3.67rem; |
||||
|
text-align: right; |
||||
.box-complaint-text { |
border-radius: 0.27rem; |
||||
position: absolute; |
|
||||
z-index: 10; |
.box-complaint-text { |
||||
top: 0.35rem; |
position: absolute; |
||||
right: 0.35rem; |
z-index: 10; |
||||
display: block; |
top: 0.35rem; |
||||
font-size: 0.5rem; |
right: 0.35rem; |
||||
} |
display: block; |
||||
} |
font-size: 0.5rem; |
||||
} |
} |
||||
|
} |
||||
.box-complaint::before { |
} |
||||
content: ""; |
|
||||
position: absolute; |
.box-complaint::before { |
||||
top: -0.14rem; |
content: ""; |
||||
left: -0.14rem; |
position: absolute; |
||||
z-index: 0; |
top: -0.14rem; |
||||
width: calc(100% + 0.13rem); |
left: -0.14rem; |
||||
height: calc(100% + 0.13rem); |
z-index: 0; |
||||
background-color: #fff; |
width: calc(100% + 0.13rem); |
||||
border: 0.14rem solid rgba(255, 255, 255, 0.5); |
height: calc(100% + 0.13rem); |
||||
border-radius: 0.27rem; |
background-color: #fff; |
||||
} |
border: 0.14rem solid rgba(255, 255, 255, 0.5); |
||||
|
border-radius: 0.27rem; |
||||
.box-complaint::after { |
} |
||||
content: ""; |
|
||||
position: absolute; |
.box-complaint::after { |
||||
top: 0; |
content: ""; |
||||
left: 0; |
position: absolute; |
||||
z-index: 1; |
top: 0; |
||||
width: 100%; |
left: 0; |
||||
height: 100%; |
z-index: 1; |
||||
border-radius: 0.27rem; |
width: 100%; |
||||
background: #fff url("../assets/images/item_complain.jpg") no-repeat left; |
height: 100%; |
||||
background-size: auto 100%; |
border-radius: 0.27rem; |
||||
border: 1px solid #8db4ff; |
background: #fff url("../assets/images/item_complain.jpg") no-repeat left; |
||||
} |
background-size: auto 100%; |
||||
|
border: 1px solid #8db4ff; |
||||
.recommend_box { |
} |
||||
.recommend_body { |
|
||||
width: 100%; |
.recommend_box { |
||||
} |
.recommend_body { |
||||
} |
width: 100%; |
||||
} |
} |
||||
|
} |
||||
.logobox { |
} |
||||
position: relative; |
|
||||
top: 4%; |
.logobox { |
||||
left: 5%; |
position: relative; |
||||
z-index: 99; |
top: 4%; |
||||
width: 82%; |
left: 5%; |
||||
height: 10vh; |
z-index: 99; |
||||
background: url("../assets/images/logo.png") no-repeat; |
width: 82%; |
||||
background-size: 100% auto; |
height: 10vh; |
||||
} |
background: url("../assets/images/logo.png") no-repeat; |
||||
|
background-size: 100% auto; |
||||
@media screen and (max-width: 380px) { |
} |
||||
.home .warp_body { |
|
||||
background: #c6e6ff url("../assets/images/bg_c.jpg") no-repeat top; |
@media screen and (max-width: 380px) { |
||||
background-size: 100% auto; |
.home .warp_body { |
||||
} |
background: #c6e6ff url("../assets/images/bg_c.jpg") no-repeat top; |
||||
} |
background-size: 100% auto; |
||||
|
} |
||||
@media screen and (min-width: 540px) { |
} |
||||
.home .warp_body { |
|
||||
background: #c6e6ff url("../assets/images/bg_c.jpg") no-repeat top; |
@media screen and (min-width: 540px) { |
||||
background-size: 100% auto; |
.home .warp_body { |
||||
} |
background: #c6e6ff url("../assets/images/bg_c.jpg") no-repeat top; |
||||
} |
background-size: 100% auto; |
||||
.loading-div{ |
} |
||||
position: absolute; |
} |
||||
top: 45%; |
.loading-div{ |
||||
left: 48%; |
position: absolute; |
||||
} |
top: 45%; |
||||
|
left: 48%; |
||||
|
} |
||||
|
|
||||
</style> |
</style> |
||||
|
|||||
Loading…
Reference in new issue