Commit 4b985613 by luyt

feat:拓客户调整

1 parent 1ac2136e
......@@ -4,10 +4,10 @@
<view class="toast-content" >
<view class="toast-img">
<block wx:if="{{type==='success'}}">
<image class="toast-icon" src="{{IMG_URLLocal}}index/like.png"/>
<image class="toast-icon" src="{{IMG_URL}}index/like.png"/>
</block>
<block wx:if="{{type==='fail'}}">
<image class="toast-icon" src="{{IMG_URLLocal}}index/dislike.png" />
<image class="toast-icon" src="{{IMG_URL}}index/dislike.png" />
</block>
</view>
<view class="toast-title">{{title}}</view>
......
// pages/tab/discovery/components/product/product.js
// import {imgUrlMixin} from '~/mixins/index'
import {IMG_URL} from '~/utils/constantData.js'
import { IMG_URL } from "~/utils/constantData.js";
Component({
// behaviors: [imgUrlMixin],
......@@ -8,26 +8,59 @@ Component({
* 组件的属性列表
*/
properties: {
stickyTop:Number
stickyTop: Number,
actNum: Number,
},
/**
* 组件的初始数据
*/
data: {
navList:['360全景导航','AR实景导航','座椅通风','氛围灯','数字化美容'],
navList: ["360全景导航", "AR实景导航", "座椅通风", "氛围灯", "数字化美容"],
activeNavIdx: 0,
tab:['场景说明','营销链路','项目亮点','转化漏斗','合作流程','合作案例'],
heightArr:[],
allHeight:0,
curTabIdx:0,
intoViewId: 'to-0',
IMGURL:`${IMG_URL}index/`
tab: [
"场景说明",
"营销链路",
"项目亮点",
"转化漏斗",
"合作流程",
"合作案例",
],
heightArr: [],
allHeight: 0,
curTabIdx: 0,
intoViewId: "to-0",
IMGURL: `${IMG_URL}index/`,
},
lifetimes:{
ready: function (){
lifetimes: {
ready: function () {
// console.log(11111)
this.getImgHeight()
this.getImgHeight();
},
},
observers: {
actNum: function () {
console.log(1231)
let navList;
let num = this.data.actNum;
switch (num) {
case 0:
navList = ['数字无忧权益卡']
break;
case 1:
navList = ['汽车太阳膜']
break;
case 2:
navList = ['漆面保护膜','改色膜']
break;
case 3:
navList = ['数字化美容','座椅通风','AR导航','氛围灯','360全景导航']
break;
}
this.setData({
navList
});
},
},
......@@ -35,38 +68,43 @@ Component({
* 组件的方法列表
*/
methods: {
changeTab(e){
let idx = e.detail
changeTab(e) {
let idx = e.detail;
this.setData({
intoViewId: `to-${idx}`
})
intoViewId: `to-${idx}`,
});
},
changeNav(event){
console.log(event,event.target.dataset.index,111)
changeNav(event) {
console.log(event, event.target.dataset.index, 111);
this.setData({
activeNavIdx: event.target.dataset.index
})
activeNavIdx: event.target.dataset.index,
});
},
scrolltoupper(event){
const idx = this.data.heightArr.findIndex(item => item>event.detail.scrollTop)
scrolltoupper(event) {
const idx = this.data.heightArr.findIndex(
(item) => item > event.detail.scrollTop
);
this.setData({
curTabIdx: idx
})
curTabIdx: idx,
});
// console.log(this.data.curTabIdx1)
},
getImgHeight(){
let query = wx.createSelectorQuery().in(this)
let heightArr = []
let s = 0
query.selectAll('.img-item').boundingClientRect((react) => {
react.forEach(item => {
s += item.height
heightArr.push(s)
getImgHeight() {
let query = wx.createSelectorQuery().in(this);
let heightArr = [];
let s = 0;
query
.selectAll(".img-item")
.boundingClientRect((react) => {
react.forEach((item) => {
s += item.height;
heightArr.push(s);
});
this.data.heightArr = heightArr;
// console.log(heightArr[heightArr.length-1])
this.data.allHeight = heightArr[heightArr.length - 1];
})
this.data.heightArr = heightArr
// console.log(heightArr[heightArr.length-1])
this.data.allHeight = heightArr[heightArr.length-1]
}).exec()
}
}
})
.exec();
},
},
});
// 特色产品
.prod-wrap{
.prod-wrap {
background-color: #f8fafb;
}
.prod-wrap .big-title{
.prod-wrap .big-title {
margin-left: 40rpx;
font-family: PingFangSC-S0pxibold;
font-weight: 600;
font-size: 36rpx;
color: #1B233D;
color: #1b233d;
line-height: 56rpx;
}
.prod-wrap .nav-wrap{
.prod-wrap .nav-wrap {
white-space: nowrap;
box-sizing: border-box;
margin-top: 24rpx;
margin-bottom: 32rpx;
padding: 0 20rpx;
}
.prod-wrap .nav-wrap .nav{
.prod-wrap .nav-wrap .nav {
display: inline-block;
width: 188rpx;
height: 64rpx;
......@@ -29,101 +29,102 @@
font-family: PingFangSC-Regular;
line-height: 64rpx;
margin-right: 16rpx;
background: #FFFFFF;
border: 2rpx solid #DDE3F0;
background: #ffffff;
border: 2rpx solid #dde3f0;
color: #323436;
}
.prod-wrap .nav-wrap .active-nav{
color: #FFFFFF;
.prod-wrap .nav-wrap .active-nav {
color: #ffffff;
// background-image: linear-gradient(0deg, #EBEFFF 8%, #FCFDFF 85%);
background-color: var(--btnColor);
// border: 2rpx solid rgba(68,97,240,0.50);
// box-shadow: 0 8rpx 16rpx 0 rgba(175,187,219,0.35);
}
.prod-wrap .nav-wrap .nav:last-child{
.prod-wrap .nav-wrap .nav:last-child {
margin-right: 0;
}
.prod-item{
padding-bottom:32rpx;
.prod-item {
padding-bottom: 32rpx;
margin: 16rpx auto 0;
width: 343px;
background-color: #F5F7FB;
background-color: #f5f7fb;
border-radius: 48rpx 48rpx 0 0;
}
.prod-card{
.prod-card {
display: flex;
height: 208rpx;
background-image: linear-gradient(1deg, #FFFFFF 10%, #FDFCFF 100%);
border: 2rpx solid #FFFFFF;
box-shadow: 0 8rpx 20rpx 0 rgba(197,205,235,0.35);
background-image: linear-gradient(1deg, #ffffff 10%, #fdfcff 100%);
border: 2rpx solid #ffffff;
box-shadow: 0 8rpx 20rpx 0 rgba(197, 205, 235, 0.35);
border-radius: 20rpx;
padding: 20rpx 24rpx;
box-sizing: border-box;
position: relative;
}
.prod-card .card-img{
.prod-card .card-img {
width: 160rpx;
height: 160rpx;
flex-shrink: 0;
border-radius: 4rpx;
}
.img-desc{
.img-desc {
position: absolute;
width: 104rpx;
height: 40rpx;
line-height: 40rpx;
background: #D7F5EB;
background: #d7f5eb;
border-radius: 4rpx;
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 24rpx;
color: #24B38C;
color: #24b38c;
letter-spacing: 0;
text-align: center;
}
.prod-info{
.prod-info {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 12rpx 0;
margin-left: 24rpx;
}
.prod-info>text{
.prod-info > text {
display: block;
white-space: nowrap;
height: 40rpx;
line-height: 40rpx;
}
.prod-info .title{
.prod-info .title {
font-family: PingFangSC-Medium;
font-weight: 600;
font-size: 28rpx;
color: #323436;
}
.prod-info .sale,.prod-info .earnings{
.prod-info .sale,
.prod-info .earnings {
font-size: 26rpx;
color: #7A8299;
color: #7a8299;
}
.prod-info .sale-num{
.prod-info .sale-num {
font-size: 26rpx;
color: #323436;
}
.prod-info .earnings-num{
.prod-info .earnings-num {
font-size: 28rpx;
font-family: DINAlternate-Bold;
font-weight: Bold;
color: #F35251;
color: #f35251;
}
.share-btn{
.share-btn {
height: 56rpx;
line-height: 56rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
background-image: linear-gradient(-60deg, #556AF5 0%, #7197FF 100%);
background-image: linear-gradient(-60deg, #556af5 0%, #7197ff 100%);
border-radius: 12rpx;
color: #fff;
padding: 0 20rpx;
......@@ -134,27 +135,27 @@
top: 50%;
transform: translateY(-50%);
}
.share-btn .icon{
.share-btn .icon {
width: 24rpx;
height: 24rpx;
margin-right: 8rpx;
}
.project-wrap{
background-color: #F5F7FB;
.project-wrap {
background-color: #f5f7fb;
}
.project-img{
.project-img {
height: 1200rpx;
white-space: nowrap;
.img-item{
.img-item {
height: 300rpx;
}
}
.stickyTab{
position:sticky;
z-index: 1;
background-color:#f5f7fb;
.stickyTab {
position: sticky;
z-index: 1;
background-color: #f5f7fb;
}
// .out-tab{
// .out-text {
......@@ -167,3 +168,28 @@
// }
// }
.img-item11 {
width: 100%;
height: 1110rpx;
}
.img-item12 {
width: 100%;
height: 1290rpx;
}
.img-item13 {
width: 100%;
height: 596rpx;
}
.img-item14 {
width: 100%;
height: 744rpx;
}
.img-item15 {
width: 100%;
height: 490rpx;
}
.img-item16 {
width: 100%;
height: 1532rpx;
}
......@@ -47,8 +47,10 @@
scroll-y="{{true}}"
>
<block wx:for="{{tab}}" wx:key="index">
<view id="to-{{index}}" class="img-item">
{{item}}
<view id="to-{{index}}" class="img-item{{actNum+1}}{{index+1}}">
<!-- {{item}} -->
<image class="img-item{{actNum+1}}{{index+1}}" src="{{IMGURL}}scene{{actNum+1}}{{index+1}}.png" />
</view>
</block>
</scroll-view>
......
......@@ -39,7 +39,7 @@ Page({
},
],
actNum: 0,
tabIndx: 0,
tabIndx: 1,
tabList: ["看线索", "看产品"],
typeList: ["联系电话", "意向客户", "线索来源", "重置"],
clueList: [
......
......@@ -3,41 +3,41 @@ page {
width: 100vw;
background-color: #fff;
}
.reclaim{
.header-wrap{
.reclaim {
.header-wrap {
position: sticky;
top: 0;
width: 100%;
background-size: 100% 100%;
margin-bottom: 16px;
z-index: 1;
.header{
.header {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 88rpx;
display: flex;
justify-content:space-between;
align-items:center;
.tabContainer{
justify-content: space-between;
align-items: center;
.tabContainer {
width: 60%;
}
.left{
.left {
display: flex;
align-items: center;
.clue{
.clue {
position: relative;
margin-left: 24px;
margin-right: 24px;
font-weight: 400;
font-size: 14px;
color: #8A8C90;
color: #8a8c90;
}
.product{
.product {
position: relative;
}
.act{
.act {
font-weight: 600;
font-size: 22px;
color: #323436;
......@@ -55,14 +55,14 @@ page {
}
}
}
.right{
.right {
display: flex;
align-items:center;
.img{
width:20px;
height:20px;
align-items: center;
.img {
width: 20px;
height: 20px;
}
.apply{
.apply {
margin-left: 4px;
margin-right: 16px;
font-weight: 400;
......@@ -75,14 +75,14 @@ page {
// .content{
// position: relative;
// }
.clue{
.clue {
padding: 8px 10px 0;
background-color: #f2f3f7;
.types{
.types {
margin-bottom: 8px;
display: flex;
align-items: center;
.type{
.type {
margin-left: 8px;
display: flex;
justify-content: center;
......@@ -90,69 +90,69 @@ page {
width: 80px;
height: 24px;
line-height: 24px;
background: #FFFFFF;
background: #ffffff;
border-radius: 14px;
font-size: 12px;
color: #8A8C90;
.point{
color: #8a8c90;
.point {
margin-left: 2px;
width: 12px;
height: 12px;
}
}
}
.list{
.msg{
padding:10px 16px 16px;
.list {
.msg {
padding: 10px 16px 16px;
margin-bottom: 8px;
position: relative;
background-color: #fff;
border-radius: 4px;
}
.like{
.like {
position: absolute;
right:12px;
right: 12px;
top: 0;
width: 23px;
height: 23px;
}
.name{
.name {
display: flex;
align-items: center;
// font-weight: 400;
font-size: 14px;
color: #323436;
.avatar{
.avatar {
margin-left: 2px;
width: 20px;
height: 20px;
}
}
.line{
.line {
margin-top: 10px;
margin-bottom: 10px;
height:0;
border-bottom:#EEEEEE 1px dashed;
height: 0;
border-bottom: #eeeeee 1px dashed;
}
.want-more{
.want-more {
overflow: hidden;
}
.want-btn{
.want-btn {
margin-top: 10px;
font-size: 12px;
color: var(--btnColor);
}
.record{
.record {
margin-top: 4px;
margin-bottom: 4px;
display: flex;
justify-content:space-between;
justify-content: space-between;
align-items: center;
.action-wrap{
.action-wrap {
display: flex;
align-items: center;
font-size: 12px;
color: #393B3E;
color: #393b3e;
}
// .action{
......@@ -160,132 +160,149 @@ page {
// .detail{
// }
.time{
.time {
font-size: 12px;
color: #8A8C90;
color: #8a8c90;
}
}
.info{
.info {
margin-top: 10px;
display: flex;
justify-content:space-between;
.phone-wrap{
justify-content: space-between;
.phone-wrap {
display: flex;
align-items:center;
align-items: center;
}
.phone{
.phone {
font-size: 12px;
color: #3666FE;
color: #3666fe;
}
.phone-img{
.phone-img {
margin-left: 12px;
margin-right: 8px;
width: 20px;
height: 20px;
border-radius:50%;
border-radius: 50%;
}
.copy{
.copy {
width: 20px;
height: 20px;
border-radius:50%;
border-radius: 50%;
}
.btn{
.btn {
width: 85px;
height: 24px;
background: var(--btnColor);
border-radius: 12px;
font-size: 12px;
color: #FFFFFF;
color: #ffffff;
text-align: center;
line-height: 24px;
}
}
.shop{
.name-wrap{
.shop {
.name-wrap {
display: flex;
justify-content:space-between;
justify-content: space-between;
align-items: center;
}
.source{
.source {
font-size: 10px;
color: #8A8C90;
color: #8a8c90;
}
.btn{
.btn {
border: 1px solid var(--btnColor);
border-radius: 12px;
background-color: #fff;
font-size: 12px;
color: var(--btnColor);
}
.shop-action-wrap{
.shop-action-wrap {
display: flex;
justify-content:space-between;
justify-content: space-between;
align-items: center;
}
.shop-record{
width:100%;
.shop-record {
width: 100%;
}
.shop-source{
.shop-source {
margin-top: 4px;
width:100%;
width: 100%;
font-size: 12px;
color: #393B3E;
color: #393b3e;
}
}
}
}
.scene{
.scene {
margin: 0 10px 16px;
display: flex;
justify-content:space-between;
.item-wrap{
justify-content: space-between;
.item-wrap {
position: relative;
width: 106px;
height: 116px;
}
.item{
.item {
width: 86px;
height: 90px;
background: #F7F8FC;
background: #f7f8fc;
border-radius: 6px;
}
.act{
background-image: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png');
.act {
background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
background-size: 100% 100%;
.item {
background:transparent;
background: transparent;
}
}
.img{
display:block;
margin: 10px auto 2px;
.img {
display: block;
margin: 10px auto 2px;
width: 28px;
height: 28px;
}
.name{
.name {
margin-bottom: 2px;
font-weight: 500;
font-size: 12px;
color: #323436;
text-align: center;
}
.msg{
.msg {
font-weight: 400;
font-size: 9px;
color: #8A8C90;
color: #8a8c90;
text-align: center;
}
}
}
.guide{
.guide {
width: 100%;
height: 100%;
.guide-img{
.guide-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
\ No newline at end of file
}
.chat {
position: absolute;
right: 0;
top: 60%;
width: 50px;
height: 50px;
border-radius: 50%;
z-index: 1;
}
.output-value {
position: absolute;
right: 5px;
top: 70%;
width: 40px;
height: 50px;
border-radius: 50%;
z-index: 1;
}
......@@ -28,24 +28,24 @@
</view>
</view>
</view>
<product stickyTop="{{headerHeight}}" />
<product stickyTop="{{headerHeight}}" actNum="{{actNum}}" />
</view>
<view class="clue" wx:if="{{tabIndx == 0 }}" hover-class="none" hover-stop-propagation="false">
<view class="types">
<view class="type" wx:for="{{typeList}}" wx:key="*this" data-index="{{index}}" bindtap="filterTypeFn">
{{item}}
<image class="point" wx:if="{{index != 3}}" src="{{IMG_URLLocal}}index/point.png" />
<image class="point" wx:if="{{index != 3}}" src="{{IMG_URL}}index/point.png" />
</view>
</view>
<view class="list" hover-class="none" hover-stop-propagation="false">
<view class="msg" wx:for="{{clueList}}" wx:key="phone">
<!-- 生意助手 -->
<view wx:if="{{item.source == 'customer'}}">
<image class="like" wx:if="{{item.like}}" src="{{IMG_URLLocal}}index/like.png" data-type="like" data-outidx="{{index}}" bindtap="showToast" />
<image class="like" wx:else src="{{IMG_URLLocal}}index/dislike.png" data-type="dislike" data-outidx="{{index}}" bindtap="showToast" />
<image class="like" wx:if="{{item.like}}" src="{{IMG_URL}}index/like.png" data-type="like" data-outidx="{{index}}" bindtap="showToast" />
<image class="like" wx:else src="{{IMG_URL}}index/dislike.png" data-type="dislike" data-outidx="{{index}}" bindtap="showToast" />
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.name}}
<image class="avatar" src="{{IMG_URLLocal}}index/avatar.png" />
<image class="avatar" src="{{IMG_URL}}index/avatar.png" />
</view>
<view class="line" hover-class="none" hover-stop-propagation="false" />
<view class="want-more" style="height:{{item.getMoreFlag? 100: 'auto'}}px">
......@@ -69,8 +69,8 @@
<view class="info" hover-class="none" hover-stop-propagation="false">
<view class="phone-wrap">
<view class="phone">{{item.phone}}</view>
<image class="phone-img" data-phone="{{item.phone}}" bindtap="phoneCallFn" src="{{IMG_URLLocal}}index/phone.png" />
<image class="copy" data-phone="{{item.phone}}" bindtap="setCopyDataFn" src="{{IMG_URLLocal}}index/copy.png" />
<image class="phone-img" data-phone="{{item.phone}}" bindtap="phoneCallFn" src="{{IMG_URL}}index/phone.png" />
<image class="copy" data-phone="{{item.phone}}" bindtap="setCopyDataFn" src="{{IMG_URL}}index/copy.png" />
</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="gotoApply">
+开店面
......@@ -82,7 +82,7 @@
<view class="name-wrap">
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.name}}
<image class="avatar" src="{{IMG_URLLocal}}index/avatar.png" />
<image class="avatar" src="{{IMG_URL}}index/avatar.png" />
</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view>
......@@ -110,8 +110,8 @@
<view class="info" hover-class="none" hover-stop-propagation="false">
<view class="phone-wrap">
<view class="phone">{{item.phone}}</view>
<image class="phone-img" data-phone="{{item.phone}}" bindtap="phoneCallFn" src="{{IMG_URLLocal}}index/phone.png" />
<image class="copy" data-phone="{{item.phone}}" bindtap="setCopyDataFn" src="{{IMG_URLLocal}}index/copy.png" />
<image class="phone-img" data-phone="{{item.phone}}" bindtap="phoneCallFn" src="{{IMG_URL}}index/phone.png" />
<image class="copy" data-phone="{{item.phone}}" bindtap="setCopyDataFn" src="{{IMG_URL}}index/copy.png" />
</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="gotoApply">
开通活动
......@@ -125,4 +125,6 @@
<vas-toast isShow="{{true}}" id='toast' />
<view class="guide" wx:if="{{guideShow}}">
<image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
</view>
\ No newline at end of file
</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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!