Commit e102b3d5 by 前端

Merge branch 'develop' into 'SAAS+V4.35.0-0305'

合并线上代码

See merge request !213
2 parents b1a0eb1f e92b4cc2
Showing 37 changed files with 1813 additions and 362 deletions
...@@ -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
......
...@@ -204,5 +204,11 @@ module.exports = { ...@@ -204,5 +204,11 @@ module.exports = {
// 分页获取场景值关联4s店数据 // 分页获取场景值关联4s店数据
getMerchantListPage(data) { getMerchantListPage(data) {
return api.post('dj.api.scenemerchantref.listShop4sByRef.page', data) return api.post('dj.api.scenemerchantref.listShop4sByRef.page', data)
} },
/** 查询员工或园区店商户是否开启了商学院 */
isBusinessSchoolEnableCurrentUser(data) {
return api.post('dj.api.businessSchool.isBusinessSchoolEnable.currentUser', data)
},
} }
...@@ -63,7 +63,7 @@ App({ ...@@ -63,7 +63,7 @@ App({
wx.onMemoryWarning(function () { wx.onMemoryWarning(function () {
console.log('onMemoryWarningReceive') console.log('onMemoryWarningReceive')
}) })
console.log('lifeshow') // console.log('lifeshow')
getUpdateManager() getUpdateManager()
if (options) { if (options) {
...@@ -115,6 +115,7 @@ App({ ...@@ -115,6 +115,7 @@ App({
that.globalData.yqdInfo = {} that.globalData.yqdInfo = {}
that.globalData.YQorderSetting = '' that.globalData.YQorderSetting = ''
that.globalData.YQList = '' that.globalData.YQList = ''
that.globalData.businessSchoolScene = ''
util.removeStorage() util.removeStorage()
wx.$relogin = relogin wx.$relogin = relogin
router.reLaunch('pages.wxLogin') router.reLaunch('pages.wxLogin')
...@@ -133,6 +134,7 @@ App({ ...@@ -133,6 +134,7 @@ App({
this.globalData.yqdInfo = {} this.globalData.yqdInfo = {}
this.globalData.YQorderSetting = '' this.globalData.YQorderSetting = ''
this.globalData.YQList = '' this.globalData.YQList = ''
this.globalData.businessSchoolScene = ''
util.removeStorage() util.removeStorage()
removeSystemStorage() removeSystemStorage()
wx.$relogin = relogin wx.$relogin = relogin
...@@ -147,6 +149,7 @@ App({ ...@@ -147,6 +149,7 @@ App({
isStaff: false, isStaff: false,
YQorderSetting: '', YQorderSetting: '',
count: '', count: '',
versionData: null versionData: null,
businessSchoolScene: ''
} }
}) })
...@@ -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;
} }
...@@ -6,8 +10,8 @@ ...@@ -6,8 +10,8 @@
.bg { .bg {
width: 100%; width: 100%;
height: 350rpx; height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png') no-repeat; background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png');
background-size: 100% 526rpx; background-size: 100% 100%;
background-color: #fff; background-color: #fff;
position: fixed; position: fixed;
left: 0; left: 0;
...@@ -18,9 +22,10 @@ ...@@ -18,9 +22,10 @@
.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;
background: #F7F8FA;
} }
.user-avatar { .user-avatar {
...@@ -32,12 +37,14 @@ ...@@ -32,12 +37,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 +54,8 @@ ...@@ -47,7 +54,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 +66,7 @@ ...@@ -58,6 +66,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 +81,7 @@ ...@@ -72,7 +81,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 +98,24 @@ ...@@ -89,24 +98,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 +123,7 @@ ...@@ -114,7 +123,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 +136,83 @@ ...@@ -127,17 +136,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 +261,29 @@ ...@@ -186,29 +261,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 +292,7 @@ ...@@ -217,7 +292,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 +300,7 @@ ...@@ -225,7 +300,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 +327,8 @@ ...@@ -252,7 +327,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'
import { getBusinessSchoolScene } from '~/store/index'
const app = getApp() const app = getApp()
let time = null let time = null
Page({ Page({
...@@ -122,13 +123,39 @@ Page({ ...@@ -122,13 +123,39 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
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 {
getBusinessSchoolScene({})
.then(res => {
console.log(res, 'res')
// let { code, data } = res
// if (code == 0) {
this.setData({
enableBusinessSchool: res
})
// }
})
.catch(err => {
console.log(err)
})
}
},
get4SStoreList() { get4SStoreList() {
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
let params = { let params = {
...@@ -167,38 +194,38 @@ Page({ ...@@ -167,38 +194,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 +276,11 @@ Page({ ...@@ -249,27 +276,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 +311,13 @@ Page({ ...@@ -300,13 +311,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)
...@@ -318,27 +329,26 @@ Page({ ...@@ -318,27 +329,26 @@ 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')
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -367,15 +377,15 @@ Page({ ...@@ -367,15 +377,15 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
<!-- 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 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" 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 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> <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 +27,4 @@ ...@@ -27,4 +27,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: '店面名称',
......
...@@ -176,7 +176,7 @@ const firstObjSimple = { ...@@ -176,7 +176,7 @@ const firstObjSimple = {
label: '姓名', label: '姓名',
name: 'owner', name: 'owner',
type: 'input', type: 'input',
maxlength: '10', maxlength: '50',
noCellHeight: true, noCellHeight: true,
fieldType: 'textarea', fieldType: 'textarea',
required: true, required: true,
......
...@@ -231,7 +231,9 @@ ...@@ -231,7 +231,9 @@
align-items: center; align-items: center;
font-size: 32rpx; font-size: 32rpx;
font-weight: 600; font-weight: 600;
max-width: 60%;
color: #333333; color: #333333;
word-break: break-all;
} }
.list .icon-sex { .list .icon-sex {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="box"> <view class="box">
<view class="customerName owner"> <view class="customerName owner">
<gl-cell border valueAlign="right" label="车主姓名" requiredAfter labelWidth="140rpx" required> <gl-cell border valueAlign="right" label="车主姓名" requiredAfter labelWidth="140rpx" required>
<input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="16" value="{{orderObj.owner.owner}}" bindinput="input" data-name="owner.owner" always-embed></input> <input placeholder="点击输入" class="input" placeholder-class="placeholder-class" maxlength="50" value="{{orderObj.owner.owner}}" bindinput="input" data-name="owner.owner" always-embed></input>
</gl-cell> </gl-cell>
</view> </view>
<!-- <gl-cell border label="性别" valueAlign="right" labelWidth="140rpx"> <!-- <gl-cell border label="性别" valueAlign="right" labelWidth="140rpx">
......
// packageEquity/pages/collegeScene/collegeScene.js
import { staffInfo, orderPerformanceDetail, performancePassword, performancePasswordCheck } from '../../api'
import { ImgUrl } from '~/config.js'
// setConfigInfo
const app = getApp()
Page({
options: {
// multipleSlots: true, // 在组件定义时的选项中启用多 slot 支持
styleIsolation: 'shared' // 自定义覆盖vant样式
},
/**
* 页面的初始数据
*/
data: {
indicatorDots: true,
vertical: false,
autoplay: false,
interval: 2000,
duration: 500,
current: 0,
ImgUrl: ImgUrl + '/miniProgram/',
isStaff: true,
forbid: true,
hasStaffPassword: false,
passwordPop: false,
isSetPassword: true,
orderList: [],
orderListObj: [
{
label: '下单时间',
key: 'orderTimeLabel'
},
{
label: '支付时间',
key: 'paySuccessTimeLabel'
},
{
label: '客户姓名',
key: 'customerName'
},
{
label: '所属门店',
key: 'merchantName'
},
{
label: '转化员',
key: 'staffName'
},
{
label: '订单编号',
key: 'orderCode'
}
]
},
hideStaffInfo() {
// 判断是不是 员工,是关闭
let { isStaff } = this.data
if (isStaff) {
this.setData({
hasStaffPassword: false
})
}
},
bindchange(e) {
this.setData({ current: e.detail.current })
},
remarkConfirm() {
this.setData({
hasStaffPassword: true
})
},
viewPerformance() {
// 判断是第一次还是需要输入秘密
let { hasStaffPassword, staffInfoObj } = this.data
// if (userInfoObj.staffInfo.needSetPwd) {
this.setData({
passwordPop: true,
isSetPassword: staffInfoObj.staffInfo.needSetPwd
})
},
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('没有更多了')
}
},
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 || []
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 (userInfo.isSuper) {
data.staffInfo = {
entryDate: userInfo.createdDate,
staffName: userInfo.name
}
}
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)
item.height = item.staffDataList.length > 3 ? item.staffDataList.length * 70 + 120 : '300'
// console.log(Boolean(item.minimumWage && item.minimumWage > item.finalWage));
item.staffDataList = item.staffDataList.map((childItem) => {
if (Boolean(childItem.minimumWage && childItem.minimumWage > childItem.finalWage)) {
childItem.finalWage = childItem.minimumWage
// item.performanceWage = 0
childItem.hidePerformanceWage = true
} else {
childItem.finalWage = childItem.basicWage
}
return childItem
})
// 处理基本工资和提成
// 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]
// 如果title是2,那导师就是员工自己
if (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
},
back() {
// let { reLaunchPath } = this.data
// wx.$router.go(reLaunchPath)
wx.$router.back()
},
init(userInfo) {
const isStaff = app.globalData.isStaff
// let { userInfo } = this.data
// console.log(this.data, userInfo, 'userInfo')
this.setData({
isStaff: userInfo.isSuper ? false : isStaff,
hasStaffPassword: !isStaff ? true : false
})
this.getDetailInfo()
},
onRoute(options) {
// let { reLaunchPath, tabIndex } = options
// this.setData({
// reLaunchPath,
// tabIndex
// })
// console.log(options, 'options');
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) { },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() { },
/**
* 生命周期函数--监听页面显示
*/
onShow(e) { },
/**
* 生命周期函数--监听页面隐藏
*/
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;
.staffName {
margin-left: 10rpx;
}
}
}
}
.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;
height: 100%;
text-align: left;
// margin-left: 80rpx;
.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;
}
}
}
.staffNum {
margin-left: auto;
}
}
}
}
.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%;
}
.swiper .wx-swiper-dot {
width: 8rpx;
height: 8rpx;
background: #EAF1FF;
border-radius: 4rpx;
}
.swiper .wx-swiper-dot-active {
background: #5D95FF;
}
.swiper .wx-swiper-dots.wx-swiper-dots-horizontal {
position: absolute;
bottom: 10rpx;
}
\ 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
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
// import api from '~/packageCrowdFunding/api' // import api from '~/packageCrowdFunding/api'
import NP from 'number-precision' import NP from 'number-precision'
import { getBusinessSchoolScene } from '~/store/index'
import { import {
getQuotationStatistics, getQuotationStatistics,
outputValueStatistics, outputValueStatistics,
...@@ -9,6 +10,7 @@ import { ...@@ -9,6 +10,7 @@ import {
updateOrderStatus, updateOrderStatus,
merchantMode merchantMode
} from '../../api' } from '../../api'
const app = getApp()
Component({ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
...@@ -103,9 +105,30 @@ Component({ ...@@ -103,9 +105,30 @@ Component({
*/ */
methods: { methods: {
onLoad() { onLoad() {
const isStaff = app.globalData.isStaff
let userInfo = wx.$util.getUserInfo() || {}
this.setData({ this.setData({
storeInfo: wx.$util.getUserInfo()?.default4SStoreInfo || {}, storeInfo: wx.$util.getUserInfo()?.default4SStoreInfo || {},
userInfo: wx.$util.getUserInfo() || {} userInfo
})
// let issta
let { menuList } = this.data
getBusinessSchoolScene({})
.then(res => {
console.log(res, 'res')
if ((res || userInfo?.isSuper) && menuList.every(item => item.menuText != '商学院')) {
menuList.unshift(
{
menuText: '商学院',
icon: 'businessschoo',
path: ''
}
)
this.setData({
menuList
})
}
// }
}) })
this.getData() this.getData()
this.getTotal(this.data.dataActive) this.getTotal(this.data.dataActive)
...@@ -213,10 +236,16 @@ Component({ ...@@ -213,10 +236,16 @@ Component({
// } // }
// }, // },
navGo() { navGo(e) {
let { let {
mode mode,
} = this.data } = this.data
let { item } = e.currentTarget.dataset
// 商学院特殊处理
if (item.menuText == '商学院') {
return wx.$router.go('packageEquity.collegeScene', { reLaunchPath: 'packageEquity.equityPage', tabIndex: 0 })
}
wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation') wx.$router.go(mode ? 'createOrderCarQuotationSimple' : 'createOrderCarQuotation')
// console.log(e) // console.log(e)
// const thisPage = wx.$router.getPageInstance() // const thisPage = wx.$router.getPageInstance()
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<view class="static_box"> <view class="static_box">
<view class="static_item" wx:for="{{itemDataList}}" wx:key="index" wx:for-index="index"> <view class="static_item" wx:for="{{itemDataList}}" wx:key="index" wx:for-index="index">
<view class="label"> <view class="label">
<image src="{{IMG_URL}}staticIcon/{{item.icon}}.png" mode=""/> <image src="{{IMG_URL}}staticIcon/{{item.icon}}.png" mode="" />
<view class="label_text">{{item.label}}</view> <view class="label_text">{{item.label}}</view>
</view> </view>
<view class="value"><text wx:if="{{item.unit}}" style="font-size: 24rpx;margin-right: 4rpx;">¥</text>{{staticData[item.value]||0}}</view> <view class="value"><text wx:if="{{item.unit}}" style="font-size: 24rpx;margin-right: 4rpx;">¥</text>{{staticData[item.value]||0}}</view>
...@@ -54,8 +54,16 @@ ...@@ -54,8 +54,16 @@
<view class="title">展业工具</view> <view class="title">展业工具</view>
<view class="menu_box"> <view class="menu_box">
<view class="menu_item" wx:for="{{menuList}}" wx:key="index" bindtap="navGo" data-item="{{item}}"> <view class="menu_item" wx:for="{{menuList}}" wx:key="index" bindtap="navGo" data-item="{{item}}">
<block wx:if="{{!userInfo.isSuper && userInfo.userType == 2&&mode!=-1}}"> <block wx:if="{{!userInfo.isSuper && userInfo.userType == 2 && mode!=-1 && item.menuText != '商学院'}}">
<view class="icon"><image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix"/></view> <view class="icon">
<image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" />
</view>
<view class="text">{{item.menuText}}</view>
</block>
<block wx:if="{{item.menuText == '商学院'}}">
<view class="icon">
<image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix" />
</view>
<view class="text">{{item.menuText}}</view> <view class="text">{{item.menuText}}</view>
</block> </block>
</view> </view>
......
...@@ -340,6 +340,7 @@ Page({ ...@@ -340,6 +340,7 @@ Page({
app.globalData.yqdInfo.merchantRange = null app.globalData.yqdInfo.merchantRange = null
app.globalData.YQorderSetting = null app.globalData.YQorderSetting = null
app.globalData.serviceFilmRollSetting = null app.globalData.serviceFilmRollSetting = null
app.globalData.businessSchoolScene = null
wx.$util.hideLoading() wx.$util.hideLoading()
wx.$util.setUserInfo(data.loginUserInfoList[0]) wx.$util.setUserInfo(data.loginUserInfoList[0])
app.gobalCheckYqdSuper(data.loginUserInfoList[0]) app.gobalCheckYqdSuper(data.loginUserInfoList[0])
......
// pages/sceneIndex/sceneIndex.js // pages/sceneIndex/sceneIndex.js
import constantData from '../constant/data' import constantData from '../constant/data'
import api from '~/api/api' import api from '~/api/api'
import { getShopSceneConfig } from '~/store/index' import { getShopSceneConfig, getBusinessSchoolScene } from '~/store/index'
import { ImgUrl } from '~/config'
// import { getBusinessSchoolScene } from '~/store/index'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
...@@ -10,7 +12,8 @@ Page({ ...@@ -10,7 +12,8 @@ Page({
sceneList: constantData.sceneList, sceneList: constantData.sceneList,
openSceneArr: [], openSceneArr: [],
showPage: false, showPage: false,
jumpPageFlag: false jumpPageFlag: false,
ImgUrl
}, },
// 选择场景 // 选择场景
...@@ -18,29 +21,29 @@ Page({ ...@@ -18,29 +21,29 @@ Page({
let { scene, index } = e.currentTarget.dataset let { scene, index } = e.currentTarget.dataset
let { sceneList, openSceneArr, jumpPageFlag } = this.data let { sceneList, openSceneArr, jumpPageFlag } = this.data
if (jumpPageFlag) return if (jumpPageFlag) return
this.setData({jumpPageFlag: true}) this.setData({ jumpPageFlag: true })
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
if (!openSceneArr.includes(scene) && !userInfo?.isSuper) { if (!openSceneArr.includes(scene) && !userInfo?.isSuper) {
this.setData({jumpPageFlag: false}) this.setData({ jumpPageFlag: false })
return wx.$util.showToast('暂未开通此场景') return wx.$util.showToast('暂未开通此场景')
} }
sceneList.map(i => (i.actived = false)) sceneList.map(i => (i.actived = false))
sceneList[index].actived = true sceneList[index].actived = true
if (userInfo?.isSuper) { if (userInfo?.isSuper) {
wx.$util.setUserInfo({ ...userInfo, sceneType: scene }) wx.$util.setUserInfo({ ...userInfo, sceneType: scene })
wx.$router.reLaunch(constantData?.pageUrl[scene], {resetStoreList: true}) wx.$router.reLaunch(constantData?.pageUrl[scene], { resetStoreList: true })
this.setData({jumpPageFlag: false}) this.setData({ jumpPageFlag: false })
} else { } else {
api.selectMerchantScene({ api.selectMerchantScene({
merchantId: userInfo?.shopMerchantId, merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName, merchantName: userInfo?.shopMerchantName,
sceneType: scene sceneType: scene
}).then(res => { }).then(res => {
let {code, data, message} = res let { code, data, message } = res
this.setData({jumpPageFlag: false}) this.setData({ jumpPageFlag: false })
if (code == 0) { if (code == 0) {
wx.$util.setUserInfo({ ...userInfo, sceneType: scene }) wx.$util.setUserInfo({ ...userInfo, sceneType: scene })
wx.$router.reLaunch(constantData?.pageUrl[scene], {resetStoreList: true}) wx.$router.reLaunch(constantData?.pageUrl[scene], { resetStoreList: true })
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
...@@ -49,7 +52,7 @@ Page({ ...@@ -49,7 +52,7 @@ Page({
this.setData({ this.setData({
sceneList sceneList
}) })
wx.$util.pointRecord( sceneList[index].recordId) wx.$util.pointRecord(sceneList[index].recordId)
}, },
...@@ -58,18 +61,21 @@ Page({ ...@@ -58,18 +61,21 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
wx.hideHomeButton({ wx.hideHomeButton({
success: res => {} success: res => { }
}) })
this.getSceneArr() this.getSceneArr()
}, },
selectBusinessschoo() {
// wx.$router.go('packageEquity.collegeScene', { reLaunchPath: 'pages.sceneIndex' })
wx.$router.go('packageEquity.collegeScene',)
},
getSceneArr() { getSceneArr() {
// 超管默认开通全部场景 // 超管默认开通全部场景
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
if (userInfo?.isSuper) return this.setData({showPage: true}) if (userInfo?.isSuper) return this.setData({ showPage: true })
wx.$util.showLoading() wx.$util.showLoading()
// 获取4s店关联场景数据 // 获取4s店关联场景数据
getShopSceneConfig({yqMerchantId: userInfo?.subLoginUser?.merchantId, merchantId: userInfo?.isSuper ? undefined : userInfo?.shopMerchantId}).then(result => { getShopSceneConfig({ yqMerchantId: userInfo?.subLoginUser?.merchantId, merchantId: userInfo?.isSuper ? undefined : userInfo?.shopMerchantId }).then(result => {
wx.$util.hideLoading() wx.$util.hideLoading()
let arr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || [] let arr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || []
for (var i = 0; i++; i < arr.length) { for (var i = 0; i++; i < arr.length) {
...@@ -86,14 +92,24 @@ Page({ ...@@ -86,14 +92,24 @@ Page({
}) })
wx.$router.reLaunch('pages.loading') wx.$router.reLaunch('pages.loading')
} }
this.setData({openSceneArr: arr, showPage: true}) this.setData({ openSceneArr: arr, showPage: true })
})
getBusinessSchoolScene({})
.then(res => {
console.log(res, 'res')
if ((res || userInfo?.isSuper)) {
this.setData({
businessschooScene: true
})
}
// }
}) })
}, },
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -114,25 +130,25 @@ Page({ ...@@ -114,25 +130,25 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<block wx:for="{{sceneList}}" wx:key="index"> <block wx:for="{{sceneList}}" wx:key="index">
<view class="scene-item {{item.actived ? 'active' : ''}}" bindtap="selectScene" data-scene="{{item.sceneType}}" data-index="{{index}}"> <view class="scene-item {{item.actived ? 'active' : ''}}" bindtap="selectScene" data-scene="{{item.sceneType}}" data-index="{{index}}">
<view class="left"> <view class="left">
<image class="scene-icon" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{item.sceneType}}.png" /> <image class="scene-icon" src="{{ImgUrl}}/scene_type_{{item.sceneType}}.png" />
<view class="item-text"> <view class="item-text">
<view class="name">{{item.sceneName}}</view> <view class="name">{{item.sceneName}}</view>
<view class="desc">{{item.sceneDesc}}</view> <view class="desc">{{item.sceneDesc}}</view>
...@@ -12,6 +12,21 @@ ...@@ -12,6 +12,21 @@
</view> </view>
</view> </view>
</block> </block>
<block wx:if="{{businessschooScene}}">
<view class="businessSchoolTitle">
商学院
</view>
<view class="businessSchoolBox">
<view class="scene-item {{item.actived ? 'active' : ''}}" bindtap="selectBusinessschoo">
<view class="left">
<image class="scene-icon" src="{{ImgUrl}}/crowdFunding/businessschoo.png" />
<view class="item-text">
<view class="name">商学院</view>
<view class="desc">员工绩效提成</view>
</view>
</view>
</view>
</view>
</block>
</scroll-view> </scroll-view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -27,41 +27,74 @@ ...@@ -27,41 +27,74 @@
<view class="item flex"> <view class="item flex">
<view>所属服务商:</view> <view>所属服务商:</view>
<view> <view>
<view wx:for="{{merchantInfo}}">{{item.merchantName}}{{item.merchantId}} <view wx:for="{{merchantInfo}}" wx:key="index">{{item.merchantName}}{{item.merchantId}}
</view> </view>
</view> </view>
</view> </view>
<view class="item flex"> <view class="item flex">
<view>服务商账号:</view> <view>服务商账号:</view>
<view> <view>
<view wx:for="{{merchantInfo}}">{{item.merchantLoginAccount}} <view wx:for="{{merchantInfo}}" wx:key="index">{{item.merchantLoginAccount}}
</view> </view>
</view> </view>
</view> </view>
</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,9 +23,10 @@ ...@@ -19,9 +23,10 @@
.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;
background: #F7F8FA;
} }
.user-avatar { .user-avatar {
...@@ -35,18 +40,21 @@ ...@@ -35,18 +40,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 +65,7 @@ ...@@ -57,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;
} }
...@@ -70,11 +79,12 @@ ...@@ -70,11 +79,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 +101,24 @@ ...@@ -91,24 +101,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 +126,7 @@ ...@@ -116,7 +126,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 +139,66 @@ ...@@ -129,52 +139,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 +221,24 @@ ...@@ -197,23 +221,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 +247,7 @@ ...@@ -222,7 +247,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 +255,7 @@ ...@@ -230,7 +255,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 +282,8 @@ ...@@ -257,7 +282,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 +428,7 @@ ...@@ -402,7 +428,7 @@
opacity: .5; opacity: .5;
} }
.logout-box{ .logout-box {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
...@@ -428,6 +454,7 @@ ...@@ -428,6 +454,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,27 @@ ...@@ -4,6 +4,27 @@
"miniprogram": { "miniprogram": {
"list": [ "list": [
{ {
"name": "场景",
"pathName": "pages/sceneIndex/sceneIndex",
"query": "",
"launchMode": "default",
"scene": null
},
{
"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": "",
......
...@@ -5,7 +5,7 @@ import { envIndex } from '~/config' ...@@ -5,7 +5,7 @@ import { envIndex } from '~/config'
// console.log(wx)globalData // console.log(wx)globalData
/** 判断是不是超管角色 */ /** 判断是不是超管角色 */
export const checkYqdSuper = (userInfo, globalData) => { export const checkYqdSuper = (userInfo, globalData) => {
console.log(userInfo,'checkYqdSuper'); console.log(userInfo, 'checkYqdSuper');
let merchantAccountType = userInfo.merchantAccountList.every(item => { let merchantAccountType = userInfo.merchantAccountList.every(item => {
return item == 6 || item == 8 return item == 6 || item == 8
}) })
...@@ -69,8 +69,8 @@ export const getYQInfo = userInfo => { ...@@ -69,8 +69,8 @@ export const getYQInfo = userInfo => {
}) })
} }
arr = [all, ...data] arr = [all, ...data]
} else if (data.length == 1){ } else if (data.length == 1) {
arr = [ ...data] arr = [...data]
} else { } else {
arr = [ arr = [
{ {
...@@ -168,6 +168,42 @@ export const setConfigInfo = globalData => { ...@@ -168,6 +168,42 @@ export const setConfigInfo = globalData => {
} }
}) })
} }
export const getBusinessSchoolScene = () => {
const app = getApp()
return new Promise((resolve, reject) => {
// 如果有 直接返回
if (app.globalData.businessSchoolScene != '' && app.globalData.businessSchoolScene != null) {
// debugger
return resolve(app.globalData.businessSchoolScene)
} else {
// let userInfo = wx.$util.getUserInfo()
// if (!userInfo) this.login(true)
// let { merchantId, merchantName } = userInfo.subLoginUser
// wx.$util.showLoading()
// debugger
api
.isBusinessSchoolEnableCurrentUser({
// merchantId,
// merchantName
})
.then(res => {
// console.log(res)
// wx.$util.hideLoading()
let { code, data } = res
if (code == 0) {
app.globalData.businessSchoolScene = data
// this.checkSeverType(userInfo)
resolve(app.globalData.businessSchoolScene)
}
})
.catch(error => {
console.log(error)
})
}
})
}
// 扫码进来的处理 // 扫码进来的处理
export const checkScene = options => { export const checkScene = options => {
// let query = options.query // let query = options.query
...@@ -213,8 +249,8 @@ export const checkScene = options => { ...@@ -213,8 +249,8 @@ export const checkScene = options => {
} }
console.log(options, 'options') console.log(options, 'options')
wx.$SCENE = options wx.$SCENE = options
console.log(options.path,'options.path') console.log(options.path, 'options.path')
if (!userInfo && !( ['pages/accountItems/accountItems', 'pages/wxLogin/wxLogin'].includes(options.path))) { if (!userInfo && !(['pages/accountItems/accountItems', 'pages/wxLogin/wxLogin'].includes(options.path))) {
// if (!userInfo) { // if (!userInfo) {
// console.log(userInfo); // console.log(userInfo);
console.log('未登录,请登录。'); console.log('未登录,请登录。');
...@@ -318,7 +354,7 @@ export const getPositionList = options => { ...@@ -318,7 +354,7 @@ export const getPositionList = options => {
export const getShopSceneConfig = options => { export const getShopSceneConfig = options => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
api.getYqMerchantSceneConfigAPI(options).then(res => { api.getYqMerchantSceneConfigAPI(options).then(res => {
let { data, code, message} = res let { data, code, message } = res
if (code == 0) { if (code == 0) {
resolve(data || []) resolve(data || [])
} else { } else {
...@@ -333,7 +369,7 @@ export const getYQList = () => { ...@@ -333,7 +369,7 @@ export const getYQList = () => {
// debugger // debugger
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const app = getApp() const app = getApp()
console.log(app.globalData.YQList,'app.globalData.YQList'); console.log(app.globalData.YQList, 'app.globalData.YQList');
// 如果有 直接返回 // 如果有 直接返回
if (app.globalData.YQList) { if (app.globalData.YQList) {
return resolve(app.globalData.YQList) return resolve(app.globalData.YQList)
......
...@@ -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'
......
...@@ -704,7 +704,7 @@ Page({ ...@@ -704,7 +704,7 @@ Page({
if (options.yqMerchantId && options.isAppointment) { if (options.yqMerchantId && options.isAppointment) {
orderObj.sellerMerchantId = options.yqMerchantId orderObj.sellerMerchantId = options.yqMerchantId
} }
console.log(orderObj,'orderObj'); console.log(orderObj, 'orderObj');
this.setData({ this.setData({
currentWordNumber: orderObj?.remark?.length || 0, currentWordNumber: orderObj?.remark?.length || 0,
orderObj, orderObj,
...@@ -1089,7 +1089,7 @@ Page({ ...@@ -1089,7 +1089,7 @@ Page({
this.setData({ this.setData({
returnFun: true returnFun: true
}) })
console.log(res,'res'); console.log(res, 'res');
// debugger // debugger
this.setOrderObj(res) this.setOrderObj(res)
} else { } else {
...@@ -1107,24 +1107,24 @@ Page({ ...@@ -1107,24 +1107,24 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload: function () {}, onUnload: function () { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {} onShareAppMessage: function () { }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -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!