Commit a30e94c8 by wuwx

修复收藏bug

2 parents 0dbb646c cdd135d3
...@@ -72,10 +72,16 @@ Page({ ...@@ -72,10 +72,16 @@ Page({
}, },
handleJump() { handleJump() {
clearTimeout(this.data.time) // clearTimeout(this.data.time)
this.data.time = new setTimeout(() => { // this.data.time = new setTimeout(() => {
wx.$router.go('pages.output') // wx.$router.go('pages.output')
}, 3000) // }, 3000)
// wx.$api.showToast('申请成功')
setTimeout(() => {
wx.$router.back(page => {
page.getClueInit && page.getClueInit()
})
}, 1000)
}, },
handleConfirm() { handleConfirm() {
......
...@@ -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>
......
...@@ -59,8 +59,11 @@ Page({ ...@@ -59,8 +59,11 @@ Page({
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1]) this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
return true return true
} }
this.setCurActivity() if ([2, 3].includes(this.data.sceneActive)) {
// console.log('换内容---') this.getCustomerDetail(false, false)
} else {
this.setCurActivity()
}
}, },
// 活动切换 // 活动切换
...@@ -69,8 +72,9 @@ Page({ ...@@ -69,8 +72,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() {
...@@ -121,15 +125,14 @@ Page({ ...@@ -121,15 +125,14 @@ Page({
['sceneActivityObj.scene3']: res[2].productList, ['sceneActivityObj.scene3']: res[2].productList,
['sceneActivityObj.scene4']: res[3].productList ['sceneActivityObj.scene4']: res[3].productList
}) })
if (isFirst) {
this.getCustomerDetail(isFirst)
}
if ([2, 3].includes(+this.data.sceneActive)) { if ([2, 3].includes(+this.data.sceneActive)) {
this.getCustomerDetail() this.getCustomerDetail()
} else if (this.data.sceneActive == 4) { } else if (this.data.sceneActive == 4) {
this.getActivityRevenue() this.getActivityRevenue()
} else { } else {
if (isFirst) {
this.getCustomerDetail(isFirst)
this.getActivityRevenue(isFirst)
}
this.setCurActivity() this.setCurActivity()
} }
}) })
...@@ -194,7 +197,7 @@ Page({ ...@@ -194,7 +197,7 @@ Page({
this.setData({ this.setData({
['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal.toFixed(2) ['scenePriceList[' + (isFirst ? 1 : (this.data.sceneActive - 1)) + '].total']: curTotal.toFixed(2)
}) })
if(isChangeOtherTotal) { if (isChangeOtherTotal) {
this.setData({ this.setData({
['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal.toFixed(2) ['scenePriceList[' + (isFirst ? 2 : (otherScene - 1)) + '].total']: otherTotal.toFixed(2)
}) })
...@@ -207,7 +210,7 @@ Page({ ...@@ -207,7 +210,7 @@ Page({
var params = {} var params = {}
switch (this.data.searchForm['scene' + this.data.sceneActive + 'Idx']) { switch (this.data.searchForm['scene' + this.data.sceneActive + 'Idx']) {
case 0: case 0:
params.activityStatuList = [1, 2] params.activityStatuList = [1, 2, 3]
break break
// 申请中 // 申请中
case 1: case 1:
......
...@@ -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
......
...@@ -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
}); });
......
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
margin-top: 28rpx; margin-top: 28rpx;
margin-bottom: 16rpx; margin-bottom: 16rpx;
padding-left: 32rpx; padding-left: 32rpx;
padding-right: 32rpx;
} }
.prod-wrap .nav-wrap .nav { .prod-wrap .nav-wrap .nav {
......
...@@ -44,8 +44,9 @@ ...@@ -44,8 +44,9 @@
</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}}"> -->
<block wx:for="{{tab}}" wx:key="index"> <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}}" --> <!-- 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}}">
<!-- wx:if="{{index!=5}}" --> <!-- 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',
......
...@@ -570,7 +570,6 @@ Page({ ...@@ -570,7 +570,6 @@ Page({
} else { } else {
obj[item['key']] = itemIndx == 2 ? '' : itemIndx obj[item['key']] = itemIndx == 2 ? '' : itemIndx
} }
// || itemIndx == 3
} }
return obj return obj
}, {}) }, {})
...@@ -666,7 +665,7 @@ Page({ ...@@ -666,7 +665,7 @@ Page({
.then(result => { .then(result => {
// console.log(result) // console.log(result)
// 为2是已经展示过了 // 为2是已经展示过了
result.status != 2 && if (result.status && result.status != 2) {
this.setData({ this.setData({
posterItem: { posterItem: {
activityName: result.activityName, activityName: result.activityName,
...@@ -674,6 +673,7 @@ Page({ ...@@ -674,6 +673,7 @@ Page({
posterUrl: result.valueUrl posterUrl: result.valueUrl
} }
}) })
}
}) })
.catch(err => {}) .catch(err => {})
}, },
......
...@@ -158,9 +158,10 @@ page { ...@@ -158,9 +158,10 @@ page {
width: 23px; width: 23px;
height: 23px; height: 23px;
} }
.disLike-tit { .disLike-tit {
width: 172rpx; width: 172rpx;
background: rgba(0,0,0,0.60); background: rgba(0, 0, 0, 0.60);
padding: 8rpx 0rpx; padding: 8rpx 0rpx;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 20rpx; font-size: 20rpx;
...@@ -172,6 +173,7 @@ page { ...@@ -172,6 +173,7 @@ page {
right: 0rpx; right: 0rpx;
top: 61rpx; top: 61rpx;
} }
.disLike-titsan { .disLike-titsan {
width: 0; width: 0;
height: 0; height: 0;
...@@ -181,6 +183,7 @@ page { ...@@ -181,6 +183,7 @@ page {
right: 27rpx; right: 27rpx;
top: 30rpx; top: 30rpx;
} }
.name { .name {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -203,7 +206,17 @@ page { ...@@ -203,7 +206,17 @@ page {
} }
.want-more { .want-more {
box-sizing: border-box;
overflow: hidden; overflow: hidden;
transition: all 3s ease;
}
.height {
height: 200rpx;
}
.auto {
height: auto;
} }
.want-btn { .want-btn {
...@@ -213,8 +226,10 @@ page { ...@@ -213,8 +226,10 @@ page {
} }
.record { .record {
margin-top: 4px; // margin-top: 4px;
margin-bottom: 4px; // margin-bottom: 4px;
box-sizing: border-box;
height: 40rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
......
...@@ -165,16 +165,23 @@ ...@@ -165,16 +165,23 @@
data-outidx="{{index}}" data-outidx="{{index}}"
data-item="{{item}}" data-item="{{item}}"
bindtap="showToast" /> bindtap="showToast" />
<<<<<<< HEAD
<view class="disLike-tit" wx:if="{{item.clueType == 1 && item.starTag == 0 && disLikeFlag && disLikeRecordFlag}}" hidden="{{index != disLikeFlagIdx}}"> <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 && 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="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}}" />
>>>>>>> cdd135d3e669556f6210e71cfd7738d55c1ddfb0
<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}}" />
</view> </view>
<view class="line" hover-class="none" hover-stop-propagation="false" /> <view class="line" hover-class="none" hover-stop-propagation="false" />
<view class="want-more" style="height:{{item.getMoreFlag? 100: 'auto'}}px"> <view class="want-more {{item.getMoreFlag?'height':'auto'}}">
<view <view
class="record" class="record"
wx:for="{{item.visitList}}" wx:for="{{item.visitList}}"
......
...@@ -136,7 +136,7 @@ Component({ ...@@ -136,7 +136,7 @@ Component({
} }
const defaultTime = { const defaultTime = {
startTime: '', startTime: '',
endTime: '' endTime: `${month}-${today} 23:59:59`
} }
this.setData({ this.setData({
dataObj: { dataObj: {
......
...@@ -13,7 +13,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -13,7 +13,7 @@ const systemInfo = wx.getSystemInfoSync()
// console.log(accountInfo.miniProgram.envVersion) // console.log(accountInfo.miniProgram.envVersion)
//手动控制体验版环境的请求 true就依据下面index false就默认为2 //手动控制体验版环境的请求 true就依据下面index false就默认为2
const manual = false const manual = false
const release = false const release = true
let index = 2 let index = 2
...@@ -40,8 +40,6 @@ if (systemInfo.platform != 'devtools') { ...@@ -40,8 +40,6 @@ if (systemInfo.platform != 'devtools') {
} }
} }
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
账号登录: 10988866666(超管)xiong110 账号登录: 10988866666(超管)xiong110
测试环境 bb123456 密码 bb123456 测试环境 bb123456 密码 bb123456
csysfws a123456
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!