Commit 74374796 by 张立顺

一月份商学院功能开发

1 parent b1a0eb1f
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
园区店管理员: 15589265685(测试环境) 15626599736(开发环境) 园区店管理员: 15589265685(测试环境) 15626599736(开发环境)
员工账号 :15626599735 (选明明塘朗园区店) 15626599738(开发环境) 员工账号 :15626599735 (选明明塘朗园区店) 15626599738(开发环境)
员工账号 :18775035205 (选测试园店) 18775035205(选最下面的) 员工账号 :18775035205 (选测试园店) 18775035205(选最下面的)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据) 员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据) 13132112126(导师) 13132112120(学员)
员工账号 :15626599738 (开发环境) 员工账号 :15626599738 (开发环境)
超管:18129809927 超管:18129809927
商户管理员:15814019200 商户管理员:15814019200
......
...@@ -56,20 +56,12 @@ ...@@ -56,20 +56,12 @@
{ {
"root": "tabDate", "root": "tabDate",
"name": "tabDate", "name": "tabDate",
"pages": [ "pages": ["pages/detail/detail", "pages/apprManage/apprManage", "pages/userPortrait/userPortrait"]
"pages/detail/detail",
"pages/apprManage/apprManage",
"pages/userPortrait/userPortrait"
]
}, },
{ {
"root": "tabMine", "root": "tabMine",
"name": "tabMine", "name": "tabMine",
"pages": [ "pages": ["pages/technicianSetup/technicianSetup", "pages/completeBuild/completeBuild", "pages/collectCoupons/collectCoupons"]
"pages/technicianSetup/technicianSetup",
"pages/completeBuild/completeBuild",
"pages/collectCoupons/collectCoupons"
]
}, },
{ {
"root": "tabWorkOrder", "root": "tabWorkOrder",
...@@ -108,31 +100,19 @@ ...@@ -108,31 +100,19 @@
"pages/carEquity/carBrands/carBrands", "pages/carEquity/carBrands/carBrands",
"pages/carEquity/carSeries/carSeries", "pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage", "pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract" "pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene"
] ]
}, },
{ {
"root": "tabOperating", "root": "tabOperating",
"name": "tabOperating", "name": "tabOperating",
"pages": [ "pages": ["pages/4sOverview/4sOverview", "pages/index/index", "pages/operatingShow/operatingShow"]
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
}, },
{ {
"root": "packageCrowdFunding", "root": "packageCrowdFunding",
"name": "packageCrowdFunding", "name": "packageCrowdFunding",
"pages": [ "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/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", "root": "subvehicleConversion",
...@@ -175,15 +155,11 @@ ...@@ -175,15 +155,11 @@
"preloadRule": { "preloadRule": {
"pages/tabWorkOrder/pages/index/index": { "pages/tabWorkOrder/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
}, },
"tabIndex/pages/index/index": { "tabIndex/pages/index/index": {
"network": "all", "network": "all",
"packages": [ "packages": ["tabWorkOrder"]
"tabWorkOrder"
]
} }
}, },
"resolveAlias": { "resolveAlias": {
......
...@@ -12,6 +12,11 @@ Component({ ...@@ -12,6 +12,11 @@ Component({
type: Number, type: Number,
value: 0 value: 0
}, },
// 是否显示商学院
showCollege: {
type: Boolean,
value: false
}
}, },
/** /**
...@@ -48,6 +53,11 @@ Component({ ...@@ -48,6 +53,11 @@ Component({
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
// 跳转到商学院
goCollegeScene() {
wx.$router.go('packageEquity.collegeScene')
console.log('跳转到商学院')
},
// 获取版本信息 // 获取版本信息
async getVersionInfo() { async getVersionInfo() {
const versionData = await getApp().getVersionInfo() const versionData = await getApp().getVersionInfo()
...@@ -83,10 +93,7 @@ Component({ ...@@ -83,10 +93,7 @@ Component({
}) })
wx.showLoading() wx.showLoading()
api.logout().then(_res_ => { api.logout().then(_res_ => {
let { let { code, message } = _res_
code,
message
} = _res_
if (code == 0) { if (code == 0) {
app.login(false) app.login(false)
} else { } else {
......
...@@ -2,13 +2,11 @@ ...@@ -2,13 +2,11 @@
<!-- src引入filter.wxs, module给模块起名 --> <!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> --> <!-- <wxs src="./index.wxs" module="filter" /> -->
<view class="bg"></view> <view class="bg"></view>
<view class="main" style="margin-top:104rpx">
<block>
<view class="main" style="margin-top:104rpx">
<view class="user-box"> <view class="user-box">
<view class="user-avatar"> <view class="user-avatar">
<block wx:if="{{userInfo.userAvatarUrl}}"> <block wx:if="{{ userInfo.userAvatarUrl }}">
<image src="{{userInfo.userAvatarUrl}}" bindtap="getAvatar" /> <image src="{{ userInfo.userAvatarUrl }}" bindtap="getAvatar" />
</block> </block>
<block wx:else> <block wx:else>
<open-data type="userAvatarUrl" /> <open-data type="userAvatarUrl" />
...@@ -20,58 +18,31 @@ ...@@ -20,58 +18,31 @@
</view> </view>
<view class="user-info"> <view class="user-info">
<view class="user-text"> <view class="user-text">
<view class="item"> <view class="item">所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}</view>
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view> <view class="item">创建时间:{{userInfo.createdTime}}</view>
</view> </view>
</view> </view>
</view> </view>
<block> <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_box">
<!-- <view class="set_item item_1" bindtap="showWork"> <view class="set_item" bindtap="changeScene">
<view class="title">工位设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view> <view class="title">场景切换</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> <view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode="" /> <image class="icon_image" src="./images/right.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>
<view class="set_item" bindtap="goVersionPage">
<view class="title">更新日志</view>
<view class="set_tips">最新{{versionData.version}}版</view> <view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode="" /> <image class="icon_image" src="./images/right.png" mode="" />
</view> </view>
</view> </view>
</block> </block>
<view class="logout text-center" bindtap="logout">退出账号</view> <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>
</block>
\ No newline at end of file \ No newline at end of file
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
\ No newline at end of file \ No newline at end of file
/* tabComponents/pages/index/index.wxss */ /* tabComponents/pages/index/index.wxss */
page {
background: #F7F8FA;
}
.pagedetail { .pagedetail {
position: relative; position: relative;
} }
...@@ -32,12 +36,14 @@ ...@@ -32,12 +36,14 @@
left: 50rpx; left: 50rpx;
top: -32rpx; top: -32rpx;
} }
.name_box{
.name_box {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx; padding: 20rpx 32rpx 40rpx 182rpx;
} }
.name_box .name { .name_box .name {
font-size: 40rpx; font-size: 40rpx;
color: #323436; color: #323436;
...@@ -47,7 +53,8 @@ ...@@ -47,7 +53,8 @@
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.change_btn{
.change_btn {
width: 134rpx; width: 134rpx;
height: 48rpx; height: 48rpx;
background: rgba(53, 180, 238, .1); background: rgba(53, 180, 238, .1);
...@@ -58,6 +65,7 @@ ...@@ -58,6 +65,7 @@
justify-content: center; justify-content: center;
border-radius: 24rpx; border-radius: 24rpx;
} }
.user-info { .user-info {
padding: 0 50rpx; padding: 0 50rpx;
} }
...@@ -72,7 +80,7 @@ ...@@ -72,7 +80,7 @@
margin: 4rpx; margin: 4rpx;
} }
.scene_box{ .scene_box {
margin: 20rpx; margin: 20rpx;
margin-top: 48rpx; margin-top: 48rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -89,24 +97,24 @@ ...@@ -89,24 +97,24 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.select_item{ .select_item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.select_item .scene_message{ .select_item .scene_message {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.select_item .scene_icon{ .select_item .scene_icon {
width: 128rpx; width: 128rpx;
height: 128rpx; height: 128rpx;
margin-right: 24rpx; margin-right: 24rpx;
} }
.select_item .scene_text .name{ .select_item .scene_text .name {
color: #333333; color: #333333;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
...@@ -114,7 +122,7 @@ ...@@ -114,7 +122,7 @@
align-items: center; align-items: center;
} }
.select_item .scene_text .name .name_tips{ .select_item .scene_text .name .name_tips {
width: 64rpx; width: 64rpx;
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
...@@ -127,17 +135,83 @@ ...@@ -127,17 +135,83 @@
margin-left: 4rpx; margin-left: 4rpx;
} }
.select_item .scene_text .tips{ .select_item .scene_text .tips {
font-size: 24rpx; font-size: 24rpx;
color: #9B9B9E; color: #9B9B9E;
margin-top: 8rpx; margin-top: 8rpx;
} }
.select_item .change_btn{ .select_item .change_btn {
margin: 0; 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: 20rpx;
margin-top: 48rpx; margin-top: 48rpx;
display: grid; display: grid;
...@@ -186,29 +260,29 @@ ...@@ -186,29 +260,29 @@
.set_box .item_4{ .set_box .item_4{
background: #FFF8F8; background: #FFF8F8;
} } */
.set_box .set_item .title{ .set_box .set_item .title {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
} }
.set_box .set_item .set_tips{ /* .set_box .set_item .set_tips {
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
color: #9B9B9E; color: #9B9B9E;
margin-top: 8rpx; margin-top: 8rpx;
text-overflow:ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
word-break: break-all; word-break: break-all;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
overflow: hidden; overflow: hidden;
} } */
.version_box{ .version_box {
margin-top: 28rpx; margin-top: 28rpx;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, 190rpx); grid-template-columns: repeat(auto-fill, 190rpx);
...@@ -217,7 +291,7 @@ ...@@ -217,7 +291,7 @@
color: #323436; color: #323436;
} }
.version_box .icon_box{ .version_box .icon_box {
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
background: #FAFAFA; background: #FAFAFA;
...@@ -225,7 +299,7 @@ ...@@ -225,7 +299,7 @@
position: relative; position: relative;
} }
.version_box .item{ .version_box .item {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
align-items: center; align-items: center;
...@@ -252,7 +326,8 @@ ...@@ -252,7 +326,8 @@
top: 8rpx; top: 8rpx;
left: -6rpx; left: -6rpx;
transform: rotate(-90deg); transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */ margin-left: -6rpx;
/* 调整尖角位置 */
border-width: 6rpx; border-width: 6rpx;
border-style: solid; border-style: solid;
border-color: transparent transparent #007bff transparent; border-color: transparent transparent #007bff transparent;
......
...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 3 let index = 1
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -107,6 +107,37 @@ module.exports = { ...@@ -107,6 +107,37 @@ module.exports = {
/** 报价单订单分状态统计信息 */ /** 报价单订单分状态统计信息 */
orderStatistics(data) { orderStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', data) return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', data)
} },
/** 校验员工绩效密码 */
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 // pages/equity/index.js
import { get4SStoreList } from '~/store/index' import { get4SStoreList } from '~/store/index'
import { merchantMode, waitinputorder,quotationRecording } from '../../api' import { merchantMode, waitinputorder, quotationRecording, isBusinessSchoolEnableCurrentUser } from '../../api'
const app = getApp() const app = getApp()
let time = null let time = null
Page({ Page({
...@@ -36,7 +36,7 @@ Page({ ...@@ -36,7 +36,7 @@ Page({
type: 2, type: 2,
typeText: '补录订单' typeText: '补录订单'
}, },
tabIndex: 0, tabIndex: 3,
pageShow: [true, false, false, false], pageShow: [true, false, false, false],
navBarHeight: 0, navBarHeight: 0,
showPicker: false, showPicker: false,
...@@ -127,8 +127,34 @@ Page({ ...@@ -127,8 +127,34 @@ Page({
init(userInfo) { init(userInfo) {
this.setData({ userInfo }) this.setData({ userInfo })
this.get4SStoreList() this.get4SStoreList()
this.getIsBusinessSchoolEnableCurrentUser()
// this.test() // 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() { get4SStoreList() {
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
let params = { let params = {
...@@ -167,38 +193,38 @@ Page({ ...@@ -167,38 +193,38 @@ Page({
}) })
}) })
}, },
// test (){ // test (){
// const params ={ // const params ={
// mode: 1, // mode: 1,
// insurancePrice: 0, // insurancePrice: 0,
// outTradeNo: '0120230111614687537054883840', // outTradeNo: '0120230111614687537054883840',
// referrerId: '390664aa685c4c43855f5b80122affa3', // referrerId: '390664aa685c4c43855f5b80122affa3',
// referrer: '负责人', // referrer: '负责人',
// quotedPriceUpdate: 47600, // quotedPriceUpdate: 47600,
// minEquityPrice: 1, // minEquityPrice: 1,
// goodsId: 687, // goodsId: 687,
// goodsName: '测试2.0商品', // goodsName: '测试2.0商品',
// merchantId4s: 44211468, // merchantId4s: 44211468,
// merchantName4s: '明明长岭4s店A', // merchantName4s: '明明长岭4s店A',
// owner:{ // owner:{
// owner: 'test', // owner: 'test',
// phone: 15626599738, // phone: 15626599738,
// // certificateNo: '', // // certificateNo: '',
// // carVin: '', // // carVin: '',
// seat: 5, // seat: 5,
// price: 2222200, // price: 2222200,
// confirmStatus: false, // confirmStatus: false,
// saveStatus: false, // saveStatus: false,
// }, // },
// check: true, // check: true,
// } // }
// console.log(params); // console.log(params);
// quotationRecording(params).then((result) => { // quotationRecording(params).then((result) => {
// console.log(result); // console.log(result);
// }).catch((err) => { // }).catch((err) => {
// }); // });
// }, // },
// getStoreList(e) { // getStoreList(e) {
// // 获取园区店下的4s店数据 超管拉全部数据 // // 获取园区店下的4s店数据 超管拉全部数据
// let { userInfo } = this.data // let { userInfo } = this.data
...@@ -249,27 +275,11 @@ Page({ ...@@ -249,27 +275,11 @@ Page({
[`pageShow[${tabIndex}]`]: true, [`pageShow[${tabIndex}]`]: true,
tabIndex tabIndex
}) })
const showPageNum = [1,2] const showPageNum = [1, 2]
showPageNum.includes(tabIndex)&& wx.$eventbus.emit('page_show') // 初始化tab底部条没有的问题 showPageNum.includes(tabIndex) && wx.$eventbus.emit('page_show') // 初始化tab底部条没有的问题
this.initList() 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() { initList() {
// console.log('this.getMerchant4SMode()');
this.getMerchant4SMode() this.getMerchant4SMode()
let { tabIndex } = this.data let { tabIndex } = this.data
// console.log(this.selectComponent(`#page-${tabIndex}`)?.onLoad,'this.selectComponent(`#page-${tabIndex}`)?.onLoad'); // console.log(this.selectComponent(`#page-${tabIndex}`)?.onLoad,'this.selectComponent(`#page-${tabIndex}`)?.onLoad');
...@@ -300,13 +310,13 @@ Page({ ...@@ -300,13 +310,13 @@ Page({
}, },
// 10s轮询一次待补录 // 10s轮询一次待补录
getWaitOrder() { getWaitOrder() {
let { isStaff,mode } = this.data let { isStaff, mode } = this.data
// console.log('isStaff', isStaff) // console.log('isStaff', isStaff)
// let thisPage = wx.$router.getPageInstance() // let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.route, ' thisPage.route') // console.log(thisPage.route, ' thisPage.route')
// thisPage.route == 'tabIndex/pages/index/index' && // thisPage.route == 'tabIndex/pages/index/index' &&
time&&clearTimeout(time)//解决切换门店时 需要清除计时器 time && clearTimeout(time) //解决切换门店时 需要清除计时器
if ( isStaff&&mode) { if (isStaff && mode) {
waitinputorder() waitinputorder()
.then(result => { .then(result => {
// console.log(result) // console.log(result)
...@@ -320,19 +330,18 @@ Page({ ...@@ -320,19 +330,18 @@ Page({
}) })
.catch(err => {}) .catch(err => {})
} }
}, },
onRoute(options) { onRoute(options) {
console.log(options,'options'); console.log(options, 'options')
if (options&&options.tabIndex) { if (options && options.tabIndex) {
this.changeTabBar({detail:options.tabIndex}) this.changeTabBar({ detail: options.tabIndex })
} }
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options,'onLoad'); console.log(options, 'onLoad')
}, },
/** /**
......
<!-- pages/equity/index.wxml --> <!-- 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"> <navigation-bar
<view class="navigation-title" wx:if="{{tabIndex != 3}}"> 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 class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}</view>
</view> </view>
<view wx:else>我的</view> <view wx:else>我的</view>
</navigation-bar> </navigation-bar>
<!-- style="margin-top:{{navBarHeight}}px" --> <!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout {{waitInputCount && mode == 1?'tipsHeigh':''}}" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view
class="layout {{ waitInputCount && mode == 1?'tipsHeigh':'' }}"
style="padding-top:{{ navBarHeight }}px;position: relative;"
>
<block wx:if="{{ navBarHeight && showPage }}"> <block wx:if="{{ navBarHeight && showPage }}">
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" mode="{{ mode }}"></home> <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 }}" /> <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' }}" /> <equity-list
<tab-mine id="page-3" class="pagedetail {{ tabIndex == 3?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine> 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> </block>
</view> </view>
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0}}"> <view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0 }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" />
</view> </view>
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" /> <custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<!-- <store-picker items="{{ storeListRange }}" show="{{ showPicker }}" bindsearch="getStoreList" bindconfirm="changePicker" /> --> <!-- <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 <!-- <order-switchPopup
bind:close="closeSwitchPopup" bind:close="closeSwitchPopup"
bind:success="navigator" bind:success="navigator"
...@@ -27,4 +47,4 @@ ...@@ -27,4 +47,4 @@
wx:if="{{ showOrderpop }}" wx:if="{{ showOrderpop }}"
flag="{{ showOrderpop }}" flag="{{ showOrderpop }}"
/> --> /> -->
<order-no-popup wx:if="{{tipsProps}}" show="{{tipsProps}}" title="请选择支付订单号" bind:success="navigator" orderNoList="{{orderNoList}}" />
\ No newline at end of file \ 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 \ No newline at end of file
import constantList from './constantList' import constantList from './constantList'
import data from './data' import data from './data'
import Util from '~/utils/util' import Util from '~/utils/util'
const tireObjList = [{ const tireObjList = [
{
attr: 'leftFrontDTO', attr: 'leftFrontDTO',
sort: 1, sort: 0,
attributeGroup: 'tireDTONew', attributeGroup: 'tireDTONew',
attributeName: 'tireDTONew' attributeName: 'tireDTONew'
}, { },
{
attr: 'rightFrontDTO', attr: 'rightFrontDTO',
sort: 2, sort: 1,
attributeGroup: 'tireDTONew', attributeGroup: 'tireDTONew',
attributeName: 'tireDTONew' attributeName: 'tireDTONew'
}, { },
{
attr: 'leftRearDTO', attr: 'leftRearDTO',
sort: 3, sort: 2,
attributeGroup: 'tireDTONew', attributeGroup: 'tireDTONew',
attributeName: 'tireDTONew' attributeName: 'tireDTONew'
}, { },
{
attr: 'rightRearDTO', attr: 'rightRearDTO',
sort: 4, sort: 3,
attributeGroup: 'tireDTONew', attributeGroup: 'tireDTONew',
attributeName: 'tireDTONew' attributeName: 'tireDTONew'
}, { },
{
attr: 'leftFrontBatch', attr: 'leftFrontBatch',
sort: 1, sort: 0,
attributeGroup: 'tireBatchNew', attributeGroup: 'tireBatchNew',
attributeName: 'tireBatchNew' attributeName: 'tireBatchNew'
}, { },
{
attr: 'rightFrontBatch', attr: 'rightFrontBatch',
sort: 2, sort: 1,
attributeGroup: 'tireBatchNew', attributeGroup: 'tireBatchNew',
attributeName: 'tireBatchNew' attributeName: 'tireBatchNew'
}, { },
{
attr: 'leftRearBatch', attr: 'leftRearBatch',
sort: 3, sort: 2,
attributeGroup: 'tireBatchNew', attributeGroup: 'tireBatchNew',
attributeName: 'tireBatchNew' attributeName: 'tireBatchNew'
}, { },
{
attr: 'rightRearBatch', attr: 'rightRearBatch',
sort: 4, sort: 3,
attributeGroup: 'tireBatchNew', attributeGroup: 'tireBatchNew',
attributeName: 'tireBatchNew' attributeName: 'tireBatchNew'
}] }
]
const formRule = { const formRule = {
vin: [ vin: [
...@@ -288,14 +297,16 @@ const secondObj = { ...@@ -288,14 +297,16 @@ const secondObj = {
labelWidth: '0rpx', labelWidth: '0rpx',
noCellHeight: true, noCellHeight: true,
// 权益表单 // 权益表单
equityProFormList: [{ equityProFormList: [
{
label: '服务年限', label: '服务年限',
name: 'servicePeriod', name: 'servicePeriod',
type: 'input', type: 'input',
disabled: true, disabled: true,
suffix: '年', suffix: '年',
noCellHeight: true noCellHeight: true
}, { },
{
label: '无忧保障服务费', label: '无忧保障服务费',
name: 'actualSalesPrice', name: 'actualSalesPrice',
placeholder: '非必填', placeholder: '非必填',
...@@ -309,7 +320,8 @@ const secondObj = { ...@@ -309,7 +320,8 @@ const secondObj = {
labelWidth: '220rpx', labelWidth: '220rpx',
maxlength: '9', maxlength: '9',
noCellHeight: true noCellHeight: true
}, { },
{
label: '无忧卡卡号', label: '无忧卡卡号',
name: 'card', name: 'card',
type: 'input', type: 'input',
...@@ -321,26 +333,30 @@ const secondObj = { ...@@ -321,26 +333,30 @@ const secondObj = {
attr: 'entityCardFlag', attr: 'entityCardFlag',
list: ['Y'] list: ['Y']
} }
}], }
],
// 新能源3电和6大件表单 // 新能源3电和6大件表单
energyProFormList: [{ energyProFormList: [
{
label: '服务年限', label: '服务年限',
name: 'servicePeriod', name: 'servicePeriod',
type: 'input', type: 'input',
disabled: true, disabled: true,
suffix: '年', suffix: '年',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;" cellStyle: 'height: 90rpx;'
}, { },
{
label: '车辆登记日期', label: '车辆登记日期',
name: 'vehicleRegistrationDate', name: 'vehicleRegistrationDate',
type: 'pickerTime', type: 'pickerTime',
end: Util.tsFormatTime(new Date(), 'Y-M-D'), end: Util.tsFormatTime(new Date(), 'Y-M-D'),
labelWidth: '220rpx', labelWidth: '220rpx',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;", cellStyle: 'height: 90rpx;',
haveArrow: true haveArrow: true
}, { },
{
label: '车型排量', label: '车型排量',
name: 'vehicleDisplacement', name: 'vehicleDisplacement',
type: 'input', type: 'input',
...@@ -352,14 +368,16 @@ const secondObj = { ...@@ -352,14 +368,16 @@ const secondObj = {
maxVal: 100 maxVal: 100
}, },
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;" cellStyle: 'height: 90rpx;'
}, { },
{
label: '原厂质保', label: '原厂质保',
name: 'warranty', name: 'warranty',
type: 'slot', type: 'slot',
noCellHeight: true, noCellHeight: true,
cellBoxStyle: "width: 100%;" cellBoxStyle: 'width: 100%;'
}, { },
{
label: '合同购买时里程数', label: '合同购买时里程数',
name: 'mileage', name: 'mileage',
type: 'input', type: 'input',
...@@ -372,27 +390,31 @@ const secondObj = { ...@@ -372,27 +390,31 @@ const secondObj = {
}, },
labelWidth: '240rpx', labelWidth: '240rpx',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx; border-bottom: 0;" cellStyle: 'height: 90rpx; border-bottom: 0;'
}], }
],
// 燃油车4大件 // 燃油车4大件
oilProFormList: [{ oilProFormList: [
{
label: '服务年限', label: '服务年限',
name: 'servicePeriod', name: 'servicePeriod',
type: 'input', type: 'input',
disabled: true, disabled: true,
suffix: '年', suffix: '年',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;" cellStyle: 'height: 90rpx;'
}, { },
{
label: '车辆登记日期', label: '车辆登记日期',
name: 'vehicleRegistrationDate', name: 'vehicleRegistrationDate',
type: 'pickerTime', type: 'pickerTime',
end: Util.tsFormatTime(new Date(), 'Y-M-D'), end: Util.tsFormatTime(new Date(), 'Y-M-D'),
labelWidth: '220rpx', labelWidth: '220rpx',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;", cellStyle: 'height: 90rpx;',
haveArrow: true haveArrow: true
}, { },
{
label: '车辆使用性质', label: '车辆使用性质',
name: 'vehicleNature', name: 'vehicleNature',
labelName: 'vehicleNatureName', labelName: 'vehicleNatureName',
...@@ -402,14 +424,16 @@ const secondObj = { ...@@ -402,14 +424,16 @@ const secondObj = {
optionLabel: 'optionLabel', optionLabel: 'optionLabel',
labelWidth: '180rpx', labelWidth: '180rpx',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;" cellStyle: 'height: 90rpx;'
}, { },
{
label: '变速箱类型', label: '变速箱类型',
name: 'gearbox', name: 'gearbox',
type: 'slot', type: 'slot',
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;" cellStyle: 'height: 90rpx;'
}, { },
{
label: '车型排量', label: '车型排量',
name: 'vehicleDisplacement', name: 'vehicleDisplacement',
type: 'input', type: 'input',
...@@ -420,14 +444,16 @@ const secondObj = { ...@@ -420,14 +444,16 @@ const secondObj = {
maxVal: 100 maxVal: 100
}, },
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx;" cellStyle: 'height: 90rpx;'
}, { },
{
label: '原厂质保', label: '原厂质保',
name: 'warranty', name: 'warranty',
type: 'slot', type: 'slot',
noCellHeight: true, noCellHeight: true,
cellBoxStyle: "width: 100%;" cellBoxStyle: 'width: 100%;'
}, { },
{
label: '合同购买时里程数', label: '合同购买时里程数',
name: 'mileage', name: 'mileage',
type: 'input', type: 'input',
...@@ -438,8 +464,9 @@ const secondObj = { ...@@ -438,8 +464,9 @@ const secondObj = {
minVal: 0 minVal: 0
}, },
noCellHeight: true, noCellHeight: true,
cellStyle: "height: 90rpx; border-bottom: 0;" cellStyle: 'height: 90rpx; border-bottom: 0;'
}], }
]
}, },
// { // {
// label: '服务年限', // label: '服务年限',
...@@ -476,13 +503,15 @@ const secondObj = { ...@@ -476,13 +503,15 @@ const secondObj = {
label: '', label: '',
name: 'tireRule', name: 'tireRule',
type: 'otherSlot', type: 'otherSlot',
list: [{ list: [
{
label: '轮胎规格', label: '轮胎规格',
name: 'tireScale', name: 'tireScale',
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
labelWidth: '85px' labelWidth: '85px'
}] }
]
}, },
{ {
label: '', label: '',
...@@ -493,11 +522,13 @@ const secondObj = { ...@@ -493,11 +522,13 @@ const secondObj = {
tireObj: { tireObj: {
tire: '' tire: ''
}, },
labelStyle: "display:none", labelStyle: 'display:none',
tireItem: [{ tireItem: [
{
name: '左前胎', name: '左前胎',
imgUrl: '1', imgUrl: '1',
list: [{ list: [
{
label: '轮胎DOT号', label: '轮胎DOT号',
name: 'leftFrontDTO', name: 'leftFrontDTO',
type: 'input', type: 'input',
...@@ -510,10 +541,13 @@ const secondObj = { ...@@ -510,10 +541,13 @@ const secondObj = {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
labelWidth: '85px' labelWidth: '85px'
}] }
}, { ]
},
{
name: '右前胎', name: '右前胎',
list: [{ list: [
{
label: '轮胎DOT号', label: '轮胎DOT号',
name: 'rightFrontDTO', name: 'rightFrontDTO',
type: 'input', type: 'input',
...@@ -526,10 +560,13 @@ const secondObj = { ...@@ -526,10 +560,13 @@ const secondObj = {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
labelWidth: '85px' labelWidth: '85px'
}] }
}, { ]
},
{
name: '左后胎', name: '左后胎',
list: [{ list: [
{
label: '轮胎DOT号', label: '轮胎DOT号',
name: 'leftRearDTO', name: 'leftRearDTO',
type: 'input', type: 'input',
...@@ -542,10 +579,13 @@ const secondObj = { ...@@ -542,10 +579,13 @@ const secondObj = {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
labelWidth: '85px' labelWidth: '85px'
}] }
}, { ]
},
{
name: '右后胎', name: '右后胎',
list: [{ list: [
{
label: '轮胎DOT号', label: '轮胎DOT号',
name: 'rightRearDTO', name: 'rightRearDTO',
type: 'input', type: 'input',
...@@ -558,8 +598,10 @@ const secondObj = { ...@@ -558,8 +598,10 @@ const secondObj = {
type: 'input', type: 'input',
maxlength: '20', maxlength: '20',
labelWidth: '85px' labelWidth: '85px'
}] }
}] ]
}
]
}, },
{ {
label: '购车类型', label: '购车类型',
...@@ -576,13 +618,15 @@ const secondObj = { ...@@ -576,13 +618,15 @@ const secondObj = {
type: 'input' type: 'input'
} }
], ],
infoFormList: [{ infoFormList: [
{
label: ' ', label: ' ',
name: 'upload', name: 'upload',
type: 'slot', type: 'slot',
labelWidth: '0rpx', labelWidth: '0rpx',
noCellHeight: true, noCellHeight: true
}], }
],
storeFormList: [ storeFormList: [
{ {
label: '店面名称', label: '店面名称',
......
// 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 \ 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 \ 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 \ 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 \ 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 \ No newline at end of file
...@@ -41,27 +41,60 @@ ...@@ -41,27 +41,60 @@
</view> </view>
</view> </view>
</view> </view>
<block> <view class="set_box">
<!-- <view class="scene_box"> <view class="set_item " bindtap="showWork">
<view class="title">场景</view> <view class="title">工位设置
<view class="select_item"> <!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
<view class="scene_message">
<view class="scene_icon">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{userInfo.sceneType}}.png" mode=""/>
</view> </view>
<view class="scene_text"> <!-- font-size: 32rpx; -->
<view class="name"> <view class="set_tips" wx:if="{{workCount>0}}"><text style="color: #333333; font-weight: 500;">{{workCount}}</text> 个</view>
<view>{{selectedSceneName}}</view> <view class="set_tips" wx:else>根据门店设置工位数</view>
<view class="name_tips">当前</view> <image class="icon_image" src="../../images/right.png" mode="" />
</view> </view>
<view class="tips">{{selectedSceneDesc}}</view> <view class="set_item " bindtap="showMerchantPop">
<view class="title">录单设置
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view> </view>
<view class="set_tips">设置录单必填项</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view> </view>
<view class="change_btn" bindtap="changeScene">切换场景</view> <view class="set_item " bindtap="changeScene">
<view class="title">场景切换
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view> </view>
</view> --> <view class="set_tips">{{selectedSceneName}}</view>
<view class="set_box"> <image class="icon_image" src="../../images/right.png" mode="" />
<view class="set_item item_1" bindtap="showWork"> </view>
<view class="set_item " bindtap="goReservationCouponPage">
<view class="title">领券预约
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置接待电话</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="goTechnicianSetupPage">
<view class="title">技师设置
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置园区店技师</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="goConstructSetupPage">
<view class="title">完成施工
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">设置施工完成上传图片</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<view class="set_item " bindtap="goVersionPage">
<view class="title">更新日志
<!-- <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> -->
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="../../images/right.png" mode="" />
</view>
<!-- <view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置 <view class="title">工位设置
<image class="arrow_icon" src="../../images/arrow_icon.png" mode="" /> <image class="arrow_icon" src="../../images/arrow_icon.png" mode="" />
</view> </view>
...@@ -110,18 +143,8 @@ ...@@ -110,18 +143,8 @@
</view> </view>
<view class="set_tips">设置施工完成上传图片</view> <view class="set_tips">设置施工完成上传图片</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_7.png" mode="" /> <image class="icon_image" src="{{IMG_URL}}mine_icon_7.png" mode="" />
</view>
</view>
<!-- <view class="version_box" bindtap="goVersionPage">
<view class="item">
<view class="icon_box">
<view class="is_new" hidden="{{!versionData.isNew}}">NEW</view>
</view>
<view>更新日志</view>
</view>
</view> --> </view> -->
</block> </view>
<view class="logout-box"> <view class="logout-box">
<view class="logout text-center" bindtap="logout">退出账号</view> <view class="logout text-center" bindtap="logout">退出账号</view>
</view> </view>
......
/* tabComponents/pages/index/index.wxss */ /* tabComponents/pages/index/index.wxss */
page {
background: #F7F8FA;
}
.main { .main {
padding-bottom: 80rpx; padding-bottom: 80rpx;
background: #FFFFFF; /* background: #FFFFFF; */
} }
.bg { .bg {
...@@ -19,7 +23,7 @@ ...@@ -19,7 +23,7 @@
.user-box { .user-box {
position: relative; position: relative;
border-radius: 32rpx 32rpx 0 0; border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF; /* background: #FFFFFF; */
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
} }
...@@ -35,18 +39,21 @@ ...@@ -35,18 +39,21 @@
top: -32rpx; top: -32rpx;
border: 4rpx solid #fff; border: 4rpx solid #fff;
} }
.name_box{
.name_box {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx; padding: 20rpx 32rpx 40rpx 182rpx;
} }
.name_box .name { .name_box .name {
font-size: 40rpx; font-size: 40rpx;
color: #323436; color: #323436;
font-weight: 600; font-weight: 600;
} }
.change_btn{
.change_btn {
width: 134rpx; width: 134rpx;
height: 48rpx; height: 48rpx;
background: rgba(52, 123, 255, .1); background: rgba(52, 123, 255, .1);
...@@ -57,6 +64,7 @@ ...@@ -57,6 +64,7 @@
justify-content: center; justify-content: center;
border-radius: 24rpx; border-radius: 24rpx;
} }
.user-info { .user-info {
padding: 0 50rpx; padding: 0 50rpx;
} }
...@@ -70,11 +78,12 @@ ...@@ -70,11 +78,12 @@
font-size: 24rpx; font-size: 24rpx;
margin: 4rpx; margin: 4rpx;
} }
.item.flex { .item.flex {
display: flex; display: flex;
} }
.scene_box{ .scene_box {
margin: 20rpx; margin: 20rpx;
margin-top: 48rpx; margin-top: 48rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -91,24 +100,24 @@ ...@@ -91,24 +100,24 @@
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.select_item{ .select_item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.select_item .scene_message{ .select_item .scene_message {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.select_item .scene_icon{ .select_item .scene_icon {
width: 128rpx; width: 128rpx;
height: 128rpx; height: 128rpx;
margin-right: 24rpx; margin-right: 24rpx;
} }
.select_item .scene_text .name{ .select_item .scene_text .name {
color: #333333; color: #333333;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
...@@ -116,7 +125,7 @@ ...@@ -116,7 +125,7 @@
align-items: center; align-items: center;
} }
.select_item .scene_text .name .name_tips{ .select_item .scene_text .name .name_tips {
width: 64rpx; width: 64rpx;
height: 30rpx; height: 30rpx;
line-height: 30rpx; line-height: 30rpx;
...@@ -129,52 +138,66 @@ ...@@ -129,52 +138,66 @@
margin-left: 4rpx; margin-left: 4rpx;
} }
.select_item .scene_text .tips{ .select_item .scene_text .tips {
font-size: 24rpx; font-size: 24rpx;
color: #9B9B9E; color: #9B9B9E;
margin-top: 8rpx; margin-top: 8rpx;
} }
.select_item .change_btn{ .select_item .change_btn {
margin: 0; margin: 0;
} }
.set_box{ .set_box {
margin: 20rpx; margin: 20rpx;
margin-top: 48rpx; margin-top: 48rpx;
display: grid; background: #FFFFFF;
border-radius: 16rpx;
display: flex;
flex-direction: column;
/* display: grid;
grid-template-columns: repeat(auto-fill, 344rpx); grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center; */
} }
.set_box .set_item{ .set_box .set_item {
box-sizing: border-box; box-sizing: border-box;
width: 344rpx; /* width: 344rpx;
height: 168rpx; height: 168rpx; */
border-radius: 16rpx; width: 710rpx;
height: 88rpx;
padding: 24rpx 32rpx;
display: flex; display: flex;
align-items: center;
/* border-radius: 16rpx; */
/* display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
padding: 32rpx; padding: 32rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
position: relative; position: relative; */
} }
.set_box .set_item .icon_image{ .set_box .set_item+.set_item {
width: 120rpx; border-top: 1rpx solid #E4E8EE;
height: 120rpx; }
position: absolute;
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0; */
} }
.set_box .set_item .title .arrow_icon{ .set_box .set_item .title .arrow_icon {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
} }
.set_box .item_1{ /* .set_box .item_1{
background: #F8FFFD; background: #F8FFFD;
} }
...@@ -197,23 +220,24 @@ ...@@ -197,23 +220,24 @@
} }
.set_box .item_7{ .set_box .item_7{
background: #F6FCFE; background: #F6FCFE;
} } */
.set_box .set_item .title{ .set_box .set_item .title {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
letter-spacing: 0; letter-spacing: 0;
} }
.set_box .set_item .set_tips{ .set_box .set_item .set_tips {
font-weight: 400; font-weight: 400;
font-size: 24rpx; font-size: 24rpx;
color: #9B9B9E; color: #9B9B9E;
margin-top: 8rpx; /* margin-top: 8rpx; */
margin-left: auto;
} }
.version_box{ .version_box {
margin-top: 28rpx; margin-top: 28rpx;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, 190rpx); grid-template-columns: repeat(auto-fill, 190rpx);
...@@ -222,7 +246,7 @@ ...@@ -222,7 +246,7 @@
color: #323436; color: #323436;
} }
.version_box .icon_box{ .version_box .icon_box {
width: 90rpx; width: 90rpx;
height: 90rpx; height: 90rpx;
background: #FAFAFA; background: #FAFAFA;
...@@ -230,7 +254,7 @@ ...@@ -230,7 +254,7 @@
position: relative; position: relative;
} }
.version_box .item{ .version_box .item {
display: flex; display: flex;
flex-flow: column; flex-flow: column;
align-items: center; align-items: center;
...@@ -257,7 +281,8 @@ ...@@ -257,7 +281,8 @@
top: 8rpx; top: 8rpx;
left: -6rpx; left: -6rpx;
transform: rotate(-90deg); transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */ margin-left: -6rpx;
/* 调整尖角位置 */
border-width: 6rpx; border-width: 6rpx;
border-style: solid; border-style: solid;
border-color: transparent transparent #007bff transparent; border-color: transparent transparent #007bff transparent;
...@@ -402,7 +427,7 @@ ...@@ -402,7 +427,7 @@
opacity: .5; opacity: .5;
} }
.logout-box{ .logout-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
...@@ -428,6 +453,7 @@ ...@@ -428,6 +453,7 @@
.set_box_grass { .set_box_grass {
margin-top: 20rpx; margin-top: 20rpx;
} }
.m-t-0 { .m-t-0 {
margin-top: 20rpx; margin-top: 20rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,6 +4,20 @@ ...@@ -4,6 +4,20 @@
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
"name": "商学院",
"pathName": "packageEquity/pages/collegeScene/collegeScene",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "权益-个人中心",
"pathName": "packageEquity/pages/TabBar/equityPage",
"query": "",
"launchMode": "default",
"scene": null
},
{
"name": "创建权益订单", "name": "创建权益订单",
"pathName": "packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple", "pathName": "packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"query": "", "query": "",
......
...@@ -78,6 +78,9 @@ Page({ ...@@ -78,6 +78,9 @@ Page({
// orderInfo.orderSource = type // orderInfo.orderSource = type
orderInfo.associateOrderCode = orderInfo.orderCode orderInfo.associateOrderCode = orderInfo.orderCode
delete orderInfo.orderCode delete orderInfo.orderCode
if (orderInfo.technicianList) {
delete orderInfo.technicianList
}
orderInfo.selectPayType = 2 orderInfo.selectPayType = 2
// filmOrder 1精品升级 // filmOrder 1精品升级
let urlName = orderInfo?.filmOrder == 1 ? 'premiumUpgrade' : 'createOrder' let urlName = orderInfo?.filmOrder == 1 ? 'premiumUpgrade' : 'createOrder'
......
...@@ -62,8 +62,8 @@ const domain_items = { ...@@ -62,8 +62,8 @@ const domain_items = {
// dj: 'http://192.168.1.104:8292', //叶立庆 // dj: 'http://192.168.1.104:8292', //叶立庆
// dj: 'http://192.168.1.169:8292',//蔡远明 // dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣 // dj: 'http://192.168.1.174:8292',//范富荣
dj: 'http://192.168.1.88:8292', //周杭 // dj: 'http://192.168.1.88:8292', //周杭
// dj: 'http://192.168.1.53:8292',//陈希 dj: 'http://192.168.1.116:8292',//陈希
// dj:'http://192.168.2.59:8292/',//周立明 // dj:'http://192.168.2.59:8292/',//周立明
// scrm: 'http://192.168.1.165:8292' // scrm: 'http://192.168.1.165:8292'
scrm: 'https://scrm.dev.glsx.com.cn' 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!