Commit a30e94c8 by wuwx

修复收藏bug

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