Commit 9a5267dd by 李伟康

驻店目标

1 parent 006bced0
......@@ -103,7 +103,8 @@
"pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene",
"pages/clueList/clueList",
"pages/clueDetail/clueDetail"
"pages/clueDetail/clueDetail",
"pages/residentTarget/residentTarget"
]
},
{
......
......@@ -12,9 +12,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
......
{
"usingComponents": {}
"usingComponents": {},
"navigationBarTitleText": "客户详情"
}
\ No newline at end of file
<!--packageEquity/pages/clueDetail/clueDetail.wxml-->
<text>packageEquity/pages/clueDetail/clueDetail.wxml</text>
\ No newline at end of file
page{
background:#fff;
}
.layout {
.to-box {
position: sticky;
......
......@@ -18,10 +18,10 @@
<block wx:for="{{list}}" wx:key="index">
<block wx:for="{{item}}" wx:key="ind" wx:for-item="i" wx:for-index="ind">
<block wx:if="{{type == 0}}">
<upgrade-item></upgrade-item>
<upgrade-item item="{{i}}"></upgrade-item>
</block>
<block wx:else>
<equity-item></equity-item>
<equity-item item="{{i}}"></equity-item>
</block>
</block>
</block>
......
......@@ -5,20 +5,50 @@ Component({
* 组件的属性列表
*/
properties: {
data: Object
},
/**
* 组件的初始数据
*/
data: {
infoObject: [{
label: '车型',
key: ''
},
{
label: '车辆颜色',
key: ''
},
{
label: '权益服务',
key: ''
},
{
label: '精品加装',
key: ''
}
],
package: new Array(1)
},
/**
* 组件的方法列表
*/
methods: {
showAllFun() {
this.setData({
showAll: !this.data.showAll
})
},
jump() {
wx.navigateTo({
url: '/packageEquity/pages/clueDetail/clueDetail',
params: {
a: 1,
b: 2
}
})
}
}
})
\ No newline at end of file
.flex {
display: flex;
align-items: center;
}
.item {
min-height: 724rpx;
background: #FFFFFF;
box-shadow: 0 4rpx 16rpx 0 #cdcdd180;
border-radius: 16rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
padding: 0 20rpx;
.top {
padding: 24rpx 12rpx;
.icon {
width: 80rpx;
height: 80rpx;
margin-right: 16rpx;
border-radius: 100%;
overflow: hidden;
background-color: #096;
}
.info {
.name {
font-size: 28rpx;
color: #1B233D;
line-height: 48rpx;
}
.phone {
font-size: 24rpx;
color: #9B9B9E;
line-height: 32rpx;
}
}
}
.info-box {
padding: 0 12rpx;
line-height: 36rpx;
font-size: 24rpx;
.info-item {
margin-bottom: 16rpx;
.label {
width: 136rpx;
color: #999EA8;
}
.value {
color: #292D33;
}
}
}
.package-box {
background: #F7F8FA;
border-radius: 12rpx;
padding: 20rpx 32rpx;
box-sizing: border-box;
.package-item {
font-size: 24rpx;
color: #292D33;
margin-bottom: 16rpx;
&::before {
width: 12rpx;
height: 12rpx;
background: #347BFF;
content: '';
display: block;
margin-right: 16rpx;
border-radius: 100%;
}
.price {
color: #6C6C70;
margin-left: auto;
}
}
.show-all {
font-size: 24rpx;
color: #347BFF;
line-height: 36rpx;
padding-left: 28rpx;
text {
color: #999EA8;
}
}
}
.bottom {
height: 96rpx;
padding: 0 12rpx;
font-size: 24rpx;
color: #999EA8;
.num {
font-weight: 700;
font-size: 32rpx;
color: #347BFF;
margin-left: 40rpx;
.unit {
font-size: 28rpx;
}
}
.btn {
margin-left: auto;
font-size: 28rpx;
color: #FFFFFF;
width: 180rpx;
height: 56rpx;
background: #347BFF;
border-radius: 32rpx;
justify-content: center;
}
}
}
\ No newline at end of file
<view class="item"></view>
\ No newline at end of file
<view class="item">
<view class="top flex">
<view class="icon">
<image src="{{data.icon}}" />
</view>
<view class="info">
<view class="name">巅峰盛典</view>
<view class="phone">184984989</view>
</view>
</view>
<view class="info-box">
<block wx:for="{{infoObject}}" wx:key="index">
<view class="info-item flex">
<view class="label">{{item.label}}</view>
<view class="value">{{data[item.key]}}</view>
</view>
</block>
</view>
<view class="package-box">
<block wx:for="{{package}}" wx:key="index">
<block wx:if="{{index < 2 || showAll}}">
<view class="package-item flex">
哈哈哈
<view class="price">¥1000.00</view>
</view>
</block>
</block>
<block wx:if="{{package.length > 2}}">
<view class="show-all" bindtap="showAllFun">
<block wx:if="{{!showAll}}">
查看全部<text>(共10件)</text>
</block>
<block wx:else>
收起
</block>
</view>
</block>
</view>
<view class="bottom flex">
<view class="price flex">
升级总价
<view class="num flex">
<view class="unit">¥</view> 5000.00
</view>
</view>
<view class="btn flex" bindtap="jump">数字报价单</view>
</view>
</view>
\ No newline at end of file
......@@ -12,7 +12,31 @@ Component({
* 组件的初始数据
*/
data: {
infoObject: [{
label: '车型',
key: ''
},
{
label: '车辆颜色',
key: ''
},
{
label: '车辆价格',
key: ''
},
{
label: '座位数',
key: ''
},
{
label: '精品加装',
key: ''
},
{
label: '权益服务',
key: ''
},
],
},
/**
......
.flex {
display: flex;
align-items: center;
}
.item {
min-height: 724rpx;
background: #FFFFFF;
box-shadow: 0 4rpx 16rpx 0 #cdcdd180;
border-radius: 16rpx;
margin-bottom: 20rpx;
box-sizing: border-box;
padding: 0 20rpx;
.top {
padding: 24rpx 12rpx;
.icon {
width: 80rpx;
height: 80rpx;
margin-right: 16rpx;
border-radius: 100%;
overflow: hidden;
background-color: #096;
}
.info {
.name {
font-size: 28rpx;
color: #1B233D;
line-height: 48rpx;
}
.phone {
font-size: 24rpx;
color: #9B9B9E;
line-height: 32rpx;
}
}
}
.info-box {
padding: 0 12rpx;
line-height: 36rpx;
font-size: 24rpx;
.info-item {
margin-bottom: 16rpx;
.label {
width: 136rpx;
color: #999EA8;
}
.value {
color: #292D33;
}
}
}
.package-box {
background: #F7F8FA;
border-radius: 12rpx;
padding: 20rpx 32rpx;
box-sizing: border-box;
.package-item {
font-size: 24rpx;
color: #292D33;
margin-bottom: 16rpx;
&::before {
width: 12rpx;
height: 12rpx;
background: #347BFF;
content: '';
display: block;
margin-right: 16rpx;
border-radius: 100%;
}
.price {
color: #6C6C70;
margin-left: auto;
}
}
.show-all {
font-size: 24rpx;
color: #347BFF;
line-height: 36rpx;
padding-left: 28rpx;
text {
color: #999EA8;
}
}
}
.bottom {
height: 96rpx;
padding: 0 12rpx;
font-size: 24rpx;
color: #999EA8;
.num {
font-weight: 700;
font-size: 32rpx;
color: #347BFF;
margin-left: 40rpx;
.unit {
font-size: 28rpx;
}
}
.btn {
margin-left: auto;
font-size: 28rpx;
color: #FFFFFF;
width: 180rpx;
height: 56rpx;
background: #347BFF;
border-radius: 32rpx;
justify-content: center;
}
}
}
\ No newline at end of file
<view class="item"></view>
\ No newline at end of file
<view class="item">
<view class="top flex">
<view class="icon">
<image src="{{data.icon}}" />
</view>
<view class="info">
<view class="name">巅峰盛典</view>
<view class="phone">184984989</view>
</view>
</view>
<view class="info-box">
<block wx:for="{{infoObject}}" wx:key="index">
<view class="info-item flex">
<view class="label">{{item.label}}</view>
<view class="value">{{data[item.key]}}</view>
</view>
</block>
</view>
<view class="package-box">
<block wx:for="{{package}}" wx:key="index">
<block wx:if="{{index < 2 || showAll}}">
<view class="package-item flex">
哈哈哈
<view class="price">¥1000.00</view>
</view>
</block>
</block>
<block wx:if="{{package.length > 2}}">
<view class="show-all" bindtap="showAllFun">
<block wx:if="{{!showAll}}">
查看全部<text>(共10件)</text>
</block>
<block wx:else>
收起
</block>
</view>
</block>
</view>
<view class="bottom flex">
<view class="price flex">
升级总价
<view class="num flex">
<view class="unit">¥</view> 5000.00
</view>
</view>
<view class="btn flex">车膜升级单</view>
</view>
</view>
\ No newline at end of file
......@@ -86,6 +86,10 @@ Component({
menuText: '客户线索',
icon: 'customer_clue',
path: 'packageEquity.clueList'
},{
menuText: '驻店目标',
icon: 'resident_target',
path: 'packageEquity.residentTarget'
}],
loginRoleLabel: {
1: '超管',
......
// packageEquity/pages/residentTarget/residentTarget.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {},
"navigationStyle": "custom"
}
\ No newline at end of file
/* packageEquity/pages/residentTarget/residentTarget.wxss */
\ No newline at end of file
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{ navStyle }}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">驻店目标</view>
</view>
</navigation-bar>
<view class="layout">
</view>
\ No newline at end of file
......@@ -4,6 +4,20 @@
"miniprogram": {
"list": [
{
"name": "驻店目标",
"pathName": "packageEquity/pages/residentTarget/residentTarget",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "packageEquity/pages/cleD",
"pathName": "packageEquity/pages/clueDetail/clueDetail",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "线管理",
"pathName": "packageEquity/pages/clueList/clueList",
"query": "",
......@@ -82,5 +96,6 @@
}
]
}
}
},
"libVersion": "3.3.4"
}
\ No newline at end of file
......@@ -73,6 +73,12 @@ export default {
url: 'packageEquity.clueList',
recordId: 11,
icon: 'customer_clue'
},
{
name: '驻店目标',
url: 'packageEquity.residentTarget',
recordId: 11,
icon: 'resident_target'
}
],
totalTableSum: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!