Commit 9b4721b6 by 匡雅琴

面向渠道、tab切换

1 parent 8bc1e4e9
<!--pages/applicationPartener/applicationPartener.wxml-->
<view class="apply-partener">
<view class="apply-top">
<image class="apply-background" mode="widthFix" webp src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/apply-background.png" bindload="imgSuccess" data-name="logo"></image>
<image class="apply-background" mode="widthFix" webp src="{{IMGURL}}/home/apply-background.png" bindload="imgSuccess" data-name="logo"></image>
<view class="apply-title">申请城市合伙人</view>
<!-- <button class="add-btn" plain="true">
<image class="apply-code" mode="widthFix" webp src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/OR-code.png" bindload="imgSuccess" data-name="logo"></image>
......@@ -21,12 +21,16 @@
<picker mode="region" name="province" value="{{parternerForm.province}}" bindchange="bindRegionChange">
<view class='info-list'>
<text class="info-lable">所在省市<text class="require"> *</text></text>
<view class="province-box">
<view>
<block wx:if="{{!parternerForm.province.length}}">
<view class="province-placeholder">请选择</view>
</block>
<block wx:else>
<view>{{parternerForm.province}}</view>
</block>
</block></view>
<view class="province-icon"></view>
</view>
</view>
</picker>
<!-- <view class='info-list'>
......
......@@ -86,6 +86,24 @@
overflow: auto;
}
.province-box {
width: 460rpx;
display: flex;
justify-content: space-between;
position: relative;
}
.province-icon {
width: 10rpx;
height: 10rpx;
transform: rotate(135deg);
border-top: 1px solid #9E9EA8;
border-left: 1px solid #9E9EA8;
position: absolute;
top: 12rpx;
right: 3rpx;
}
.province-placeholder {
font-size:28rpx;
color: #9E9EA8;
......
<!--pages/applySuccess/applySuccess.wxml-->
<view class="success-box">
<view>
<image class="success-img" mode="widthFix" webp src="https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/success.png" bindload="imgSuccess" data-name="logo"></image>
<image class="success-img" mode="widthFix" webp src="{{IMGURL}}/home/success.png" bindload="imgSuccess" data-name="logo"></image>
</view>
<view class="success-title">申请成功</view>
<view class="success-text">您的合伙人对外宣传合作案例页面已生成,</view>
......
......@@ -12,12 +12,35 @@ Page({
*/
data: {
introduceName: "",
tabList: [
{
name:'公司介绍',
icon: 'icon-company'
},
{
name:'方案介绍',
icon: 'icon-product'
},
{
name:'视频直播',
icon: 'icon-video'
},
{
name:'合作申请',
icon: 'icon-cooperation'
},
],
curTabIndex: 0
},
introduce(e) {
console.log(e.target.dataset.name);
const name = e.target.dataset.name;
console.log(e.currentTarget);
const {name} = e.currentTarget.dataset.name;
const curTabIndex = e.currentTarget.dataset.index;
this.setData({
curTabIndex: curTabIndex
})
switch (name) {
case "城市合伙人":
case "合作申请":
wx.$router.go("applicationPartener");
break;
case "视频直播":
......
......@@ -3,14 +3,16 @@
<import src="../../template/channel/channel.wxml" />
<template is="channel"></template>
<view class="tab-list">
<view class="tab-item" data-name="公司介绍" bindtap="introduce">公司介绍</view>
<view class="tab-item" data-name="产品介绍" bindtap="introduce">产品介绍</view>
<view class="tab-item" data-name="视频直播" bindtap="introduce">视频直播</view>
<view class="tab-item" data-name="城市合伙人" bindtap="introduce">城市合伙人</view>
<block wx:for="{{tabList}}">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" data-name="{{item}}" data-index="{{index}}"bindtap="introduce">
<image class="tab-img" mode="widthFix" webp src="{{IMGURL}}/home/{{item.icon}}.png"></image>
<view>{{item.name}}</view>
</view>
</block>
</view>
{{introduceName}}
<import src="../../template/company/company.wxml" />
<block >
<block>
<template is="company"></template>
</block>
<!-- <view>{{introduceName}}</view> -->
......
......@@ -3,11 +3,35 @@
@import '../../template/channel/channel.wxss';
.tab-list {
display: flex;
justify-content: space-evenly
justify-content: space-evenly;
}
.tab-item {
background-color: bisque;
width: 160rpx;
height: 144rpx;
background: #F5F6FA;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 24rpx;
color: #6E6D8F;
text-align: center;
margin-top: 24rpx;
}
.tab-item-active {
color: #FFFFFF;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/icon-bg.png");
background-size: 160rpx 144rpx;
}
.tab-img {
width: 72rpx;
height: 72rpx;
margin-top: 16rpx;
}
.application {
position: fixed;
bottom: 0;
......
<template name="channel">
<view class="channel-bg">面向渠道</view>
<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" bindload="imgSuccess" data-name="logo"></image>
<view class="channel-word">
<view class="channel-title">面向渠道</view>
<view class="channel-text">助力数字化转型,实现获客增值</view>
</view>
</view>
</template>
\ No newline at end of file
.channel-bg {
background-color: aqua;
width: 700rpx;
height: 144rpx;
margin: 0 auto;
position: relative;
}
.channel-img {
width: 100%;
}
.channel-word {
position: absolute;
top: 24rpx;
left: 38rpx;
}
.channel-title {
font-family: AlibabaPuHuiTiM;
font-weight: 600;
font-size: 36rpx;
color: #2D2D33;
line-height: 56rpx;
}
.channel-text {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: #6E6E7A;
line-height: 36rpx;
}
\ 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!