Commit 74374796 by 张立顺

一月份商学院功能开发

1 parent b1a0eb1f
......@@ -6,7 +6,7 @@
园区店管理员: 15589265685(测试环境) 15626599736(开发环境)
员工账号 :15626599735 (选明明塘朗园区店) 15626599738(开发环境)
员工账号 :18775035205 (选测试园店) 18775035205(选最下面的)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据) 13132112126(导师) 13132112120(学员)
员工账号 :15626599738 (开发环境)
超管:18129809927
商户管理员:15814019200
......
......@@ -56,20 +56,12 @@
{
"root": "tabDate",
"name": "tabDate",
"pages": [
"pages/detail/detail",
"pages/apprManage/apprManage",
"pages/userPortrait/userPortrait"
]
"pages": ["pages/detail/detail", "pages/apprManage/apprManage", "pages/userPortrait/userPortrait"]
},
{
"root": "tabMine",
"name": "tabMine",
"pages": [
"pages/technicianSetup/technicianSetup",
"pages/completeBuild/completeBuild",
"pages/collectCoupons/collectCoupons"
]
"pages": ["pages/technicianSetup/technicianSetup", "pages/completeBuild/completeBuild", "pages/collectCoupons/collectCoupons"]
},
{
"root": "tabWorkOrder",
......@@ -108,31 +100,19 @@
"pages/carEquity/carBrands/carBrands",
"pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract"
"pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene"
]
},
{
"root": "tabOperating",
"name": "tabOperating",
"pages": [
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
"pages": ["pages/4sOverview/4sOverview", "pages/index/index", "pages/operatingShow/operatingShow"]
},
{
"root": "packageCrowdFunding",
"name": "packageCrowdFunding",
"pages": [
"pages/TabBar/crowdFundingPage",
"pages/activityPage/paidOrder/orderList",
"pages/activityPage/activityList/activityList",
"pages/activityPage/activityPay/activityPay",
"pages/activityPage/paymentSuccess/paymentSuccess",
"pages/activityPage/balanceNote/balanceNote",
"pages/activityPage/newOrder/newOrder",
"pages/activityPage/additionRecordOrder/additionRecordOrder"
]
"pages": ["pages/TabBar/crowdFundingPage", "pages/activityPage/paidOrder/orderList", "pages/activityPage/activityList/activityList", "pages/activityPage/activityPay/activityPay", "pages/activityPage/paymentSuccess/paymentSuccess", "pages/activityPage/balanceNote/balanceNote", "pages/activityPage/newOrder/newOrder", "pages/activityPage/additionRecordOrder/additionRecordOrder"]
},
{
"root": "subvehicleConversion",
......@@ -175,15 +155,11 @@
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
"packages": ["tabWorkOrder"]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
"packages": ["tabWorkOrder"]
}
},
"resolveAlias": {
......@@ -197,4 +173,4 @@
},
"lazyCodeLoading": "requiredComponents",
"__usePrivacyCheck__": true
}
\ No newline at end of file
}
......@@ -12,6 +12,11 @@ Component({
type: Number,
value: 0
},
// 是否显示商学院
showCollege: {
type: Boolean,
value: false
}
},
/**
......@@ -48,6 +53,11 @@ Component({
* 组件的方法列表
*/
methods: {
// 跳转到商学院
goCollegeScene() {
wx.$router.go('packageEquity.collegeScene')
console.log('跳转到商学院')
},
// 获取版本信息
async getVersionInfo() {
const versionData = await getApp().getVersionInfo()
......@@ -83,10 +93,7 @@ Component({
})
wx.showLoading()
api.logout().then(_res_ => {
let {
code,
message
} = _res_
let { code, message } = _res_
if (code == 0) {
app.login(false)
} else {
......@@ -101,4 +108,4 @@ Component({
})
}
}
})
\ No newline at end of file
})
......@@ -2,76 +2,47 @@
<!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<view class="bg"></view>
<block>
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-avatar">
<block wx:if="{{userInfo.userAvatarUrl}}">
<image src="{{userInfo.userAvatarUrl}}" bindtap="getAvatar" />
</block>
<block wx:else>
<open-data type="userAvatarUrl" />
</block>
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
</view>
<view class="user-info">
<view class="user-text">
<view class="item">
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view>
<block>
<!-- <view class="scene_box">
<view class="title">场景</view>
<view class="select_item">
<view class="scene_message">
<view class="scene_icon" wx:if="{{userInfo.sceneType >= 0}}">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{userInfo.sceneType}}.png" mode=""/>
</view>
<view class="scene_text">
<view class="name">
<view>{{selectedSceneName}}</view>
<view class="name_tips">当前</view>
</view>
<view class="tips">{{selectedSceneDesc}}</view>
</view>
</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
</view>
</view> -->
<view class="set_box">
<!-- <view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
</view>
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="title">录单设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">设置录单必填项</view>
</view> -->
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode="" />
</view>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="title">更新日志
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode="" />
</view>
</view>
</block>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
</block>
\ No newline at end of file
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-avatar">
<block wx:if="{{ userInfo.userAvatarUrl }}">
<image src="{{ userInfo.userAvatarUrl }}" bindtap="getAvatar" />
</block>
<block wx:else>
<open-data type="userAvatarUrl" />
</block>
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
</view>
<view class="user-info">
<view class="user-text">
<view class="item">所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view>
<block>
<view class="set_box">
<view class="set_item" bindtap="changeScene">
<view class="title">场景切换</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
<view class="set_item" bindtap="goVersionPage">
<view class="title">更新日志</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
</block>
<view class="collegeCon set_box" wx:if="{{ showCollege }}">
<view class="set_item" bindtap="goCollegeScene">
<view class="title">商学院(员工绩效)</view>
<view class="set_tips">去查看</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
\ No newline at end of file
/* tabComponents/pages/index/index.wxss */
page {
background: #F7F8FA;
}
.pagedetail {
position: relative;
}
......@@ -32,12 +36,14 @@
left: 50rpx;
top: -32rpx;
}
.name_box{
.name_box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx;
}
.name_box .name {
font-size: 40rpx;
color: #323436;
......@@ -47,7 +53,8 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.change_btn{
.change_btn {
width: 134rpx;
height: 48rpx;
background: rgba(53, 180, 238, .1);
......@@ -58,6 +65,7 @@
justify-content: center;
border-radius: 24rpx;
}
.user-info {
padding: 0 50rpx;
}
......@@ -72,7 +80,7 @@
margin: 4rpx;
}
.scene_box{
.scene_box {
margin: 20rpx;
margin-top: 48rpx;
box-sizing: border-box;
......@@ -89,24 +97,24 @@
margin-bottom: 20rpx;
}
.select_item{
.select_item {
display: flex;
align-items: center;
justify-content: space-between;
}
.select_item .scene_message{
.select_item .scene_message {
display: flex;
align-items: center;
}
.select_item .scene_icon{
.select_item .scene_icon {
width: 128rpx;
height: 128rpx;
margin-right: 24rpx;
}
.select_item .scene_text .name{
.select_item .scene_text .name {
color: #333333;
font-size: 32rpx;
font-weight: 500;
......@@ -114,7 +122,7 @@
align-items: center;
}
.select_item .scene_text .name .name_tips{
.select_item .scene_text .name .name_tips {
width: 64rpx;
height: 30rpx;
line-height: 30rpx;
......@@ -127,17 +135,83 @@
margin-left: 4rpx;
}
.select_item .scene_text .tips{
.select_item .scene_text .tips {
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
}
.select_item .change_btn{
.select_item .change_btn {
margin: 0;
}
.set_box{
.set_box {
margin: 20rpx;
margin-top: 48rpx;
background: #FFFFFF;
border-radius: 16rpx;
display: flex;
flex-direction: column;
/* display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
align-items: center; */
}
.set_box .set_item {
box-sizing: border-box;
/* width: 344rpx;
height: 168rpx; */
width: 710rpx;
height: 88rpx;
padding: 24rpx 32rpx;
display: flex;
align-items: center;
/* border-radius: 16rpx; */
/* display: flex;
flex-flow: column;
justify-content: center;
padding: 32rpx;
margin-bottom: 20rpx;
position: relative; */
}
.set_box .set_item+.set_item {
border-top: 1rpx solid #E4E8EE;
}
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0;
bottom: 0; */
}
.set_box .set_item .title .arrow_icon {
width: 40rpx;
height: 40rpx;
}
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0;
bottom: 0; */
}
.set_box .set_item .set_tips {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
/* margin-top: 8rpx; */
margin-left: auto;
}
/* .set_box{
margin: 20rpx;
margin-top: 48rpx;
display: grid;
......@@ -186,29 +260,29 @@
.set_box .item_4{
background: #FFF8F8;
}
} */
.set_box .set_item .title{
.set_box .set_item .title {
font-weight: 500;
font-size: 28rpx;
color: #333333;
letter-spacing: 0;
}
.set_box .set_item .set_tips{
/* .set_box .set_item .set_tips {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
text-overflow:ellipsis;
text-overflow: ellipsis;
display: -webkit-box;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
} */
.version_box{
.version_box {
margin-top: 28rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 190rpx);
......@@ -217,7 +291,7 @@
color: #323436;
}
.version_box .icon_box{
.version_box .icon_box {
width: 90rpx;
height: 90rpx;
background: #FAFAFA;
......@@ -225,7 +299,7 @@
position: relative;
}
.version_box .item{
.version_box .item {
display: flex;
flex-flow: column;
align-items: center;
......@@ -252,7 +326,8 @@
top: 8rpx;
left: -6rpx;
transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */
margin-left: -6rpx;
/* 调整尖角位置 */
border-width: 6rpx;
border-style: solid;
border-color: transparent transparent #007bff transparent;
......
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 3
let index = 1
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
/** 报价单分页列表 */
quotationPage(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', params)
},
/** 根据id查询报价单数据 */
getQuotationInfo(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 查询报价单信息 */
getQuotationInfoById(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', params)
},
/** 报价单分页列表 */
quotationPage(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', params)
},
/** 根据id查询报价单数据 */
getQuotationInfo(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 查询报价单信息 */
getQuotationInfoById(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', params)
},
/** 新建车损报价单 */
quotationAdd(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', params)
},
/** 更新报价并生成新的报价单图片 */
quotationPicture(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 报价单数据生成 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 新建车损报价单 */
quotationAdd(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', params)
},
/** 更新报价并生成新的报价单图片 */
quotationPicture(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 报价单数据生成 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', params)
},
/** 根据订单号获取订单详情 */
getOrderDetail(data) {
return api.post('dj.api.smartcarlife.order.detail', data)
},
/** 修改车损报价单信息 */
updateQuotation(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', data)
},
/** 报价单统计信息 */
getQuotationStatistics(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.statistics', params)
},
/** 4s关联商品 */
quotationGoods(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantId', params)
},
/** 查询报价单状态 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', params)
},
/** 根据订单号获取订单详情 */
getOrderDetail(data) {
return api.post('dj.api.smartcarlife.order.detail', data)
},
/** 修改车损报价单信息 */
updateQuotation(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', data)
},
/** 报价单统计信息 */
getQuotationStatistics(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.statistics', params)
},
/** 4s关联商品 */
quotationGoods(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantId', params)
},
/** 查询报价单状态 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 更新报价单状态 */
updateOrderStatus(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update', params)
},
/** 车损报价单权益价格计算 */
priceCounter(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.equity.price.counter', data)
},
/**改变支付订单状态 */
createPayOrder(data) {
return api.post('dj.api.smartcarlife.payOrder.create', data)
},
/** 门店模式查询 */
merchantMode(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.merchant.mode', data)
},
/** 商品查询 */
listByMerchantIdAndIds(data) {
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantIdAndIds', data)
},
/** 待补录订单统计 */
waitinputorder(data) {
let params = data || {}
params.inputStatus = 0
// params.payType = 1
return api.post('dj.api.smartcarlife.weapp.waitinputorder.count', params)
},
/** 订单补录接口 */
quotationRecording(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.additional.recording', data)
},
/** 会员权益产值统计 */
outputValueStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics', data)
},
/** 更新报价单状态 */
updateOrderStatus(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update', params)
},
/** 车损报价单权益价格计算 */
priceCounter(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.equity.price.counter', data)
},
/**改变支付订单状态 */
createPayOrder(data) {
return api.post('dj.api.smartcarlife.payOrder.create', data)
},
/** 门店模式查询 */
merchantMode(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.merchant.mode', data)
},
/** 商品查询 */
listByMerchantIdAndIds(data) {
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantIdAndIds', data)
},
/** 待补录订单统计 */
waitinputorder(data) {
let params = data || {}
params.inputStatus = 0
// params.payType = 1
return api.post('dj.api.smartcarlife.weapp.waitinputorder.count', params)
},
/** 订单补录接口 */
quotationRecording(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.additional.recording', data)
},
/** 会员权益产值统计 */
outputValueStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics', data)
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', data)
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', data)
},
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', data)
}
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', data)
},
}
\ No newline at end of file
/** 校验员工绩效密码 */
performancePasswordCheck(data) {
return api.post('dj.api.businessSchool.staff.performancePassword.check', data)
},
/** 查询员工绩效查看密码 */
performancePassword(data) {
return api.post('dj.api.businessSchool.staff.performancePassword', data)
},
/** 查询员工或园区店商户是否开启了商学院 */
isBusinessSchoolEnable(data) {
return api.post('dj.api.businessSchool.staff.isBusinessSchoolEnable', data)
},
/** 获取商学院员工订单绩效明细 */
orderPerformanceDetail(data) {
return api.post('dj.api.businessSchool.staff.orderPerformanceDetail', data)
},
/** 查询员工或园区店商户是否开启了商学院 */
isBusinessSchoolEnableCurrentUser(data) {
return api.post('dj.api.businessSchool.isBusinessSchoolEnable.currentUser', data)
},
/** 修改员工绩效查看密码 */
performancePasswordUpdate(data) {
return api.post('dj.api.businessSchool.staff.performancePassword.update', data)
},
/** 获取商学院员工信息及前3月绩效信息 */
staffInfo(data) {
return api.post('dj.api.businessSchool.staff.info', data)
}
}
// pages/equity/index.js
import { get4SStoreList } from '~/store/index'
import { merchantMode, waitinputorder,quotationRecording } from '../../api'
import { merchantMode, waitinputorder, quotationRecording, isBusinessSchoolEnableCurrentUser } from '../../api'
const app = getApp()
let time = null
Page({
......@@ -36,7 +36,7 @@ Page({
type: 2,
typeText: '补录订单'
},
tabIndex: 0,
tabIndex: 3,
pageShow: [true, false, false, false],
navBarHeight: 0,
showPicker: false,
......@@ -127,8 +127,34 @@ Page({
init(userInfo) {
this.setData({ userInfo })
this.get4SStoreList()
this.getIsBusinessSchoolEnableCurrentUser()
// this.test()
},
getIsBusinessSchoolEnableCurrentUser() {
// 判断是不是超管 是默认开启商学院 不是查询对应园区
// let userInfo = wx.$util.getUserInfo()
let { userInfo } = this.data
// let enableBusinessSchool = userInfo?.isSuper ? true : false
if (userInfo?.isSuper) {
this.setData({
enableBusinessSchool: true
})
} else {
isBusinessSchoolEnableCurrentUser({})
.then(res => {
console.log(res)
let { code, data } = res
if (code == 0) {
this.setData({
enableBusinessSchool: data
})
}
})
.catch(err => {
console.log(err)
})
}
},
get4SStoreList() {
let userInfo = wx.$util.getUserInfo()
let params = {
......@@ -167,38 +193,38 @@ Page({
})
})
},
// test (){
// const params ={
// mode: 1,
// insurancePrice: 0,
// outTradeNo: '0120230111614687537054883840',
// referrerId: '390664aa685c4c43855f5b80122affa3',
// referrer: '负责人',
// quotedPriceUpdate: 47600,
// minEquityPrice: 1,
// goodsId: 687,
// goodsName: '测试2.0商品',
// merchantId4s: 44211468,
// merchantName4s: '明明长岭4s店A',
// owner:{
// owner: 'test',
// phone: 15626599738,
// // certificateNo: '',
// // carVin: '',
// seat: 5,
// price: 2222200,
// confirmStatus: false,
// saveStatus: false,
// },
// check: true,
// }
// console.log(params);
// quotationRecording(params).then((result) => {
// console.log(result);
// }).catch((err) => {
// });
// },
// test (){
// const params ={
// mode: 1,
// insurancePrice: 0,
// outTradeNo: '0120230111614687537054883840',
// referrerId: '390664aa685c4c43855f5b80122affa3',
// referrer: '负责人',
// quotedPriceUpdate: 47600,
// minEquityPrice: 1,
// goodsId: 687,
// goodsName: '测试2.0商品',
// merchantId4s: 44211468,
// merchantName4s: '明明长岭4s店A',
// owner:{
// owner: 'test',
// phone: 15626599738,
// // certificateNo: '',
// // carVin: '',
// seat: 5,
// price: 2222200,
// confirmStatus: false,
// saveStatus: false,
// },
// check: true,
// }
// console.log(params);
// quotationRecording(params).then((result) => {
// console.log(result);
// }).catch((err) => {
// });
// },
// getStoreList(e) {
// // 获取园区店下的4s店数据 超管拉全部数据
// let { userInfo } = this.data
......@@ -249,27 +275,11 @@ Page({
[`pageShow[${tabIndex}]`]: true,
tabIndex
})
const showPageNum = [1,2]
showPageNum.includes(tabIndex)&& wx.$eventbus.emit('page_show') // 初始化tab底部条没有的问题
const showPageNum = [1, 2]
showPageNum.includes(tabIndex) && wx.$eventbus.emit('page_show') // 初始化tab底部条没有的问题
this.initList()
},
// changePicker(e) {
// console.log('changePicker')
// let { storeListRange, selectStroeIndex } = this.data
// let value = (e.detail ?? '') === '' ? selectStroeIndex : e.detail
// let default4SStoreInfo = storeListRange[value]
// wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), default4SStoreInfo })
// this.setData({
// userInfo: { ...wx.$util.getUserInfo(), default4SStoreInfo },
// waitInputCount: 0
// })
// this.getMerchant4SMode()
// this.initList()
// },
initList() {
// console.log('this.getMerchant4SMode()');
this.getMerchant4SMode()
let { tabIndex } = this.data
// console.log(this.selectComponent(`#page-${tabIndex}`)?.onLoad,'this.selectComponent(`#page-${tabIndex}`)?.onLoad');
......@@ -300,39 +310,38 @@ Page({
},
// 10s轮询一次待补录
getWaitOrder() {
let { isStaff,mode } = this.data
let { isStaff, mode } = this.data
// console.log('isStaff', isStaff)
// let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.route, ' thisPage.route')
// thisPage.route == 'tabIndex/pages/index/index' &&
time&&clearTimeout(time)//解决切换门店时 需要清除计时器
if ( isStaff&&mode) {
time && clearTimeout(time) //解决切换门店时 需要清除计时器
if (isStaff && mode) {
waitinputorder()
.then(result => {
// console.log(result)
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => {})
.then(result => {
// console.log(result)
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => {})
}
},
onRoute(options) {
console.log(options,'options');
if (options&&options.tabIndex) {
this.changeTabBar({detail:options.tabIndex})
console.log(options, 'options')
if (options && options.tabIndex) {
this.changeTabBar({ detail: options.tabIndex })
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options,'onLoad');
console.log(options, 'onLoad')
},
/**
......
<!-- pages/equity/index.wxml -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{ true }}" navStyle="{{tabIndex != 3 ? '' : 'background-color: rgba(0,0,0,0);box-shadow:none;'}}" bindback="back" bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" wx:if="{{tabIndex != 3}}">
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}</view>
</view>
<view wx:else>我的</view>
<navigation-bar
class="navigation-header"
bindnavbarReady="navbarReady"
showMenu="{{ true }}"
navStyle="{{ tabIndex != 3 ? '' : 'background-color: rgba(0,0,0,0);box-shadow:none;' }}"
bindback="back"
bindshowMenuPopup="showMenuPopup"
>
<view class="navigation-title" wx:if="{{ tabIndex != 3 }}">
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}</view>
</view>
<view wx:else>我的</view>
</navigation-bar>
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout {{waitInputCount && mode == 1?'tipsHeigh':''}}" style="padding-top:{{ navBarHeight }}px;position: relative;">
<block wx:if="{{ navBarHeight && showPage }}">
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" mode="{{ mode }}"></home>
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }} " mode="{{ mode }}" />
<equity-list id="page-2" outTabIndex="{{ tabIndex }}" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 2?'':'hide' }}" />
<tab-mine id="page-3" class="pagedetail {{ tabIndex == 3?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
</block>
<view
class="layout {{ waitInputCount && mode == 1?'tipsHeigh':'' }}"
style="padding-top:{{ navBarHeight }}px;position: relative;"
>
<block wx:if="{{ navBarHeight && showPage }}">
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" mode="{{ mode }}"></home>
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }}" mode="{{ mode }}" />
<equity-list
id="page-2"
outTabIndex="{{ tabIndex }}"
navBarHeight="{{ navBarHeight }}"
class="pagedetail {{ tabIndex == 2?'':'hide' }}"
/>
<tab-mine
showCollege="{{ enableBusinessSchool }}"
id="page-3"
class="pagedetail {{ tabIndex == 3?'':'hide' }}"
navBarHeight="{{ navBarHeight }}"
></tab-mine>
</block>
</view>
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0}}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" />
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0 }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" />
</view>
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<!-- <store-picker items="{{ storeListRange }}" show="{{ showPicker }}" bindsearch="getStoreList" bindconfirm="changePicker" /> -->
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}" bindconfirm="changePicker" />
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="changePicker" />
<!-- <order-switchPopup
bind:close="closeSwitchPopup"
bind:success="navigator"
......@@ -27,4 +47,4 @@
wx:if="{{ showOrderpop }}"
flag="{{ showOrderpop }}"
/> -->
<order-no-popup wx:if="{{tipsProps}}" show="{{tipsProps}}" title="请选择支付订单号" bind:success="navigator" orderNoList="{{orderNoList}}" />
\ No newline at end of file
<order-no-popup wx:if="{{ tipsProps }}" show="{{ tipsProps }}" title="请选择支付订单号" bind:success="navigator" orderNoList="{{ orderNoList }}" />
\ No newline at end of file
// packageEquity/pages/collegeScene/collegeScene.js
import { staffInfo, orderPerformanceDetail, performancePassword, performancePasswordCheck } from '../../api'
import { ImgUrl } from '~/config.js'
const app = getApp()
Page({
options: {
// multipleSlots: true, // 在组件定义时的选项中启用多 slot 支持
styleIsolation: 'shared' // 自定义覆盖vant样式
},
/**
* 页面的初始数据
*/
data: {
indicatorDots: true,
vertical: false,
autoplay: false,
interval: 2000,
duration: 500,
ImgUrl: ImgUrl + '/miniProgram/',
isStaff: true,
forbid: true,
hasStaffPassword: true,
passwordPop: false,
isSetPassword: true,
orderList: [],
orderListObj: [
{
label: '下单时间',
key: 'orderTimeLabel'
},
{
label: '支付时间',
key: 'paySuccessTimeLabel'
},
{
label: '客户姓名',
key: 'customerName'
},
{
label: '所属门店',
key: 'merchantName'
},
{
label: '转化员',
key: 'staffName'
},
{
label: '订单编号',
key: 'orderCode'
}
]
},
remarkConfirm() {
this.setData({
hasStaffPassword: true
})
},
viewPerformance() {
// 判断是第一次还是需要输入秘密
let { hasStaffPassword, staffInfoObj } = this.data
// if (userInfoObj.staffInfo.needSetPwd) {
this.setData({
passwordPop: true,
isSetPassword: staffInfoObj.staffInfo.needSetPwd
})
// } else {
// this.setData({
// passwordPop: true,
// isSetPassword: false
// })
// }
},
refresh() {
// console.log('refresh', refresh)
this.setData({
orderList: [],
currentPage: 0
})
this.orderPerformanceDetail()
},
onBottomRefresh() {
console.log('onBottomRefresh')
let { currentPage, monthArray } = this.data
if (currentPage < monthArray.length - 1) {
this.setData({
currentPage: currentPage + 1
})
this.orderPerformanceDetail()
} else {
wx.$util.showToast('没有更多了')
}
// console.log('test', test)
},
orderPerformanceDetail() {
let { currentPage, monthArray, orderList } = this.data
let performanceMonth = monthArray[currentPage]
console.log(performanceMonth, 'performanceMonth')
orderPerformanceDetail({ performanceMonth })
.then(res => {
console.log(res)
//
let { code, data } = res
if (code == 0 && data.performanceMonth) {
let [year, month] = data.performanceMonth.split('-')
data.year = year
data.month = month
data.orderList = data.orderList.map(item => {
item.orderGoodsName = item.orderGoodsName.split(',')
// console.log(orderTime, paySuccessTime, 'orderTime')
item.orderTimeLabel = wx.$util.tsFormatTime(item.orderTime, 'Y年M月D日 h:m:s')
item.paySuccessTimeLabel = wx.$util.tsFormatTime(item.paySuccessTime, 'Y年M月D日 h:m:s')
return item
})
// wx.$util.tsFormatTime(data.orderTime, 'Y年M月D日 h:m:s')
orderList.push({ ...data })
console.log(data, 'data')
this.setData({
orderList,
triggered: false
})
}
})
.catch(err => {
console.log(err)
})
},
businessSchoolStaffInfo() {
wx.$util.showLoading('加载中...')
staffInfo({})
.then(res => {
console.log(res)
let { userInfo } = this.data
let { code, data } = res
if (code == 0) {
if (data.staffInfo?.entryDate) {
data.staffInfo.entryDate = wx.$util.tsFormatTime(data.staffInfo.entryDate, 'Y年M月D日')
}
data.monthPerformanceList = data.monthPerformanceList.map(item => {
item.performanceMonthLabel = this.extractMonth(item.performanceMonth)
// let [year, month] = item.performanceMonth.split('-')
// item.year = year
// item.month = month
return item
})
const titleLabel = {
0: '初级驻店',
1: '中级导师',
2: '高级导师'
}
data.staffInfo.titleLabel = userInfo.isSuper ? '超管' : titleLabel[data.staffInfo.title]
this.setData({
staffInfoObj: data
})
}
})
.catch(err => {
console.log(err)
})
.finally(() => {
// wx.stopPullDownRefresh()
wx.$util.hideLoading()
})
},
getDetailInfo() {
let monthArray = this.getYearMonthArray()
this.setData({
monthArray,
// pageSize: monthArray.length,
currentPage: 0
})
console.log(monthArray, 'monthArray')
// 获取商学院员工信息及前3月绩效信息
this.businessSchoolStaffInfo()
//获取商学院员工订单绩效明细
this.orderPerformanceDetail()
},
// 获取月份
extractMonth(dateString) {
const regex = /(\d{4})-(\d{2})/
const match = regex.exec(dateString)
if (match && match.length >= 3) {
const year = parseInt(match[1])
const month = parseInt(match[2])
const monthString = `${month}月份`
return monthString
}
return null
},
// 获取年份
getYearMonthArray() {
let currentDate = new Date()
let startYear = currentDate.getFullYear()
let startMonth = currentDate.getMonth() + 1 // Add 1 to adjust for 0-based index
let endYear = 2023
let endMonth = 1
let yearMonthArray = []
while (startYear > endYear || (startYear === endYear && startMonth >= endMonth)) {
let formattedMonth = ('0' + startMonth).slice(-2) // Add leading zero if necessary
let yearMonth = startYear + '-' + formattedMonth
yearMonthArray.push(yearMonth)
startMonth--
if (startMonth === 0) {
startMonth = 12
startYear--
}
}
return yearMonthArray
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
const isStaff = app.globalData.isStaff
this.setData({
isStaff,
hasStaffPassword: !isStaff
})
this.getDetailInfo()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
/**
* 生命周期函数--监听页面显示
*/
onShow() {},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
})
{
"usingComponents": {
"password-pop": "./components/RemarkPopup/RemarkPopup"
},
"navigationStyle": "custom"
}
/* packageEquity/pages/collegeScene/collegeScene.wxss */
page {
background-color: #f7f8fa;
}
.navigation-header .navigation-bar {
background-color: transparent;
box-shadow: none;
/* color: #fff; */
}
.navigation-header .navigation-title-text {
color: #fff;
}
.bg {
box-sizing: border-box;
width: 100%;
height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/collegeSceneBg.png') no-repeat;
background-size: 100% 526rpx;
background-color: #fff;
position: fixed;
left: 0;
top: 0;
z-index: -1;
}
.scroll-list {
margin: 210rpx 0 48rpx;
height: calc(100vh - 210rpx - 48rpx);
// height: 500rpx;
}
.userInfoCon {
position: relative;
width: 654rpx;
height: 366rpx;
margin: 0 auto;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/collegeSceneCard.png') no-repeat;
background-size: 100% 100%;
.date {
position: absolute;
left: 12rpx;
top: 6rpx;
font-size: 24rpx;
color: #FFFFFF;
}
.userInfo {
height: 234rpx;
width: 100%;
display: flex;
.left {
flex: 1;
// justify-content: center;
display: flex;
align-items: center;
padding-left: 28rpx;
padding-top: 45rpx;
.avatar {
width: 96rpx;
height: 96rpx;
}
.nameCon {
margin-left: 16rpx;
.nameLabel {
font-size: 24rpx;
color: #999EA8;
}
.name {
// margin-top: 2rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 34rpx;
color: #A66E1E;
}
}
// .nameCon{
// display: flex;
// }
}
.right {
width: 238.62rpx;
height: 234rpx;
// display: flex;
// justify-content: center;
// align-items: center;
position: relative;
.positionName {
z-index: 1;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 32rpx;
color: #A66E1E;
width: 64rpx;
position: absolute;
left: 64rpx;
bottom: 54rpx;
}
.position {
position: absolute;
bottom: 0;
left: 0;
width: 208rpx;
height: 204rpx;
}
}
}
.footer {
box-sizing: border-box;
display: flex;
padding-top: 25rpx;
.left {
width: 256rpx;
padding-left: 52rpx;
}
.hierophantLabel {
font-size: 22rpx;
color: #999EA8;
}
.name {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #A97225;
}
}
}
.swiperCon {
width: 710rpx;
// height: 544rpx;
margin: 32rpx auto 0;
background: #FFFFFF;
border-radius: 16rpx;
filter: blur(0);
.staffCon {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 32rpx;
color: #8F959E;
.forbid {
display: flex;
align-items: center;
justify-content: center;
line-height: 544rpx;
// text-align: center;
}
.forbidIcon {
width: 40rpx;
height: 40rpx;
margin-left: 8rpx;
}
}
.performanceCon {
box-sizing: border-box;
padding: 20rpx;
background-color: #fff;
text-align: center;
.title {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #181A1F;
line-height: 44rpx;
}
.tips {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 22rpx;
color: #999EA8;
line-height: 32rpx;
margin: 4rpx 0 8rpx;
}
.orderCount {
font-family: 'numberBold';
display: flex;
align-items: baseline;
margin-bottom: 18rpx;
// text-align: center;
justify-content: center;
.unit {
font-size: 24rpx;
color: #292D33;
}
.num {
font-size: 48rpx;
color: #292D33;
}
.eyesIcon {
width: 40rpx;
height: 40rpx;
margin-left: 5rpx
}
}
.wagesCon {
box-sizing: border-box;
padding: 20rpx 10rpx;
width: 670rpx;
// height: 244rpx;
background: #F6FCFE;
border-radius: 16rpx;
display: flex;
flex-direction: column;
.wagesItem {
box-sizing: border-box;
width: 670rpx;
height: 68rpx;
padding: 14rpx 22rpx;
border-bottom: 1rpx solid #E4E8EE;
display: flex;
.label {
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 28rpx;
color: #5A5E66;
width: 175rpx;
text-align-last: left;
}
.value {
font-size: 28rpx;
color: #999EA8;
width: 205rpx;
&+.value {
margin-left: 14rpx;
}
.num {
margin-left: 8rpx;
font-family: 'numberBold';
font-size: 28rpx;
color: #292D33;
}
}
}
}
}
}
.tipsCon {
text-align: center;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: #999EA8;
margin: 28rpx auto;
}
.orderItem {
box-sizing: border-box;
width: 710rpx;
padding: 52rpx 40rpx;
margin: 0 auto 32rpx;
background: #FFFFFF;
border-radius: 16rpx;
.li {
display: flex;
.label {
width: 115rpx;
margin-right: 40rpx;
font-size: 28rpx;
color: #999EA8;
}
.conent {
word-break: break-all;
font-size: 28rpx;
color: #292D33;
}
.orderAmount {
.conent {
font-family: 'numberBold';
font-size: 32rpx;
color: #292D33;
}
.orderAmount {
display: flex;
flex-direction: column;
}
}
.num {
font-family: 'numberBold';
color: #F24724;
margin-left: 3rpx;
}
}
.li+.li {
margin-top: 16rpx;
}
}
.monthTitle {
box-sizing: border-box;
padding: 26rpx 20rpx 58rpx;
width: 710rpx;
height: 180rpx;
margin: 0 auto -32rpx;
display: flex;
align-items: center;
background-image: linear-gradient(0deg, #347BFF 0%, #3B8FFE 100%);
box-shadow: inset -2rpx -2rpx 4rpx 0 #0064f099, inset 0 -2rpx 12rpx 0 #1BB1FE;
border-radius: 16rpx;
color: #FFFFFF;
.date {
width: 88rpx;
height: 88rpx;
// opacity: 0.15;
// background: #FFFFFF;
display: flex;
// align-items: center;
justify-content: center;
flex-direction: column;
border-radius: 8rpx;
text-align: center;
color: #FFFFFF;
background: rgba(255, 255, 255, 0.15);
.year {
z-index: 2;
font-weight: 600;
font-size: 20rpx;
}
.month {
z-index: 2;
font-family: PingFangSC-SNaNrpxibold;
font-weight: 600;
font-size: 28rpx;
}
}
.outputValue {
margin-left: 40rpx;
}
.orderNum {
margin-left: 184rpx;
}
.label {
font-weight: 400;
font-size: 24rpx;
}
.value {
font-family: 'numberBold';
font-size: 36rpx;
}
// border-radius: 16rpx 0 0 16rpx 16rpx 16rpx;
}
.userInfoConMore {
width: 654rpx;
height: 410rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/miniProgram/collegeSceneCard02.png') no-repeat;
background-size: 100% 100%;
}
\ No newline at end of file
<!--packageEquity/pages/collegeScene/collegeScene.wxml-->
<!-- <text>packageEquity/pages/collegeScene/collegeScene.wxml</text> -->
<view class="bg"></view>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="navigation-title-text text-hide">商学院</view>
</view>
</navigation-bar>
<!--
upper-threshold="20"
lower-threshold="50" -->
<scroll-view
class="scroll-list"
scroll-y
enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="refresh"
bindscrolltolower="onBottomRefresh"
refresher-threshold="104"
refresher-triggered="{{ triggered }}"
>
<view
class="userInfoCon {{ staffInfoObj.staffInfo.studentStaffNameList&&staffInfoObj.staffInfo.studentStaffNameList.length>3? 'userInfoConMore':'' }}"
>
<view class="date">{{staffInfoObj.staffInfo.entryDate}}入职</view>
<view class="userInfo">
<view class="left">
<image class="avatar" src="{{ ImgUrl+'avatarIcon.png' }}"></image>
<view class="nameCon">
<view class="nameLabel">姓名</view>
<view class="name">{{staffInfoObj.staffInfo.staffName}}</view>
</view>
</view>
<view class="right">
<view class="positionName">{{staffInfoObj.staffInfo.titleLabel}}</view>
<image class="position" src="{{ ImgUrl+'collegeSceneBadge.png' }}"></image>
</view>
</view>
<view class="footer">
<view class="left">
<view class="hierophantLabel">我的导师</view>
<view class="name">{{staffInfoObj.staffInfo.mentorStaffName}}</view>
</view>
<view class="right">
<view class="hierophantLabel">我的学员</view>
<view class="name">
<block wx:if="{{ staffInfoObj.staffInfo.studentStaffNameList }}">
<text wx:for="{{ staffInfoObj.staffInfo.studentStaffNameList }}" wx:key="index">{{item}}</text>
</block>
</view>
</view>
</view>
</view>
<view class="swiperCon">
<block wx:if="{{ !isStaff }}">
<view class="staffCon" wx:if="{{ !hasStaffPassword }}">
<view class="accessView"></view>
<view class="forbid" bindtap="viewPerformance">
<view>查看我的绩效</view>
<image class="forbidIcon" src="{{ ImgUrl+'closeeyesIcon.png' }}"></image>
</view>
</view>
<view class="performanceCon" wx:else>
<view class="title">预估本月绩效提成</view>
<view class="tips">(最终工资按实际发放为准)</view>
<view class="orderCount">
<text class="unit">¥</text>
<text class="num">{{staffInfoObj.finalWage || 0}}</text>
<image class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image>
</view>
<view class="wagesCon">
<view class="wagesItem" wx:for="{{ staffInfoObj.monthPerformanceList }}">
<view class="label">{{index? item.performanceMonthLabel : '当前月'}}</view>
<view class="value">
<text>工资</text>
<text class="num">¥{{item.staffDataList[0].finalWage || 0}}</text>
</view>
<view class="value">
<text>+提成</text>
<text class="num">¥{{item.staffDataList[0].performanceWage || 0}}</text>
</view>
</view>
</view>
</view>
</block>
<!-- 超管和商户管理 -->
<block wx:else="{{ isStaff }}">
<view class="performanceCon">
<view class="title">预估本月绩效提成</view>
<view class="tips">(最终工资按实际发放为准)</view>
<view class="orderCount">
<text class="unit">¥</text>
<text class="num">{{staffInfoObj.finalWage || 0}}</text>
<image class="eyesIcon" src="{{ ImgUrl+'openeyesIcon.png' }}"></image>
</view>
<swiper indicator-dots="{{ indicatorDots }}" autoplay="{{ autoplay }}" interval="{{ interval }}" duration="{{ duration }}">
<!-- <block wx:for="{{background}}" wx:key="*this"> -->
<swiper-item>
<view class="wagesCon">
<view class="wagesItem" wx:for="{{ staffInfoObj.monthPerformanceList }}" wx:key="index">
<view class="label">{{index? '当前月': item.performanceMonthLabel}}</view>
<view class="value">
<text>工资</text>
<text class="num">¥{{item.staffDataList[0].finalWage || 0}}</text>
</view>
<view class="value">
<text>+提成</text>
<text class="num">¥{{item.staffDataList[0].performanceWage || 0}}</text>
</view>
</view>
</view>
</swiper-item>
</swiper>
</view>
</block>
</view>
<view class="tipsCon">
<view class="up">注意:订单及订单提成根据个人绩效略有浮动</view>
<view class="down">(越接近月末绩效提成越准确)</view>
</view>
<view class="listCon" wx:for="{{ orderList }}" wx:key="index">
<view class="monthTitle" wx:if="{{ !index }}">
<view class="date">
<view class="year">{{item.year}}</view>
<view class="month">{{item.month}}月</view>
</view>
<view class="outputValue">
<view class="label">产值</view>
<view class="value">¥{{item.orderMoneyTotal}}</view>
</view>
<view class="orderNum">
<view class="label">订单数</view>
<view class="value">{{item.upgradeOrderCount}}</view>
</view>
</view>
<view class="orderItem" wx:for="{{ item.orderList }}" wx:for-item="childItem" wx:for-index="childIndex" wx:key="childIndex">
<view class="li" wx:for="{{ orderListObj }}" wx:for-item="labelObj" wx:for-index="labelObjIndex" wx:key="labelObjIndex">
<view class="label">{{labelObj.label}}</view>
<view class="conent">{{childItem[labelObj.key]}}</view>
</view>
<view class="li orderAmount">
<view class="label">订单金额</view>
<view class="conent">¥{{childItem.orderMoney}}</view>
</view>
<view class="li orderAmount goods">
<view class="label">商品</view>
<view class="conent">
<view
class="goodsItem"
wx:for="{{ childItem.orderGoodsName }}"
wx:for-item="goodsItem"
wx:for-index="goodsIndex"
wx:key="goodsIndex"
>
<view class="goodsName">{{goodsItem}}</view>
<!-- <view class="goodsNum">x{{goodsItem.goodsNum}}</view> -->
</view>
</view>
</view>
<view class="li orderCommission">
<view class="label">提成</view>
<view class="conent">
<block wx:if="{{ hasStaffPassword }}">
<view class="name">
<text>导师{{childItem.mentorStaffName}}</text>
<text class="num">¥{{childItem.mentorBonus}}</text>
</view>
<view class="name">
<text>驻店{{childItem.staffName}}</text>
<text class="num">¥{{childItem.finalWage}}</text>
</view>
</block>
<block wx:else>
<text>***</text>
</block>
</view>
</view>
</view>
</view>
<!-- <view class="listCon">
<view class="monthTitle">
<view class="date">
<view class="year">2023</view>
<view class="month">12月</view>
</view>
<view class="outputValue">
<view class="label">产值</view>
<view class="value">¥0.00</view>
</view>
<view class="orderNum">
<view class="label">订单数</view>
<view class="value">22</view>
</view>
</view>
<view class="orderItem">
<view class="li">
<view class="label">下单时间</view>
<view class="conent">2023-12-19 16:33:20</view>
</view>
<view class="li orderAmount">
<view class="label">订单金额</view>
<view class="conent">¥2000</view>
</view>
<view class="li orderCommission">
<view class="label">订单提成</view>
<view class="conent">
<text>驻店马苏提</text>
<text class="num">¥200</text>
</view>
</view>
</view>
</view> -->
</scroll-view>
<password-pop
wx:if="{{ passwordPop }}"
isSetPassword="{{ isSetPassword }}"
title="{{ isSetPassword ? '首次设置绩效查看密码':'请输入绩效查看密码' }}"
show="{{ passwordPop }}"
maxlength="4"
bindcancel="remarkCancel"
bindconfirm="remarkConfirm"
></password-pop>
\ No newline at end of file
// components/RemarkPopup/RemarkPopup.js
import md5 from '~/utils/lib/md5.js'
import { performancePasswordUpdate, performancePasswordCheck } from '~/packageEquity/api'
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean,
value: false,
observer: function (n) {
if (n) {
this.setData({
password: '',
repassword: ''
})
}
}
},
maxlength: Number,
title: {
type: String
},
btnName: {
type: String
},
isSetPassword: {
type: Boolean
// value: false
}
// isInt: {
// type: Boolean,
// value: false
// },
// required: {
// type: Boolean,
// value: false
// }
},
/**
* 组件的初始数据
*/
data: {
// inputValue: '',
// isEdit: false,
password: '',
repassword: ''
},
/**
* 组件的方法列表
*/
methods: {
input(e) {
let { value } = e.detail
console.log(e)
let { name } = e.currentTarget.dataset
this.setData({
[name]: value
})
},
noScroll() {},
blur(e) {
this.setData({
inputValue: e.detail.value,
isEdit: true
})
},
showPopup(e) {
// console.log()
let { name, btnName } = e.currentTarget.dataset
// if (btnName == 'cancel') {
// this.setData({
// value: ''
// })
// }
// console.log(name)
// 判断是不是来自组件 不是调用页面的数据修改
// 是用方法回传关闭
// let { isFormComponent } = this.data
// if (!isFormComponent) {
let thisPage = wx.$router.getPageInstance()
// console.log(thisPage)
console.log(thisPage)
thisPage.setData({
[name]: false
})
// 组件中使用
this.triggerEvent('cancel')
// this.setData({
// isEdit: false
// })
// } else {
// // console.log('tri')
// this.triggerEvent('closePop')
// }
},
remarkConfirm() {
// console.log('confirm')
let { isSetPassword, maxlength, password, repassword } = this.data
if (maxlength != password.length) {
return wx.$util.showToast('请输入4位数字密码')
}
// 判断 是设置密码还是输入密码
if (isSetPassword) {
if (maxlength != repassword.length) {
return wx.$util.showToast('请输入4位数字确认密码')
}
if (password != repassword) {
return wx.$util.showToast('两次密码输入不一致')
}
let params = {
passwordMd5: md5(password)
}
performancePasswordUpdate(params)
.then(res => {
console.log(res)
let { code, data, message } = res
if (code == 0 && data) {
this.triggerEvent('confirm')
this.showPopup({
currentTarget: {
dataset: {
name: 'passwordPop'
}
}
})
} else {
wx.$util.showToast(message)
}
})
.catch(err => {
console.log(err)
})
} else {
performancePasswordCheck({ passwordMd5: md5(password) })
.then(res => {
console.log(res)
let { code, data, message } = res
if (code == 0 && data) {
this.triggerEvent('confirm')
this.showPopup({
currentTarget: {
dataset: {
name: 'passwordPop'
}
}
})
} else {
wx.$util.showToast(message)
}
})
.catch(err => {
console.log(err)
})
// this.showPopup({
// currentTarget: {
// dataset: {
// name: 'passwordPop'
// }
// }
// })
}
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* components/RemarkPopup/RemarkPopup.wxss */
.fixed-box {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 998;
perspective: 99999999px;
}
.fixed-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
animation: show-bg .1s forwards .5s;
}
@keyframes show-bg {
0% {
background-color: rgba(0, 0, 0, 0);
}
100% {
background-color: rgba(0, 0, 0, .6);
}
}
.fixed-content {
position: absolute;
left: 50%;
top: 50%;
background: #FFFFFF;
border-radius: 20rpx;
width: 622rpx;
animation: show-modal .5s forwards;
}
@keyframes show-modal {
0% {
opacity: 0;
transform: translate3d(-50%, -50%, -99999999px);
}
100% {
opacity: 1;
transform: translate3d(-50%, -50%, 0);
}
}
.fixed-content .fixed-title {
/* height: 96rpx;
font-size: 32rpx;
color: #333333; */
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 32rpx;
color: #292D33;
padding: 28rpx 0;
}
.fixed-date-box .fixed-body {
height: 360rpx;
display: flex;
flex-direction: column;
}
.fixed-content .fixed-footer {
box-sizing: border-box;
height: 96rpx;
display: flex;
align-items: center;
position: relative;
border-top: 2rpx solid #EBEDF0;
// border-top:
}
.fixed-content .fixed-footer .text-center {
width: 50%;
height: 100%;
font-size: 32rpx;
color: #333333;
}
.fixed-content .fixed-footer .fixed-confirm {
color: #347BFF;
}
.fixed-content .fixed-footer::after {
background-color: #EBEDF0;
width: 1rpx;
height: 100%;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
content: '';
}
.fixed-remark-box .fixed-body {
padding: 20rpx;
}
.inputCon {
box-sizing: border-box;
width: 558rpx;
height: 80rpx;
display: flex;
align-items: center;
background: #F7F8FA;
border-radius: 8rpx;
padding: 22rpx 32rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
.label {
margin-right: 16rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: #757980;
// display: flex;
}
}
.inputCon+.inputCon {
margin-top: 24rpx;
}
/* .fixed-remark {
background: #F4F5F7;
border: 2rpx solid #EFF0F2;
border-radius: 12rpx;
width: 522rpx;
height: 260rpx;
box-sizing: border-box;
padding: 24rpx 46rpx;
animation: show-remark .1s forwards .4s;
opacity: 0;
}
@keyframes show-remark {
0%{
opacity: 0;
}
100%{
opacity: 1;
}
} */
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file
<block>
<!-- wx:if="{{show}}" -->
<view class="fixed-box fixed-remark-box" catchtouchmove="noScroll">
<view class="fixed-bg" bindtap="showPopup" data-name="passwordPop" />
<view class="fixed-content">
<view class="fixed-title text-center">{{title}}</view>
<view class="fixed-body">
<!-- value="{{ }}" value="{{ 1}}" -->
<view class="inputCon">
<view class="label">输入密码</view>
<input
type="number"
maxlength="{{ maxlength }}"
value="{{ password }}"
data-name="password"
placeholder-style="color: #BEC1C7;font-size: 28rpx;"
catchtap="noScroll"
class="input"
placeholder="请输入密码"
catchinput="input"
/>
</view>
<view class="inputCon" wx:if="{{ isSetPassword }}">
<view class="label">确认密码</view>
<input
type="number"
maxlength="{{ maxlength }}"
value="{{ repassword }}"
data-name="repassword"
placeholder-style="color: #BEC1C7;font-size: 28rpx;"
catchtap="noScroll"
class="input"
placeholder="请再次输入四位数字"
catchinput="input"
/>
</view>
<!-- <view class="fixed-remark">
<gl-textarea
value="{{value}}"
show="{{show}}"
bindinput="blur"
maxlength="{{maxlength}}"
placeholder="{{placeholder || '请输入'}}"
isLimitNum="{{isLimitNum}}"
isInt="{{isInt}}"
customMaxLength></gl-textarea>
</view> -->
</view>
<view class="fixed-footer">
<view class="fixed-cancel text-center" bindtap="showPopup" data-btnName="cancel" data-name="passwordPop">取消</view>
<view class="fixed-confirm text-center" bindtap="remarkConfirm">{{btnName||'确定'}}</view>
</view>
</view>
</view>
</block>
\ No newline at end of file
/* tabComponents/pages/index/index.wxss */
page {
background: #F7F8FA;
}
.main {
padding-bottom: 80rpx;
background: #FFFFFF;
/* background: #FFFFFF; */
}
.bg {
......@@ -19,7 +23,7 @@
.user-box {
position: relative;
border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF;
/* background: #FFFFFF; */
font-size: 28rpx;
color: #333333;
}
......@@ -35,18 +39,21 @@
top: -32rpx;
border: 4rpx solid #fff;
}
.name_box{
.name_box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx;
}
.name_box .name {
font-size: 40rpx;
color: #323436;
font-weight: 600;
}
.change_btn{
.change_btn {
width: 134rpx;
height: 48rpx;
background: rgba(52, 123, 255, .1);
......@@ -57,6 +64,7 @@
justify-content: center;
border-radius: 24rpx;
}
.user-info {
padding: 0 50rpx;
}
......@@ -70,11 +78,12 @@
font-size: 24rpx;
margin: 4rpx;
}
.item.flex {
display: flex;
display: flex;
}
.scene_box{
.scene_box {
margin: 20rpx;
margin-top: 48rpx;
box-sizing: border-box;
......@@ -91,24 +100,24 @@
margin-bottom: 20rpx;
}
.select_item{
.select_item {
display: flex;
align-items: center;
justify-content: space-between;
}
.select_item .scene_message{
.select_item .scene_message {
display: flex;
align-items: center;
}
.select_item .scene_icon{
.select_item .scene_icon {
width: 128rpx;
height: 128rpx;
margin-right: 24rpx;
}
.select_item .scene_text .name{
.select_item .scene_text .name {
color: #333333;
font-size: 32rpx;
font-weight: 500;
......@@ -116,7 +125,7 @@
align-items: center;
}
.select_item .scene_text .name .name_tips{
.select_item .scene_text .name .name_tips {
width: 64rpx;
height: 30rpx;
line-height: 30rpx;
......@@ -129,52 +138,66 @@
margin-left: 4rpx;
}
.select_item .scene_text .tips{
.select_item .scene_text .tips {
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
}
.select_item .change_btn{
.select_item .change_btn {
margin: 0;
}
.set_box{
.set_box {
margin: 20rpx;
margin-top: 48rpx;
display: grid;
background: #FFFFFF;
border-radius: 16rpx;
display: flex;
flex-direction: column;
/* display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
align-items: center;
align-items: center; */
}
.set_box .set_item{
.set_box .set_item {
box-sizing: border-box;
width: 344rpx;
height: 168rpx;
border-radius: 16rpx;
/* width: 344rpx;
height: 168rpx; */
width: 710rpx;
height: 88rpx;
padding: 24rpx 32rpx;
display: flex;
align-items: center;
/* border-radius: 16rpx; */
/* display: flex;
flex-flow: column;
justify-content: center;
padding: 32rpx;
margin-bottom: 20rpx;
position: relative;
position: relative; */
}
.set_box .set_item .icon_image{
width: 120rpx;
height: 120rpx;
position: absolute;
.set_box .set_item+.set_item {
border-top: 1rpx solid #E4E8EE;
}
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0;
bottom: 0;
bottom: 0; */
}
.set_box .set_item .title .arrow_icon{
.set_box .set_item .title .arrow_icon {
width: 40rpx;
height: 40rpx;
}
.set_box .item_1{
/* .set_box .item_1{
background: #F8FFFD;
}
......@@ -197,24 +220,25 @@
}
.set_box .item_7{
background: #F6FCFE;
}
} */
.set_box .set_item .title{
.set_box .set_item .title {
font-weight: 500;
font-size: 28rpx;
color: #333333;
letter-spacing: 0;
}
.set_box .set_item .set_tips{
.set_box .set_item .set_tips {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
/* margin-top: 8rpx; */
margin-left: auto;
}
.version_box{
margin-top: 28rpx;
.version_box {
margin-top: 28rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 190rpx);
align-items: center;
......@@ -222,7 +246,7 @@
color: #323436;
}
.version_box .icon_box{
.version_box .icon_box {
width: 90rpx;
height: 90rpx;
background: #FAFAFA;
......@@ -230,7 +254,7 @@
position: relative;
}
.version_box .item{
.version_box .item {
display: flex;
flex-flow: column;
align-items: center;
......@@ -257,7 +281,8 @@
top: 8rpx;
left: -6rpx;
transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */
margin-left: -6rpx;
/* 调整尖角位置 */
border-width: 6rpx;
border-style: solid;
border-color: transparent transparent #007bff transparent;
......@@ -402,7 +427,7 @@
opacity: .5;
}
.logout-box{
.logout-box {
display: flex;
justify-content: center;
}
......@@ -428,6 +453,7 @@
.set_box_grass {
margin-top: 20rpx;
}
.m-t-0 {
margin-top: 20rpx;
}
\ No newline at end of file
......@@ -4,6 +4,20 @@
"miniprogram": {
"list": [
{
"name": "商学院",
"pathName": "packageEquity/pages/collegeScene/collegeScene",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "权益-个人中心",
"pathName": "packageEquity/pages/TabBar/equityPage",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "创建权益订单",
"pathName": "packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"query": "",
......
......@@ -78,6 +78,9 @@ Page({
// orderInfo.orderSource = type
orderInfo.associateOrderCode = orderInfo.orderCode
delete orderInfo.orderCode
if (orderInfo.technicianList) {
delete orderInfo.technicianList
}
orderInfo.selectPayType = 2
// filmOrder 1精品升级
let urlName = orderInfo?.filmOrder == 1 ? 'premiumUpgrade' : 'createOrder'
......
......@@ -62,8 +62,8 @@ const domain_items = {
// dj: 'http://192.168.1.104:8292', //叶立庆
// dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣
dj: 'http://192.168.1.88:8292', //周杭
// dj: 'http://192.168.1.53:8292',//陈希
// dj: 'http://192.168.1.88:8292', //周杭
dj: 'http://192.168.1.116:8292',//陈希
// dj:'http://192.168.2.59:8292/',//周立明
// scrm: 'http://192.168.1.165:8292'
scrm: 'https://scrm.dev.glsx.com.cn'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!