Commit 19bf057f by chenwq

我拍的客户-bug修复

1 parent dea52d10
// pages/tab/output/components/sceneBox/sceneBox.js // pages/tab/output/components/sceneBox/sceneBox.js
import { IMG_URL } from '~/utils/constantData'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -26,7 +27,7 @@ Component({ ...@@ -26,7 +27,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/', IMGURL: IMG_URL,
custSceneList: [{ custSceneList: [{
title: '新车洽谈场景', title: '新车洽谈场景',
subTitle: '1.0新车权益销售' subTitle: '1.0新车权益销售'
......
<!--pages/tab/output/components/sceneBox/sceneBox.wxml--> <!--pages/tab/output/components/sceneBox/sceneBox.wxml-->
<view class="flex scene"> <view class="flex scene">
<view class="scene-item {{ formData['scene' + (index + 1)] ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}"> <view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</view> <view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)] && sceneActive != (index + 1)}}" class="open-icon">已开通</view>
<image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" /> <image wx:if="{{formData['scene' + (index + 1)]}}" class="scene-img" src="{{IMGURL}}output/caract0{{index + 1}}.png?v={{img_version}}" />
<image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" /> <image wx:else class="scene-img" src="{{IMGURL}}output/car0{{index + 1}}.png?v={{img_version}}" />
......
// packageOutput/pages/openBusiness/openBusiness.js // packageOutput/pages/openBusiness/openBusiness.js
import outputApi from '~/api/outputApi/index' import outputApi from '~/api/outputApi/index'
import { IMG_URL } from '~/utils/constantData'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/', IMGURL: IMG_URL,
merchantInfo: {}, merchantInfo: {},
sceneCodeList: [], sceneCodeList: [],
// 场景业务 // 场景业务
......
...@@ -90,16 +90,23 @@ page { ...@@ -90,16 +90,23 @@ page {
} }
} }
.btn-blue { .btn {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
text-align: center;
background: #3666FE;
font-size: 34rpx; font-size: 34rpx;
color: #FFFFFF; color: #FFFFFF;
text-align: center;
}
.btn-blue {
background: #3666FE;
}
.btn-disabled {
background: #CCCED1;
} }
} }
\ No newline at end of file \ No newline at end of file
<!--packageOutput/pages/openBusiness/openBusiness.wxml--> <!--packageOutput/pages/openBusiness/openBusiness.wxml-->
<view class="openBusiness"> <view class="openBusiness">
<image class="bg-img" src="{{IMGURL}}output/bg-open-business.png?v={{img_version}}"/> <image class="bg-img" src="{{IMGURL}}output/open0{{sceneActive}}.png?v={{img_version}}"/>
<view class="layout"> <view class="layout">
<view class="form m-b-32"> <view class="form m-b-32">
<text class="label">开通门店:</text> <text class="label">开通门店:</text>
...@@ -20,5 +20,6 @@ ...@@ -20,5 +20,6 @@
</view> </view>
</view> </view>
</view> </view>
<view class="btn-blue" bindtap="handleConfirm">申请开通</view> <view wx:if="{{sceneActive != 1}}" class="isFullSucreen btn btn-blue" bindtap="handleConfirm">申请开通</view>
<view wx:else class="btn btn-disabled">申请开通</view>
</view> </view>
\ No newline at end of file \ No newline at end of file
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js // packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import wxqrcode from '~/utils/lib/wxqrcode' import wxqrcode from '~/utils/lib/wxqrcode'
import { IMG_URL } from '~/utils/constantData'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -15,6 +16,7 @@ Component({ ...@@ -15,6 +16,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMGURL: IMG_URL,
orderFormList: [{ orderFormList: [{
label: '总场次', label: '总场次',
name: 'totalNum' name: 'totalNum'
...@@ -45,7 +47,7 @@ Component({ ...@@ -45,7 +47,7 @@ Component({
tableHeadList: [{ tableHeadList: [{
label: '', label: '',
width: '', width: '',
width: '24rpx' width: '28rpx'
}, { }, {
label: '业务员', label: '业务员',
name: 'shareName', name: 'shareName',
......
...@@ -117,6 +117,7 @@ ...@@ -117,6 +117,7 @@
.rank-table { .rank-table {
color: #5A6066; color: #5A6066;
font-size: 20rpx; font-size: 20rpx;
padding-left: 20rpx;
.tr { .tr {
display: flex; display: flex;
...@@ -127,6 +128,12 @@ ...@@ -127,6 +128,12 @@
.th, .th,
.td { .td {
width: calc((100% - 116rpx) / 4); width: calc((100% - 116rpx) / 4);
.icon-rank {
width: 24rpx;
height: 24rpx;
vertical-align: middle;
padding-right: 4rpx;
}
} }
} }
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
<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}}">
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}"></image>
</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text> <text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}} {{subItem[i.name]}}
</view> </view>
......
// packageOutput/pages/summary/components/outputTransform/outputTransform.js // packageOutput/pages/summary/components/outputTransform/outputTransform.js
import { IMG_URL } from '~/utils/constantData'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -14,6 +15,7 @@ Component({ ...@@ -14,6 +15,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMGURL: IMG_URL,
formDataList: [{ formDataList: [{
label: '到店贴膜量', label: '到店贴膜量',
name: 'toShopCount' name: 'toShopCount'
...@@ -31,7 +33,7 @@ Component({ ...@@ -31,7 +33,7 @@ Component({
name: 'calCustomerUnitPrice', name: 'calCustomerUnitPrice',
prefix: '¥' prefix: '¥'
}, { }, {
label: '引流体验量', label: '引流体验率',
name: 'calExperience', name: 'calExperience',
suffix: '%' suffix: '%'
}, { }, {
......
...@@ -19,3 +19,17 @@ ...@@ -19,3 +19,17 @@
} }
} }
} }
.link {
display: inline-block;
height: 36rpx;
font-size: 24rpx;
color: #5C7097;
margin: 180rpx 0 0 28rpx;
.icon-link {
width: 20rpx;
height: 20rpx;
margin: -6rpx 8rpx 0 0;
vertical-align: middle;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -9,5 +9,6 @@ ...@@ -9,5 +9,6 @@
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
</view> </view>
</view> </view>
<navigator target="miniProgram" open-type="navigate" app-id="wx570d9331f9ace0bd" version="release">查看订单详情
</navigator>
\ No newline at end of file \ No newline at end of file
<navigator class="link" target="miniProgram" open-type="navigate" app-id="wx570d9331f9ace0bd" version="release">
<image class="icon-link" src="{{IMGURL}}output/icon-link.png?v={{img_version}}"></image>
查看订单详情</navigator>
\ No newline at end of file \ No newline at end of file
// 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'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/', IMGURL: IMG_URL,
sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004'], sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004'],
merchantInfo: {}, merchantInfo: {},
sceneObj: { sceneObj: {
...@@ -117,7 +118,7 @@ Page({ ...@@ -117,7 +118,7 @@ Page({
} }
outputApi.getSceneProStatus(params).then(res => { outputApi.getSceneProStatus(params).then(res => {
var proList = res.find(item => item.sceneCode == sceneCode) var proList = res.find(item => item.sceneCode == sceneCode)
// 删---- // 删---
// proList.productList[1].productStatus = 2 // proList.productList[1].productStatus = 2
this.setData({ this.setData({
['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList ['sceneActivityObj.scene' + this.data.sceneActive]: proList.productList
...@@ -230,6 +231,11 @@ Page({ ...@@ -230,6 +231,11 @@ Page({
console.log(curItem) console.log(curItem)
curItem.totalNum = curItem.activityList.length curItem.totalNum = curItem.activityList.length
curItem.activityList.forEach(k => { curItem.activityList.forEach(k => {
// 删---
// var list = k.staffList
// for (var i = 0; i < 10; i++) {
// k.staffList = k.staffList.concat(list)
// }
// 时间 // 时间
k.time = k.startTime.slice(5).replace(/-/g, '/') + '~' + k.endTime.slice(5).replace(/-/g, '/') k.time = k.startTime.slice(5).replace(/-/g, '/') + '~' + k.endTime.slice(5).replace(/-/g, '/')
// 0-未开始;1-活动中;2-已结束 // 0-未开始;1-活动中;2-已结束
...@@ -281,7 +287,7 @@ Page({ ...@@ -281,7 +287,7 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
// 删---- // 删---
// this.setData({ // this.setData({
// merchantInfo: { // merchantInfo: {
// pMerchantId: 44209845, // pMerchantId: 44209845,
......
...@@ -13,6 +13,10 @@ ...@@ -13,6 +13,10 @@
padding: 0 20rpx; padding: 0 20rpx;
} }
.m-rl-20 {
margin: 0 20rpx;
}
.bg-white { .bg-white {
background-color: #FFFFFF; background-color: #FFFFFF;
} }
...@@ -24,7 +28,6 @@ ...@@ -24,7 +28,6 @@
.layout { .layout {
color: #323436; color: #323436;
height: 100vh; height: 100vh;
// padding: 12rpx 20rpx 0;
// padding-top: 12rpx; // padding-top: 12rpx;
margin-bottom: 90rpx; margin-bottom: 90rpx;
...@@ -36,7 +39,7 @@ ...@@ -36,7 +39,7 @@
} }
.scene-box { .scene-box {
padding: 27rpx 20rpx 24rpx; padding: 27rpx 0 24rpx;
} }
.activity-box { .activity-box {
...@@ -110,19 +113,23 @@ ...@@ -110,19 +113,23 @@
} }
} }
.btn-blue { .btn {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%; width: 100%;
.btn {
width: 100%;
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
text-align: center; text-align: center;
background: #3666FE;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
.btn-blue {
background: #3666FE;
}
.btn-disabled {
background: #CCCED1;
} }
} }
} }
\ No newline at end of file \ No newline at end of file
<!--packageOutput/pages/summary/summary.wxml--> <!--packageOutput/pages/summary/summary.wxml-->
<view class="summary"> <view class="summary">
<view class="layout {{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'bg-grey' : 'bg-white'}}"> <view class="layout {{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'bg-grey' : 'bg-white'}}">
<view class="{{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'bg-white' : 'p-rl-20'}}">
<view class="{{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? 'm-rl-20' : ''}}">
<view class="title bg-white">选产品/活动</view> <view class="title bg-white">选产品/活动</view>
<view class="scene-box bg-white"> <view class="scene-box bg-white">
<scene-box formData="{{sceneObj}}" scenePriceList="{{scenePriceList}}" sceneActive="{{sceneActive}}" bindhandleSceneChange="handleSceneChange"></scene-box> <scene-box formData="{{sceneObj}}" scenePriceList="{{scenePriceList}}" sceneActive="{{sceneActive}}" bindhandleSceneChange="handleSceneChange"></scene-box>
</view> </view>
</view>
</view>
<!-- 活动 --> <!-- 活动 -->
<view class="p-rl-20 bg-white"> <view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" class="activity-box" scroll-left="{{scrollLeft}}"> <scroll-view scroll-x="{{true}}" class="activity-box" scroll-left="{{scrollLeft}}">
...@@ -14,7 +18,7 @@ ...@@ -14,7 +18,7 @@
</scroll-view> </scroll-view>
</view> </view>
<!-- 活动内容 --> <!-- 活动内容 -->
<view class="activity-content"> <view class="activity-content {{ (sceneActive == 4 && activityList[activityActive].productStatus == 2) ? '' : 'p-rl-20'}}">
<view wx:if="{{activityList[activityActive].productStatus == 2 && sceneActive != 1}}"> <view wx:if="{{activityList[activityActive].productStatus == 2 && sceneActive != 1}}">
<view class="activity-title title bg-white {{ sceneActive == 4 ? 'no-border' : ''}}"> <view class="activity-title title bg-white {{ sceneActive == 4 ? 'no-border' : ''}}">
<view>看产值</view> <view>看产值</view>
...@@ -32,7 +36,10 @@ ...@@ -32,7 +36,10 @@
</view> </view>
</view> </view>
</view> </view>
<view class="isFullSucreen btn-blue"> <view class="isFullSucreen btn" wx:if="{{sceneActive != 1}}">
<view wx:if="{{activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}" class="btn" bindtap="handleJump">点击开通</view> <view wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}" class="btn-blue" bindtap="handleJump">点击开通</view>
</view>
<view class="isFullSucreen btn" wx:else>
<view class="btn-disabled">点击开通</view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
// pages/tab/output/components/sceneBox/sceneBox.js // pages/tab/output/components/sceneBox/sceneBox.js
import { IMG_URL } from '~/utils/constantData'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -26,7 +27,7 @@ Component({ ...@@ -26,7 +27,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/', IMGURL: IMG_URL,
custSceneList: [{ custSceneList: [{
title: '新车洽谈场景', title: '新车洽谈场景',
subTitle: '1.0新车权益销售' subTitle: '1.0新车权益销售'
......
// pages/tab/output/components/client/client.js // pages/tab/output/components/client/client.js
import outputApi from '~/api/outputApi/index' import outputApi from '~/api/outputApi/index'
import { IMG_URL } from '~/utils/constantData'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -16,7 +17,7 @@ Component({ ...@@ -16,7 +17,7 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
IMGURL: 'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/', IMGURL: IMG_URL,
pMerchantId: '', pMerchantId: '',
totalProfit: 0, totalProfit: 0,
pageObj: { pageObj: {
...@@ -76,6 +77,7 @@ Component({ ...@@ -76,6 +77,7 @@ Component({
item.sceneList.forEach((k, idx) => { item.sceneList.forEach((k, idx) => {
item['scene' + (idx + 1)] = item.sceneList[idx].flag item['scene' + (idx + 1)] = item.sceneList[idx].flag
}) })
item.isOpenScene = item.sceneList.map(item => item.flag).some(item => item == true)
}) })
this.setData({ this.setData({
list: list, list: list,
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</view> </view>
</view> </view>
</view> </view>
<view wx:else class="flex"> <view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view> <view class="tip-blue">通知</view>
<view class="bottom-content"> <view class="bottom-content">
<view class="tip-row"> <view class="tip-row">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!