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

网站优化

parent b99b6007
...@@ -251,3 +251,6 @@ a { ...@@ -251,3 +251,6 @@ a {
} }
} }
</style> </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 { ...@@ -255,3 +255,6 @@ a {
} }
} }
</style> </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 @@ ...@@ -101,6 +101,12 @@
border-radius: 10px; border-radius: 10px;
} }
.address-btn { .address-btn {
text-align: center;
width: 140px;
height: 36px;
line-height: 36px;
padding-left: 20px;
background: #fff;
margin: 0 10px 0 44px; margin: 0 10px 0 44px;
} }
.address-btn:hover { .address-btn:hover {
...@@ -160,7 +166,14 @@ ...@@ -160,7 +166,14 @@
font-weight: bold; font-weight: bold;
} }
.category-btn { .category-btn {
text-align: center;
width: 100px; width: 100px;
height: 36px;
line-height: 36px;
background: #fff;
}
.category-btn:hover {
background: #F5F5F5;
} }
.category-icon { .category-icon {
width: 16px; width: 16px;
...@@ -172,8 +185,8 @@ ...@@ -172,8 +185,8 @@
<q-separator color="grey-2" v-if="isHome" /> <q-separator color="grey-2" v-if="isHome" />
<div class="header-box flex q-py-sm" v-if="isHome"> <div class="header-box flex q-py-sm" v-if="isHome">
<q-tabs align="center" shrink> <q-tabs align="center" shrink>
<q-btn <div
flat flat unelevated
class="address-btn" class="address-btn"
@mouseenter="mouseenterAddress" @mouseenter="mouseenterAddress"
@mouseleave="mouseeleaveAddress" @mouseleave="mouseeleaveAddress"
...@@ -269,15 +282,14 @@ ...@@ -269,15 +282,14 @@
</div> </div>
</div> </div>
</q-menu> </q-menu>
</q-btn> </div>
<q-separator style="height: 16px; margin: auto 0" vertical /> <q-separator style="height: 16px; margin: auto 0" vertical />
<q-btn <div
class="all-type category-btn" class="all-type category-btn"
flat flat unelevated
label="全部分類"
@mouseenter="typeHoverAll(true)" @mouseenter="typeHoverAll(true)"
@mouseleave="typeHoverAll(false)" @mouseleave="typeHoverAll(false)"
> >全部分類
<q-menu <q-menu
ref="menu0" ref="menu0"
@mouseenter="menuFocusAll = 2" @mouseenter="menuFocusAll = 2"
...@@ -329,17 +341,17 @@ ...@@ -329,17 +341,17 @@
</div> </div>
</div> </div>
</q-menu> </q-menu>
</q-btn> </div>
<template v-for="(x, i) in dataList.CategoryList"> <template v-for="(x, i) in dataList.CategoryList">
<q-btn <div
class="category-btn" class="category-btn"
:key="i" :key="i"
:label="x.CategoryName" :label="x.CategoryName"
flat flat unelevated
:content-style="{ hover: '#ff0000' }" :content-style="{ hover: '#ff0000' }"
@mouseenter="typeHover(i, true)" @mouseenter="typeHover(i, true)"
@mouseleave="typeHover(i, false)" @mouseleave="typeHover(i, false)"
> >{{x.CategoryName}}
<q-menu <q-menu
ref="menu" ref="menu"
:key="i" :key="i"
...@@ -373,7 +385,7 @@ ...@@ -373,7 +385,7 @@
</div> </div>
</div> </div>
</q-menu> </q-menu>
</q-btn> </div>
</template> </template>
</q-tabs> </q-tabs>
</div></div> </div></div>
......
...@@ -155,13 +155,14 @@ export default { ...@@ -155,13 +155,14 @@ export default {
const { AppID, State, OpenRedirectUri } = this.openInfo; const { AppID, State, OpenRedirectUri } = this.openInfo;
let redirect_uri = OpenRedirectUri; let redirect_uri = OpenRedirectUri;
console.log('${redirect_uri}/#/loginInfo',`${redirect_uri}/#/loginInfo`) 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()) { if (this.$q.platform.is.mobile && this.isWeChat()) {
// 移动端微信环境 // 移动端微信环境
url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppID}&redirect_uri=${encodeURIComponent( url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppID}&redirect_uri=${encodeURIComponent(
"http://www.oytour.com/#/loginInfo" "http://www.oytour.com/#/loginInfo"
)}&response_type=code&scope=snsapi_userinfo&state=${State}&wechat_redirect=${redirect_uri}`; )}&response_type=code&scope=snsapi_userinfo&state=${State}&wechat_redirect=${redirect_uri}`;
} }
alert('url::' + url)
console.log('${redirect_uri}/#/loginInfo',`${redirect_uri}/#/loginInfo`, url) console.log('${redirect_uri}/#/loginInfo',`${redirect_uri}/#/loginInfo`, url)
window.location.href = 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