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 004dc86c
authored
Oct 25, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:调整分享页按钮
1 parent
58f372d6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
41 deletions
pages/checkProduct/checkProduct.js
pages/checkProduct/checkProduct.scss
pages/checkProduct/checkProduct.wxml
pages/checkProduct/checkProduct.js
View file @
004dc86
...
@@ -22,17 +22,18 @@ Page({
...
@@ -22,17 +22,18 @@ Page({
// IMG_URL: `${IMG_URL}index`,
// IMG_URL: `${IMG_URL}index`,
btnList
:
[
btnList
:
[
{
{
src
:
`
${
IMG_URL
}
index/down.png`
,
name
:
"下载海报"
,
},
{
src
:
`
${
IMG_URL
}
index/wechat.png`
,
src
:
`
${
IMG_URL
}
index/wechat.png`
,
name
:
"
微信转发
"
,
name
:
"
转发给好友
"
,
},
},
// {
// {
// src: `${IMG_URL}index/moments.png`,
// src: `${IMG_URL}index/moments.png`,
// name: "朋友圈分享",
// name: "朋友圈分享",
// },
// },
{
src
:
`
${
IMG_URL
}
index/down.png`
,
name
:
"下载为海报"
,
},
],
],
// 4种场景下图片所有的高 (单位 rpx)
// 4种场景下图片所有的高 (单位 rpx)
imgHeightArr
:
[
imgHeightArr
:
[
...
...
pages/checkProduct/checkProduct.scss
View file @
004dc86
...
@@ -15,14 +15,15 @@
...
@@ -15,14 +15,15 @@
z-index
:
2
;
z-index
:
2
;
.img-wrap
{
.img-wrap
{
position
:
absolute
;
position
:
absolute
;
top
:
20
%
;
top
:
15
%
;
left
:
50%
;
left
:
50%
;
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
// width: 225px;
// width: 225px;
width
:
60%
;
width
:
60%
;
height
:
311px
;
height
:
54%
;
// background-color: red;
// background-color: red;
overflow
:
auto
;
overflow
:
auto
;
border-radius
:
16rpx
;
.prod-item
{
.prod-item
{
background-color
:
#f5f7fb
;
background-color
:
#f5f7fb
;
.prod-item
{
.prod-item
{
...
@@ -105,14 +106,16 @@
...
@@ -105,14 +106,16 @@
background-color
:
#fff
;
background-color
:
#fff
;
}
}
}
}
.btns
{
}
position
:
absolute
;
.btns-wrap
{
padding-bottom
:
84rpx
;
position
:
fixed
;
left
:
0
;
left
:
0
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
154
px
;
height
:
120r
px
;
background
:
#ffffff
;
background
:
#ffffff
;
border-radius
:
8px
8px
0
0
;
//
border-radius: 8px 8px 0 0;
.top
{
.top
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
...
@@ -125,10 +128,29 @@
...
@@ -125,10 +128,29 @@
width
:
40px
;
width
:
40px
;
height
:
40px
;
height
:
40px
;
}
}
.name
{
// .name {
font-size
:
12px
;
// font-size: 12px;
color
:
#323436
;
// color: #323436;
// text-align: center;
// }
.name0
{
width
:
256rpx
;
height
:
88rpx
;
border
:
1px
solid
#EEEEEE
;
border-radius
:
8rpx
;
font-size
:
28rpx
;
color
:
#8A8C90
;
text-align
:
center
;
text-align
:
center
;
line-height
:
88rpx
;
}
.name1
{
width
:
414rpx
;
height
:
88rpx
;
background
:
#3666FE
;
border-radius
:
8rpx
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
line-height
:
88rpx
;
}
}
.btn-wechat
{
.btn-wechat
{
width
:
auto
;
width
:
auto
;
...
@@ -146,7 +168,6 @@
...
@@ -146,7 +168,6 @@
border-radius
:
4px
;
border-radius
:
4px
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
}
/* 用户授权 */
/* 用户授权 */
...
...
pages/checkProduct/checkProduct.wxml
View file @
004dc86
<!--pages/checkProduct/checkProduct.wxml-->
<!-- pages/checkProduct/checkProduct.wxml -->
<navigation-bar showBack="{{true}}" bindnavbarReady="navbarReady" navStyle="{{navStyle}}">{{senceData[actNum].productList[activeNavIdx].proName}}</navigation-bar>
<navigation-bar showBack="{{true}}" bindnavbarReady="navbarReady" navStyle="{{navStyle}}">
{{senceData[actNum].productList[activeNavIdx].proName}}
</navigation-bar>
<!-- <view style="height:{{headerHeight}}px">
<!-- <view style="height:{{headerHeight}}px">
</view> -->
</view> -->
<product stickyTop="{{headerHeight}}" class="productCon" style="padding-top:{{headerHeight}}px" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" bindauthorized="authorizedFn" />
<product stickyTop="{{headerHeight}}" class="productCon" style="padding-top:{{headerHeight}}px" isAuthphone="{{isAuthphone}}" actNum="{{actNum}}" wrapactiveNavIdx="{{activeNavIdx}}" senceData="{{senceData}}" outshowVideo="{{outshowVideo}}" isShare="{{isShare}}" bindauthorized="authorizedFn" />
<!-- 分享弹框 -->
<!-- 分享弹框 -->
<!-- <shareModel actNum="{{actNum}}" isShow="{{isShow}}" bindmodelclose="modelcloseFn" /> -->
<!-- <view class="share-wrap" wx:if="{{isShow}}">
<view class="share-wrap" wx:if="{{isShow}}">
{{IMG_URL}}
<view class="img-wrap">
<view class="img-wrap">
<view class="prod-item">
<view class="prod-item">
<view class="prod-card">
<view class="prod-card">
<view class="card-img">
<view class="card-img">
<!-- <text class="img-desc">轻改类</text>
<image src="{{IMGURL}}discovery_prod1.png" /> -->
<image src="{{IMG_URL}}index/prod/{{senceData[actNum].productList[activeNavIdx].img}}.png" />
<image src="{{IMG_URL}}index/prod/{{senceData[actNum].productList[activeNavIdx].img}}.png" />
</view>
</view>
<view class="prod-info">
<view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
<text class="sale" decode="{{true}}">
<text class="sale" decode="{{true}}">{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}} <text class="sale-num">{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}</text>
{{senceData[actNum]['productList'][activeNavIdx].varType == 1 ? '三年售后存量数':'新车销量'}}
<text class="sale-num">
{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}
</text>
</text>
<text class="earnings" decode="{{true}}">
预估收益
<text class="earnings-num">
{{senceData[actNum]['productList'][activeNavIdx].profit}}
</text>
</text>
<text class="earnings" decode="{{true}}">预估收益 <text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</text>
</view>
</view>
<!-- <view class="" bindtap="downVideo" data-src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/video/360_AR.mp4?v=" hover-class="none" hover-stop-propagation="false">
视频下载
</view> -->
</view>
</view>
</view>
</view>
<image class="img" style="height:{{imgHeight}}px" src="{{IMG_URL}}index/longpic{{actNum+1}}.png" bindload="onloadFn" />
<image class="img" style="height:{{imgHeight}}px" src="{{IMG_URL}}index/longpic{{actNum+1}}.png" bindload="onloadFn" />
<!-- <block wx:for="{{imgList}}" wx:key="*this">
<image mode="widthFix" class="img" src="{{item}}"/>
</block> -->
</view>
</view>
<button></button>
<button></button>
<view class="btns">
</view> -->
<view class="btns-wrap">
<view class="top">
<view class="top">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
<block wx:if="{{index == 0
}}">
<block wx:if="{{index == 1
}}">
<button open-type="share" class="btn-wechat">
<button open-type="share" class="btn-wechat">
<image class="img" src="{{item.src}}" />
<view class="name{{index}}">{{item.name}}</view>
<view class="name">{{item.name}}</view>
</button>
</button>
</block>
</block>
<block wx:else>
<block wx:else>
<image class="img" src="{{item.src}}" />
<view class="name{{index}}">{{item.name}}</view>
<view class="name">{{item.name}}</view>
</block>
</block>
</view>
</view>
</view>
</view>
<view class="btom" bindtap="modelcloseFn">取消</view>
<!-- <view class="btom" bindtap="modelcloseFn">取消</view> -->
</view>
</view>
</view>
<!-- 授权昵称 -->
<!-- 授权昵称 -->
<!-- !hasUserInfo && !isShow -->
<!-- !hasUserInfo && !isShow -->
...
...
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