Commit 0969cbe6 by luyt

feat;查看产品详情

1 parent 4b985613
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
"pages/webView/webView", "pages/webView/webView",
"login/index/index", "login/index/index",
"login/accountItems/accountItems", "login/accountItems/accountItems",
"pages/apply/apply" "pages/apply/apply",
"pages/checkProduct/checkProduct"
], ],
"requiredPrivateInfos": [ "requiredPrivateInfos": [
"getLocation" "getLocation"
......
...@@ -12,7 +12,7 @@ Page({ ...@@ -12,7 +12,7 @@ Page({
*/ */
data: { data: {
navStyle, navStyle,
IMG_URL:IMG_URLLocal, IMG_URL,
carObj:{ carObj:{
name:'kafdkf', name:'kafdkf',
model:'dfdsf3443', model:'dfdsf3443',
......
// pages/checkProduct/checkProduct.js
// const navStyle = "background-color: transparent;";
const navStyle = "background-color: #fff";
Page({
/**
* 页面的初始数据
*/
data: {
navStyle,
headerHeight:0,
},
// navbar高度设置
navbarReady(e) {
let { height, statusBarHeight } = e.detail;
this.setData({
headerHeight: height / 2 + statusBarHeight,
// headerHeight: height / 2 + statusBarHeight + 88 * 2,
});
// console.log(e)
// console.log(this.data.headerHeight)
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"product": "../tab/index/components/product/product"
},
"navigationStyle": "custom",
"onReachBottomDistance": 10,
"backgroundColor": "#FC5B32",
"enablePullDownRefresh": true
}
/* pages/checkProduct/checkProduct.wxss */
\ No newline at end of file \ No newline at end of file
<!--pages/checkProduct/checkProduct.wxml-->
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">特色产品</navigation-bar>
<view style="height:{{headerHeight}}px">
</view>
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" />
...@@ -24,7 +24,7 @@ Component({ ...@@ -24,7 +24,7 @@ Component({
"项目亮点", "项目亮点",
"转化漏斗", "转化漏斗",
"合作流程", "合作流程",
"合作案例", // "合作案例",
], ],
heightArr: [], heightArr: [],
allHeight: 0, allHeight: 0,
...@@ -40,27 +40,44 @@ Component({ ...@@ -40,27 +40,44 @@ Component({
}, },
observers: { observers: {
actNum: function () { actNum: function () {
console.log(1231)
let navList; let navList;
let tab = [
"场景说明",
"营销链路",
"项目亮点",
"转化漏斗",
"合作流程",
// "合作案例",
];
let num = this.data.actNum; let num = this.data.actNum;
switch (num) { switch (num) {
case 0: case 0:
navList = ['数字无忧权益卡'] navList = ["数字无忧权益卡"];
break; break;
case 1: case 1:
navList = ['汽车太阳膜'] navList = ["汽车太阳膜"];
break; break;
case 2: case 2:
navList = ['漆面保护膜','改色膜'] navList = ["漆面保护膜", "改色膜"];
break; break;
case 3: case 3:
navList = ['数字化美容','座椅通风','AR导航','氛围灯','360全景导航'] navList = [
"数字化美容",
"座椅通风",
"AR导航",
"氛围灯",
"360全景导航",
];
break; break;
} }
this.setData({ this.setData({
navList navList,
tab,
intoViewId: `to-0`,
}); });
// 每次切换场景,重新获取流程图高度
this.getImgHeight();
}, },
}, },
...@@ -75,7 +92,6 @@ Component({ ...@@ -75,7 +92,6 @@ Component({
}); });
}, },
changeNav(event) { changeNav(event) {
console.log(event, event.target.dataset.index, 111);
this.setData({ this.setData({
activeNavIdx: event.target.dataset.index, activeNavIdx: event.target.dataset.index,
}); });
...@@ -87,6 +103,7 @@ Component({ ...@@ -87,6 +103,7 @@ Component({
this.setData({ this.setData({
curTabIdx: idx, curTabIdx: idx,
}); });
// console.log(this.data.curTabIdx1) // console.log(this.data.curTabIdx1)
}, },
getImgHeight() { getImgHeight() {
...@@ -106,5 +123,36 @@ Component({ ...@@ -106,5 +123,36 @@ Component({
}) })
.exec(); .exec();
}, },
// 图片流程5 点击往下获取更多
// 没登陆用户(登陆后解锁全部)
getMoreFn(e) {
let { actNum } = this.data;
console.log('inactNumdex: ', actNum);
let tab = [
"场景说明",
"营销链路",
"项目亮点",
"转化漏斗",
"合作流程",
// "合作案例",
];
switch (actNum) {
case 0:
tab.push("合作案例");
break;
case 1:
tab.push("合作案例");
break;
case 2:
break;
case 3:
tab.push("合作案例");
break;
}
this.setData({
tab,
});
},
}, },
}); });
...@@ -149,7 +149,22 @@ ...@@ -149,7 +149,22 @@
height: 1200rpx; height: 1200rpx;
white-space: nowrap; white-space: nowrap;
.img-item { .img-item {
height: 300rpx; position: relative;
}
.more-btn {
position: absolute;
left: 50%;
bottom: 50px;
transform: translateX(-50%);
width: 311px;
height: 48px;
background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/btn.png");
background-size: 100% 100%;
font-weight: 500;
font-size: 16px;
color: #ffffff;
text-align: center;
line-height: 64rpx;
} }
} }
.stickyTab { .stickyTab {
...@@ -169,6 +184,7 @@ ...@@ -169,6 +184,7 @@
// } // }
// } // }
// 流程图一
.img-item11 { .img-item11 {
width: 100%; width: 100%;
height: 1110rpx; height: 1110rpx;
...@@ -193,3 +209,80 @@ ...@@ -193,3 +209,80 @@
width: 100%; width: 100%;
height: 1532rpx; height: 1532rpx;
} }
// 流程图二
.img-item21 {
width: 100%;
height: 2168rpx;
}
.img-item22 {
width: 100%;
height: 1290rpx;
}
.img-item23 {
width: 100%;
height: 596rpx;
}
.img-item24 {
width: 100%;
height: 830rpx;
}
.img-item25 {
width: 100%;
height: 490rpx;
}
.img-item26 {
width: 100%;
height: 752rpx;
}
// 流程图三
.img-item31 {
width: 100%;
height: 1110rpx;
}
.img-item32 {
width: 100%;
height: 1290rpx;
}
.img-item33 {
width: 100%;
height: 596rpx;
}
.img-item34 {
width: 100%;
height: 984rpx;
}
.img-item35 {
width: 100%;
height: 490rpx;
}
// .img-item26 {
// width: 100%;
// height: 752rpx;
// }
// 流程图四
.img-item41 {
width: 100%;
height: 678rpx;
}
.img-item42 {
width: 100%;
height: 1266rpx;
}
.img-item43 {
width: 100%;
height: 1398rpx;
}
.img-item44 {
width: 100%;
height: 830rpx;
}
.img-item45 {
width: 100%;
height: 490rpx;
}
.img-item46 {
width: 100%;
height: 1666rpx;
}
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
scroll-y="{{true}}" scroll-y="{{true}}"
> >
<block wx:for="{{tab}}" wx:key="index"> <block wx:for="{{tab}}" wx:key="index">
<view id="to-{{index}}" class="img-item{{actNum+1}}{{index+1}}"> <view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}">
<!-- {{item}} --> <!-- {{item}} -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" /> <image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" />
<button wx:if="{{ actNum != 2 && index == 4}}" class="more-btn" data-index="{{index}}" bindtap="getMoreFn">点击查看更多详情</button>
</view> </view>
</block> </block>
</scroll-view> </scroll-view>
......
...@@ -278,15 +278,21 @@ Page({ ...@@ -278,15 +278,21 @@ Page({
}, },
}); });
}, },
// 打电话
phoneCallFn(e) { phoneCallFn(e) {
let { phone } = e.currentTarget.dataset; let { phone } = e.currentTarget.dataset;
console.log("phone: ", phone); console.log("phone: ", phone);
wx.$api.phoneCall(phone); wx.$api.phoneCall(phone);
}, },
// 复制号码
setCopyDataFn(e) { setCopyDataFn(e) {
let { phone } = e.currentTarget.dataset; let { phone } = e.currentTarget.dataset;
wx.$api.setCopyData(phone); wx.$api.setCopyData(phone);
}, },
// 聊天
chatFn() {},
// 估值
valuationFn() {},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
......
...@@ -240,25 +240,44 @@ page { ...@@ -240,25 +240,44 @@ page {
justify-content: space-between; justify-content: space-between;
.item-wrap { .item-wrap {
position: relative; position: relative;
width: 106px; width: 86px;
height: 116px; height: 90px;
border-radius:10px;
} }
.item { .item {
// padding-top: 10px;
width: 86px; width: 86px;
height: 90px; height: 90px;
background: #f7f8fc; background: #f7f8fc;
border-radius: 6px; border-radius: 6px;
} }
.act { .act {
background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png"); // background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
background-size: 100% 100%; // background-size: 100% 100%;
border: 1px solid var(--btnColor);
box-shadow: 0 0 10px #999;
&::after{
position: absolute;
left: 50%;
bottom: -7px;
display:block;
content: "";
width:6px;
height: 6px;
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
background-color: #fff;
}
.item { .item {
background: transparent; background: transparent;
} }
} }
.img { .img {
padding-top: 10px;
display: block; display: block;
margin: 10px auto 2px; margin: 0 auto 2px;
width: 28px; width: 28px;
height: 28px; height: 28px;
} }
...@@ -289,16 +308,16 @@ page { ...@@ -289,16 +308,16 @@ page {
} }
} }
.chat { .chat {
position: absolute; position: fixed;
right: 0; right: -4px;
top: 60%; top: 60%;
width: 50px; width: 60px;
height: 50px; height: 60px;
border-radius: 50%; border-radius: 50%;
z-index: 1; z-index: 1;
} }
.output-value { .output-value {
position: absolute; position: fixed;
right: 5px; right: 5px;
top: 70%; top: 70%;
width: 40px; width: 40px;
......
...@@ -3,14 +3,6 @@ ...@@ -3,14 +3,6 @@
<view class="reclaim"> <view class="reclaim">
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')"> <view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header"> <view class="header">
<!-- <view class="left">
<view class="clue {{actClass == 'left'?'act':''}}" bindtap="headTabFn" data-name="left">
看线索
</view>
<view class="product {{actClass == 'right'?'act':''}}" bindtap="headTabFn" data-name="right">
看产品
</view>
</view> -->
<tab tab="{{tabList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" bindclick="changeTabIndx" class="tabContainer" /> <tab tab="{{tabList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="right" bindtap="gotoApply"> <view class="right" bindtap="gotoApply">
<image class="img" src="{{IMG_URL}}index/apply.png" /> <image class="img" src="{{IMG_URL}}index/apply.png" />
...@@ -126,5 +118,5 @@ ...@@ -126,5 +118,5 @@
<view class="guide" wx:if="{{guideShow}}"> <view class="guide" wx:if="{{guideShow}}">
<image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" /> <image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
</view> </view>
<image class="chat" src="{{IMG_URL}}index/contact.png"></image>
<image class="output-value" src="{{IMG_URL}}index/valuation.png"></image>
\ No newline at end of file \ No newline at end of file
<image class="chat" bindtap="chatFn" src="{{IMG_URL}}index/contact.png" />
<image class="output-value" bindtap="valuationFn" src="{{IMG_URL}}index/valuation.png" />
\ 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!