Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit df10061a
authored
Nov 28, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:处理海报
1 parent
5b0120ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
pages/tab/index/components/indexProduct/indexProduct.wxml
pages/tab/index/components/poster-item/index.wxml
pages/tab/index/constant/data.js
pages/tab/index/components/indexProduct/indexProduct.wxml
View file @
df10061
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view class="pro-head">
<view class="pro-head">
<van-tabs active="{{ tabActive }}" class="{{tabHeaderShow?'':'pro-head-hidden'}}" bind:change="onTabChange">
<van-tabs active="{{ tabActive }}" class="{{tabHeaderShow?'':'pro-head-hidden'}}" bind:change="onTabChange">
<van-tab wx:for="{{senceData}}" wx:key="index" title="{{item.tabname}}">
<van-tab wx:for="{{senceData}}" wx:key="index" title="{{item.tabname}}">
<image class="pro-banner" src="{{item.banner}}
" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="
" />
<image class="pro-banner" src="{{item.banner}}
?v={{img_version}}
" />
</van-tab>
</van-tab>
</van-tabs>
</van-tabs>
</view>
</view>
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
<!-- 图片预览弹窗 -->
<!-- 图片预览弹窗 -->
<van-overlay show="{{ overlayShow }}" z-index="100">
<van-overlay show="{{ overlayShow }}" z-index="100">
<view class="overlay-wrap">
<view class="overlay-wrap">
<image class="overlay-img" show-menu-by-longpress src="{{checkPosterItem.src}}?v={{img_version}}" />
<image class="overlay-img"
webp
show-menu-by-longpress src="{{checkPosterItem.src}}?v={{img_version}}" />
<view class="overlay-msg">
<view class="overlay-msg">
<image class="hand" src="{{IMG_URL}}index/hand.png?v={{img_version}}"/>
<image class="hand" src="{{IMG_URL}}index/hand.png?v={{img_version}}"/>
<view class="forward">长按图片转发</view>
<view class="forward">长按图片转发</view>
...
...
pages/tab/index/components/poster-item/index.wxml
View file @
df10061
<!-- pages/tab/index/components/poster-item/index.wxml -->
<!-- pages/tab/index/components/poster-item/index.wxml -->
<view class="poster-item even-class">
<view class="poster-item even-class">
<image class="img" src="{{item.src}}?v={{img_version}}" />
<image
webp
class="img" src="{{item.src}}?v={{img_version}}" />
<view class="msg">生成专属海报</view>
<view class="msg">生成专属海报</view>
</view>
</view>
<!-- <view class="poster-item">
<!-- <view class="poster-item">
...
...
pages/tab/index/constant/data.js
View file @
df10061
...
@@ -305,19 +305,23 @@ var senceData = [
...
@@ -305,19 +305,23 @@ var senceData = [
],
],
posterList
:[
posterList
:[
{
{
src
:
`
${
IMG_URL
}
index/poster/poster3-0.png`
,
// src:`${IMG_URL}index/poster/poster3-0.png`,
src
:
`
${
IMG_URL
}
index/poster/poster3-0.webp`
,
name
:
'劲爆来袭'
name
:
'劲爆来袭'
},
},
{
{
src
:
`
${
IMG_URL
}
index/poster/poster3-1.png`
,
// src:`${IMG_URL}index/poster/poster3-1.png`,
src
:
`
${
IMG_URL
}
index/poster/poster3-1.webp`
,
name
:
'疯狂让利'
name
:
'疯狂让利'
},
},
{
{
src
:
`
${
IMG_URL
}
index/poster/poster3-2.png`
,
// src:`${IMG_URL}index/poster/poster3-2.png`,
src
:
`
${
IMG_URL
}
index/poster/poster3-2.webp`
,
name
:
'娱乐系统'
name
:
'娱乐系统'
},
},
{
{
src
:
`
${
IMG_URL
}
index/poster/poster3-3.png`
,
// src:`${IMG_URL}index/poster/poster3-3.png`,
src
:
`
${
IMG_URL
}
index/poster/poster3-3.webp`
,
name
:
'AR实景导航'
name
:
'AR实景导航'
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment