Commit 19bf057f by chenwq

我拍的客户-bug修复

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