Commit 004dc86c by luyt

fix:调整分享页按钮

1 parent 58f372d6
...@@ -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: [
......
...@@ -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,47 +106,67 @@ ...@@ -105,47 +106,67 @@
background-color: #fff; background-color: #fff;
} }
} }
.btns { }
position: absolute; .btns-wrap {
left: 0; padding-bottom: 84rpx;
bottom: 0; position: fixed;
width: 100%; left: 0;
height: 154px; bottom: 0;
background: #ffffff; width: 100%;
border-radius: 8px 8px 0 0; height: 120rpx;
.top { background: #ffffff;
display: flex; // border-radius: 8px 8px 0 0;
justify-content: space-around; .top {
.btn { display: flex;
padding-top: 16px; justify-content: space-around;
} .btn {
.img { padding-top: 16px;
display: block; }
margin: 0 auto 8px; .img {
width: 40px; display: block;
height: 40px; margin: 0 auto 8px;
} width: 40px;
.name { height: 40px;
font-size: 12px;
color: #323436;
text-align: center;
}
.btn-wechat {
width: auto;
margin: 0;
padding: 0;
background-color: #fff;
}
} }
.btom { // .name {
margin: 18px auto 0; // font-size: 12px;
width: 343px; // color: #323436;
height: 44px; // text-align: center;
line-height: 44px; // }
border: 1px solid #eeeeee; .name0{
border-radius: 4px; 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 {
width: auto;
margin: 0;
padding: 0;
background-color: #fff;
}
}
.btom {
margin: 18px auto 0;
width: 343px;
height: 44px;
line-height: 44px;
border: 1px solid #eeeeee;
border-radius: 4px;
text-align: center;
} }
} }
......
<!--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="{{IMG_URL}}index/prod/{{senceData[actNum].productList[activeNavIdx].img}}.png" />
<image src="{{IMGURL}}discovery_prod1.png" /> --> </view>
<image src="{{IMG_URL}}index/prod/{{senceData[actNum].productList[activeNavIdx].img}}.png" /> <view class="prod-info">
</view>
<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 ? '三年售后存量数':'新车销量'}}&nbsp;<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 ? '三年售后存量数':'新车销量'}}&nbsp;
<text class="sale-num">
{{senceData[actNum]['productList'][activeNavIdx].varType == 1? senceData[actNum]['productList'][activeNavIdx].flow : senceData[actNum]['productList'][activeNavIdx].sale}}
</text>
</text> </text>
<text class="earnings" decode="{{true}}">预估收益&nbsp;<text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text> <text class="earnings" decode="{{true}}">
预估收益&nbsp;
<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="top"> <view class="btns-wrap">
<view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}"> <view class="top">
<block wx:if="{{index == 0}}"> <view class="btn" wx:for="{{btnList}}" wx:key="name" bindtap="handleClick" data-index="{{index}}">
<button open-type="share" class="btn-wechat"> <block wx:if="{{index == 1}}">
<image class="img" src="{{item.src}}" /> <button open-type="share" class="btn-wechat">
<view class="name">{{item.name}}</view> <view class="name{{index}}">{{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 class="btom" bindtap="modelcloseFn">取消</view>
</view> </view>
<!-- <view class="btom" bindtap="modelcloseFn">取消</view> -->
</view> </view>
<!-- 授权昵称 --> <!-- 授权昵称 -->
<!-- !hasUserInfo && !isShow --> <!-- !hasUserInfo && !isShow -->
<view wx:if="{{!hasUserInfo && isShare && isAuthphone}}" class="user-profile" bindtap="getUserProfile"></view> <view wx:if="{{!hasUserInfo && isShare && isAuthphone}}" class="user-profile" bindtap="getUserProfile"></view>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!