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 a54a5b91
authored
Oct 24, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix;分享头部添加
1 parent
d21722cf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
6 deletions
pages/checkProduct/checkProduct.js
pages/checkProduct/checkProduct.scss
pages/checkProduct/checkProduct.wxml
pages/tab/index/components/product/product.js
pages/checkProduct/checkProduct.js
View file @
a54a5b9
...
@@ -441,7 +441,18 @@ Page({
...
@@ -441,7 +441,18 @@ Page({
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow(options) {},
onShow(options) {
// wx.nextTick(()=>{
// let {senceData ,actNum, activeNavIdx} = this.data
// console.log('senceData: ', senceData,actNum,activeNavIdx);
// let item = senceData[actNum]?.productList[activeNavIdx].proName;
// console.log('item: ', item);
// wx.setNavigationBarTitle({
// title: item.proName,
// })
// })
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
...
...
pages/checkProduct/checkProduct.scss
View file @
a54a5b9
/* pages/checkProduct/checkProduct.wxss */
/* pages/checkProduct/checkProduct.wxss */
.productCon
{
.productCon
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding-top
:
88px
;
padding-top
:
88px
;
display
:
block
;
display
:
block
;
...
@@ -23,6 +23,81 @@
...
@@ -23,6 +23,81 @@
height
:
311px
;
height
:
311px
;
// background-color: red;
// background-color: red;
overflow
:
auto
;
overflow
:
auto
;
.prod-item
{
background-color
:
#f5f7fb
;
.prod-item
{
padding
:
0
32rpx
32rpx
;
margin
:
16rpx
auto
0
;
// background-color: #f5f7fb;
// border-radius: 48rpx 48rpx 0 0;
}
.prod-card
{
display
:
flex
;
height
:
120rpx
;
background-image
:
linear-gradient
(
1deg
,
#ffffff
10%
,
#fdfcff
100%
);
border
:
2rpx
solid
#ffffff
;
// box-shadow: 0 8rpx 20rpx 0 rgba(197, 205, 235, 0.35);
border-radius
:
20rpx
;
padding
:
0
24rpx
;
// box-sizing: border-box;
position
:
relative
;
}
.prod-card
.card-img
{
padding-top
:
10rpx
;
width
:
100rpx
;
height
:
100rpx
;
flex-shrink
:
0
;
border-radius
:
4rpx
;
}
.img-desc
{
position
:
absolute
;
width
:
104rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
background
:
#d7f5eb
;
border-radius
:
4rpx
;
font-family
:
PingFangSC-Medium
;
font-weight
:
600
;
font-size
:
24rpx
;
color
:
#24b38c
;
letter-spacing
:
0
;
text-align
:
center
;
}
.prod-info
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
padding
:
12rpx
0
;
margin-left
:
24rpx
;
}
.prod-info
>
text
{
display
:
block
;
white-space
:
nowrap
;
// height: 40rpx;
// line-height: 40rpx;
}
.prod-info
.title
{
font-weight
:
500
;
font-size
:
16rpx
;
color
:
#323436
;
}
.prod-info
.sale
,
.prod-info
.earnings
{
font-size
:
16rpx
;
color
:
#7a8299
;
}
.prod-info
.sale-num
{
font-size
:
14rpx
;
color
:
#323436
;
}
.prod-info
.earnings-num
{
font-size
:
14rpx
;
font-weight
:
Bold
;
color
:
#f35251
;
}
}
.img
{
.img
{
width
:
100%
;
width
:
100%
;
// height: auto;
// height: auto;
...
@@ -55,7 +130,7 @@
...
@@ -55,7 +130,7 @@
color
:
#323436
;
color
:
#323436
;
text-align
:
center
;
text-align
:
center
;
}
}
.btn-wechat
{
.btn-wechat
{
width
:
auto
;
width
:
auto
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
...
...
pages/checkProduct/checkProduct.wxml
View file @
a54a5b9
<!--pages/checkProduct/checkProduct.wxml-->
<!--pages/checkProduct/checkProduct.wxml-->
<navigation-bar showBack="{{true}}" bindnavbarReady="navbarReady" navStyle="{{navStyle}}">
特色产品
</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> -->
...
@@ -10,6 +10,27 @@
...
@@ -10,6 +10,27 @@
<view class="share-wrap" wx:if="{{isShow}}">
<view class="share-wrap" wx:if="{{isShow}}">
{{IMG_URL}}
{{IMG_URL}}
<view class="img-wrap">
<view class="img-wrap">
<view class="prod-item">
<view class="prod-card">
<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" />
</view>
<view class="prod-info">
<text class="title">{{senceData[actNum].productList[activeNavIdx].proName}}</text>
<!-- senceData[actNum]['productList'][activeNavIdx].changeSale || -->
<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>
</text>
<text class="earnings" decode="{{true}}">预估收益 <text class="earnings-num">{{senceData[actNum]['productList'][activeNavIdx].profit}}</text>
</text>
</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>
<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">
<!-- <block wx:for="{{imgList}}" wx:key="*this">
<image mode="widthFix" class="img" src="{{item}}"/>
<image mode="widthFix" class="img" src="{{item}}"/>
...
...
pages/tab/index/components/product/product.js
View file @
a54a5b9
...
@@ -53,8 +53,6 @@ Component({
...
@@ -53,8 +53,6 @@ Component({
},
},
lifetimes
:
{
lifetimes
:
{
ready
:
function
()
{
ready
:
function
()
{
console
.
log
(
'this.data.wrapactiveNavIdx: '
,
this
.
data
.
wrapactiveNavIdx
);
if
(
!
this
.
data
.
outshowVideo
){
if
(
!
this
.
data
.
outshowVideo
){
this
.
setData
({
this
.
setData
({
...
...
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