Commit 19e9ab72 by 胡悦

提交

1 parent 40420735
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
"pages/productDetail/navigationArround/navigationArround", "pages/productDetail/navigationArround/navigationArround",
"pages/productDetail/paintProtect/paintProtect", "pages/productDetail/paintProtect/paintProtect",
"pages/productDetail/seatVentilate/seatVentilate", "pages/productDetail/seatVentilate/seatVentilate",
"pages/productDetail/solarFilm/solarFilm" "pages/productDetail/solarFilm/solarFilm",
"pages/activityApplication/activityApplication"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
// pages/activityApplication/activityApplication.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
<!--pages/activityApplication/activityApplication.wxml-->
<text>pages/activityApplication/activityApplication.wxml</text>
/* pages/activityApplication/activityApplication.wxss */
\ No newline at end of file \ No newline at end of file
...@@ -372,6 +372,20 @@ Page({ ...@@ -372,6 +372,20 @@ Page({
}, },
}); });
}, },
// banner跳转
jumpBanner(e) {
console.log(e)
const path = e.target.dataset.path
switch(path) {
case 'left':
console.log('数字化+新能源汽车')
break
case 'right':
console.log('众筹活动助力')
wx.$router.go("activityApplication");
break
}
},
// 获取员工名片信息 // 获取员工名片信息
getCardDetail() { getCardDetail() {
console.log(util.getStorageSync('scene'), wx.$trackData.cardId) console.log(util.getStorageSync('scene'), wx.$trackData.cardId)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<user-info data-skeleton-hide="cardInfo" shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}"></user-info> <user-info data-skeleton-hide="cardInfo" shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}"></user-info>
<view class="main-bottom"> <view class="main-bottom">
<!-- 面向渠道 --> <!-- 面向渠道 -->
<template is="channel"></template> <template is="channel" data="{{IMGURL, img_version}}"></template>
<!-- tab介绍 --> <!-- tab介绍 -->
<view class="tab-list"> <view class="tab-list">
<block wx:for="{{tabList}}" wx:key="index"> <block wx:for="{{tabList}}" wx:key="index">
......
<template name="channel"> <template name="channel">
<view class="channel-bg"> <view class="channel-bg">
<image class="channel-img" mode="widthFix" webp src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/banner-bg.png" data-name="logo"></image> <!-- <image class="channel-img" mode="widthFix" webp src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/banner-bg.png" data-name="logo"></image>
<view class="channel-word"> <view class="channel-word">
<view class="channel-title">面向渠道</view> <view class="channel-title">面向渠道</view>
<view class="channel-text">助力数字化转型,实现获客增值</view> <view class="channel-text">助力数字化转型,实现获客增值</view>
</view> -->
<image class="channel-img" mode="widthFix" webp src="{{IMGURL}}home/banner-left.png?v={{img_version}}" bindtap="jumpBanner" data-path="left"></image>
<image class="channel-img" mode="widthFix" webp src="{{IMGURL}}home/banner-right.png?v={{img_version}}" bindtap="jumpBanner" data-path="right"></image>
</view> </view>
</view>
</template> </template>
\ No newline at end of file \ No newline at end of file
.channel-bg { .channel-bg {
width: 700rpx; /* width: 700rpx;
height: 144rpx; height: 144rpx; */
margin: 0 auto; margin: 0 22rpx;
position: relative; position: relative;
} }
.channel-img { .channel-img {
width: 100%; width: calc(50% - 10rpx);
height: 168rpx;
}
.channel-img:first-child {
margin-right: 16rpx;
} }
.channel-word { .channel-word {
position: absolute; position: absolute;
top: 24rpx; top: 24rpx;
left: 38rpx; left: 38rpx;
} }
.channel-title { .channel-title {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!