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