Merge branch 'dev_vite' of http://18.167.251.121:10003/aidlab/aida_front into dev_vite
This commit is contained in:
BIN
src/assets/images/homePage/stulishicon.png
Normal file
BIN
src/assets/images/homePage/stulishicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.6 KiB |
@@ -2,7 +2,26 @@
|
|||||||
<div class="bindPage_page">
|
<div class="bindPage_page">
|
||||||
<div class="bindPage_page_body">
|
<div class="bindPage_page_body">
|
||||||
<div class="bind_item">
|
<div class="bind_item">
|
||||||
<div class="title">{{ $t('frontPage.BindWechat') }}</div>
|
<div class="title">{{ $t('frontPage.InternalBind') }}</div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="type">
|
||||||
|
<div class="img"><img src="@/assets/images/homePage/aidaIcon.png" alt=""></div>
|
||||||
|
<div class="text" v-if="isSeller">AiDA Seller</div>
|
||||||
|
<div class="text" v-else>Not a Seller Yet</div>
|
||||||
|
</div>
|
||||||
|
<div v-if="isSeller" class="gallery_btn" @click="onEnterSeller">Enter Seller Dashboard</div>
|
||||||
|
<div v-else class="gallery_btn" @click="onBecomeSeller">Apply Now</div>
|
||||||
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="type">
|
||||||
|
<div class="img"><img src="@/assets/images/homePage/stulishicon.png" alt=""></div>
|
||||||
|
<div class="text">Marketplace Access Active</div>
|
||||||
|
</div>
|
||||||
|
<div class="gallery_btn" @click="onOpenMarketplace">Enter Now</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="bind_item">
|
||||||
|
<div class="title">{{ $t('frontPage.ExternalBind') }}</div>
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<img v-if="!userDetail.accountExtendList?.WeChat" src="@/assets/images/loginPage/weiXinIcon.svg" alt="">
|
<img v-if="!userDetail.accountExtendList?.WeChat" src="@/assets/images/loginPage/weiXinIcon.svg" alt="">
|
||||||
@@ -12,9 +31,6 @@
|
|||||||
<div v-if="!userDetail.accountExtendList?.WeChat" class="gallery_btn" @click="openWeiXinModel">{{ $t('frontPage.BindNow') }}</div>
|
<div v-if="!userDetail.accountExtendList?.WeChat" class="gallery_btn" @click="openWeiXinModel">{{ $t('frontPage.BindNow') }}</div>
|
||||||
<div v-if="userDetail.accountExtendList?.WeChat" class="gallery_btn" @click="ungroupWeiXinModel">{{ $t('frontPage.Unbind') }}</div>
|
<div v-if="userDetail.accountExtendList?.WeChat" class="gallery_btn" @click="ungroupWeiXinModel">{{ $t('frontPage.Unbind') }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="bind_item">
|
|
||||||
<div class="title">{{ $t('frontPage.BindGmail') }}</div>
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<div class="type">
|
<div class="type">
|
||||||
<img v-if="!userDetail.accountExtendList?.Google" src="@/assets/images/loginPage/gmailIcon.svg" alt="">
|
<img v-if="!userDetail.accountExtendList?.Google" src="@/assets/images/loginPage/gmailIcon.svg" alt="">
|
||||||
@@ -87,6 +103,9 @@ export default defineComponent({
|
|||||||
weiXinModel:null,
|
weiXinModel:null,
|
||||||
bindEmail:null,
|
bindEmail:null,
|
||||||
})
|
})
|
||||||
|
const isSeller = computed(() => {
|
||||||
|
return store.state.seller.isSeller
|
||||||
|
})
|
||||||
let data = reactive({
|
let data = reactive({
|
||||||
scriptSrc:'https://accounts.google.com/gsi/client',
|
scriptSrc:'https://accounts.google.com/gsi/client',
|
||||||
})
|
})
|
||||||
@@ -156,6 +175,15 @@ export default defineComponent({
|
|||||||
bindPageDom.bindEmail.init('Modify')
|
bindPageDom.bindEmail.init('Modify')
|
||||||
|
|
||||||
}
|
}
|
||||||
|
const onEnterSeller = ()=>{
|
||||||
|
router.push({name:'brandProfile'})
|
||||||
|
}
|
||||||
|
const onBecomeSeller = ()=>{
|
||||||
|
router.push({name:'BecomeSeller'})
|
||||||
|
}
|
||||||
|
const onOpenMarketplace = ()=>{
|
||||||
|
console.log('onOpenMarketplace')
|
||||||
|
}
|
||||||
onMounted(async ()=>{
|
onMounted(async ()=>{
|
||||||
let GOOGLE_CLIENT_ID
|
let GOOGLE_CLIENT_ID
|
||||||
if(import.meta.env.VITE_USER_NODE_ENV == 'development'){
|
if(import.meta.env.VITE_USER_NODE_ENV == 'development'){
|
||||||
@@ -221,7 +249,11 @@ export default defineComponent({
|
|||||||
return{
|
return{
|
||||||
...toRefs(accountHomeData),
|
...toRefs(accountHomeData),
|
||||||
...toRefs(bindPageDom),
|
...toRefs(bindPageDom),
|
||||||
|
isSeller,
|
||||||
openWeiXinModel,
|
openWeiXinModel,
|
||||||
|
onEnterSeller,
|
||||||
|
onBecomeSeller,
|
||||||
|
onOpenMarketplace,
|
||||||
ungroupGoogleModel,
|
ungroupGoogleModel,
|
||||||
ungroupWeiXinModel,
|
ungroupWeiXinModel,
|
||||||
modifyEmail,
|
modifyEmail,
|
||||||
@@ -241,31 +273,37 @@ export default defineComponent({
|
|||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
.bindPage_page_body{
|
.bindPage_page_body{
|
||||||
.bind_item{
|
.bind_item{
|
||||||
margin-bottom: 4rem;
|
margin-bottom: 4.8rem;
|
||||||
>.title{
|
>.title{
|
||||||
font-size: 1.6rem;
|
font-size: 1.8rem;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.2rem;
|
||||||
font-weight: 600;
|
// font-weight: 600;
|
||||||
}
|
}
|
||||||
>.box{
|
>.box{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 2px solid #000;
|
border: 2px solid #000;
|
||||||
border-radius: 2rem;
|
border-radius: 2rem;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
|
margin-bottom: 1.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
>.type{
|
>.type{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
>.img>img,
|
||||||
>img{
|
>img{
|
||||||
margin-right: 3rem;
|
margin-right: 3rem;
|
||||||
width: 5rem;
|
width: auto;
|
||||||
height: 5rem;
|
height: 5rem;
|
||||||
}
|
}
|
||||||
|
>.img{
|
||||||
|
width: 17rem;
|
||||||
|
}
|
||||||
>.text{
|
>.text{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.gallery_btn{
|
.gallery_btn{
|
||||||
|
|||||||
@@ -921,6 +921,8 @@ export default {
|
|||||||
jsContent13: '保存成功~'
|
jsContent13: '保存成功~'
|
||||||
},
|
},
|
||||||
frontPage: {
|
frontPage: {
|
||||||
|
InternalBind: '内部绑定:',
|
||||||
|
ExternalBind: '外部绑定:',
|
||||||
BindWechat: '绑定微信',
|
BindWechat: '绑定微信',
|
||||||
Unbound: '未绑定',
|
Unbound: '未绑定',
|
||||||
BindNow: '绑定',
|
BindNow: '绑定',
|
||||||
|
|||||||
@@ -946,6 +946,8 @@ export default {
|
|||||||
jsContent13: 'Save successfully~'
|
jsContent13: 'Save successfully~'
|
||||||
},
|
},
|
||||||
frontPage: {
|
frontPage: {
|
||||||
|
InternalBind: 'Internal Bind:',
|
||||||
|
ExternalBind: 'External Bind:',
|
||||||
BindWechat: 'Bind Wechat',
|
BindWechat: 'Bind Wechat',
|
||||||
Unbound: 'Unbound',
|
Unbound: 'Unbound',
|
||||||
BindNow: 'Bind Now',
|
BindNow: 'Bind Now',
|
||||||
|
|||||||
Reference in New Issue
Block a user