Commit 2addda94 by 张立顺

Merge branch 'develop' of 192.168.3.233:saas_plus/business-assistant into develop

2 parents da986012 df0d299e
......@@ -51,7 +51,7 @@
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="tr">
<view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view wx:if="{{j == 0}}">
<view wx:if="{{j == 0 && idx < 3}}">
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" />
</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
......
......@@ -27,7 +27,7 @@ Component({
name: 'upgradeCount'
}, {
label: '营业额',
name: 'totalOrderMoney'
name: 'totalSubOrderOrderMoney'
}, {
label: '客单价',
name: 'calCustomerUnitPrice',
......
// packageOutput/pages/summary/summary.js
import outputApi from '~/api/outputApi/index'
import { IMG_URL } from '~/utils/constantData'
import { getNowMonth } from '~/utils/format'
Page({
/**
......@@ -59,8 +60,11 @@ Page({
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
return true
}
this.setCurActivity()
// console.log('换内容---')
if ([2, 3].includes(this.data.sceneActive)) {
this.getCustomerDetail(false, false)
} else {
this.setCurActivity()
}
},
// 活动切换
......@@ -69,8 +73,9 @@ Page({
this.setData({
activityActive: idx
})
// this.getCustomerDetail()
// console.log('换内容--')
if ([2, 3].includes(this.data.sceneActive)) {
this.getCustomerDetail(false, false)
}
},
setCurActivity() {
......@@ -134,22 +139,41 @@ Page({
})
},
initTime() {
let date = new Date()
let today = date.getDate()
let month = getNowMonth()
const todayTime = {
startTime: `${month}-${today} 00:00:00`,
endTime: `${month}-${today} 23:59:59`
}
const monthTime = {
startTime: `${month}-01 00:00:00`,
endTime: `${month}-${today} 23:59:59`
}
const defaultTime = {
startTime: '',
endTime: `${month}-${today} 23:59:59`
}
this.setData({
dataObj: {
todayTime,
monthTime,
defaultTime
}
})
},
dealSearchTime() {
var params = {}
switch (this.data.searchForm['scene' + this.data.sceneActive + 'Idx']) {
// 本月
case 1:
params = {
startTime: new Date(new Date().setDate(1)).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00',
endTime: new Date().toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
params = this.data.dataObj.monthTime
break
// 本日
case 2:
params = {
startTime: new Date().toLocaleDateString().replace(/\//g, '-') + ' 00:00:00',
endTime: new Date().toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
}
params = this.data.dataObj.todayTime
break
}
return params
......@@ -298,7 +322,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.initTime()
wx.$router.getData(obj => {
var scene = {}
Object.keys(this.data.sceneObj).forEach(item => {
......
......@@ -140,7 +140,7 @@ Page({
activeNavIdx,
// apiData,
outshowVideo,
isShow
isShow,
// origin //跳转来源 home
} = options
// if(actNum&&activeNavIdx)return
......
......@@ -47,7 +47,7 @@ Component({
"项目亮点",
"转化漏斗",
"合作流程",
// "合作案例",
// "案例视频",
],
heightArr: [],
allHeight: 0,
......@@ -134,7 +134,7 @@ Component({
"项目亮点",
"转化漏斗",
"合作流程",
// "合作案例",
// "案例视频",
];
let num = this.data.actNum;
switch (num) {
......@@ -420,20 +420,20 @@ Component({
"项目亮点",
"转化漏斗",
"合作流程",
// "合作案例",
// "案例视频",
];
switch (actNum) {
case 0:
tab.push("合作案例");
tab.push("案例视频");
break;
case 1:
tab.push("合作案例");
tab.push("案例视频");
break;
case 2:
break;
case 3:
tab.push("合作案例");
tab.push("案例视频");
break;
}
this.setData({
......@@ -441,6 +441,7 @@ Component({
});
},
onShareFn() {
let userInfo = wx.$storage.get('userInfo')
// this.triggerEvent('sharehandle')
// wx.$router.go('apply',1235)
let {
......@@ -453,7 +454,8 @@ Component({
activeNavIdx,
apiData,
outshowVideo: true,
isShow: true
isShow: true,
sharePhone:userInfo.phone
// origin:'home' //跟首页类似情况
// isShare: true
});
......
......@@ -177,7 +177,7 @@
}
.project-img {
overflow: auto;
// height: 1600rpx;
// white-space: nowrap;
.img-item {
......
......@@ -44,8 +44,9 @@
</view>
<!-- style="{height:{{allHeight}}px}" scroll-y="{{true}}" bindscroll="scrolltoupper"-->
<scroll-view class="project-img" scroll-into-view="{{intoViewId}}">
<block wx:for="{{tab}}" wx:key="index">
<!-- <scroll-view class="project-img" scroll-into-view="{{intoViewId}}"> -->
<view class="project-img" hover-class="none" hover-stop-propagation="false">
<block wx:for="{{tab}}" wx:key="index">
<!-- wx:if="{{showVideo && index==5 && tab.length < 5}}" -->
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index != 5}}">
<!-- wx:if="{{index!=5}}" -->
......@@ -86,5 +87,7 @@
</block>
</scroll-view>
</view>
<!-- </scroll-view> -->
</view>
\ No newline at end of file
......@@ -65,7 +65,7 @@ var senceData = [
img: 'product-img2',
proName: '汽车太阳膜',
price: '100',
profit: '10080000',
profit: '1008000',
type: 'membrane',
productType: 'sunMembrane',
path: 'solarFilm',
......
......@@ -434,6 +434,13 @@ Page({
})
wx.$storage.set('firstLogin', 'firstLogin')
}
if(this.data.guideShow){
wx.$storage.set('disLikeRecordFlag', true)
let disLikeRecordFlag = wx.$storage.get('disLikeRecordFlag')
this.setData({
disLikeRecordFlag
})
}
},
//接口数据,本地数据对接
compositionData(localData, apiData) {
......@@ -473,8 +480,11 @@ Page({
this.prompt = this.selectComponent('#toast')
},
showToast: function (e) {
wx.$storage.set('disLikeRecordFlag', false)
let disLikeRecordFlag = wx.$storage.get('disLikeRecordFlag')
this.setData({
disLikeFlag: false
disLikeFlag: false,
disLikeRecordFlag
})
let { type, item } = e.currentTarget.dataset
console.log('type,item: ', type, item)
......@@ -634,6 +644,10 @@ Page({
this.setData({
clueList: arr
})
let arrinx = arr.findIndex(e => e.clueType == 1 && e.starTag == 0)
this.setData({
disLikeFlagIdx: arrinx
})
}
},
//喜欢收藏功能
......
......@@ -165,10 +165,10 @@
data-outidx="{{index}}"
data-item="{{item}}"
bindtap="showToast" />
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag}}">
标记为意向客户
</view>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag}}" />
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}">
标记为意向客户
</view>
<view class="disLike-titsan" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}"></view>
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
<image class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
......
......@@ -15,7 +15,8 @@ export const STORAGE_OBJECTkEY = {
userPhone: 'userPhone',
firstLogin: 'firstLogin',
authphone: 'authphone',
posterTimer: 'posterTimer'
posterTimer: 'posterTimer',
disLikeRecordFlag: 'disLikeRecordFlag'
}
export const IMG_VERSION = () => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!