Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
AI100
ai100
提交
d79805a5
ai100
项目概览
AI100
/
ai100
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ai100
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d79805a5
编写于
10月 23, 2023
作者:
璃白.
🌻
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
✨
add spm
上级
210771ea
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
77 addition
and
26 deletion
+77
-26
assets/data/recommend.json
assets/data/recommend.json
+1
-1
components/advertising.vue
components/advertising.vue
+3
-0
pages/dev/index/console/index/billing/pay/index.vue
pages/dev/index/console/index/billing/pay/index.vue
+2
-2
pages/dev/index/console/index/dashboard/index.vue
pages/dev/index/console/index/dashboard/index.vue
+3
-0
pages/index/aigc/components/tab.vue
pages/index/aigc/components/tab.vue
+27
-7
pages/index/index.vue
pages/index/index.vue
+41
-16
未找到文件。
assets/data/recommend.json
浏览文件 @
d79805a5
...
...
@@ -191,7 +191,7 @@
"id"
:
"1"
},
{
"name"
:
"5折banner"
,
"name"
:
"5折
活动-
banner"
,
"imgUrl"
:
"https://devbit-static.oss-cn-beijing.aliyuncs.com/ai100/icon/banner/1697714511964.jpg"
,
"destUrl"
:
"/dev/console/billing/pay"
,
"id"
:
"2"
...
...
components/advertising.vue
浏览文件 @
d79805a5
...
...
@@ -6,6 +6,9 @@
</div>
<a
href=
"/dev/console/billing/pay"
v-view=
"
{
el: '5折活动-悬浮广告'
}"
v-click="{
el: '5折活动-悬浮广告'
}"
...
...
pages/dev/index/console/index/billing/pay/index.vue
浏览文件 @
d79805a5
...
...
@@ -3,7 +3,7 @@
<div
class=
"max-w-6xl m-auto"
>
<div
class=
"sm:rounded-lg px-4 sm:px-10 py-4 pb-10 bg-white"
>
<h2
class=
"text-lg font-medium text-gray-600 py-2"
>
逻辑电量充能
</h2>
<div
class=
"py-2
grid grid-cols-1 gap-2 sm:gap-4 sm:grid-cols
-4"
>
<div
class=
"py-2
flex flex-wrap gap-x-4 gap-y
-4"
>
<div
v-for=
"item in goods"
:key=
"item.name"
...
...
@@ -17,7 +17,7 @@
:class="{
'ring-[#EBB305] ring-2': item.id === payGood.id
}"
class="relative rounded-lg border border-gray-200 px-2 sm:px-6 py-4 sm:py-4 shadow-sm flex justify-center items-center space-x-3 hover:border-yellow-400 focus-within:ring-2 focus-within:ring-yellow-500"
class="relative rounded-lg
w-full sm:w-[236px]
border border-gray-200 px-2 sm:px-6 py-4 sm:py-4 shadow-sm flex justify-center items-center space-x-3 hover:border-yellow-400 focus-within:ring-2 focus-within:ring-yellow-500"
>
<div
class=
"flex-shrink-0"
>
<img
...
...
pages/dev/index/console/index/dashboard/index.vue
浏览文件 @
d79805a5
...
...
@@ -12,6 +12,9 @@
<div
class=
"h-[30px] flex items-center m-8 rounded-full"
>
<div
class=
"notice-main"
v-view=
"
{
el: '5折活动-dashboard顶部广告'
}"
v-click="{
el: '5折活动-dashboard顶部广告'
}"
...
...
pages/index/aigc/components/tab.vue
浏览文件 @
d79805a5
...
...
@@ -6,8 +6,15 @@
:class=
"store.switchcheck ? 'bg-[#efefef] text-black' : 'bg-black'"
:style=
"props.wrapStyle"
>
<div
class=
"inline-flex relative"
:class=
"store.switchcheck ? 'tab-item' : 'notab-item'"
>
<div
v-for=
"(item, index) in tabs"
:key=
"index"
@
click=
"changeTab(item, index)"
>
<div
class=
"inline-flex relative"
:class=
"store.switchcheck ? 'tab-item' : 'notab-item'"
>
<div
v-for=
"(item, index) in tabs"
:key=
"index"
@
click=
"changeTab(item, index)"
>
<nuxt-link
v-if=
"item.path"
:to=
"item.path"
...
...
@@ -16,7 +23,8 @@
}"
class="text-sm lg:w-24 w-20 h-7 flex items-center justify-center z-10 rounded-full lg:mx-0 mx-0.5"
:class="store.switchcheck ? 'text-black ' : 'text-white'"
>
{{
item
.
name
}}
</nuxt-link>
>
{{
item
.
name
}}
</nuxt-link
>
<div
:style=
"
props.itemStyle + `$
{curTab == index ? props.activeStyle : ''}`
...
...
@@ -25,19 +33,31 @@
curTab == index ? 'router-link-active bg-indigo-600' : ''
} `"
v-else
>
{{
item
.
name
}}
</div>
>
{{
item
.
name
}}
</div>
</div>
</div>
</div>
<div
class=
"lg:block hidden"
v-if=
"isShow"
>
<div
class=
"h-12 relative flex items-center"
>
<img
src=
"@/assets/imgs/Adhorn.png"
class=
"w-[34px] h-[34px] absolute ml-3"
alt
/>
<img
src=
"@/assets/imgs/Adhorn.png"
class=
"w-[34px] h-[34px] absolute ml-3"
alt
/>
<div
class=
"bg-gradient-to-b from-yellow-200 via-white to-white float-right flex items-center m-8 rounded-full"
>
<div
class=
"notice-main"
v-click=
"
{
<div
class=
"notice-main"
v-click=
"
{
el: '5折活动-小喇叭广告'
}"
v-view="{
el: '5折活动-小喇叭广告'
}">
}"
>
<span
class=
"notice text-sm text-red-800"
>
<a
href=
"/dev/console/billing/pay"
>
<span>
电量充值限时低至5折,所有工具全部适用!
</span>
...
...
pages/index/index.vue
浏览文件 @
d79805a5
...
...
@@ -100,12 +100,18 @@
<div
class=
"h-full lg:block hidden"
>
<div>
<el-carousel
:interval=
"3000"
:loop=
"true"
height=
"32vw"
>
<el-carousel-item
v-for=
"(item, index) in recommendData.pcindex"
:key=
"index"
>
<el-carousel-item
v-for=
"(item, index) in recommendData.pcindex"
:key=
"index"
v-click=
"
{
el: item.name
}"
>
<a
:href=
"item.destUrl"
>
<img
class=
"cursor-pointer w-full h-full"
:src=
"item.imgUrl"
style=
"width:
100%;height: 100%;object-fit:
contain"
style=
"width:
100%; height: 100%; object-fit:
contain"
/>
</a>
</el-carousel-item>
...
...
@@ -117,12 +123,15 @@
<div
class=
"h-full lg:hidden block"
>
<div>
<el-carousel
:interval=
"3000"
:loop=
"true"
height=
"45vw"
>
<el-carousel-item
v-for=
"(item, index) in recommendData.appindex"
:key=
"index"
>
<el-carousel-item
v-for=
"(item, index) in recommendData.appindex"
:key=
"index"
>
<a
:href=
"item.destUrl"
>
<img
class=
"cursor-pointer w-full h-full"
:src=
"item.imgUrl"
style=
"width:
100%;height: 100%;object-fit:
contain"
style=
"width:
100%; height: 100%; object-fit:
contain"
/>
</a>
</el-carousel-item>
...
...
@@ -137,12 +146,12 @@
>
<div
class=
"w-[205px] flex items-center flex-col justify-center cursor-pointer h-24 text-[14px] font-bold font-AlimamaShuHeiTi-Bold font-AlimamaShuHeiTi text-white opacity-60 leading-6"
v-for=
"(item,index) in newIntList"
v-for=
"(item,
index) in newIntList"
:class=
"[
{ selestyle: cationflag == index },
{ nostyle: cationflag !== index }
]"
@click="intclick(item,index)"
{ selestyle: cationflag == index },
{ nostyle: cationflag !== index }
]"
@click="intclick(item,
index)"
:key="index"
>
<img
:src=
"item.destImg"
class=
"w-[48px] h-[47px] mb-2"
alt
/>
...
...
@@ -158,8 +167,8 @@
<div
class=
"grid grid-cols-2 gap-4 sm:grid-cols-4 sm:gap-6 sm:pb-8 p-4"
>
<div
class=
"flex items-center flex-col justify-center cursor-pointer h-[190px] text-[16px] font-bold font-AlimamaShuHeiTi-Bold font-AlimamaShuHeiTi bg-gradient-to-b from-white/5 to-white/[.01] text-white leading-10 py-3 rounded-md mt-5"
v-for=
"(item,index) in newIntList"
@
click=
"intclick(item,index)"
v-for=
"(item,
index) in newIntList"
@
click=
"intclick(item,
index)"
:key=
"index"
>
<img
:src=
"item.destImg"
class=
"w-[50px] h-[50px] mb-2"
alt
/>
...
...
@@ -176,7 +185,7 @@
<el-dialog
v-model=
"showAd"
class=
"my-dialog"
style=
"background-color: rgba(0,
0,0,0); box-shadow:none;
"
style=
"background-color: rgba(0,
0, 0, 0); box-shadow: none
"
width=
"35%"
@
close=
"dialogfn"
center
...
...
@@ -196,11 +205,17 @@
<el-dialog
v-model=
"showAd"
class=
"my-dialog"
style=
"background-color: rgba(0,
0,0,0); box-shadow:none;
"
style=
"background-color: rgba(0,
0, 0, 0); box-shadow: none
"
width=
"100%"
center
>
<img
:src=
"adListData.imgUrl"
alt
/>
<img
v-view=
"
{
el: '5折活动-弹窗广告'
}"
:src="adListData.imgUrl"
alt
/>
<a
:href=
"adListData.destUrl"
>
<img
src=
"@/assets/imgs/popbutton.png"
alt
/>
</a>
...
...
@@ -238,6 +253,7 @@ import aigcImgIcon from "@/assets/imgs/aigcImgIcon.svg";
import
aigcPromptIcon
from
"
@/assets/imgs/aigcPromptIcon.svg
"
;
import
recommendData
from
"
@/assets/data/recommend.json
"
;
const
store
=
useStore
();
const
route
=
useRoute
();
const
showAd
=
ref
<
any
>
(
false
);
const
isadver
=
ref
<
any
>
();
...
...
@@ -281,6 +297,15 @@ const Adopen = () => {
const
dialogfn
=
()
=>
{
console
.
log
(
"
触发关闭
"
);
localStorage
.
setItem
(
"
eject
"
,
"
1
"
);
const
utm_source
=
route
?.
query
?.
utm_source
||
"
默认渠道
"
;
window
.
_czc
&&
window
.
_czc
.
push
([
"
_trackEvent
"
,
"
点击
"
,
"
5折活动-弹窗广告
"
,
0
,
utm_source
]);
};
// 控制动画
...
...
@@ -296,13 +321,13 @@ const Adsus = () => {
for
(
let
index
=
0
;
index
<
classList
.
length
;
index
++
)
{
const
element
=
classList
[
index
];
element
.
addEventListener
(
"
mouseover
"
,
function
()
{
element
.
addEventListener
(
"
mouseover
"
,
function
()
{
for
(
let
index2
=
0
;
index2
<
classList
.
length
;
index2
++
)
{
const
element
=
classList
.
item
(
index2
)
as
any
;
element
.
style
.
animationPlayState
=
"
paused
"
;
}
});
element
.
addEventListener
(
"
mouseout
"
,
function
()
{
element
.
addEventListener
(
"
mouseout
"
,
function
()
{
for
(
let
index2
=
0
;
index2
<
classList
.
length
;
index2
++
)
{
const
element
=
classList
.
item
(
index2
)
as
any
;
element
.
style
.
animationPlayState
=
"
running
"
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录