Commit 955dbea0 authored by 沈良进's avatar 沈良进

网站优化

parent b99b6007
......@@ -251,3 +251,6 @@ a {
}
}
</style>
<style lang="scss" scoped>
::v-deep .q-img__content {background: linear-gradient(0deg, rgba(0,0,0,0.56), rgba(0,0,0,0));}
</style>
\ No newline at end of file
......@@ -255,3 +255,6 @@ a {
}
}
</style>
<style lang="scss" scoped>
::v-deep .q-img__content {background: linear-gradient(0deg, rgba(0,0,0,0.56), rgba(0,0,0,0));}
</style>
\ No newline at end of file
......@@ -101,6 +101,12 @@
border-radius: 10px;
}
.address-btn {
text-align: center;
width: 140px;
height: 36px;
line-height: 36px;
padding-left: 20px;
background: #fff;
margin: 0 10px 0 44px;
}
.address-btn:hover {
......@@ -160,7 +166,14 @@
font-weight: bold;
}
.category-btn {
text-align: center;
width: 100px;
height: 36px;
line-height: 36px;
background: #fff;
}
.category-btn:hover {
background: #F5F5F5;
}
.category-icon {
width: 16px;
......@@ -172,8 +185,8 @@
<q-separator color="grey-2" v-if="isHome" />
<div class="header-box flex q-py-sm" v-if="isHome">
<q-tabs align="center" shrink>
<q-btn
flat
<div
flat unelevated
class="address-btn"
@mouseenter="mouseenterAddress"
@mouseleave="mouseeleaveAddress"
......@@ -269,15 +282,14 @@
</div>
</div>
</q-menu>
</q-btn>
</div>
<q-separator style="height: 16px; margin: auto 0" vertical />
<q-btn
<div
class="all-type category-btn"
flat
label="全部分類"
flat unelevated
@mouseenter="typeHoverAll(true)"
@mouseleave="typeHoverAll(false)"
>
>全部分類
<q-menu
ref="menu0"
@mouseenter="menuFocusAll = 2"
......@@ -329,17 +341,17 @@
</div>
</div>
</q-menu>
</q-btn>
</div>
<template v-for="(x, i) in dataList.CategoryList">
<q-btn
<div
class="category-btn"
:key="i"
:label="x.CategoryName"
flat
flat unelevated
:content-style="{ hover: '#ff0000' }"
@mouseenter="typeHover(i, true)"
@mouseleave="typeHover(i, false)"
>
>{{x.CategoryName}}
<q-menu
ref="menu"
:key="i"
......@@ -373,7 +385,7 @@
</div>
</div>
</q-menu>
</q-btn>
</div>
</template>
</q-tabs>
</div></div>
......
......@@ -155,13 +155,14 @@ export default {
const { AppID, State, OpenRedirectUri } = this.openInfo;
let redirect_uri = OpenRedirectUri;
console.log('${redirect_uri}/#/loginInfo',`${redirect_uri}/#/loginInfo`)
const url = `https://open.weixin.qq.com/connect/qrconnect?appid=${AppID}&redirect_uri=${encodeURIComponent(`http://www.oytour.com/#/loginInfo`)}&response_type=code&scope=snsapi_login&state=${State}&wechat_redirect=${redirect_uri}`;
let url = `https://open.weixin.qq.com/connect/qrconnect?appid=${AppID}&redirect_uri=${encodeURIComponent(`http://www.oytour.com/#/loginInfo`)}&response_type=code&scope=snsapi_login&state=${State}&wechat_redirect=${redirect_uri}`;
if (this.$q.platform.is.mobile && this.isWeChat()) {
// 移动端微信环境
url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppID}&redirect_uri=${encodeURIComponent(
"http://www.oytour.com/#/loginInfo"
)}&response_type=code&scope=snsapi_userinfo&state=${State}&wechat_redirect=${redirect_uri}`;
}
alert('url::' + url)
console.log('${redirect_uri}/#/loginInfo',`${redirect_uri}/#/loginInfo`, url)
window.location.href = url;
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment