Commit c1e5dc56 by 张立顺

提交代码

1 parent c91a3411
import outPut from './outPut.js'
export default new outPut()
import api from '~/utils/request/request'
const { appId } = wx.getAccountInfoSync().miniProgram
const CODE = {
platformEntrance: 'BUSINESS_ASSISTANT',
productCode: 'PC00c3'
}
class outPut {
/**获取园区店开通场景数据 */
getSignMerchant(data) {
return api.post(
{
method: 'scrm.api.boutiquecoupon.getSceneTotal.byYqMerchantId',
...data
}
// true
)
}
/**获取服务商(生意助手看产值)我的门店页数据 */
partnerMerchantTotal(data) {
return api.post(
{
method: 'scrm.api.boutiquecoupon.partnermerchant.yqList',
...data
}
// true
)
}
}
export default outPut
...@@ -9,7 +9,7 @@ const listObj = Object.freeze([ ...@@ -9,7 +9,7 @@ const listObj = Object.freeze([
{ {
key: 'merchantName', key: 'merchantName',
label: '门店名称:', label: '门店名称:',
placeholder: '请输入您的客户门店简称,不超过20个字符', placeholder: '请输入您的客户门店简称',
editLabel: '门店名称', editLabel: '门店名称',
maxLength: 20 maxLength: 20
}, },
...@@ -25,12 +25,14 @@ const listObj = Object.freeze([ ...@@ -25,12 +25,14 @@ const listObj = Object.freeze([
label: '手机号:', label: '手机号:',
placeholder: '请输入客户门店联系人手机号', placeholder: '请输入客户门店联系人手机号',
editLabel: '手机号', editLabel: '手机号',
maxLength: 11 maxLength: 11,
reg: '/[^d]/g,'
}, },
{ {
key: 'mainBrand', key: 'mainBrand',
label: '主营品牌:', label: '主营品牌:',
placeholder: '请输入客户门店主营品牌,多个品牌以分号区隔', // 请输入客户门店主营品牌,
placeholder: '多个品牌以分号区隔',
editLabel: '主营品牌', editLabel: '主营品牌',
maxLength: 20 maxLength: 20
}, },
...@@ -39,14 +41,16 @@ const listObj = Object.freeze([ ...@@ -39,14 +41,16 @@ const listObj = Object.freeze([
label: '新车销量:', label: '新车销量:',
placeholder: '请输入客户门店新车月平均销售数', placeholder: '请输入客户门店新车月平均销售数',
editLabel: '新车销量', editLabel: '新车销量',
maxLength: 5 maxLength: 5,
reg: '/[^d]/g,'
}, },
{ {
key: 'existUserNumber', key: 'existUserNumber',
label: '存量用户数:', label: '存量用户数:',
placeholder: '请输入客户门店存量用户数', placeholder: '请输入客户门店存量用户数',
editLabel: '存量用户数', editLabel: '存量用户数',
maxLength: 8 maxLength: 8,
reg: '/[^d]/g,'
} }
]) ])
Component({ Component({
...@@ -99,6 +103,25 @@ Component({ ...@@ -99,6 +103,25 @@ Component({
deletedFlag: 'string', deletedFlag: 'string',
partnerMerchantId: 0, partnerMerchantId: 0,
actualMerchantName: 'string', actualMerchantName: 'string',
isEdit: false
},
{
id: 0,
merchantId: 0,
merchantName: 'string',
loginAccountUuid: 'string',
contactName: 'string',
phone: 'string',
mainBrand: 'string',
newCarSales: 0,
existUserNumber: 0,
createdBy: 'string',
createdDate: '2022-10-14T07:33:40.778Z',
updatedBy: 'string',
updatedDate: '2022-10-14T07:33:40.778Z',
deletedFlag: 'string',
partnerMerchantId: 0,
actualMerchantName: 'string',
isEdit: true isEdit: true
} }
], ],
...@@ -143,16 +166,38 @@ Component({ ...@@ -143,16 +166,38 @@ Component({
.catch(err => {}) .catch(err => {})
}, },
changeStatus(e) { changeStatus(e) {
console.log(e) // console.log(e)
let { customerList } = this.data
let { index, isEdit } = e.currentTarget.dataset
// let
let status = customerList[index].isEdit
if (isEdit) {
// 提交客户信息更新
this.checkout(customerList[index])
} else {
customerList[index]['isEdit'] = true
this.setData({
customerList
})
}
}, },
input(e) { input(e) {
let { orderObj, userInfo, goodsList } = this.data let { index, name } = e.currentTarget.dataset
console.log(index)
console.log(name)
let { customerList, listObj } = this.data
let { value } = e.detail let { value } = e.detail
let { name } = e.currentTarget.dataset // listObj
customerList[index][name] = value
this.setData({ this.setData({
[`orderObj.${name}`]: value customerList
}) })
// let { name } = e.currentTarget.dataset
// this.setData({
// [`orderObj.${name}`]: value
// })
} }
} }
}) })
...@@ -3,9 +3,15 @@ page { ...@@ -3,9 +3,15 @@ page {
background-color: #F2F3F7; background-color: #F2F3F7;
} }
.customerManagementCon {
height: 100%;
}
.input { .input {
text-align: left; text-align: left;
font-size: 28rpx; font-size: 28rpx;
caret-color: #3666FE;
} }
.placeholder-class { .placeholder-class {
...@@ -38,8 +44,17 @@ page { ...@@ -38,8 +44,17 @@ page {
} }
} }
.list {
overflow: scroll;
}
.cellSty { .cellSty {
display: block; display: block;
height: 80rpx; height: 80rpx;
line-height: 80rpx; line-height: 80rpx;
} }
.placeholder-class {
color: #666;
font-size: 20rpx;
}
\ No newline at end of file \ No newline at end of file
...@@ -5,23 +5,27 @@ ...@@ -5,23 +5,27 @@
scroll-y scroll-y
enable-back-to-top enable-back-to-top
refresher-enabled="{{true}}" refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList" bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104" refresher-threshold="104"
style="height:100%;" style="height:100vh;"
scroll-top="{{scrollTop}}" class=" list"
class="businessPage list"
refresher-triggered="{{triggered}}"> refresher-triggered="{{triggered}}">
<view class="customerBox" wx:for="{{customerList}}" wx:key="index"> <view class="customerBox" wx:for="{{customerList}}" wx:key="index">
<view class="titleCon"> <view class="titleCon">
<view class="name">嘀加鹏辉奥迪4S店</view> <view class="name">嘀加鹏辉奥迪4S店</view>
<view class="statusBtn" data-index="{{index}}" bind:tap="changeStatus"> <view
class="statusBtn"
data-index="{{index}}"
data-isEdit="{{item.isEdit}}"
bind:tap="changeStatus">
{{item.isEdit?'完成':'编辑'}} {{item.isEdit?'完成':'编辑'}}
</view> </view>
</view> </view>
<view/> <view/>
<gl-cell <gl-cell
wx:for="{{listObj}}" wx:for="{{listObj}}"
wx:key="{{ind}}" wx:key="ind"
wx:for-index="ind" wx:for-index="ind"
wx:for-item="childItem" wx:for-item="childItem"
valueAlign="right" valueAlign="right"
...@@ -31,14 +35,17 @@ ...@@ -31,14 +35,17 @@
cellHeight="{{false}}" cellHeight="{{false}}"
labelWidth="200rpx"> labelWidth="200rpx">
<input <input
placeholder="点击输入" placeholder="{{item.isEdit? childItem['placeholder']:''}}"
class="input" class="input"
placeholder-class="placeholder-class" placeholder-class="placeholder-class"
maxlength="{{childItem.maxLength}}" maxlength="{{childItem.maxLength}}"
value="{{item[childItem[key]] }}" value="{{item[childItem['key']] }}"
bindinput="input" bindinput="input"
data-name="{{childItem[key]}}" type="number"
disabled="{{!item.isEdit}}" data-index="{{index}}"
data-name="{{childItem['key']}}"
data-reg="{{childItem['reg']}}"
disabled="{{!item.isEdit || ind == 0 }}"
always-embed></input> always-embed></input>
</gl-cell> </gl-cell>
<!-- <gl-cell <!-- <gl-cell
......
// pages/tab/output/components/merchant/mrechant.js // pages/tab/output/components/merchant/mrechant.js
import outPut from '~/api/outPut/index'
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -12,9 +13,23 @@ Component({ ...@@ -12,9 +13,23 @@ Component({
tabIndx: 4, tabIndx: 4,
noProduct: false noProduct: false
}, },
attached() {
this.getTotalMerchantCount()
},
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: {} methods: {
getTotalMerchantCount() {
let { userInfo } = wx.$storage.get()
let { merchantId } = userInfo.subLoginUser
console.log('merchantId', merchantId)
outPut
.partnerMerchantTotal(merchantId)
.then(result => {
console.log(result)
})
.catch(err => {})
}
}
}) })
...@@ -4,7 +4,9 @@ import { IMG_URL } from '~/utils/constantData' ...@@ -4,7 +4,9 @@ import { IMG_URL } from '~/utils/constantData'
// ;('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/') // ;('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/')
const IMAGES = { const IMAGES = {
arrow: `${IMG_URL}/output/arrow.png`, arrow: `${IMG_URL}/output/arrow.png`,
funnel: `${IMG_URL}/output/funnel.png` funnel: `${IMG_URL}/output/funnel.png`,
money: `${IMG_URL}/output/money.png`,
paper: `${IMG_URL}/output/paper.png`
} }
Component({ Component({
// behaviors: [imgUrlMixin], // behaviors: [imgUrlMixin],
...@@ -18,18 +20,95 @@ Component({ ...@@ -18,18 +20,95 @@ Component({
*/ */
data: { data: {
IMAGES, IMAGES,
sceneIndx: 1, sceneIndx: 3,
isAct: true, isAct: true,
background: ['demo-text-1', 'demo-text-2', 'demo-text-3'],
indicatorDots: true, indicatorDots: true,
vertical: false, vertical: false,
autoplay: false, autoplay: false,
interval: 2000, interval: 2000,
duration: 500 duration: 500,
list: [
{
id: 1,
merchantName: '广西弘泽汽车销售服务有限公司',
totalMoney: '14580.00',
sence1: false,
sence2: true,
sence3: false,
sence4: true,
newList: [
{
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
},
{
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
}
]
},
{
id: 2,
merchantName: '广西弘泽汽车销售服务有限公司7483493849389348938',
totalMoney: '14580.00',
sence1: false,
sence2: false,
sence3: false,
sence4: false,
newList: []
},
{
id: 3,
merchantName: '广西弘泽汽车销售服务有限公司',
totalMoney: '14580.00',
sence1: false,
sence2: true,
sence3: false,
sence4: true,
newList: [
{
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
},
{
time: '09-28 11:19',
content: '今日升级2单,产值¥4480'
}
]
},
{
id: 4,
merchantName: '广西弘泽汽车销售服务有限公司7483493849389348938',
totalMoney: '14580.00',
sence1: false,
sence2: false,
sence3: false,
sence4: false,
newList: []
}
],
funnelList: {
3: [
{ label: '到店量', key: 'toShopCount' },
{ label: '核销数', key: 'couponUsedCount' },
{ label: '体验数', key: 'experienceCount' },
{ label: '订单成交', key: 'upgradeCount' }
],
other: [
{ label: '转发量', key: 'shareCount' },
{ label: '访客数', key: 'visitCount' },
{ label: '成交数', key: 'dealCount' },
{ label: '产值', key: 'totalMoney' }
]
}
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: {} methods: {
handleSenceChange(e) {
console.log(e)
}
}
}) })
{ {
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"scene-select": "../sceneSelect/sceneSelect" "sence-box": "../../../../../components/SenceBox/SenceBox"
} }
} }
...@@ -51,20 +51,112 @@ ...@@ -51,20 +51,112 @@
padding: 12rpx; padding: 12rpx;
} }
.full { .fluuelCon {
height: 800rpx !important; width: 670rpx;
height: 550rpx;
position: relative;
}
.bg-image {
width: 100%;
height: 100%;
position: absolute;
// width: 670rpx;
// height: 550rpx;
// z-index: -1;
// object-fit: cover;
} }
.short { .diagnosisCon {
height: 600rpx !important; box-sizing: border-box;
width: 100%;
padding: 20rpx;
border: 2rpx dashed #CCCED1;
display: flex;
.tipsIcon {
box-sizing: border-box;
width: 56rpx;
height: 64rpx;
padding: 8rpx;
background: rgba(62, 113, 254, 0.12);
border-radius: 4rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 20rpx;
color: #3E71FE;
} }
.bg-image { .tips {
width: 670rpx; width: 560rpx;
height: 550rpx; margin-left: 16rpx;
z-index: -1; font-size: 20rpx;
// object-fit: cover; color: #5A6066;
line-height: 32rpx;
}
}
}
.swiper-item {
padding: 32rpx 20rpx 24rpx;
display: flex;
flex-direction: column;
align-items: center;
.merchantCount {
box-sizing: border-box;
display: flex;
margin: 32rpx 0;
.turnover,
.customerUnitPrice {
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
align-items: start;
justify-content: center;
width: 328rpx;
height: 128rpx;
padding-left: 110rpx;
background-image: linear-gradient(90deg, #FFFFFF 3%, #F7F8FC 100%);
text-align-last: left;
.img {
position: absolute;
top: 24rpx;
left: 36rpx;
width: 60rpx;
height: 60rpx;
} }
.num {
font-family: MiSans-S0rpxibold;
font-weight: 600;
font-size: 32rpx;
color: #323436;
margin-bottom: 14rpx;
}
.label {
font-weight: 400;
font-size: 24rpx;
color: #323436;
}
}
.customerUnitPrice {
margin-left: 6rpx;
}
}
}
.full {
height: 1350rpx !important;
}
.short {
height: 1050rpx !important;
} }
\ No newline at end of file \ No newline at end of file
<!-- pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxml --> <!-- pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxml -->
<view class="merchantDataStatistics-con"> <swiper
indicator-dots="{{indicatorDots}}"
class="{{sceneIndx==3? 'short':'full'}}"
autoplay="{{autoplay}}"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{list}}" wx:key="*this">
<swiper-item>
<view class="merchantDataStatistics-con">
<view class="contitle"> <view class="contitle">
<view class="name">广西宏泽汽车有限公司</view> <view class="name">广西宏泽汽车有限公司</view>
<view class="select"> <view class="select">
...@@ -11,49 +19,43 @@ ...@@ -11,49 +19,43 @@
alt="" /> alt="" />
</view> </view>
</view> </view>
<scene-select/> <!-- <scene-select/> -->
<!-- <view class="senceCon"> <sence-box formData="{{item}}" senceActive="{{(sceneIndx+1)}}" />
<view>1</view>
<view>2</view>
<view>3</view>
<view>4</view>
</view> -->
<view class="outputValueCon"> <view class="outputValueCon">
<view class="title">产值图</view> <view class="title">产值图</view>
<view class="swiperCon"> <view class="swiperCon">
<swiper
indicator-dots="{{indicatorDots}}"
class="{{sceneIndx==3? 'short':'full'}}"
autoplay="{{autoplay}}"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{background}}" wx:key="*this">
<swiper-item>
<view class="swiper-item "> <view class="swiper-item ">
<view class="fluuelCon">
<image class="bg-image" src="{{IMAGES.funnel}}" /> <image class="bg-image" src="{{IMAGES.funnel}}" />
</view>
<!-- <block wx:for="{{items}}"></block> -->
<view hidden="{{sceneIndx==3}}">
<!-- 统计 --> <!-- 统计 -->
<view class="merchantCount"> <view class="merchantCount">
<view class="turnover"> <view class="turnover">
<view class="img" /> <image class="img " webp src="{{IMAGES.money}}" />
<view class="num">200</view> <view class="num">200</view>
<view class="label">营业额</view> <view class="label">营业额/¥</view>
</view> </view>
<view class="customerUnitPrice"> <view class="customerUnitPrice">
<view class="img" /> <image class="img " webp src="{{IMAGES.paper}}" />
<view class="num">2000</view> <view class="num">2000</view>
<view class="label">营业额</view> <view class="label">客单价/¥</view>
</view> </view>
</view> </view>
<!-- 指标诊断 --> <!-- 指标诊断 -->
<view class="diagnosisCon"> <view class="diagnosisCon">
<view class="img">图片</view> <view class="tipsIcon">指标诊断</view>
<view class="tips">日均升级客单价低于1000/低于上2个月平均日升级客单价的10%,建议梳理驻店销售的技能,以及加强与流量方的互动。</view> <view class="tips">
日均升级客单价低于1000/低于上2个月平均日升级客单价的10%,建议梳理驻店销售的技能,以及加强与流量方的互动。
</view> </view>
</view> </view>
</swiper-item>
</block>
</swiper>
</view> </view>
</view> </view>
</view> </view>
</view>
</view>
</swiper-item>
</block>
</swiper>
...@@ -48,7 +48,7 @@ Page({ ...@@ -48,7 +48,7 @@ Page({
getMerchantRange(e) { getMerchantRange(e) {
// 重新刷新 // 重新刷新
let { detail } = e // let { detail } = e
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
// 有问题 先取反调试 // 有问题 先取反调试
......
...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod'] ...@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试 2测试
3生产 3生产
*/ */
const index = 0 const index = 1
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!