Commit da5dabb7 by chenwq

看产值-我的客户

1 parent 43f3af47
......@@ -8,11 +8,11 @@
"login/index/index",
"login/accountItems/accountItems",
"pages/apply/apply",
"pages/checkProduct/checkProduct"
],
"requiredPrivateInfos": [
"getLocation"
],
"pages/checkProduct/checkProduct",
"packageOutput/pages/summary/summary",
"packageOutput/pages/openBusiness/openBusiness"
],,
"requiredPrivateInfos": ["getLocation"],
"lazyCodeLoading": "requiredComponents",
"window": {
"backgroundTextStyle": "light",
......
// pages/tab/output/components/senceBox/senceBox.js
Component({
/**
* 组件的属性列表
*/
properties: {
formData: {
type: Object,
value: () => { }
}
},
/**
* 组件的初始数据
*/
data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/',
custSenceList: [{
title: '新车洽谈场景',
subTitle: '1.0新车权益销售'
}, {
title: '新车交付场景',
subTitle: '1.1新车精品升级'
}, {
title: '0-12个月',
subTitle: '1.2新车线上转化'
}, {
title: '12个月以上',
subTitle: '1.3存量用户众筹'
}],
},
/**
* 组件的方法列表
*/
methods: {
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
<!--pages/tab/output/components/senceBox/senceBox.wxml-->
<view class="flex sence">
<view class="sence-item {{ formData['sence' + (index + 1)] ? 'active' : ''}}" wx:for="{{custSenceList}}" wx:key="index">
<view wx:if="{{formData['sence' + (index + 1)]}}" class="active-icon">已开通</view>
<image wx:if="{{formData['sence' + (index + 1)]}}" class="sence-img" src="{{IMGURL}}output/client/icon/scene-{{index + 1}}-checked.png?v={{img_version}}" />
<image wx:else class="sence-img" src="{{IMGURL}}output/client/icon/scene-{{index + 1}}.png?v={{img_version}}" />
<view class="sence-title">{{item.title}}</view>
<view>{{item.subTitle}}</view>
</view>
</view>
\ No newline at end of file
/* pages/tab/output/components/senceBox/senceBox.wxss */
.flex {
display: flex;
}
.sence {
text-align: center;
width: 100%;
}
.sence-item {
position: relative;
width: 25%;
background: #F7F8FC;
margin-right: 4rpx;
font-size: 18rpx;
color: #8A8C90;
padding: 32rpx 0 28rpx;
border-radius: 12rpx;
margin-bottom: 20rpx;
}
.sence-item:last-child {
margin-right: 0;
}
.sence-title {
font-size: 24rpx;
height: 44rpx;
line-height: 44rpx;
margin: 10rpx 0 4rpx;
}
.active.sence-item {
background: #F0F7FF;
}
.active-icon {
box-sizing: border-box;
position: absolute;
left: 0;
top: 0;
width: 56rpx;
height: 32rpx;
line-height: 24rpx;
background: #FEEBD6;
border-radius: 6rpx 0 8rpx 0;
font-size: 16rpx;
color: #EF971E;
padding: 4rpx;
}
.sence-title {
color: #323436;
}
.sence-img {
width: 56rpx;
height: 56rpx;
}
\ No newline at end of file
// packageOutput/pages/summary/summary.js
Page({
/**
* 页面的初始数据
*/
data: {
merchantName: '阿哈哈哈哈',
formData: {
sence1: false,
sence2: true,
sence3: false,
sence4: true,
},
senceActive: 0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
wx.$router.getData(({ id, merchantName }) => {
this.setData({
merchantName: merchantName
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
wx.setNavigationBarTitle({
title: this.data.merchantName,
})
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
{
"usingComponents": {
"sence-box": "../../../components/SenceBox/SenceBox"
}
}
\ No newline at end of file
/* packageOutput/pages/summary/summary.wxss */
page {
background-color: #FFFFFF;
}
.summary {
.layout {
color: #323436;
padding: 12rpx 20rpx 0;
margin-bottom: 90rpx;
.title {
font-size: 32rpx;
font-weight: 600;
padding: 12rpx 0 12rpx 20rpx;
border-bottom: 1rpx dashed #CCCED1;
}
.sence-box {
margin: 27rpx 0 24rpx;
}
}
.btn-blue {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 88rpx;
line-height: 88rpx;
text-align: center;
background: #3666FE;
font-size: 28rpx;
color: #FFFFFF;
}
}
\ No newline at end of file
<!--packageOutput/pages/summary/summary.wxml-->
<view class="summary">
<view class="layout">
<view class="title">选产品/活动</view>
<view class="sence-box">
<sence-box formData="{{formData}}"></sence-box>
</view>
</view>
<view class="btn-blue">点击开通</view>
</view>
\ No newline at end of file
......@@ -7,17 +7,80 @@ Component({
},
options: {
styleIsolation: 'shared'
},
/**
* 组件的初始数据
*/
data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/',
list: [{
id: 1,
merchantName: '广西弘泽汽车销售服务有限公司',
totalMoney: '14580.00',
sence1: false,
sence2: true,
sence3: false,
sence4: true,
newList: [{
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
}, {
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
}]
}, {
id: 2,
merchantName: '广西弘泽汽车销售服务有限公司7483493849389348938',
totalMoney: '14580.00',
sence1: false,
sence2: false,
sence3: false,
sence4: false,
newList: []
}, {
id: 3,
merchantName: '广西弘泽汽车销售服务有限公司',
totalMoney: '14580.00',
sence1: false,
sence2: true,
sence3: false,
sence4: true,
newList: [{
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
}, {
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
}]
}, {
id: 4,
merchantName: '广西弘泽汽车销售服务有限公司7483493849389348938',
totalMoney: '14580.00',
sence1: false,
sence2: false,
sence3: false,
sence4: false,
newList: []
}]
},
/**
* 组件的方法列表
*/
methods: {
getList() {
console.log('调接口------')
},
onReachBottom() {
console.log('client触底----')
this.getList()
},
handleJump(e) {
let { id, merchantname } = e.currentTarget.dataset
wx.$router.go('packageOutput.summary', { id, merchantName: merchantname })
}
}
})
{
"component": true,
"usingComponents": {}
"usingComponents": {
"sence-box": "../../../../../components/SenceBox/SenceBox"
}
}
\ No newline at end of file
/* pages/tab/output/components/client/client.wxss */
\ No newline at end of file
/* pages/tab/output/components/client/client.wxss */
.client {
color: #323436;
padding: 16rpx 0 60rpx;
}
.flex {
display: flex;
}
.flex-between {
display: flex;
justify-content: space-between;
}
.profit-box {
box-sizing: border-box;
position: relative;
width: 100%;
height: 96rpx;
line-height: 96rpx;
color: #8A8C90;
padding: 0 20rpx 0 32rpx;
margin-bottom: 16rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/client/bg-profit.png') no-repeat;
background-size: 100% 96rpx;
.price-txt {
font-size: 26rpx;
}
}
.price-txt {
font-weight: 600;
color: #F35251;
}
.box {
box-sizing: border-box;
width: 100%;
background: #FFFFFF;
border-radius: 8rpx;
padding: 28rpx 0 32rpx;
margin-bottom: 16rpx;
.head {
position: relative;
height: 40rpx;
line-height: 40rpx;
font-size: 28rpx;
color: #323436;
padding-right: 20rpx;
&::before {
position: absolute;
left: 0;
top: 4rpx;
content: '';
width: 6rpx;
height: 32rpx;
background: #3666FE;
border-radius: 0 4rpx 4rpx 0;
}
.name {
width: 70%;
margin-left: 32rpx;
}
.price-txt {
font-size: 22rpx;
}
}
&-content {
padding: 22rpx 10rpx 0;
// .sence {
// // height: 198rpx;
// text-align: center;
// width: 100%;
// &-item {
// position: relative;
// width: 25%;
// background: #F7F8FC;
// margin-right: 4rpx;
// font-size: 18rpx;
// color: #8A8C90;
// padding: 32rpx 0 28rpx;
// border-radius: 12rpx;
// margin-bottom: 20rpx;
// &:last-child {
// margin-right: 0;
// }
// }
// &-title {
// font-size: 24rpx;
// height: 44rpx;
// line-height: 44rpx;
// margin: 10rpx 0 4rpx;
// }
// .active.sence-item {
// background: #F0F7FF;
// .active-icon {
// box-sizing: border-box;
// position: absolute;
// left: 0;
// top: 0;
// width: 56rpx;
// height: 32rpx;
// line-height: 24rpx;
// background: #FEEBD6;
// border-radius: 6rpx 0 8rpx 0;
// font-size: 16rpx;
// color: #EF971E;
// padding: 4rpx;
// }
// .sence-title {
// color: #323436;
// }
// }
// &-img {
// width: 56rpx;
// height: 56rpx;
// }
// }
}
&-bottom {
padding: 0 22rpx;
.tip-blue {
width: 56rpx;
height: 28rpx;
font-weight: 400;
font-size: 20rpx;
color: #3E71FE;
padding: 4rpx 8rpx;
text-align: center;
background: rgba(62, 113, 254, 0.12);
border-radius: 4rpx;
}
.bottom-content {
width: calc(100% - 56rpx);
margin-left: 16rpx;
.tip-row {
font-size: 20rpx;
color: #323436;
line-height: 32rpx;
.time {
color: #8A8C90;;
}
}
}
}
}
\ No newline at end of file
<!--pages/tab/output/components/client/client.wxml-->
<text>pages/tab/output/components/client/client.wxml</text>
<view class="client">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥680000.00</text>
</view>
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-id="{{item.id}}" data-merchantName="{{item.merchantName}}">
<view class="head flex-between">
<view class="name text-hide">{{item.merchantName}}</view>
<view class="price-txt">¥{{item.totalMoney}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<sence-box formData="{{item}}"></sence-box>
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.newList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="flex-between tip-row" wx:for="{{item.newList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view>{{subItem.content}}</view>
<view class="time">{{subItem.time}}</view>
</view>
</view>
</view>
<view wx:else class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>运营建议:您的门店尚未开展活动,暂无产值。建议开通新产品拓展营收范围。</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ 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!