Commit 006bced0 by 李伟康

提交线索

1 parent f24fc85f
......@@ -5,16 +5,44 @@ Page({
* 页面的初始数据
*/
data: {
tabList: [{
text: '全部',
count:0
}, {
text: '待跟进',
count:0
},
{
text: '已升级',
count:0
},
{
text: '战败',
count:0
}
],
list:[new Array(10)]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
input(e) {
let {
value
} = e.detail
this.setData({
customerName: value
})
},
handleReset() {
this.setData({
customerName: ''
})
this.search()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
......
{
"usingComponents": {}
"usingComponents": {
"equity-item":"./components/EquityItem/EquityItem",
"upgrade-item":"./components/UpgradeItem/UpgradeItem"
},
"navigationBarTitleText": "线索管理"
}
\ No newline at end of file
.layout {
.to-box {
position: sticky;
top: 0;
z-index: 2;
.search-box {
width: 100%;
padding: 32rpx 32rpx 0;
display: flex;
background-color: #fff;
position: sticky;
top: 0;
left: 0;
z-index: 9;
box-sizing: border-box;
.search-input {
background: #F7F8FA;
border-radius: 38rpx;
width: 100%;
height: 72rpx;
display: flex;
align-items: center;
.search-icon {
width: 28rpx;
height: 28rpx;
margin: 0 10rpx 0 26rpx;
}
.clearBtn {
width: 100rpx;
height: 100rpx;
position: relative;
}
.search-clear {
position: absolute;
left: 40rpx;
top: 33rpx;
width: 36rpx;
height: 36rpx;
/* margin: 0 26rpx 0 10rpx; */
}
.input {
font-size: 28rpx;
width: calc(100% - 136rpx);
}
.input-placeholder {
color: rgba(200, 201, 204, .89);
}
}
.search {
width: 144rpx;
height: 100%;
color: #666;
box-sizing: border-box;
padding: 0 24rpx;
.text-center {
font-size: 24rpx;
/* background-color: #f7f7f7; */
border-radius: 12rpx;
width: 100%;
height: 50rpx;
color: #888;
.search-filter {
margin-left: 6rpx;
width: 24rpx;
height: 24rpx;
}
}
}
}
}
.tips {
font-size: 24rpx;
color: #222222;
line-height: 32rpx;
padding: 24rpx 40rpx 20rpx;
}
.content {
padding: 0 20rpx 100rpx;
}
}
\ No newline at end of file
/* packageEquity/pages/clueList/clueList.wxss */
\ No newline at end of file
<!--packageEquity/pages/clueList/clueList.wxml-->
<text>packageEquity/pages/clueList/clueList.wxml</text>
\ No newline at end of file
<view class="layout">
<view class="to-box">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="请输入客户名字进行搜索" class="input" confirm-type="search" value="{{customerName}}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{customerName}}">
<view bindtap="handleReset" class="clearBtn">
<image src="/images/clear.png" class="search-clear" />
</view>
</block>
</view>
</view>
<tab-bar tabList="{{tabList}}" bindclick="tabClick" />
</view>
<view class="tips">今日新增客户·12</view>
<view class="content">
<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>
</block>
<block wx:else>
<equity-item></equity-item>
</block>
</block>
</block>
</view>
</view>
\ No newline at end of file
// packageEquity/pages/clueList/components/EquityItem/EquityItem.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
.item {
min-height: 724rpx;
background: #FFFFFF;
box-shadow: 0 4rpx 16rpx 0 #cdcdd180;
border-radius: 16rpx;
margin-bottom: 20rpx;
}
\ No newline at end of file
<view class="item"></view>
\ No newline at end of file
// packageEquity/pages/clueList/components/UpgradeItem/UpgradeItem.js
Component({
/**
* 组件的属性列表
*/
properties: {
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
}
})
\ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
.item {
min-height: 724rpx;
background: #FFFFFF;
box-shadow: 0 4rpx 16rpx 0 #cdcdd180;
border-radius: 16rpx;
margin-bottom: 20rpx;
}
\ No newline at end of file
<view class="item"></view>
\ No newline at end of file
......@@ -84,7 +84,7 @@ Component({
path: ''
}, {
menuText: '客户线索',
icon: 'create_order',
icon: 'customer_clue',
path: 'packageEquity.clueList'
}],
loginRoleLabel: {
......
......@@ -4,6 +4,13 @@
"miniprogram": {
"list": [
{
"name": "线管理",
"pathName": "packageEquity/pages/clueList/clueList",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "场景",
"pathName": "pages/sceneIndex/sceneIndex",
"query": "",
......
......@@ -72,7 +72,7 @@ export default {
name: '客户线索',
url: 'packageEquity.clueList',
recordId: 11,
icon: 'business_data'
icon: 'customer_clue'
}
],
totalTableSum: [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!