Commit ecdd6625 by 张立顺

bugfix

1 parent 50b4f246
{
"pages": [
"login/loading/loading",
"pages/tab/index/index",
"login/loading/loading",
"pages/tab/output/output",
"pages/tab/mine/mine",
"pages/webView/webView",
......
......@@ -2,6 +2,7 @@
<view class="customerManagementCon">
<!-- required hidden="{{hidden}}" -->
<scroll-view
style="{{ margin-right: 5px;}}"
wx:if="{{customerList.length}}"
scroll-y
enable-back-to-top
......
......@@ -43,9 +43,35 @@ Page({
],
apiData: [],
actNum: 3, //car 场景选择
tabIndx: 1,
tabIndx: 0,
navList: ['看线索', '看产品'],
typeList: ['联系电话', '意向客户', '线索来源', '重置'],
typeList: [
{
0: '无电话',
1: '有电话',
2: '联系电话',
selectIndex: 2,
key: 'hasPhone'
},
{
0: '非意向客户',
1: '是意向客户',
2: '意向客户',
selectIndex: 2,
key: 'starTag'
},
{
0: '来自访客',
1: '来自门店',
2: '线索来源',
selectIndex: 2,
key: 'clueSource'
},
{
2: '重置',
selectIndex: 2
}
],
clueList: [],
// 预估弹框
visible: false,
......@@ -256,16 +282,16 @@ Page({
this.data.senceData.forEach((item, index) => {
item.productList.forEach((i, lastIndex) => {
if (i.profit) {
let sale = `senceData[${index}].productList[${lastIndex}].sale`;
let name = `senceData[${index}].productList[${lastIndex}].profit`;
let flowKey = `senceData[${index}].productList[${lastIndex}].flow`;
let profit = _this.formula(i.productType, sales, flow);
console.log(name, profit);
let sale = `senceData[${index}].productList[${lastIndex}].sale`
let name = `senceData[${index}].productList[${lastIndex}].profit`
let flowKey = `senceData[${index}].productList[${lastIndex}].flow`
let profit = _this.formula(i.productType, sales, flow)
console.log(name, profit)
this.setData({
[name]: profit,
[sale]: sales,
[flowKey]: flow,
});
[flowKey]: flow
})
}
})
})
......@@ -478,65 +504,69 @@ Page({
this.getTagApi(params)
},
filterTypeFn(e) {
let { typeList } = this.data
let index = e.currentTarget.dataset.index
let itemList = []
let params = {
clueSource: '',
hasPhone: '',
starTag: ''
}
console.log('index: ', index)
switch (index) {
case 0:
itemList = ['无', '有']
break
case 1:
itemList = ['否', '是']
break
case 2:
itemList = ['访客', '门店'] //线索来源(1访客,2门店)
break
case 3:
params = {
clueSource: '',
hasPhone: '',
starTag: ''
}
break
// let itemList = []
// let params = {
// clueSource: '',
// hasPhone: '',
// starTag: ''
// }
// console.log('index: ', index)
// 重置筛选
if (index == 3) {
typeList.forEach(item => {
item.selectIndex = 2
})
this.setData({
typeList
})
return this.getPageApi()
}
let itemList = Object.values(typeList[index]).slice(0, 2)
itemList.push('全部')
let _this = this
wx.pro.showActionSheet({
itemList,
success(res) {
let num
if (index == 2) {
num = res.tapIndex + 1
} else {
num = res.tapIndex
}
switch (index) {
case 0:
params.hasPhone = num
break
case 1:
params.starTag = num
break
case 2:
params.clueSource = num
break
}
// 选中全部
let selectIndex = res.tapIndex
typeList[index].selectIndex = selectIndex
let params = typeList.reduce((obj, item, index) => {
if (item['key']) {
selectIndex = index == 2 ? selectIndex + 1 : selectIndex
let itemIndx = item.selectIndex
obj[item['key']] = itemIndx == 2 ? '' : itemIndx
}
return obj
}, {})
console.log(params)
// let num
// if (index == 2) {
// num = res.tapIndex + 1
// } else {
// num = res.tapIndex
// }
// switch (index) {
// case 0:
// params.hasPhone = num
// break
// case 1:
// params.starTag = num
// break
// case 2:
// params.clueSource = num
// break
// }
_this.setData({ typeList })
_this.getPageApi(params)
},
fail(res) {
console.log(res.errMsg)
},
complete(res) {
console.log('res: ', res)
}
})
if (index == 3) {
this.getPageApi(params)
}
},
// 打电话
phoneCallFn(e) {
......
......@@ -3,6 +3,7 @@ page {
width: 100vw;
background-color: #F2F3F7 !important;
}
.reclaim {
.header-wrap {
position: sticky;
......@@ -11,6 +12,7 @@ page {
background-size: 100% 100%;
margin-bottom: 32rpx;
z-index: 1;
.header {
position: absolute;
left: 0;
......@@ -20,12 +22,15 @@ page {
display: flex;
justify-content: space-between;
align-items: center;
.tabContainer {
width: 60%;
}
.left {
display: flex;
align-items: center;
.clue {
position: relative;
margin-left: 24px;
......@@ -34,13 +39,16 @@ page {
font-size: 14px;
color: #8a8c90;
}
.product {
position: relative;
}
.act {
font-weight: 600;
font-size: 22px;
color: #323436;
&::after {
position: absolute;
left: 50%;
......@@ -55,13 +63,16 @@ page {
}
}
}
.right {
display: flex;
align-items: center;
.img {
width: 20px;
height: 20px;
}
.apply {
margin-left: 4px;
margin-right: 16px;
......@@ -72,16 +83,19 @@ page {
}
}
}
// .content{
// position: relative;
// }
.clue {
padding: 0px 10px 0;
background-color: #f2f3f7;
.types {
margin-bottom: 8px;
display: flex;
align-items: center;
.type {
margin-left: 8px;
display: flex;
......@@ -94,13 +108,19 @@ page {
border-radius: 14px;
font-size: 12px;
color: #8a8c90;
.point {
margin-left: 2px;
width: 12px;
height: 12px;
}
}
.active {
color: #3964fe;
}
}
.list {
.msg {
padding: 10px 16px 16px;
......@@ -109,6 +129,7 @@ page {
background-color: #fff;
border-radius: 4px;
}
.like {
position: absolute;
right: 12px;
......@@ -116,44 +137,52 @@ page {
width: 23px;
height: 23px;
}
.name {
display: flex;
align-items: center;
// font-weight: 400;
font-size: 14px;
color: #323436;
.avatar {
margin-left: 2px;
width: 20px;
height: 20px;
}
}
.line {
margin-top: 10px;
margin-bottom: 10px;
height: 0;
border-bottom: #eeeeee 1px dashed;
}
.want-more {
overflow: hidden;
}
.want-btn {
margin-top: 10px;
font-size: 12px;
color: var(--btnColor);
}
.record {
margin-top: 4px;
margin-bottom: 4px;
display: flex;
justify-content: space-between;
align-items: center;
.action-wrap {
display: flex;
align-items: center;
font-size: 12px;
color: #393b3e;
}
// .action{
// }
......@@ -165,18 +194,22 @@ page {
color: #8a8c90;
}
}
.info {
margin-top: 10px;
display: flex;
justify-content: space-between;
.phone-wrap {
display: flex;
align-items: center;
}
.phone {
font-size: 12px;
color: #3666fe;
}
.phone-img {
margin-left: 12px;
margin-right: 8px;
......@@ -184,11 +217,13 @@ page {
height: 20px;
border-radius: 50%;
}
.copy {
width: 20px;
height: 20px;
border-radius: 50%;
}
.btn {
width: 85px;
height: 24px;
......@@ -200,11 +235,13 @@ page {
line-height: 24px;
}
}
.noDataImg {
width: 512rpx;
height: 512rpx;
margin-left: 100rpx;
position: relative;
.noDataTxt {
font-family: PingFangSC-Regular;
font-size: 24rpx;
......@@ -215,16 +252,19 @@ page {
transform: translateX(-50%);
}
}
.shop {
.name-wrap {
display: flex;
justify-content: space-between;
align-items: center;
}
.source {
font-size: 10px;
color: #8a8c90;
}
.btn {
border: 1px solid var(--btnColor);
border-radius: 12px;
......@@ -232,14 +272,17 @@ page {
font-size: 12px;
color: var(--btnColor);
}
.shop-action-wrap {
display: flex;
justify-content: space-between;
align-items: center;
}
.shop-record {
width: 100%;
}
.shop-source {
margin-top: 4px;
width: 100%;
......@@ -249,17 +292,20 @@ page {
}
}
}
.scene {
margin: 0 10px 16px;
display: flex;
justify-content: space-between;
.item-wrap {
// margin-right: 4px;
position: relative;
width: 86px;
height: 90px;
border-radius:10px;
border-radius: 10px;
}
.item {
// padding-top: 10px;
width: 86px;
......@@ -267,28 +313,32 @@ page {
background: #f7f8fc;
border-radius: 6px;
}
.act {
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%;
border: 1px solid var(--btnColor);
box-shadow: 0 0 10px #999;
&::after{
&::after {
position: absolute;
left: 50%;
bottom: -7px;
display:block;
display: block;
content: "";
width:6px;
width: 6px;
height: 6px;
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
background-color: #fff;
}
.item {
background: transparent;
}
}
.img {
padding-top: 10px;
display: block;
......@@ -296,6 +346,7 @@ page {
width: 28px;
height: 28px;
}
.name {
margin-bottom: 2px;
font-weight: 500;
......@@ -303,6 +354,7 @@ page {
color: #323436;
text-align: center;
}
.msg {
font-weight: 400;
font-size: 9px;
......@@ -311,9 +363,11 @@ page {
}
}
}
.guide {
width: 100%;
height: 100%;
.guide-img {
position: fixed;
top: 0;
......@@ -323,6 +377,7 @@ page {
z-index: 2;
}
}
.chat {
position: fixed;
right: -4px;
......@@ -332,6 +387,7 @@ page {
border-radius: 50%;
z-index: 1;
}
.output-value {
position: fixed;
right: 5px;
......@@ -341,6 +397,7 @@ page {
// border-radius: 50%;
z-index: 1;
}
/* 测算弹窗 */
.dialog-wrapper {
position: fixed;
......@@ -349,31 +406,36 @@ page {
left: 0;
right: 0;
bottom: 0;
background-color: rgba(45,45,51,0.50);
background-color: rgba(45, 45, 51, 0.50);
z-index: 1;
.dialog-box {
position: fixed;
bottom: 0;
width: 100%;
height: 744rpx;
background-color: #fff;
box-shadow: 0 -8rpx 20rpx 0 rgba(180,186,204,0.32);
box-shadow: 0 -8rpx 20rpx 0 rgba(180, 186, 204, 0.32);
border-radius: 32rpx 32rpx 0 0;
}
.dialog-header {
display: flex;
justify-content: space-between;
padding: 32rpx 48rpx;
border-bottom: 1rpx solid #eee;
}
.header-btn {
display: inline-block;
font-size: 32rpx;
line-height: 48rpx;
}
.btn-gray {
color: #6C737A;
}
.btn-primary {
background-color: #fff;
border: none;
......@@ -381,14 +443,17 @@ page {
padding: 0;
font-weight: 500;
color: #5850FF;
width:auto;
width: auto;
}
.btn-primary::after {
border: none;
}
.dialog-content {
padding: 40rpx 24rpx 60rpx;
}
.dialog-title {
font-weight: 600;
font-size: 36rpx;
......@@ -398,14 +463,16 @@ page {
line-height: 56rpx;
margin-bottom: 24rpx;
}
.dialog-form {
width: 100%;
height: 384rpx;
background-image: linear-gradient(179deg, rgba(123,112,255,0.02) 15%, rgba(99,92,255,0.10) 100%);
background-image: linear-gradient(179deg, rgba(123, 112, 255, 0.02) 15%, rgba(99, 92, 255, 0.10) 100%);
border-radius: 8rpx;
padding: 32rpx;
box-sizing: border-box;
}
.form-item {
display: flex;
align-items: center;
......@@ -413,11 +480,13 @@ page {
margin-bottom: 24rpx;
justify-content: space-between;
}
.form-label {
width: 256rpx;
font-size: 28rpx;
color: #2D2D33;
}
.form-input {
width: 216rpx;
padding: 16rpx 20rpx;
......@@ -426,10 +495,12 @@ page {
margin-left: 64rpx;
margin-right: 16rpx;
}
.form-unit {
font-size: 28rpx;
color: #6E6E7A;
}
.dialog-btn {
width: 100%;
padding: 24rpx 0;
......@@ -444,5 +515,4 @@ page {
line-height: 48rpx;
margin-top: 40rpx;
}
}
}
\ No newline at end of file
......@@ -34,7 +34,7 @@ Page({
wx.$storage.rm('sessionId')
wx.$storage.rm('auto_login_object')
wx.$storage.rm('userInfo')
wx.$router.go('login.index')
wx.$router.reLaunch('login.index')
})
}
}
......
......@@ -26,6 +26,7 @@ page {
content: '';
width: 100%;
height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/personal/bg.webp') no-repeat;
background-size: 100% 486rpx;
position: absolute;
left: 0;
......
......@@ -64,6 +64,20 @@
background-size: 100% 100%; */
}
.active::after {
position: absolute;
left: 50%;
bottom: -7px;
display: block;
content: "";
width: 6px;
height: 6px;
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
background-color: #fff;
}
/* 选中 - end */
.scene-title {
......
......@@ -6,7 +6,8 @@ const IMAGES = {
arrow: `${IMG_URL}/output/arrow.png`,
funnel: `${IMG_URL}/output/funnel.png`,
money: `${IMG_URL}/output/money.png`,
paper: `${IMG_URL}/output/paper.png`
paper: `${IMG_URL}/output/paper.png`,
link: `${IMG_URL}/output/link.webp`
}
Component({
/**
......@@ -31,6 +32,7 @@ Component({
current: 0,
totalMoney: 0,
totalOrder: 0,
startInd: 0,
list: [],
nowList: [],
todayList: [],
......@@ -78,14 +80,20 @@ Component({
let that = this
let { index } = e.currentTarget.dataset
let { dataObj, userInfo, list } = this.data
const itemList = ['本月', '本日', '全部']
wx.showActionSheet({
// '全部'
itemList: ['本月', '本日'],
itemList,
// 先处理成全部默认去请求
success(res) {
// if (res.tapIndex!=2) {
// let parmas =
let key = res.tapIndex == 0 ? 'monthTime' : 'todayTime'
const keyName = {
0: 'monthTime',
1: 'todayTime',
2: 'defaultTime'
}
let key = keyName[res.tapIndex]
let merchantId = list[index]['merchantId']
let params = {
partnerMerchantId: userInfo.merchantId, // userInfo.merchantId
......@@ -97,7 +105,7 @@ Component({
.getMerchantById(params)
.then(result => {
console.log(result)
that.setMerchantObj(index, result)
that.setMerchantObj(index, result, itemList[res.tapIndex])
})
.catch(err => {})
......@@ -120,10 +128,15 @@ Component({
startTime: `${month}-01 00:00:00`,
endTime: `${month}-${today} 23:59:59`
}
const defaultTime = {
startTime: '',
endTime: ''
}
this.setData({
dataObj: {
todayTime,
monthTime
monthTime,
defaultTime
}
})
},
......@@ -200,7 +213,8 @@ Component({
if (!list[index]['showList'][sceneIdx - 1]) return
list[index].startInd = sceneIdx - 1
this.setData({
list
list,
startInd: sceneIdx
})
},
getMerchantById(params) {
......@@ -217,10 +231,11 @@ Component({
})
})
},
setMerchantObj(index, item) {
setMerchantObj(index, item, selectName) {
console.log(item)
item = item[0]
let obj = {}
obj.selectName = selectName
obj.totalMoney = item?.totalMoney || 0
obj.totalOrder = item?.totalOrder || 0
obj.merchantName = item?.merchantName
......@@ -236,7 +251,8 @@ Component({
let { list } = this.data
// item.list[index] = list[index]
console.log('listObj', listObj)
// console.log('listObj', listObj)
console.log(obj.selectName)
let listObj = `list[${index}]`
this.setData({
[listObj]: Object.assign(list[index], obj)
......@@ -248,7 +264,8 @@ Component({
let { current } = e.detail
this.setData({
totalMoney: list[current].totalMoney,
totalOrder: list[current].totalOrder
totalOrder: list[current].totalOrder,
startInd: 0
})
// list
if (current >= 1 && list[current + 1] && list[current + 1].startInd == -1) {
......
......@@ -236,7 +236,7 @@
}
.short {
height: 1050rpx !important;
height: 1150rpx !important;
}
.funneItem:nth-of-type(1) {
......@@ -244,9 +244,17 @@
}
.navOhterApp {
display: flex;
align-items: center;
box-sizing: border-box;
font-size: 24rpx;
color: #5C7097;
// margin: 50rpx 20rpx 0;
margin-bottom: 50rpx;
.linkImg{
width: 20rpx;
height: 20rpx;
margin-left: 20rpx;
margin-right: 10rpx;
}
}
\ No newline at end of file
......@@ -17,7 +17,7 @@
<!-- sceneIndx==3? 'short': -->
<swiper
indicator-dots="{{indicatorDots}}"
class="full"
class=" {{startInd ==4?'short':'full'}}"
autoplay="{{autoplay}}"
bindchange="swiperChange"
interval="{{interval}}"
......@@ -28,7 +28,7 @@
<view class="contitle">
<view class="name">{{item.merchantName}}</view>
<view class="select" data-index="{{index}}" bind:tap="pickSheet">
<view>全部</view>
<view>{{item.selectName||'全部'}}</view>
<image
class="arrow {{isAct?'isAct':''}}"
webp
......@@ -114,6 +114,7 @@
open-type="navigate"
app-id="wx570d9331f9ace0bd"
version="release">
<image src="{{IMAGES.link}}" webp class="linkImg" />
查看订单详情
</navigator>
</view>
......
......@@ -9,7 +9,7 @@ Page({
navStyle: 'background-color: rgba(0,0,0,0);',
loginType: 0,
agree: true,
tabIndx: 0,
tabIndx: 1,
tabList: ['我的客户', '我的门店', '我的员工'],
popupShow: false,
subIndex: -1,
......
......@@ -25,7 +25,7 @@
content: '';
width: 100%;
height: 486rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/login/bg.webp') no-repeat;
background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.webp') no-repeat;
background-size: 100% 486rpx;
position: absolute;
left: 0;
......@@ -44,6 +44,12 @@
overflow: scroll;
// background-color: #fff;
}
.comCom::-webkit-scrollbar {
display:none;
width:0;
height:0;
color:transparent;
}
}
......
......@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
3生产
*/
const index = 1
const index = 2
const secretKey = {
ip: {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!