Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 9b4721b6
authored
Sep 05, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
面向渠道、tab切换
1 parent
8bc1e4e9
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
121 additions
and
15 deletions
pages/applicationPartener/applicationPartener.wxml
pages/applicationPartener/applicationPartener.wxss
pages/applySuccess/applySuccess.wxml
pages/tab/index/index.js
pages/tab/index/index.wxml
pages/tab/index/index.wxss
pages/template/channel/channel.wxml
pages/template/channel/channel.wxss
pages/applicationPartener/applicationPartener.wxml
View file @
9b4721b
<!--pages/applicationPartener/applicationPartener.wxml-->
<!--pages/applicationPartener/applicationPartener.wxml-->
<view class="apply-partener">
<view class="apply-partener">
<view class="apply-top">
<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>
<view class="apply-title">申请城市合伙人</view>
<!-- <button class="add-btn" plain="true">
<!-- <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>
<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 @@
...
@@ -21,12 +21,16 @@
<picker mode="region" name="province" value="{{parternerForm.province}}" bindchange="bindRegionChange">
<picker mode="region" name="province" value="{{parternerForm.province}}" bindchange="bindRegionChange">
<view class='info-list'>
<view class='info-list'>
<text class="info-lable">所在省市<text class="require"> *</text></text>
<text class="info-lable">所在省市<text class="require"> *</text></text>
<view class="province-box">
<view>
<block wx:if="{{!parternerForm.province.length}}">
<block wx:if="{{!parternerForm.province.length}}">
<view class="province-placeholder">请选择</view>
<view class="province-placeholder">请选择</view>
</block>
</block>
<block wx:else>
<block wx:else>
<view>{{parternerForm.province}}</view>
<view>{{parternerForm.province}}</view>
</block>
</block></view>
<view class="province-icon"></view>
</view>
</view>
</view>
</picker>
</picker>
<!-- <view class='info-list'>
<!-- <view class='info-list'>
...
...
pages/applicationPartener/applicationPartener.wxss
View file @
9b4721b
...
@@ -86,6 +86,24 @@
...
@@ -86,6 +86,24 @@
overflow: auto;
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 {
.province-placeholder {
font-size:28rpx;
font-size:28rpx;
color: #9E9EA8;
color: #9E9EA8;
...
...
pages/applySuccess/applySuccess.wxml
View file @
9b4721b
<!--pages/applySuccess/applySuccess.wxml-->
<!--pages/applySuccess/applySuccess.wxml-->
<view class="success-box">
<view class="success-box">
<view>
<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>
<view class="success-title">申请成功</view>
<view class="success-title">申请成功</view>
<view class="success-text">您的合伙人对外宣传合作案例页面已生成,</view>
<view class="success-text">您的合伙人对外宣传合作案例页面已生成,</view>
...
...
pages/tab/index/index.js
View file @
9b4721b
...
@@ -12,12 +12,35 @@ Page({
...
@@ -12,12 +12,35 @@ Page({
*/
*/
data
:
{
data
:
{
introduceName
:
""
,
introduceName
:
""
,
tabList
:
[
{
name
:
'公司介绍'
,
icon
:
'icon-company'
},
{
name
:
'方案介绍'
,
icon
:
'icon-product'
},
{
name
:
'视频直播'
,
icon
:
'icon-video'
},
{
name
:
'合作申请'
,
icon
:
'icon-cooperation'
},
],
curTabIndex
:
0
},
},
introduce
(
e
)
{
introduce
(
e
)
{
console
.
log
(
e
.
target
.
dataset
.
name
);
console
.
log
(
e
.
currentTarget
);
const
name
=
e
.
target
.
dataset
.
name
;
const
{
name
}
=
e
.
currentTarget
.
dataset
.
name
;
const
curTabIndex
=
e
.
currentTarget
.
dataset
.
index
;
this
.
setData
({
curTabIndex
:
curTabIndex
})
switch
(
name
)
{
switch
(
name
)
{
case
"
城市合伙人
"
:
case
"
合作申请
"
:
wx
.
$router
.
go
(
"applicationPartener"
);
wx
.
$router
.
go
(
"applicationPartener"
);
break
;
break
;
case
"视频直播"
:
case
"视频直播"
:
...
...
pages/tab/index/index.wxml
View file @
9b4721b
...
@@ -3,14 +3,16 @@
...
@@ -3,14 +3,16 @@
<import src="../../template/channel/channel.wxml" />
<import src="../../template/channel/channel.wxml" />
<template is="channel"></template>
<template is="channel"></template>
<view class="tab-list">
<view class="tab-list">
<view class="tab-item" data-name="公司介绍" bindtap="introduce">公司介绍</view>
<block wx:for="{{tabList}}">
<view class="tab-item" data-name="产品介绍" bindtap="introduce">产品介绍</view>
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" data-name="{{item}}" data-index="{{index}}"bindtap="introduce">
<view class="tab-item" data-name="视频直播" bindtap="introduce">视频直播</view>
<image class="tab-img" mode="widthFix" webp src="{{IMGURL}}/home/{{item.icon}}.png"></image>
<view class="tab-item" data-name="城市合伙人" bindtap="introduce">城市合伙人</view>
<view>{{item.name}}</view>
</view>
</block>
</view>
</view>
{{introduceName}}
{{introduceName}}
<import src="../../template/company/company.wxml" />
<import src="../../template/company/company.wxml" />
<block
>
<block>
<template is="company"></template>
<template is="company"></template>
</block>
</block>
<!-- <view>{{introduceName}}</view> -->
<!-- <view>{{introduceName}}</view> -->
...
...
pages/tab/index/index.wxss
View file @
9b4721b
...
@@ -3,11 +3,35 @@
...
@@ -3,11 +3,35 @@
@import '../../template/channel/channel.wxss';
@import '../../template/channel/channel.wxss';
.tab-list {
.tab-list {
display: flex;
display: flex;
justify-content: space-evenly
justify-content: space-evenly
;
}
}
.tab-item {
.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 {
.application {
position: fixed;
position: fixed;
bottom: 0;
bottom: 0;
...
...
pages/template/channel/channel.wxml
View file @
9b4721b
<template name="channel">
<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>
</template>
\ No newline at end of file
\ No newline at end of file
pages/template/channel/channel.wxss
View file @
9b4721b
.channel-bg {
.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
\ No newline at end of file
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