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 1886 additions and 502 deletions
......@@ -6,7 +6,7 @@
园区店管理员: 15589265685(测试环境) 15626599736(开发环境)
员工账号 :15626599735 (选明明塘朗园区店) 15626599738(开发环境)
员工账号 :18775035205 (选测试园店) 18775035205(选最下面的)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据)
员工账号 :13632791593 (选fennun03能下单 园区测试门店有多条数据) 13132112126(导师) 13132112120(学员)
员工账号 :15626599738 (开发环境)
超管:18129809927
商户管理员:15814019200
......
......@@ -204,5 +204,11 @@ module.exports = {
// 分页获取场景值关联4s店数据
getMerchantListPage(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({
wx.onMemoryWarning(function () {
console.log('onMemoryWarningReceive')
})
console.log('lifeshow')
// console.log('lifeshow')
getUpdateManager()
if (options) {
......@@ -115,6 +115,7 @@ App({
that.globalData.yqdInfo = {}
that.globalData.YQorderSetting = ''
that.globalData.YQList = ''
that.globalData.businessSchoolScene = ''
util.removeStorage()
wx.$relogin = relogin
router.reLaunch('pages.wxLogin')
......@@ -133,6 +134,7 @@ App({
this.globalData.yqdInfo = {}
this.globalData.YQorderSetting = ''
this.globalData.YQList = ''
this.globalData.businessSchoolScene = ''
util.removeStorage()
removeSystemStorage()
wx.$relogin = relogin
......@@ -147,6 +149,7 @@ App({
isStaff: false,
YQorderSetting: '',
count: '',
versionData: null
versionData: null,
businessSchoolScene: ''
}
})
......@@ -56,20 +56,12 @@
{
"root": "tabDate",
"name": "tabDate",
"pages": [
"pages/detail/detail",
"pages/apprManage/apprManage",
"pages/userPortrait/userPortrait"
]
"pages": ["pages/detail/detail", "pages/apprManage/apprManage", "pages/userPortrait/userPortrait"]
},
{
"root": "tabMine",
"name": "tabMine",
"pages": [
"pages/technicianSetup/technicianSetup",
"pages/completeBuild/completeBuild",
"pages/collectCoupons/collectCoupons"
]
"pages": ["pages/technicianSetup/technicianSetup", "pages/completeBuild/completeBuild", "pages/collectCoupons/collectCoupons"]
},
{
"root": "tabWorkOrder",
......@@ -108,31 +100,19 @@
"pages/carEquity/carBrands/carBrands",
"pages/carEquity/carSeries/carSeries",
"pages/TabBar/equityPage",
"pages/carEquity/previewContract/previewContract"
"pages/carEquity/previewContract/previewContract",
"pages/collegeScene/collegeScene"
]
},
{
"root": "tabOperating",
"name": "tabOperating",
"pages": [
"pages/4sOverview/4sOverview",
"pages/index/index",
"pages/operatingShow/operatingShow"
]
"pages": ["pages/4sOverview/4sOverview", "pages/index/index", "pages/operatingShow/operatingShow"]
},
{
"root": "packageCrowdFunding",
"name": "packageCrowdFunding",
"pages": [
"pages/TabBar/crowdFundingPage",
"pages/activityPage/paidOrder/orderList",
"pages/activityPage/activityList/activityList",
"pages/activityPage/activityPay/activityPay",
"pages/activityPage/paymentSuccess/paymentSuccess",
"pages/activityPage/balanceNote/balanceNote",
"pages/activityPage/newOrder/newOrder",
"pages/activityPage/additionRecordOrder/additionRecordOrder"
]
"pages": ["pages/TabBar/crowdFundingPage", "pages/activityPage/paidOrder/orderList", "pages/activityPage/activityList/activityList", "pages/activityPage/activityPay/activityPay", "pages/activityPage/paymentSuccess/paymentSuccess", "pages/activityPage/balanceNote/balanceNote", "pages/activityPage/newOrder/newOrder", "pages/activityPage/additionRecordOrder/additionRecordOrder"]
},
{
"root": "subvehicleConversion",
......@@ -175,15 +155,11 @@
"preloadRule": {
"pages/tabWorkOrder/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
"packages": ["tabWorkOrder"]
},
"tabIndex/pages/index/index": {
"network": "all",
"packages": [
"tabWorkOrder"
]
"packages": ["tabWorkOrder"]
}
},
"resolveAlias": {
......@@ -197,4 +173,4 @@
},
"lazyCodeLoading": "requiredComponents",
"__usePrivacyCheck__": true
}
\ No newline at end of file
}
......@@ -12,6 +12,11 @@ Component({
type: Number,
value: 0
},
// 是否显示商学院
showCollege: {
type: Boolean,
value: false
}
},
/**
......@@ -48,6 +53,11 @@ Component({
* 组件的方法列表
*/
methods: {
// 跳转到商学院
goCollegeScene() {
wx.$router.go('packageEquity.collegeScene')
console.log('跳转到商学院')
},
// 获取版本信息
async getVersionInfo() {
const versionData = await getApp().getVersionInfo()
......@@ -83,10 +93,7 @@ Component({
})
wx.showLoading()
api.logout().then(_res_ => {
let {
code,
message
} = _res_
let { code, message } = _res_
if (code == 0) {
app.login(false)
} else {
......@@ -101,4 +108,4 @@ Component({
})
}
}
})
\ No newline at end of file
})
......@@ -2,76 +2,47 @@
<!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="./index.wxs" module="filter" /> -->
<view class="bg"></view>
<block>
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-avatar">
<block wx:if="{{userInfo.userAvatarUrl}}">
<image src="{{userInfo.userAvatarUrl}}" bindtap="getAvatar" />
</block>
<block wx:else>
<open-data type="userAvatarUrl" />
</block>
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
</view>
<view class="user-info">
<view class="user-text">
<view class="item">
所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}
</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view>
<block>
<!-- <view class="scene_box">
<view class="title">场景</view>
<view class="select_item">
<view class="scene_message">
<view class="scene_icon" wx:if="{{userInfo.sceneType >= 0}}">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{userInfo.sceneType}}.png" mode=""/>
</view>
<view class="scene_text">
<view class="name">
<view>{{selectedSceneName}}</view>
<view class="name_tips">当前</view>
</view>
<view class="tips">{{selectedSceneDesc}}</view>
</view>
</view>
<view class="change_btn" bindtap="changeScene">切换场景</view>
</view>
</view> -->
<view class="set_box">
<!-- <view class="set_item item_1" bindtap="showWork">
<view class="title">工位设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips" wx:if="{{workCount>0}}"><text style="font-size: 32rpx;color: #333333; font-weight: 500;">{{workCount}}</text>个</view>
<view class="set_tips" wx:else>根据门店设置工位数</view>
</view>
<view class="set_item item_2" bindtap="showMerchantPop">
<view class="title">录单设置<image class="arrow_icon" src="/tabMine/images/arrow_icon.png" mode=""/></view>
<view class="set_tips">设置录单必填项</view>
</view> -->
<view class="set_item item_3" bindtap="changeScene">
<view class="title">场景切换
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_3.png" mode="" />
</view>
<view class="set_item item_4" bindtap="goVersionPage">
<view class="title">更新日志
<image class="arrow_icon" src="/pages/tabMine/images/arrow_icon.png" mode="" />
</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="{{IMG_URL}}mine_icon_1.png" mode="" />
</view>
</view>
</block>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
</block>
\ No newline at end of file
<view class="main" style="margin-top:104rpx">
<view class="user-box">
<view class="user-avatar">
<block wx:if="{{ userInfo.userAvatarUrl }}">
<image src="{{ userInfo.userAvatarUrl }}" bindtap="getAvatar" />
</block>
<block wx:else>
<open-data type="userAvatarUrl" />
</block>
</view>
<view class="name_box">
<view class="item name text-hide">{{userInfo.name}}</view>
<view class="change_btn" bindtap="changeAccount">切换账号</view>
</view>
<view class="user-info">
<view class="user-text">
<view class="item">所属园区:{{userInfo.merchantName}}{{userInfo.isSuper==true?'(超管)':loginRoleLabel[userInfo.loginRole]}}</view>
<view class="item">创建时间:{{userInfo.createdTime}}</view>
</view>
</view>
</view>
<block>
<view class="set_box">
<view class="set_item" bindtap="changeScene">
<view class="title">场景切换</view>
<view class="set_tips">{{selectedSceneName}}</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
<view class="set_item" bindtap="goVersionPage">
<view class="title">更新日志</view>
<view class="set_tips">最新{{versionData.version}}版</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
</block>
<view class="collegeCon set_box" wx:if="{{ showCollege }}">
<view class="set_item" bindtap="goCollegeScene">
<view class="title">商学院(员工绩效)</view>
<view class="set_tips">去查看</view>
<image class="icon_image" src="./images/right.png" mode="" />
</view>
</view>
<view class="logout text-center" bindtap="logout">退出账号</view>
</view>
\ No newline at end of file
/* tabComponents/pages/index/index.wxss */
page {
background: #F7F8FA;
}
.pagedetail {
position: relative;
}
......@@ -6,8 +10,8 @@
.bg {
width: 100%;
height: 350rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png') no-repeat;
background-size: 100% 526rpx;
background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/navgation_bg.png');
background-size: 100% 100%;
background-color: #fff;
position: fixed;
left: 0;
......@@ -18,9 +22,10 @@
.user-box {
position: relative;
border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF;
/* background: #FFFFFF; */
font-size: 28rpx;
color: #333333;
background: #F7F8FA;
}
.user-avatar {
......@@ -32,12 +37,14 @@
left: 50rpx;
top: -32rpx;
}
.name_box{
.name_box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx;
}
.name_box .name {
font-size: 40rpx;
color: #323436;
......@@ -47,7 +54,8 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.change_btn{
.change_btn {
width: 134rpx;
height: 48rpx;
background: rgba(53, 180, 238, .1);
......@@ -58,6 +66,7 @@
justify-content: center;
border-radius: 24rpx;
}
.user-info {
padding: 0 50rpx;
}
......@@ -72,7 +81,7 @@
margin: 4rpx;
}
.scene_box{
.scene_box {
margin: 20rpx;
margin-top: 48rpx;
box-sizing: border-box;
......@@ -89,24 +98,24 @@
margin-bottom: 20rpx;
}
.select_item{
.select_item {
display: flex;
align-items: center;
justify-content: space-between;
}
.select_item .scene_message{
.select_item .scene_message {
display: flex;
align-items: center;
}
.select_item .scene_icon{
.select_item .scene_icon {
width: 128rpx;
height: 128rpx;
margin-right: 24rpx;
}
.select_item .scene_text .name{
.select_item .scene_text .name {
color: #333333;
font-size: 32rpx;
font-weight: 500;
......@@ -114,7 +123,7 @@
align-items: center;
}
.select_item .scene_text .name .name_tips{
.select_item .scene_text .name .name_tips {
width: 64rpx;
height: 30rpx;
line-height: 30rpx;
......@@ -127,17 +136,83 @@
margin-left: 4rpx;
}
.select_item .scene_text .tips{
.select_item .scene_text .tips {
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
}
.select_item .change_btn{
.select_item .change_btn {
margin: 0;
}
.set_box{
.set_box {
margin: 20rpx;
margin-top: 48rpx;
background: #FFFFFF;
border-radius: 16rpx;
display: flex;
flex-direction: column;
/* display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
align-items: center; */
}
.set_box .set_item {
box-sizing: border-box;
/* width: 344rpx;
height: 168rpx; */
width: 710rpx;
height: 88rpx;
padding: 24rpx 32rpx;
display: flex;
align-items: center;
/* border-radius: 16rpx; */
/* display: flex;
flex-flow: column;
justify-content: center;
padding: 32rpx;
margin-bottom: 20rpx;
position: relative; */
}
.set_box .set_item+.set_item {
border-top: 1rpx solid #E4E8EE;
}
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0;
bottom: 0; */
}
.set_box .set_item .title .arrow_icon {
width: 40rpx;
height: 40rpx;
}
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0;
bottom: 0; */
}
.set_box .set_item .set_tips {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
/* margin-top: 8rpx; */
margin-left: auto;
}
/* .set_box{
margin: 20rpx;
margin-top: 48rpx;
display: grid;
......@@ -186,29 +261,29 @@
.set_box .item_4{
background: #FFF8F8;
}
} */
.set_box .set_item .title{
.set_box .set_item .title {
font-weight: 500;
font-size: 28rpx;
color: #333333;
letter-spacing: 0;
}
.set_box .set_item .set_tips{
/* .set_box .set_item .set_tips {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
text-overflow:ellipsis;
text-overflow: ellipsis;
display: -webkit-box;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
overflow: hidden;
}
} */
.version_box{
.version_box {
margin-top: 28rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 190rpx);
......@@ -217,7 +292,7 @@
color: #323436;
}
.version_box .icon_box{
.version_box .icon_box {
width: 90rpx;
height: 90rpx;
background: #FAFAFA;
......@@ -225,7 +300,7 @@
position: relative;
}
.version_box .item{
.version_box .item {
display: flex;
flex-flow: column;
align-items: center;
......@@ -252,7 +327,8 @@
top: 8rpx;
left: -6rpx;
transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */
margin-left: -6rpx;
/* 调整尖角位置 */
border-width: 6rpx;
border-style: solid;
border-color: transparent transparent #007bff transparent;
......
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 3
let index = 1
const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync()
......
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
/** 报价单分页列表 */
quotationPage(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', params)
},
/** 根据id查询报价单数据 */
getQuotationInfo(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 查询报价单信息 */
getQuotationInfoById(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', params)
},
/** 报价单分页列表 */
quotationPage(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', params)
},
/** 根据id查询报价单数据 */
getQuotationInfo(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 查询报价单信息 */
getQuotationInfoById(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', params)
},
/** 新建车损报价单 */
quotationAdd(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', params)
},
/** 更新报价并生成新的报价单图片 */
quotationPicture(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 报价单数据生成 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 新建车损报价单 */
quotationAdd(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', params)
},
/** 更新报价并生成新的报价单图片 */
quotationPicture(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 报价单数据生成 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.picture.generate', params)
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', params)
},
/** 根据订单号获取订单详情 */
getOrderDetail(data) {
return api.post('dj.api.smartcarlife.order.detail', data)
},
/** 修改车损报价单信息 */
updateQuotation(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', data)
},
/** 报价单统计信息 */
getQuotationStatistics(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.statistics', params)
},
/** 4s关联商品 */
quotationGoods(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantId', params)
},
/** 查询报价单状态 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', params)
},
/** 根据订单号获取订单详情 */
getOrderDetail(data) {
return api.post('dj.api.smartcarlife.order.detail', data)
},
/** 修改车损报价单信息 */
updateQuotation(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', data)
},
/** 报价单统计信息 */
getQuotationStatistics(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.statistics', params)
},
/** 4s关联商品 */
quotationGoods(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantId', params)
},
/** 查询报价单状态 */
quotationGenerate(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', params)
},
/** 更新报价单状态 */
updateOrderStatus(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update', params)
},
/** 车损报价单权益价格计算 */
priceCounter(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.equity.price.counter', data)
},
/**改变支付订单状态 */
createPayOrder(data) {
return api.post('dj.api.smartcarlife.payOrder.create', data)
},
/** 门店模式查询 */
merchantMode(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.merchant.mode', data)
},
/** 商品查询 */
listByMerchantIdAndIds(data) {
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantIdAndIds', data)
},
/** 待补录订单统计 */
waitinputorder(data) {
let params = data || {}
params.inputStatus = 0
// params.payType = 1
return api.post('dj.api.smartcarlife.weapp.waitinputorder.count', params)
},
/** 订单补录接口 */
quotationRecording(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.additional.recording', data)
},
/** 会员权益产值统计 */
outputValueStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics', data)
},
/** 更新报价单状态 */
updateOrderStatus(data) {
let params = data || {}
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update', params)
},
/** 车损报价单权益价格计算 */
priceCounter(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.equity.price.counter', data)
},
/**改变支付订单状态 */
createPayOrder(data) {
return api.post('dj.api.smartcarlife.payOrder.create', data)
},
/** 门店模式查询 */
merchantMode(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.merchant.mode', data)
},
/** 商品查询 */
listByMerchantIdAndIds(data) {
return api.post('dj.api.smartcarlife.quotationGoods.listByMerchantIdAndIds', data)
},
/** 待补录订单统计 */
waitinputorder(data) {
let params = data || {}
params.inputStatus = 0
// params.payType = 1
return api.post('dj.api.smartcarlife.weapp.waitinputorder.count', params)
},
/** 订单补录接口 */
quotationRecording(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.additional.recording', data)
},
/** 会员权益产值统计 */
outputValueStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.outputValueStatistics', data)
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', data)
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', data)
},
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', data)
}
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
return api.post('dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', data)
},
}
\ No newline at end of file
/** 校验员工绩效密码 */
performancePasswordCheck(data) {
return api.post('dj.api.businessSchool.staff.performancePassword.check', data)
},
/** 查询员工绩效查看密码 */
performancePassword(data) {
return api.post('dj.api.businessSchool.staff.performancePassword', data)
},
// /** 查询员工或园区店商户是否开启了商学院 */
// isBusinessSchoolEnable(data) {
// return api.post('dj.api.businessSchool.staff.isBusinessSchoolEnable', data)
// },
/** 获取商学院员工订单绩效明细 */
orderPerformanceDetail(data) {
return api.post('dj.api.businessSchool.staff.orderPerformanceDetail', data)
},
/** 查询员工或园区店商户是否开启了商学院 */
isBusinessSchoolEnableCurrentUser(data) {
return api.post('dj.api.businessSchool.isBusinessSchoolEnable.currentUser', data)
},
/** 修改员工绩效查看密码 */
performancePasswordUpdate(data) {
return api.post('dj.api.businessSchool.staff.performancePassword.update', data)
},
/** 获取商学院员工信息及前3月绩效信息 */
staffInfo(data) {
return api.post('dj.api.businessSchool.staff.info', data)
}
}
// pages/equity/index.js
import { get4SStoreList } from '~/store/index'
import { merchantMode, waitinputorder,quotationRecording } from '../../api'
import { merchantMode, waitinputorder, quotationRecording, isBusinessSchoolEnableCurrentUser } from '../../api'
import { getBusinessSchoolScene } from '~/store/index'
const app = getApp()
let time = null
Page({
......@@ -122,13 +123,39 @@ Page({
})
}
})
.catch(err => {})
.catch(err => { })
},
init(userInfo) {
this.setData({ userInfo })
this.get4SStoreList()
this.getIsBusinessSchoolEnableCurrentUser()
// this.test()
},
getIsBusinessSchoolEnableCurrentUser() {
// 判断是不是超管 是默认开启商学院 不是查询对应园区
// let userInfo = wx.$util.getUserInfo()
let { userInfo } = this.data
// let enableBusinessSchool = userInfo?.isSuper ? true : false
if (userInfo?.isSuper) {
this.setData({
enableBusinessSchool: true
})
} else {
getBusinessSchoolScene({})
.then(res => {
console.log(res, 'res')
// let { code, data } = res
// if (code == 0) {
this.setData({
enableBusinessSchool: res
})
// }
})
.catch(err => {
console.log(err)
})
}
},
get4SStoreList() {
let userInfo = wx.$util.getUserInfo()
let params = {
......@@ -167,38 +194,38 @@ Page({
})
})
},
// test (){
// const params ={
// mode: 1,
// insurancePrice: 0,
// outTradeNo: '0120230111614687537054883840',
// referrerId: '390664aa685c4c43855f5b80122affa3',
// referrer: '负责人',
// quotedPriceUpdate: 47600,
// minEquityPrice: 1,
// goodsId: 687,
// goodsName: '测试2.0商品',
// merchantId4s: 44211468,
// merchantName4s: '明明长岭4s店A',
// owner:{
// owner: 'test',
// phone: 15626599738,
// // certificateNo: '',
// // carVin: '',
// seat: 5,
// price: 2222200,
// confirmStatus: false,
// saveStatus: false,
// },
// check: true,
// }
// console.log(params);
// quotationRecording(params).then((result) => {
// console.log(result);
// }).catch((err) => {
// });
// },
// test (){
// const params ={
// mode: 1,
// insurancePrice: 0,
// outTradeNo: '0120230111614687537054883840',
// referrerId: '390664aa685c4c43855f5b80122affa3',
// referrer: '负责人',
// quotedPriceUpdate: 47600,
// minEquityPrice: 1,
// goodsId: 687,
// goodsName: '测试2.0商品',
// merchantId4s: 44211468,
// merchantName4s: '明明长岭4s店A',
// owner:{
// owner: 'test',
// phone: 15626599738,
// // certificateNo: '',
// // carVin: '',
// seat: 5,
// price: 2222200,
// confirmStatus: false,
// saveStatus: false,
// },
// check: true,
// }
// console.log(params);
// quotationRecording(params).then((result) => {
// console.log(result);
// }).catch((err) => {
// });
// },
// getStoreList(e) {
// // 获取园区店下的4s店数据 超管拉全部数据
// let { userInfo } = this.data
......@@ -249,27 +276,11 @@ Page({
[`pageShow[${tabIndex}]`]: true,
tabIndex
})
const showPageNum = [1,2]
showPageNum.includes(tabIndex)&& wx.$eventbus.emit('page_show') // 初始化tab底部条没有的问题
const showPageNum = [1, 2]
showPageNum.includes(tabIndex) && wx.$eventbus.emit('page_show') // 初始化tab底部条没有的问题
this.initList()
},
// changePicker(e) {
// console.log('changePicker')
// let { storeListRange, selectStroeIndex } = this.data
// let value = (e.detail ?? '') === '' ? selectStroeIndex : e.detail
// let default4SStoreInfo = storeListRange[value]
// wx.$util.setUserInfo({ ...wx.$util.getUserInfo(), default4SStoreInfo })
// this.setData({
// userInfo: { ...wx.$util.getUserInfo(), default4SStoreInfo },
// waitInputCount: 0
// })
// this.getMerchant4SMode()
// this.initList()
// },
initList() {
// console.log('this.getMerchant4SMode()');
this.getMerchant4SMode()
let { tabIndex } = this.data
// console.log(this.selectComponent(`#page-${tabIndex}`)?.onLoad,'this.selectComponent(`#page-${tabIndex}`)?.onLoad');
......@@ -300,45 +311,44 @@ Page({
},
// 10s轮询一次待补录
getWaitOrder() {
let { isStaff,mode } = this.data
let { isStaff, mode } = this.data
// console.log('isStaff', isStaff)
// let thisPage = wx.$router.getPageInstance()
// console.log(thisPage.route, ' thisPage.route')
// thisPage.route == 'tabIndex/pages/index/index' &&
time&&clearTimeout(time)//解决切换门店时 需要清除计时器
if ( isStaff&&mode) {
time && clearTimeout(time) //解决切换门店时 需要清除计时器
if (isStaff && mode) {
waitinputorder()
.then(result => {
// console.log(result)
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => {})
.then(result => {
// console.log(result)
let { code, data } = result
this.setTime()
if (code == 0) {
this.setData({
waitInputCount: data.waitInputCount
})
}
})
.catch(err => { })
}
},
onRoute(options) {
console.log(options,'options');
if (options&&options.tabIndex) {
this.changeTabBar({detail:options.tabIndex})
console.log(options, 'options')
if (options && options.tabIndex) {
this.changeTabBar({ detail: options.tabIndex })
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log(options,'onLoad');
console.log(options, 'onLoad')
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
onReady() { },
/**
* 生命周期函数--监听页面显示
......@@ -367,15 +377,15 @@ Page({
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
onShareAppMessage() { }
})
<!-- pages/equity/index.wxml -->
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{ true }}" navStyle="{{tabIndex != 3 ? '' : 'background-color: rgba(0,0,0,0);box-shadow:none;'}}" bindback="back" bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" wx:if="{{tabIndex != 3}}">
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{ true }}" navStyle="{{ tabIndex != 3 ? '' : 'background-color: rgba(0,0,0,0);box-shadow:none;' }}" bindback="back" bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" wx:if="{{ tabIndex != 3 }}">
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName}}</view>
</view>
<view wx:else>我的</view>
</navigation-bar>
<!-- style="margin-top:{{navBarHeight}}px" -->
<view class="layout {{waitInputCount && mode == 1?'tipsHeigh':''}}" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="layout {{ waitInputCount && mode == 1?'tipsHeigh':'' }}" style="padding-top:{{ navBarHeight }}px;position: relative;">
<block wx:if="{{ navBarHeight && showPage }}">
<home id="page-0" class="pagedetail {{ tabIndex == 0?'':'hide' }}" mode="{{ mode }}"></home>
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }} " mode="{{ mode }}" />
<quotation-list id="page-1" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 1?'':'hide' }}" mode="{{ mode }}" />
<equity-list id="page-2" outTabIndex="{{ tabIndex }}" navBarHeight="{{ navBarHeight }}" class="pagedetail {{ tabIndex == 2?'':'hide' }}" />
<tab-mine id="page-3" class="pagedetail {{ tabIndex == 3?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
<tab-mine showCollege="{{ enableBusinessSchool }}" id="page-3" class="pagedetail {{ tabIndex == 3?'':'hide' }}" navBarHeight="{{ navBarHeight }}"></tab-mine>
</block>
</view>
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0}}">
<view class="waitOrderCon" wx:if="{{ waitInputCount && mode == 1 && tabIndex == 0 }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsPropsConfig }}" />
</view>
<custom-tabBar list="{{ tabBarList }}" color="#6C6C70" selectedColor="#347BFF" tabIndex="{{ tabIndex }}" bindchange="changeTabBar" />
<!-- <store-picker items="{{ storeListRange }}" show="{{ showPicker }}" bindsearch="getStoreList" bindconfirm="changePicker" /> -->
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{storeRange}}" bindconfirm="changePicker" />
<side-select-popup show="{{ shopSideSelectPopup }}" storeList="{{ storeRange }}" bindconfirm="changePicker" />
<!-- <order-switchPopup
bind:close="closeSwitchPopup"
bind:success="navigator"
......@@ -27,4 +27,4 @@
wx:if="{{ showOrderpop }}"
flag="{{ showOrderpop }}"
/> -->
<order-no-popup wx:if="{{tipsProps}}" show="{{tipsProps}}" title="请选择支付订单号" bind:success="navigator" orderNoList="{{orderNoList}}" />
\ No newline at end of file
<order-no-popup wx:if="{{ tipsProps }}" show="{{ tipsProps }}" title="请选择支付订单号" bind:success="navigator" orderNoList="{{ orderNoList }}" />
\ No newline at end of file
......@@ -231,7 +231,9 @@
align-items: center;
font-size: 32rpx;
font-weight: 600;
max-width: 60%;
color: #333333;
word-break: break-all;
}
.list .icon-sex {
......
......@@ -4,7 +4,7 @@
<view class="box">
<view class="customerName owner">
<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>
</view>
<!-- <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
// components/RemarkPopup/RemarkPopup.js
import md5 from '~/utils/lib/md5.js'
import { performancePasswordUpdate, performancePasswordCheck } from '~/packageEquity/api'
Component({
/**
* 组件的属性列表
*/
properties: {
show: {
type: Boolean,
value: false,
observer: function (n) {
if (n) {
this.setData({
password: '',
repassword: ''
})
}
}
},
maxlength: Number,
title: {
type: String
},
btnName: {
type: String
},
isSetPassword: {
type: Boolean
// value: false
}
// isInt: {
// type: Boolean,
// value: false
// },
// required: {
// type: Boolean,
// value: false
// }
},
/**
* 组件的初始数据
*/
data: {
// inputValue: '',
// isEdit: false,
password: '',
repassword: ''
},
/**
* 组件的方法列表
*/
methods: {
input(e) {
let { value } = e.detail
console.log(e)
let { name } = e.currentTarget.dataset
this.setData({
[name]: value
})
},
noScroll() {},
blur(e) {
this.setData({
inputValue: e.detail.value,
isEdit: true
})
},
showPopup(e) {
// console.log()
let { name, btnName } = e.currentTarget.dataset
// if (btnName == 'cancel') {
// this.setData({
// value: ''
// })
// }
// console.log(name)
// 判断是不是来自组件 不是调用页面的数据修改
// 是用方法回传关闭
// let { isFormComponent } = this.data
// if (!isFormComponent) {
let thisPage = wx.$router.getPageInstance()
// console.log(thisPage)
console.log(thisPage)
thisPage.setData({
[name]: false
})
// 组件中使用
this.triggerEvent('cancel')
// this.setData({
// isEdit: false
// })
// } else {
// // console.log('tri')
// this.triggerEvent('closePop')
// }
},
remarkConfirm() {
// console.log('confirm')
let { isSetPassword, maxlength, password, repassword } = this.data
if (maxlength != password.length) {
return wx.$util.showToast('请输入4位数字密码')
}
// 判断 是设置密码还是输入密码
if (isSetPassword) {
if (maxlength != repassword.length) {
return wx.$util.showToast('请输入4位数字确认密码')
}
if (password != repassword) {
return wx.$util.showToast('两次密码输入不一致')
}
let params = {
passwordMd5: md5(password)
}
performancePasswordUpdate(params)
.then(res => {
console.log(res)
let { code, data, message } = res
if (code == 0 && data) {
this.triggerEvent('confirm')
this.showPopup({
currentTarget: {
dataset: {
name: 'passwordPop'
}
}
})
} else {
wx.$util.showToast(message)
}
})
.catch(err => {
console.log(err)
})
} else {
performancePasswordCheck({ passwordMd5: md5(password) })
.then(res => {
console.log(res)
let { code, data, message } = res
if (code == 0 && data) {
this.triggerEvent('confirm')
this.showPopup({
currentTarget: {
dataset: {
name: 'passwordPop'
}
}
})
} else {
wx.$util.showToast(message)
}
})
.catch(err => {
console.log(err)
})
// this.showPopup({
// currentTarget: {
// dataset: {
// name: 'passwordPop'
// }
// }
// })
}
}
}
})
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file
/* components/RemarkPopup/RemarkPopup.wxss */
.fixed-box {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 998;
perspective: 99999999px;
}
.fixed-bg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
animation: show-bg .1s forwards .5s;
}
@keyframes show-bg {
0% {
background-color: rgba(0, 0, 0, 0);
}
100% {
background-color: rgba(0, 0, 0, .6);
}
}
.fixed-content {
position: absolute;
left: 50%;
top: 50%;
background: #FFFFFF;
border-radius: 20rpx;
width: 622rpx;
animation: show-modal .5s forwards;
}
@keyframes show-modal {
0% {
opacity: 0;
transform: translate3d(-50%, -50%, -99999999px);
}
100% {
opacity: 1;
transform: translate3d(-50%, -50%, 0);
}
}
.fixed-content .fixed-title {
/* height: 96rpx;
font-size: 32rpx;
color: #333333; */
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 32rpx;
color: #292D33;
padding: 28rpx 0;
}
.fixed-date-box .fixed-body {
height: 360rpx;
display: flex;
flex-direction: column;
}
.fixed-content .fixed-footer {
box-sizing: border-box;
height: 96rpx;
display: flex;
align-items: center;
position: relative;
border-top: 2rpx solid #EBEDF0;
// border-top:
}
.fixed-content .fixed-footer .text-center {
width: 50%;
height: 100%;
font-size: 32rpx;
color: #333333;
}
.fixed-content .fixed-footer .fixed-confirm {
color: #347BFF;
}
.fixed-content .fixed-footer::after {
background-color: #EBEDF0;
width: 1rpx;
height: 100%;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
content: '';
}
.fixed-remark-box .fixed-body {
padding: 20rpx;
}
.inputCon {
box-sizing: border-box;
width: 558rpx;
height: 80rpx;
display: flex;
align-items: center;
background: #F7F8FA;
border-radius: 8rpx;
padding: 22rpx 32rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 28rpx;
color: #292D33;
.label {
margin-right: 16rpx;
font-family: PingFangSC-Regular;
font-weight: 400;
font-size: 24rpx;
color: #757980;
// display: flex;
}
}
.inputCon+.inputCon {
margin-top: 24rpx;
}
/* .fixed-remark {
background: #F4F5F7;
border: 2rpx solid #EFF0F2;
border-radius: 12rpx;
width: 522rpx;
height: 260rpx;
box-sizing: border-box;
padding: 24rpx 46rpx;
animation: show-remark .1s forwards .4s;
opacity: 0;
}
@keyframes show-remark {
0%{
opacity: 0;
}
100%{
opacity: 1;
}
} */
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
\ No newline at end of file
<block>
<!-- wx:if="{{show}}" -->
<view class="fixed-box fixed-remark-box" catchtouchmove="noScroll">
<view class="fixed-bg" bindtap="showPopup" data-name="passwordPop" />
<view class="fixed-content">
<view class="fixed-title text-center">{{title}}</view>
<view class="fixed-body">
<!-- value="{{ }}" value="{{ 1}}" -->
<view class="inputCon">
<view class="label">输入密码</view>
<input
type="number"
maxlength="{{ maxlength }}"
value="{{ password }}"
data-name="password"
placeholder-style="color: #BEC1C7;font-size: 28rpx;"
catchtap="noScroll"
class="input"
placeholder="请输入密码"
catchinput="input"
/>
</view>
<view class="inputCon" wx:if="{{ isSetPassword }}">
<view class="label">确认密码</view>
<input
type="number"
maxlength="{{ maxlength }}"
value="{{ repassword }}"
data-name="repassword"
placeholder-style="color: #BEC1C7;font-size: 28rpx;"
catchtap="noScroll"
class="input"
placeholder="请再次输入四位数字"
catchinput="input"
/>
</view>
<!-- <view class="fixed-remark">
<gl-textarea
value="{{value}}"
show="{{show}}"
bindinput="blur"
maxlength="{{maxlength}}"
placeholder="{{placeholder || '请输入'}}"
isLimitNum="{{isLimitNum}}"
isInt="{{isInt}}"
customMaxLength></gl-textarea>
</view> -->
</view>
<view class="fixed-footer">
<view class="fixed-cancel text-center" bindtap="showPopup" data-btnName="cancel" data-name="passwordPop">取消</view>
<view class="fixed-confirm text-center" bindtap="remarkConfirm">{{btnName||'确定'}}</view>
</view>
</view>
</view>
</block>
\ No newline at end of file
......@@ -2,6 +2,7 @@
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/'
// import api from '~/packageCrowdFunding/api'
import NP from 'number-precision'
import { getBusinessSchoolScene } from '~/store/index'
import {
getQuotationStatistics,
outputValueStatistics,
......@@ -9,6 +10,7 @@ import {
updateOrderStatus,
merchantMode
} from '../../api'
const app = getApp()
Component({
/**
* 组件的属性列表
......@@ -103,10 +105,31 @@ Component({
*/
methods: {
onLoad() {
const isStaff = app.globalData.isStaff
let userInfo = wx.$util.getUserInfo() || {}
this.setData({
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.getTotal(this.data.dataActive)
},
......@@ -213,10 +236,16 @@ Component({
// }
// },
navGo() {
navGo(e) {
let {
mode
mode,
} = 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')
// console.log(e)
// const thisPage = wx.$router.getPageInstance()
......
......@@ -13,39 +13,39 @@
<view class="content_box">
<view class="headerCon">
<view class="tips-text text-hide">
你好,
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
</view>
<view class="dataCon">
<view class="today item {{dataActive=='today'?'active':''}}" bindtap="changeDataSelect" data-name="today">
本日
</view>
<view class="month item {{dataActive=='month'?'active':''}}" bindtap="changeDataSelect" data-name="month">
本月
你好,
<text>{{loginRoleLabel[loginRole]|| ''}}{{userInfo.name || ''}}</text>
</view>
<view class="total item {{dataActive=='total'?'active':''}}" bindtap="changeDataSelect" data-name="total">
累计
<view class="dataCon">
<view class="today item {{dataActive=='today'?'active':''}}" bindtap="changeDataSelect" data-name="today">
本日
</view>
<view class="month item {{dataActive=='month'?'active':''}}" bindtap="changeDataSelect" data-name="month">
本月
</view>
<view class="total item {{dataActive=='total'?'active':''}}" bindtap="changeDataSelect" data-name="total">
累计
</view>
</view>
</view>
</view>
<view class="totalCon">
<view class="item">
<view class="label">个人产值</view>
<veiw class="number">
<text class="unit">¥ </text>
{{staticData.totalOutputValue||0}}
</veiw>
</view>
<view class="item">
<view class="label">转化率</view>
<veiw class="number">{{staticData.conversionRate > 100 ? 100 : staticData.conversionRate ||0}}%</veiw>
</view>
</view>
<view class="item">
<view class="label">个人产值</view>
<veiw class="number">
<text class="unit">¥ </text>
{{staticData.totalOutputValue||0}}
</veiw>
</view>
<view class="item">
<view class="label">转化率</view>
<veiw class="number">{{staticData.conversionRate > 100 ? 100 : staticData.conversionRate ||0}}%</veiw>
</view>
</view>
<view class="static_box">
<view class="static_item" wx:for="{{itemDataList}}" wx:key="index" wx:for-index="index">
<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>
<view class="value"><text wx:if="{{item.unit}}" style="font-size: 24rpx;margin-right: 4rpx;">¥</text>{{staticData[item.value]||0}}</view>
......@@ -54,11 +54,19 @@
<view class="title">展业工具</view>
<view class="menu_box">
<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}}">
<view class="icon"><image src="{{IMG_URL}}crowdFunding/{{item.icon}}.png" mode="widthFix"/></view>
<view class="text">{{item.menuText}}</view>
</block>
<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="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>
</block>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
......@@ -340,6 +340,7 @@ Page({
app.globalData.yqdInfo.merchantRange = null
app.globalData.YQorderSetting = null
app.globalData.serviceFilmRollSetting = null
app.globalData.businessSchoolScene = null
wx.$util.hideLoading()
wx.$util.setUserInfo(data.loginUserInfoList[0])
app.gobalCheckYqdSuper(data.loginUserInfoList[0])
......
// pages/sceneIndex/sceneIndex.js
import constantData from '../constant/data'
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({
/**
* 页面的初始数据
......@@ -10,7 +12,8 @@ Page({
sceneList: constantData.sceneList,
openSceneArr: [],
showPage: false,
jumpPageFlag: false
jumpPageFlag: false,
ImgUrl
},
// 选择场景
......@@ -18,29 +21,29 @@ Page({
let { scene, index } = e.currentTarget.dataset
let { sceneList, openSceneArr, jumpPageFlag } = this.data
if (jumpPageFlag) return
this.setData({jumpPageFlag: true})
this.setData({ jumpPageFlag: true })
let userInfo = wx.$util.getUserInfo()
if (!openSceneArr.includes(scene) && !userInfo?.isSuper) {
this.setData({jumpPageFlag: false})
this.setData({ jumpPageFlag: false })
return wx.$util.showToast('暂未开通此场景')
}
sceneList.map(i => (i.actived = false))
sceneList[index].actived = true
if (userInfo?.isSuper) {
wx.$util.setUserInfo({ ...userInfo, sceneType: scene })
wx.$router.reLaunch(constantData?.pageUrl[scene], {resetStoreList: true})
this.setData({jumpPageFlag: false})
wx.$router.reLaunch(constantData?.pageUrl[scene], { resetStoreList: true })
this.setData({ jumpPageFlag: false })
} else {
api.selectMerchantScene({
merchantId: userInfo?.shopMerchantId,
merchantName: userInfo?.shopMerchantName,
sceneType: scene
}).then(res => {
let {code, data, message} = res
this.setData({jumpPageFlag: false})
let { code, data, message } = res
this.setData({ jumpPageFlag: false })
if (code == 0) {
wx.$util.setUserInfo({ ...userInfo, sceneType: scene })
wx.$router.reLaunch(constantData?.pageUrl[scene], {resetStoreList: true})
wx.$router.reLaunch(constantData?.pageUrl[scene], { resetStoreList: true })
} else {
wx.$util.showToast(message)
}
......@@ -49,8 +52,8 @@ Page({
this.setData({
sceneList
})
wx.$util.pointRecord( sceneList[index].recordId)
wx.$util.pointRecord(sceneList[index].recordId)
},
/**
......@@ -58,18 +61,21 @@ Page({
*/
onLoad(options) {
wx.hideHomeButton({
success: res => {}
success: res => { }
})
this.getSceneArr()
},
selectBusinessschoo() {
// wx.$router.go('packageEquity.collegeScene', { reLaunchPath: 'pages.sceneIndex' })
wx.$router.go('packageEquity.collegeScene',)
},
getSceneArr() {
// 超管默认开通全部场景
let userInfo = wx.$util.getUserInfo()
if (userInfo?.isSuper) return this.setData({showPage: true})
if (userInfo?.isSuper) return this.setData({ showPage: true })
wx.$util.showLoading()
// 获取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()
let arr = result.map(val => { if (val.sceneOpenFlag == 0) return val.scene }) || []
for (var i = 0; i++; i < arr.length) {
......@@ -86,14 +92,24 @@ Page({
})
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({
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {},
onHide() { },
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {},
onUnload() { },
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {},
onPullDownRefresh() { },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {},
onReachBottom() { },
/**
* 用户点击右上角分享
*/
onShareAppMessage() {}
onShareAppMessage() { }
})
<!-- pages/sceneIndex/sceneIndex.wxml -->
<view class="layout">
<scroll-view wx:if="{{showPage}}" class="scene-box" scroll-y style="height: calc(100vh - 140rpx - {{isFullSucreen ? 34 : 0}}px - 60rpx);">
<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="left">
<image class="scene-icon" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/scene_type_{{item.sceneType}}.png" />
<view class="item-text">
<view class="name">{{item.sceneName}}</view>
<view class="desc">{{item.sceneDesc}}</view>
</view>
</view>
</view>
</block>
</scroll-view>
</view>
<scroll-view wx:if="{{showPage}}" class="scene-box" scroll-y style="height: calc(100vh - 140rpx - {{isFullSucreen ? 34 : 0}}px - 60rpx);">
<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="left">
<image class="scene-icon" src="{{ImgUrl}}/scene_type_{{item.sceneType}}.png" />
<view class="item-text">
<view class="name">{{item.sceneName}}</view>
<view class="desc">{{item.sceneDesc}}</view>
</view>
</view>
</view>
</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>
</view>
\ No newline at end of file
/* tabComponents/pages/index/index.wxss */
page {
background: #F7F8FA;
}
.main {
padding-bottom: 80rpx;
background: #FFFFFF;
/* background: #FFFFFF; */
}
.bg {
......@@ -19,9 +23,10 @@
.user-box {
position: relative;
border-radius: 32rpx 32rpx 0 0;
background: #FFFFFF;
/* background: #FFFFFF; */
font-size: 28rpx;
color: #333333;
background: #F7F8FA;
}
.user-avatar {
......@@ -35,18 +40,21 @@
top: -32rpx;
border: 4rpx solid #fff;
}
.name_box{
.name_box {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx 32rpx 40rpx 182rpx;
}
.name_box .name {
font-size: 40rpx;
color: #323436;
font-weight: 600;
}
.change_btn{
.change_btn {
width: 134rpx;
height: 48rpx;
background: rgba(52, 123, 255, .1);
......@@ -57,6 +65,7 @@
justify-content: center;
border-radius: 24rpx;
}
.user-info {
padding: 0 50rpx;
}
......@@ -70,11 +79,12 @@
font-size: 24rpx;
margin: 4rpx;
}
.item.flex {
display: flex;
display: flex;
}
.scene_box{
.scene_box {
margin: 20rpx;
margin-top: 48rpx;
box-sizing: border-box;
......@@ -91,24 +101,24 @@
margin-bottom: 20rpx;
}
.select_item{
.select_item {
display: flex;
align-items: center;
justify-content: space-between;
}
.select_item .scene_message{
.select_item .scene_message {
display: flex;
align-items: center;
}
.select_item .scene_icon{
.select_item .scene_icon {
width: 128rpx;
height: 128rpx;
margin-right: 24rpx;
}
.select_item .scene_text .name{
.select_item .scene_text .name {
color: #333333;
font-size: 32rpx;
font-weight: 500;
......@@ -116,7 +126,7 @@
align-items: center;
}
.select_item .scene_text .name .name_tips{
.select_item .scene_text .name .name_tips {
width: 64rpx;
height: 30rpx;
line-height: 30rpx;
......@@ -129,52 +139,66 @@
margin-left: 4rpx;
}
.select_item .scene_text .tips{
.select_item .scene_text .tips {
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
}
.select_item .change_btn{
.select_item .change_btn {
margin: 0;
}
.set_box{
.set_box {
margin: 20rpx;
margin-top: 48rpx;
display: grid;
background: #FFFFFF;
border-radius: 16rpx;
display: flex;
flex-direction: column;
/* display: grid;
grid-template-columns: repeat(auto-fill, 344rpx);
justify-content: space-between;
align-items: center;
align-items: center; */
}
.set_box .set_item{
.set_box .set_item {
box-sizing: border-box;
width: 344rpx;
height: 168rpx;
border-radius: 16rpx;
/* width: 344rpx;
height: 168rpx; */
width: 710rpx;
height: 88rpx;
padding: 24rpx 32rpx;
display: flex;
align-items: center;
/* border-radius: 16rpx; */
/* display: flex;
flex-flow: column;
justify-content: center;
padding: 32rpx;
margin-bottom: 20rpx;
position: relative;
position: relative; */
}
.set_box .set_item .icon_image{
width: 120rpx;
height: 120rpx;
position: absolute;
.set_box .set_item+.set_item {
border-top: 1rpx solid #E4E8EE;
}
.set_box .set_item .icon_image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
/* position: absolute;
right: 0;
bottom: 0;
bottom: 0; */
}
.set_box .set_item .title .arrow_icon{
.set_box .set_item .title .arrow_icon {
width: 40rpx;
height: 40rpx;
}
.set_box .item_1{
/* .set_box .item_1{
background: #F8FFFD;
}
......@@ -197,23 +221,24 @@
}
.set_box .item_7{
background: #F6FCFE;
}
} */
.set_box .set_item .title{
.set_box .set_item .title {
font-weight: 500;
font-size: 28rpx;
color: #333333;
letter-spacing: 0;
}
.set_box .set_item .set_tips{
.set_box .set_item .set_tips {
font-weight: 400;
font-size: 24rpx;
color: #9B9B9E;
margin-top: 8rpx;
/* margin-top: 8rpx; */
margin-left: auto;
}
.version_box{
.version_box {
margin-top: 28rpx;
display: grid;
grid-template-columns: repeat(auto-fill, 190rpx);
......@@ -222,7 +247,7 @@
color: #323436;
}
.version_box .icon_box{
.version_box .icon_box {
width: 90rpx;
height: 90rpx;
background: #FAFAFA;
......@@ -230,7 +255,7 @@
position: relative;
}
.version_box .item{
.version_box .item {
display: flex;
flex-flow: column;
align-items: center;
......@@ -257,7 +282,8 @@
top: 8rpx;
left: -6rpx;
transform: rotate(-90deg);
margin-left: -6rpx; /* 调整尖角位置 */
margin-left: -6rpx;
/* 调整尖角位置 */
border-width: 6rpx;
border-style: solid;
border-color: transparent transparent #007bff transparent;
......@@ -402,7 +428,7 @@
opacity: .5;
}
.logout-box{
.logout-box {
display: flex;
justify-content: center;
}
......@@ -428,6 +454,7 @@
.set_box_grass {
margin-top: 20rpx;
}
.m-t-0 {
margin-top: 20rpx;
}
\ No newline at end of file
......@@ -4,6 +4,27 @@
"miniprogram": {
"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": "创建权益订单",
"pathName": "packageEquity/pages/carQuotation/createOrderCarQuotationSimple/createOrderCarQuotationSimple",
"query": "",
......
......@@ -5,7 +5,7 @@ import { envIndex } from '~/config'
// console.log(wx)globalData
/** 判断是不是超管角色 */
export const checkYqdSuper = (userInfo, globalData) => {
console.log(userInfo,'checkYqdSuper');
console.log(userInfo, 'checkYqdSuper');
let merchantAccountType = userInfo.merchantAccountList.every(item => {
return item == 6 || item == 8
})
......@@ -69,8 +69,8 @@ export const getYQInfo = userInfo => {
})
}
arr = [all, ...data]
} else if (data.length == 1){
arr = [ ...data]
} else if (data.length == 1) {
arr = [...data]
} else {
arr = [
{
......@@ -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 => {
// let query = options.query
......@@ -213,8 +249,8 @@ export const checkScene = options => {
}
console.log(options, 'options')
wx.$SCENE = options
console.log(options.path,'options.path')
if (!userInfo && !( ['pages/accountItems/accountItems', 'pages/wxLogin/wxLogin'].includes(options.path))) {
console.log(options.path, 'options.path')
if (!userInfo && !(['pages/accountItems/accountItems', 'pages/wxLogin/wxLogin'].includes(options.path))) {
// if (!userInfo) {
// console.log(userInfo);
console.log('未登录,请登录。');
......@@ -318,7 +354,7 @@ export const getPositionList = options => {
export const getShopSceneConfig = options => {
return new Promise((resolve, reject) => {
api.getYqMerchantSceneConfigAPI(options).then(res => {
let { data, code, message} = res
let { data, code, message } = res
if (code == 0) {
resolve(data || [])
} else {
......@@ -333,7 +369,7 @@ export const getYQList = () => {
// debugger
return new Promise((resolve, reject) => {
const app = getApp()
console.log(app.globalData.YQList,'app.globalData.YQList');
console.log(app.globalData.YQList, 'app.globalData.YQList');
// 如果有 直接返回
if (app.globalData.YQList) {
return resolve(app.globalData.YQList)
......
......@@ -78,6 +78,9 @@ Page({
// orderInfo.orderSource = type
orderInfo.associateOrderCode = orderInfo.orderCode
delete orderInfo.orderCode
if (orderInfo.technicianList) {
delete orderInfo.technicianList
}
orderInfo.selectPayType = 2
// filmOrder 1精品升级
let urlName = orderInfo?.filmOrder == 1 ? 'premiumUpgrade' : 'createOrder'
......
......@@ -31,22 +31,22 @@ Page({
phoneShow: false,
customerInfoBox: false,
payTypeList: [{
name: '门店收款',
value: 2
},
{
name: 'POS机',
value: 3
},
// {
// name: '战败',
// value: 0
// },
{
name: '微信支付',
value: 1,
imgurl: '../../images/wxPayIcon.png'
}
name: '门店收款',
value: 2
},
{
name: 'POS机',
value: 3
},
// {
// name: '战败',
// value: 0
// },
{
name: '微信支付',
value: 1,
imgurl: '../../images/wxPayIcon.png'
}
],
showPayList: [],
orderObj: {
......@@ -303,44 +303,44 @@ Page({
item
} = e.currentTarget.dataset
let target = `goodsList[${index}].price`
// 添加金额 开头为.自动补全
// let money
// if (key == '.' && payMoney == '') {
// money = '0.'
// } else {
// money = payMoney + key
// }
// 添加金额 开头为.自动补全
// let money
// if (key == '.' && payMoney == '') {
// money = '0.'
// } else {
// money = payMoney + key
// }
// console.log(/^(\d+\.?\d{0,2})$/.test(money), money, 'money')
// console.log(/^(\d{0,7}\.?\d{0,2})$/.test(money), money, 'money')
// console.log(/^(\d+\.?\d{0,2})$/.test(money), money, 'money')
// console.log(/^(\d{0,7}\.?\d{0,2})$/.test(money), money, 'money')
let number = wx.$util.removeLeadingZerosAndEnsureNonNegative(value)
// if (/^(\d{0,6}\.?\d{0,2})$/.test(money)) {
// // 此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
// if (money.indexOf('.') < 0 && money != '') {
// // console.log(parseFloat(money))
// money = parseFloat(money).toString()
// }
// // 金额0不能给支付
this.setData({
[target]: number //价格不能低于0
})
let {
goodsList
} = this.data
this.setGoodsTotal(goodsList)
// that.setData({
// payMoney: money,
// canPay: !unPayMoneyList.includes(money)
// })
// }
// if (/^(\d{0,6}\.?\d{0,2})$/.test(money)) {
// // 此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
// if (money.indexOf('.') < 0 && money != '') {
// // console.log(parseFloat(money))
// money = parseFloat(money).toString()
// }
// // 金额0不能给支付
this.setData({
[target]: number //价格不能低于0
})
let {
goodsList
} = this.data
this.setGoodsTotal(goodsList)
// that.setData({
// payMoney: money,
// canPay: !unPayMoneyList.includes(money)
// })
// }
// let [number, decimal] = value.split('.')
// if (decimal != undefined) {
// decimal = decimal.substring(0, 2)
// number += `.${decimal}`
// }
},
removeLeadingZerosAndEnsureNonNegative(inputStr) {
removeLeadingZerosAndEnsureNonNegative(inputStr) {
// 使用正则表达式去掉前导零
let trimmedStr = inputStr.replace(/^0+/, '');
let [number, decimal] = trimmedStr.split('.')
......@@ -351,12 +351,12 @@ Page({
}
// 将字符串转换为浮点数
const numberValue = parseFloat(trimmedStr);
// 如果转换后的值为 NaN 或者小于 0,则默认为 0
if (isNaN(numberValue) || numberValue < 0) {
return 0;
}
return trimmedStr;
},
priceBlur(e) {
......@@ -479,7 +479,7 @@ Page({
// }
// }
this.showLoading('提交中...')
let apiName = save && !isErrorOrder ? 'createPrerecordedOrder' : isErrorOrder ? 'correctionOrder' : 'createWithPay'
// 太阳膜下单入口
submitObj.filmOrder = 0
......@@ -704,7 +704,7 @@ Page({
if (options.yqMerchantId && options.isAppointment) {
orderObj.sellerMerchantId = options.yqMerchantId
}
console.log(orderObj,'orderObj');
console.log(orderObj, 'orderObj');
this.setData({
currentWordNumber: orderObj?.remark?.length || 0,
orderObj,
......@@ -868,7 +868,7 @@ Page({
}
})
})
// 筛选出是当前门店的商品
let goodsData = data
const filterList = goodsData.reduce((list, item) => {
......@@ -1089,14 +1089,14 @@ Page({
this.setData({
returnFun: true
})
console.log(res,'res');
console.log(res, 'res');
// debugger
this.setOrderObj(res)
} else {
wx.$util.showLoading('加载中...')
this.setData({
flag: true
},
flag: true
},
() => {
wx.$util.hideLoading()
}
......@@ -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
......@@ -62,8 +62,8 @@ const domain_items = {
// dj: 'http://192.168.1.104:8292', //叶立庆
// dj: 'http://192.168.1.169:8292',//蔡远明
// dj: 'http://192.168.1.174:8292',//范富荣
dj: 'http://192.168.1.88:8292', //周杭
// dj: 'http://192.168.1.53:8292',//陈希
// dj: 'http://192.168.1.88:8292', //周杭
dj: 'http://192.168.1.116:8292',//陈希
// dj:'http://192.168.2.59:8292/',//周立明
// scrm: 'http://192.168.1.165:8292'
scrm: 'https://scrm.dev.glsx.com.cn'
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!