Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
F
fenxiao_h5-dz
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张志伟
fenxiao_h5-dz
提交
52b7a6f0
提交
52b7a6f0
编写于
5月 04, 2024
作者:
zhangzhiwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
.
上级
de361e5a
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
3 行增加
和
106 行删除
+3
-106
index.vue
src/pages/index/index.vue
+3
-106
未找到文件。
src/pages/index/index.vue
浏览文件 @
52b7a6f0
...
...
@@ -25,7 +25,7 @@
<van-image
:src=
"item.iconpath"
@
tap=
"goto(item.josnContent)"
/>
</van-swipe-item>
</van-swipe>
<van-cell-group>
<van-cell-group
v-if=
"false"
>
<van-cell
is-link
class=
"justify-middle"
@
tap=
"goto('/pages/index/storeCard')"
>
<
template
#
title
>
<view
class=
"justify-middle"
>
...
...
@@ -43,32 +43,6 @@
</
template
>
</van-cell>
</van-cell-group>
<!--活动入口 v-if="item.contentNumber=='493002004'"x新品-->
<div
v-if=
"state.act_bg"
>
<div
style=
"position: relative"
>
<img
:src=
"state.act_bg"
alt=
""
style=
"width: 98.5vw"
>
<div
style=
"position: absolute;top: 33.2vw;"
>
<!--<div v-for="item in state.actList" style="display: inline-block">-->
<!--<img @click="goToAct(item.josnContent)" :src="item.iconpath"-->
<!--style="margin-left: .8vw;margin-bottom: .6vw;margin-right: .8vw;width: 42vw">-->
<!--</div>-->
<div
style=
"display: flex"
>
<div>
<img
@
click=
"goToAct(state.actHotSell.josnContent)"
:src=
"state.actHotSell.iconpath"
style=
"padding-left: 7.5vw ;margin-bottom: .6vw;width: 42vw"
>
</div>
<div>
<img
@
click=
"goToAct(state.actEight.josnContent)"
:src=
"state.actEight.iconpath"
style=
"margin-bottom: .6vw;width: 42vw;padding-right: 5.5vw"
>
<img
@
click=
"goToAct(state.actLittleE.josnContent)"
:src=
"state.actLittleE.iconpath"
style=
"margin-bottom: .6vw;width: 42vw;padding-right: 5.5vw"
>
</div>
</div>
</div>
</div>
</div>
<van-tabs
class=
"pd-b-10"
v-model:active=
"state.tab.active"
animated
swipeable
>
<van-tab
v-for=
"tItem in state.tab.tabList"
:title=
"tItem.title"
>
<van-grid
class=
"small-padding"
:column-num=
"4"
>
...
...
@@ -177,88 +151,11 @@
<van-icon
name=
"replay"
/>
</view>
<to-top
/>
<popup-banner
v-model:show
.
sync=
"state.banner.showPopup"
:list=
"state.banner.popupCarousel"
/>
<!--弹窗-->
<!--<popup-banner v-model:show.sync="state.banner.showPopup" :list="state.banner.popupCarousel" />-->
<van-overlay
z-index=
"99999"
:show=
"state.showCertificates"
>
<van-image
lazy-load
:src=
"state.showCertificatesImg"
style=
"width: 90%;margin: 50vw auto"
/>
<!--<van-button @click="state.showCertificates=false" size="small" type="primary" style="padding: 16px 20px;background: #ff6800;margin-top: -50px">知道了</van-button>-->
<!--<div class="wrapper1" @click.stop>-->
<!--<div class="block1" >-->
<!--<p style="margin: 18px auto;text-align: center">温馨提醒</p>-->
<!--<div style="line-height: 1.4rem">-->
<!--很抱歉,根据《电子商务法》相关法律法规之规定,因商家未能公示相关证照信息,-->
<!--暂时无法正常向您提供商城相关服务,请商家根据指引尽快补充证照信息,-->
<!--给您带来的不便,敬请见谅。-->
<!--</div>-->
<!--<div style="text-align: center;margin-top: 4vw;margin-bottom: 4vw">-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
</van-overlay>
<van-popup
v-model:show=
"state.show"
position=
"bottom"
:style=
"{ height: '100%' }"
>
<van-sticky>
<view
class=
"search_bar sh"
style=
"z-index: 99999999999"
>
识别到一下商品
</view>
</van-sticky>
<div
style=
"margin: 20px auto"
>
<van-list
v-if=
"state.inited"
:loading=
"state.good.loading"
:finished=
"state.good.finished"
finished-text=
"没有更多了"
offset=
"10"
@
load=
"onGoodLoad"
>
<van-grid
:center=
"false"
:column-num=
"2"
:gutter=
"7"
>
<van-grid-item
class=
"text-left"
v-for=
"item in state.good.list"
style=
"border-radius: 4px"
@
tap=
"goto(`/pages/good/detail?skuId=${item.skuId}&spuId=${item.spuId}`)"
>
<van-image
class=
"self_center"
width=
"30vw"
height=
"30vw"
lazy-load
:src=
"item.mainImg"
loading-icon=
"https://img.edsmall.com/ROOT/ETao/fenxiao/h5/default.png"
icon-size=
"30vw"
/>
<!--活动角标-->
<div
class=
"sign"
v-if=
"item.subScriptImgUrl"
>
<van-image
:src=
"item.subScriptImgUrl"
alt=
""
/>
<div
class=
"discount"
style=
"color: rgba(247, 103, 67, 1)"
>
{{item.discount}}
</div>
</div>
<view
:class=
"[item.zoneIcon||item.isVideoIcon||item.coTip==1?'mg-t-30-m':'']"
>
<span
v-if=
"item.coTip==1"
class=
"host_tip"
style=
"position: relative;z-index: 9999"
>
热销
</span>
<span
v-if=
"item.leftDownIcons&&item.leftDownIcons.length>0"
>
<span
v-for=
"item1 in item.leftDownIcons"
style=
"margin-right: 3px"
>
<van-image
width=
"60rpx"
height=
"32rpx"
:src=
"item1"
/>
</span>
</span>
<van-image
v-if=
"item.isVideoIcon"
class=
"mg-l-5"
width=
"32rpx"
height=
"32rpx"
src=
"/static/img/play.png"
/>
</view>
<text
class=
"text-s ellipsis line_over2 pd-t-10"
style=
"width: 320rpx;height: 32px;margin-bottom:6px"
>
{{ item.title }}
</text>
<text
class=
"text-ss"
>
{{ item.size }}
</text>
<text
class=
"text-gray text-ss"
></text>
<!--未开启设计师模式-->
<div
v-if=
"item.salePrice"
>
<view
v-if=
"!item.actPrice"
class=
"text-gray text-ss line-through"
>
零售价¥{{ item.productPrice }}
</view>
<view
v-if=
"item.actPrice"
>
<view
class=
"text-gray text-ss"
>
零售价¥{{ item.productPrice }}
</view>
<view
class=
"text-gray text-ss line-through"
>
优惠价¥{{ item.salePrice }}
</view>
<view
class=
"text-orange text-ss"
>
活动价¥
<text
class=
"text-bold text-l"
>
{{ item.actPrice }}
</text>
</view>
</view>
<view
v-else
class=
"text-orange text-ss"
>
优惠价¥
<text
class=
"text-bold text-l"
>
{{ item.salePrice }}
</text>
</view>
</div>
<div
v-else
class=
"text-orange"
style=
"font-size: 13px;margin-top: 3px"
>
<view
v-if=
"item.actPrice"
>
<view
class=
"text-gray text-ss line-through"
>
零售价¥{{ item.productPrice }}
</view>
<view
class=
"text-orange text-ss"
>
活动价¥
<text
class=
"text-bold text-l"
>
{{ item.actPrice }}
</text>
</view>
</view>
<text
v-else
class=
"text-bold text-ss"
>
零售价¥{{ item.productPrice }}
</text>
</div>
</van-grid-item>
</van-grid>
</van-list>
</div>
</van-popup>
</view>
</template>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录