Commit b3edf4ea by 李伟康

Merge branch 'kuangyq_v2.10.0' of http://192.168.3.233:8090/saas/mini-program/ai…

…-card into kuangyq_v2.10.0
2 parents d89a0516 3958072e
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
"pages": [ "pages": [
"pages/tab/index/index", "pages/tab/index/index",
"pages/applicationAccount/applicationAccount", "pages/applicationAccount/applicationAccount",
"pages/applicationPartener/applicationPartener" "pages/applicationPartener/applicationPartener",
"pages/applySuccess/applySuccess",
"pages/tab/introduction/introduction"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
...@@ -12,12 +12,19 @@ Component({ ...@@ -12,12 +12,19 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
showWechant: false
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
addWechat() {
console.log(112, this.data.showWechant)
this.setData({
showWechant: !this.data.showWechant
})
console.log(this.data.showWechant)
}
} }
}) })
\ No newline at end of file \ No newline at end of file
<view class="user-wrapper"> <view class="user-wrapper">
<view class="user-info"> <view class="user-info">
<image class="user-bg" webp src="{{IMGURL}}/home/user-bg.png" /> <block wx:if="{{!showWechant}}">
<view class="user-company"> <view class="user-company">
<image class="company-logo" webp src="{{IMGURL}}/home/logo.png"></image> <image class="company-logo" webp src="{{IMGURL}}home/logo.png"></image>
<text>汽车流通行业数字化运营服务商</text> <text>汽车流通行业数字化运营服务商</text>
</view>
<view class="user-name">
<view class="name">石文</view>
<view class="position">市场总监</view>
</view>
<view class="user-phone">
<image class="user-icon" webp src="{{IMGURL}}home/icon-phone.png"></image>
<view>13274150220</view>
</view>
<view class="user-address">
<image class="user-icon" webp src="{{IMGURL}}home/icon-address.png"></image>
<view class="address">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view>
<image class="user-avatar" src="https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg"></image>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/add-wechat.png"></image>
</block>
<view class="scrm" wx:else>
<image class="srcm-img" src="https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg"></image>
<view class="scrm-text">长按识别二维码,免费体验嘀加SCRM</view>
<image bindtap="addWechat" class="add-wechat" webp src="{{IMGURL}}home/back-user.png"></image>
</view> </view>
<view class="user-name"> <image class="user-bg" webp src="{{IMGURL}}home/user-bg.png" />
<view class="name">石文</view> </view>
<view class="position">市场总监</view> <view class="btn-group">
<view class="phone-btn">
<image class="icon-dial" webp src="{{IMGURL}}home/icon-dial.png"></image>
<view class="phone-text">拨打电话</view>
</view> </view>
<view class="user-phone"> <view class="btn-plain btn">
<image class="user-icon" webp src="{{IMGURL}}/home/icon-phone.png"></image> 保存名片
<view>13274150220</view>
</view> </view>
<view class="user-address"> <view class="btn-primary btn">
<image class="user-icon" webp src="{{IMGURL}}/home/icon-address.png"></image> 分享名片
<view class="address">深圳市南山区留仙大道3370号南山智园崇文园区1号楼14层</view>
</view> </view>
<image class="user-avatar" src="https://img.zcool.cn/community/01e47e60ab5b4011013eaf70962e3f.jpg@520w_390h_1c_1e_2o_100sh.jpg"></image>
<image class="add-wechat" webp src="{{IMGURL}}/home/add-wechat.png"></image>
</view>
<view class="btn-group">
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
.user-wrapper { .user-wrapper {
padding: 24rpx 32rpx 32rpx; padding: 24rpx 32rpx;
background-color: #fff; background-color: #fff;
z-index: -1;
margin-bottom: 20rpx;
} }
.user-info { .user-info {
position: relative; position: relative;
height: 400rpx; height: 416rpx;
padding: 40rpx 52rpx; padding: 40rpx 52rpx;
box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35); box-shadow: 0 12rpx 32rpx 0 rgba(147, 160, 194, .35);
border-radius: 16rpx; border-radius: 16rpx;
...@@ -17,7 +19,8 @@ ...@@ -17,7 +19,8 @@
right: 0; right: 0;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 400rpx; height: 416rpx;
z-index: -1;
} }
.user-company { .user-company {
display: flex; display: flex;
...@@ -91,4 +94,61 @@ ...@@ -91,4 +94,61 @@
right: 0; right: 0;
width: 112rpx; width: 112rpx;
height: 120rpx; height: 120rpx;
}
.scrm {
text-align: center;
z-index: 1;
}
.srcm-img {
margin-top: 44rpx;
width: 192rpx;
height: 192rpx;
}
.scrm-text {
margin-top: 32rpx;
font-size: 28rpx;
color: #2d2d33;
}
.btn-group {
margin-top: 40rpx;
display: flex;
justify-content: space-between;
}
.phone-btn {
width: 136rpx;
height: 88rpx;
box-sizing: border-box;
text-align: center;
padding: 4rpx 32rpx 4rpx 24rpx;
background: #FFFFFF;
box-shadow: 8rpx 0 16rpx 0 rgba(202,211,230,0.30);
}
.icon-dial {
width: 48rpx;
height: 48rpx;
}
.phone-text {
font-size: 20rpx;
color: #6E6E7A;
line-height: 32rpx;
}
.btn {
display: inline-flex;
align-items: center;
padding: 12rpx 56rpx;
font-size: 32rpx;
line-height: 48rpx;
border-radius: 8rpx;
float: right;
}
.btn-plain {
color: #5850ff;
border: 2rpx solid #9B96FF;
/* margin-left: 46rpx; */
}
.btn-primary {
color: #FFFFFF;
background: #5850FF;
/* margin-left: 24rpx; */
} }
\ No newline at end of file \ No newline at end of file
import componentsMixin from './componentsMixin' import componentsMixin from './componentsMixin'
import menuMixin from './menuMixin'
module.exports = { module.exports = {
componentsMixin componentsMixin,
menuMixin
} }
\ No newline at end of file \ No newline at end of file
module.exports = Behavior({
data: {
// menuList: ["企微魔方", "数字化权益", "智能线索", "D+增值转化"],
// templateMethods: [{"tap": "selectIntroduce"}],
// curIntroduceIndex: 0
},
// selectIntroduce(e) {
// console.log(e.currentTarget);
// const curIntroduceIndex = e.currentTarget.dataset.index;
// this.setData({
// curIntroduceIndex: curIntroduceIndex,
// });
// },
// methods: {
// // 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
// },
});
...@@ -11,7 +11,7 @@ Page({ ...@@ -11,7 +11,7 @@ Page({
parternerForm: { parternerForm: {
applyName: '', applyName: '',
telphone: '', telphone: '',
concerContent: '' province: []
} }
}, },
...@@ -23,6 +23,9 @@ Page({ ...@@ -23,6 +23,9 @@ Page({
}, },
telphone: { telphone: {
required: true required: true
},
province: {
required: true
} }
} }
...@@ -32,7 +35,10 @@ Page({ ...@@ -32,7 +35,10 @@ Page({
}, },
telphone: { telphone: {
required: '请填写联系电话' required: '请填写联系电话'
} },
province: {
required: '请选择省市'
}
} }
this.WxValidate = new WxValidate(rules, messages) this.WxValidate = new WxValidate(rules, messages)
...@@ -59,8 +65,18 @@ Page({ ...@@ -59,8 +65,18 @@ Page({
this.showModal({ this.showModal({
msg: '提交成功' msg: '提交成功'
}) })
// 跳转申请成功页面
wx.$router.go("applySuccess");
}, },
// 选择省市
bindRegionChange(e) {
console.log(e.detail.value);
this.setData({
"parternerForm.province": e.detail.value
})
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
......
{ {
"usingComponents": {} "usingComponents": {},
"navigationBarTitleText": "合作申请"
} }
\ No newline at end of file \ No newline at end of file
<!--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>
添加合伙人专员 添加合伙人专员
</button> </button> -->
</view> </view>
<form class="apply-box" bindsubmit="submitParterner"> <form class="apply-box" bindsubmit="submitParterner">
<view class="apply-info"> <view class="apply-info">
...@@ -18,15 +18,28 @@ ...@@ -18,15 +18,28 @@
<text class="info-lable">联系电话<text class="require"> *</text></text> <text class="info-lable">联系电话<text class="require"> *</text></text>
<input name="telphone" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='您的联系电话' value="{{parternerForm.telphone}}"></input> <input name="telphone" type='text' placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='您的联系电话' value="{{parternerForm.telphone}}"></input>
</view> </view>
<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>
<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></view>
<view class="province-icon"></view>
</view>
</view>
</picker>
<!-- <view class='info-list'>
<text class="info-lable">关注内容</text> <text class="info-lable">关注内容</text>
<textarea name="concerContent" class="concer-content" placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='您关注的内容(选填)' maxlength="200" value="{{parternerForm.concerContent}}"></textarea> <textarea name="concerContent" class="concer-content" placeholder-style='font-size:28rpx;color: #9E9EA8;' placeholder='您关注的内容(选填)' maxlength="200" value="{{parternerForm.concerContent}}"></textarea>
</view> </view> -->
</view> </view>
<button class="submit-btn" form-type="submit"> <button class="submit-btn" form-type="submit">
提交申请 提交申请
</button> </button>
</form> </form>
<view class="contact-inline">
</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
font-size: 56rpx; font-size: 56rpx;
color: #2D2D33; color: #2D2D33;
position: absolute; position: absolute;
top: 128rpx; top: 160rpx;
left: 182rpx; left: 182rpx;
} }
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
padding-left: 14rpx; padding-left: 14rpx;
padding-right: 14rpx; padding-right: 14rpx;
position: absolute; position: absolute;
top: 252rpx; top: 512rpx;
left: 232rpx; left: 232rpx;
} }
...@@ -86,6 +86,29 @@ ...@@ -86,6 +86,29 @@
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 {
font-size:28rpx;
color: #9E9EA8;
}
textarea { textarea {
width: 475rpx !important; width: 475rpx !important;
} }
...@@ -95,7 +118,7 @@ textarea { ...@@ -95,7 +118,7 @@ textarea {
height: 80rpx; height: 80rpx;
background: #5850FF; background: #5850FF;
border-radius: 8rpx; border-radius: 8rpx;
margin-top: 40rpx; margin-top: 160rpx;
text-align: center; text-align: center;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
...@@ -103,12 +126,3 @@ textarea { ...@@ -103,12 +126,3 @@ textarea {
font-family: PingFangSC-Medium; font-family: PingFangSC-Medium;
line-height: 80rpx; line-height: 80rpx;
} }
.contact-inline {
width: 50rpx;
height: 50rpx;
background-color: aqua;
position: absolute;
right: 10rpx;
top: 930rpx;
}
\ No newline at end of file \ No newline at end of file
// pages/applySuccess/applySuccess.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {},
"navigationBarTitleText": "合作申请"
}
\ No newline at end of file \ No newline at end of file
<!--pages/applySuccess/applySuccess.wxml-->
<view class="success-box">
<view>
<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>
<view class="success-text">点击下方按钮进入您的方案管理页面,</view>
<view class="success-text">可对具体案例页面进行分享。</view>
<button class="share-btn">
进入您的可分享页面
</button>
</view>
/* pages/applySuccess/applySuccess.wxss */
.success-box {
text-align: center;
}
.success-img {
width: 448rpx;
height: 192rpx;
margin-top: 240rpx;
}
.success-title {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 56rpx;
color: #2D2D33;
margin: 32rpx 0;
}
.success-text {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #333333;
line-height: 48rpx;
}
.share-btn {
width: 622rpx;
height: 80rpx;
font-size: 28rpx;
color: #ffffff;
background: #5850FF;
border-radius: 8rpx;
line-height: 80rpx;
margin-top: 160rpx;
}
\ No newline at end of file \ No newline at end of file
/* /*
* @Description: * @Description:
* @Author: huyue * @Author: huyue
* @Date: 2022-08-30 11:26:21 * @Date: 2022-08-30 11:26:21
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2022-09-02 13:48:49 * @LastEditTime: 2022-09-02 13:48:49
*/ */
// pages/tab/index/index.js // pages/tab/index/index.js
import Draw from '../../../utils/Draw'
Page({ Page({
// behaviors: [menuMixin],
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
...@@ -15,21 +15,34 @@ Page({ ...@@ -15,21 +15,34 @@ Page({
introduceName: "", introduceName: "",
}, },
introduce(e) { introduce(e) {
console.log(e.target.dataset.name); const curTabIndex = e.currentTarget.dataset.index;
const name = e.target.dataset.name; // 视频直播和合作申请是跳转新页面,不需要设置激活样式
switch (name) { // 0-公司介绍 1-方案介绍 2-视频直播 3-合作申请
case "城市合伙人": console.log(this.data.curTabIndex);
switch (curTabIndex) {
case 3:
wx.$router.go("applicationPartener"); wx.$router.go("applicationPartener");
break; break;
case "视频直播": case 2:
console.log('跳转直播') console.log("跳转直播");
break; break;
default: default:
this.setData({ this.setData({
introduceName: name, curTabIndex: curTabIndex,
}); });
} }
}, },
// 方案介绍tab栏切换
// 0-企微魔方 1-数字化权益 2-智能线索 3-D+增值转化
selectIntroduce(e) {
console.log(e.currentTarget);
const curIntroduceIndex = e.currentTarget.dataset.index;
this.setData({
curIntroduceIndex: curIntroduceIndex,
});
},
jump() { jump() {
wx.$router.go("applicationAccount"); wx.$router.go("applicationAccount");
}, },
...@@ -40,6 +53,7 @@ Page({ ...@@ -40,6 +53,7 @@ Page({
// setTimeout(() => { // setTimeout(() => {
// wx.$router.go('application') // wx.$router.go('application')
// }, 2e3) // }, 2e3)
console.log(this.data.menuMixin);
}, },
/** /**
......
<!-- pages/tab/index/index.wxml --> <!-- pages/tab/index/index.wxml -->
<user-info></user-info> <user-info></user-info>
<!-- 面向渠道 -->
<import src="../../template/channel/channel.wxml" /> <import src="../../template/channel/channel.wxml" />
<template is="channel"></template> <template is="channel"></template>
<!-- tab介绍 -->
<view class="tab-list"> <view class="tab-list">
<view class="tab-item" data-name="公司介绍" bindtap="introduce">公司介绍</view> <block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item" data-name="产品介绍" bindtap="introduce">产品介绍</view> <view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }} {{index === 3 ? 'tab-apply' : ''}}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<view class="tab-item" data-name="视频直播" bindtap="introduce">视频直播</view> <image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png"></image>
<view class="tab-item" data-name="城市合伙人" bindtap="introduce">城市合伙人</view> <image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png"></image>
<view>{{item.name}}</view>
<!-- 合作申请hot -->
<image wx:if="{{index === 3}}" class="icon-hot" webp src="{{IMGURL}}home/icon-hot.png"></image>
</view>
</block>
</view> </view>
{{introduceName}}
<import src="../../template/company/company.wxml" /> <import src="../../template/company/company.wxml" />
<block > <!-- 公司介绍 -->
<block wx:if="{{curTabIndex === 0 }}">
<template is="company"></template> <template is="company"></template>
</block> </block>
<!-- <view>{{introduceName}}</view> -->
<view hidden="{{introduceName != '产品介绍'}}">
<view class="tab-list">
<view class="tab-item">企微魔方</view>
<view class="tab-item">数字化权益</view>
<view class="tab-item">智能线索</view>
<view class="tab-item">D+增值转化</view>
</view>
</view>
<button class="application" bindtap="jump">免费申请体验账号</button>
\ No newline at end of file \ No newline at end of file
<!-- 方案介绍 -->
<import src="../../template/menu/menu.wxml" />
<block wx:if="{{curTabIndex === 1 }}">
<template is="menu" data="{{menuList, curIntroduceIndex, templateMethods, customerType}}"></template>
</block>
<!-- 服务咨询 -->
<view>
<image mode="widthFix" class="icon-consult" webp src="{{IMGURL}}home/custom.png"></image>
</view>
\ No newline at end of file \ No newline at end of file
/* pages/tab/index/index.wxss */ /* pages/tab/index/index.wxss */
@import '../../template/demo/demo.wxss'; @import '../../template/demo/demo.wxss';
@import '../../template/channel/channel.wxss'; @import '../../template/channel/channel.wxss';
@import '../../template/menu/menu.wxss';
page {
background-color: #F5F5F7;
}
.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;
position: relative;
}
.tab-item-active {
color: #FFFFFF;
background-image: url("https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/home/icon-bg.png");
background-size: 100% 100%;
}
.tab-apply {
background: #F0F0FF;
font-weight: 600;
color: #5850FF;
} }
.icon-hot {
width: 56rpx;
height: 24rpx;
position: absolute;
top: 0;
right: 0;
}
.tab-img {
width: 72rpx;
height: 72rpx;
margin-top: 16rpx;
}
.application { .application {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
}
.icon-consult {
width: 80rpx;
position: absolute;
right: 6rpx;
bottom: 76rpx;
} }
\ No newline at end of file \ No newline at end of file
// pages/tab/introduction/introduction.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/tab/introduction/introduction.wxml-->
<text>pages/tab/introduction/introduction.wxml</text>
/* pages/tab/introduction/introduction.wxss */
\ No newline at end of file \ No newline at end of file
<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
.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
<template name="company"> <template name="company">
<text hidden="{{introduceName != '公司介绍'}}">公司介绍的页面</text> <text>公司介绍的页面</text>
</template> </template>
\ No newline at end of file \ No newline at end of file
<template name="menu">
<view class="menu-list">
<block wx:for="{{menuList}}" wx:key="index">
<view class="menu-item {{index === curIntroduceIndex ? 'menu-active' : ''}} {{customerType === 1 && index === curIntroduceIndex ? 'menu-active-agency' : ''}}" bindtap="selectIntroduce" data-index="{{index}}">
{{item}}
</view>
</block>
</view>
</template>
\ No newline at end of file \ No newline at end of file
.menu-list {
display: flex;
justify-content: space-evenly;
}
.menu-item {
position: relative;
font-size: 26rpx;
color: #6E6E7A;
height: 88rpx;
line-height: 88rpx;
}
.menu-active {
color: #5850ff;
font-weight: 500;
font-size: 28rpx;
}
.menu-active-agency {
font-weight: 600;
font-size: 32rpx;
color: #2D2D33;
}
.menu-active::after {
content: '';
display: inline-block;
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 48rpx;
height: 6rpx;
background-color: #5850ff;
border-radius: 0.8rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -22,28 +22,25 @@ ...@@ -22,28 +22,25 @@
"checkSiteMap": true, "checkSiteMap": true,
"uploadWithSourceMap": true, "uploadWithSourceMap": true,
"compileHotReLoad": false, "compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"useMultiFrameRuntime": true, "useMultiFrameRuntime": true,
"useApiHook": true, "useApiHook": true,
"useApiHostProcess": true,
"babelSetting": { "babelSetting": {
"ignore": [], "ignore": [],
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"bundle": false, "useIsolateContext": false,
"useIsolateContext": true,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false,
"userConfirmedBundleSwitch": false, "userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [], "packNpmRelationList": [],
"minifyWXSS": true, "minifyWXSS": true,
"useApiHostProcess": false,
"lazyloadPlaceholderEnable": false,
"useStaticServer": true,
"showES6CompileOption": false,
"disableUseStrict": false, "disableUseStrict": false,
"minifyWXML": true,
"showES6CompileOption": false,
"useCompilerPlugins": false, "useCompilerPlugins": false,
"minifyWXML": true "ignoreUploadUnusedFiles": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.15.0", "libVersion": "2.15.0",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!