Commit 2b3bb0e9 by zhangxw

需求开发

1 parent 802e8940
Showing 27 changed files with 1440 additions and 52 deletions
...@@ -78,7 +78,9 @@ ...@@ -78,7 +78,9 @@
"pages/validReferralCount/referralCountList/referralCountList", "pages/validReferralCount/referralCountList/referralCountList",
"pages/attendanceStatis/attendanceList/attendanceList", "pages/attendanceStatis/attendanceList/attendanceList",
"pages/appealFormManage/appealFormList/appealFormList", "pages/appealFormManage/appealFormList/appealFormList",
"pages/orderApprovalManage/orderApprovalList/orderApprovalList" "pages/orderApprovalManage/orderApprovalList/orderApprovalList",
"pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail",
"pages/performanceRating/ruleNote/rulwNote"
] ]
}, },
{ {
......
...@@ -71,7 +71,6 @@ Component({ ...@@ -71,7 +71,6 @@ Component({
}, },
methods: { methods: {
initDisplay(options = [], multiple = false, value = null, values = []) { initDisplay(options = [], multiple = false, value = null, values = []) {
console.log(value)
const vKey = this.properties.valueKey const vKey = this.properties.valueKey
// 初始选中值统一转为数组 // 初始选中值统一转为数组
const initSelected = multiple ? (Array.isArray(values) ? values.slice() : []) : (value !== null && value !== undefined ? value : []) const initSelected = multiple ? (Array.isArray(values) ? values.slice() : []) : (value !== null && value !== undefined ? value : [])
...@@ -127,7 +126,6 @@ Component({ ...@@ -127,7 +126,6 @@ Component({
onConfirm() { onConfirm() {
const values = this.data.selectedValues const values = this.data.selectedValues
const items = this.getSelectedItems() const items = this.getSelectedItems()
console.log(values)
this.triggerEvent('confirm', { values, items }) this.triggerEvent('confirm', { values, items })
}, },
getSelectedItems() { getSelectedItems() {
......
// packageWorkspace/pages/orderApprovalManage/components/approvalPopup/approvalPopup.js
Component({
/**
* 组件的属性列表
*/
properties: {
infoData: {
type: Object
},
show: {
type: Boolean
}
},
/**
* 组件的初始数据
*/
data: {
contentLength: 0,
remark: ''
},
/**
* 组件的方法列表
*/
methods: {
textAreaInput(e) {
let val = e.detail.value || ""
if (val.length > 200) {
val = val.substring(0, 200)
}
this.setData({
remark: val,
contentLength: val.length
})
},
onConfirm() {
let { infoData, remark } = this.data
if (infoData.type == 2 && !remark) return wx.$util.showToast('请输入驳回备注')
},
onCancel() {
this.triggerEvent('cancel')
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/orderApprovalManage/components/approvalPopup/approvalPopup.wxss */
.container {
.label {
margin: 32rpx 0 16rpx;
font-size: 28rpx;
color: #222222;
.requiredLabel {
color: #F24724;
}
}
.textarea-wrap{
position: relative;
.textarea-input {
width: 100%;
height: 550rpx;
border-radius: 28rpx;
background: #f4f5f7;
padding: 24rpx;
box-sizing: border-box;
font-size: 28rpx;
}
.counter {
position: absolute;
right: 16rpx;
bottom: 8rpx;
font-size: 24rpx;
color: #BBBBBB;
}
}
.tips {
color: #999999;
font-size: 26rpx;
margin: 16rpx 0;
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/components/approvalPopup/approvalPopup.wxml-->
<popup show="{{show}}" title="{{infoData.title}}" height="65%" bind:confirm="onConfirm" bind:hidePopup="onCancel" customPopupSlotStyle="overflow:auto;">
<view class="container">
<view class="label">{{infoData.label}}<text class="requiredLabel" wx:if="{{infoData.type == 2}}">*</text></view>
<view class="textarea-wrap">
<textarea class="textarea-input" placeholder-style="color:#BEC1C7" placeholder="请输入" maxlength="200" value="{{remark}}" bindinput="textAreaInput" />
<view class="counter">{{contentLength}}/200</view>
</view>
<view wx:if="{{infoData.type == 1}}" class="tips">审核通过后将自动流转至线上运营审核</view>
</view>
</popup>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.js
Page({
/**
* 页面的初始数据
*/
data: {
// 订单信息
orderInfo: {
orderCode: '56118642212126',
orderType: '2',
allPrice: 99088.90,
name: '柔浔辉',
merchantName: '深圳福加门店深圳福加门店深圳福加门店深圳福加门店',
orderTime: '2026-01-07 10:05:32',
approvalStatus: '1',
subOrderList: [{
"type": "goods",
"name": "高透光太阳膜高透光太阳膜高透光太阳膜高透光太阳膜高透光太阳膜高透光太阳膜高透光太阳膜",
"price": "1000000.90",
"number": 1,
originalPrice: 800,
discountRate: 5,
discountPrice: 520,
discountType: 1
},
{
"type": "package",
"name": "平步青云全车贴膜套餐",
"packagePrice": "199.00",
"items": [
{ "name": "前挡风玻璃膜", "price": "179.00", "quantity": 1, "unit": "张" },
{ "name": "侧窗太阳膜(4门)", "price": "320.00", "quantity": 1, "unit": "套" }
]
}]
},
approvalMap: {
'1': {name: '待审核', tips: '请尽快处理', icon: 'more-o', color: '#FF9D0A'},
'2': {name: '已审核', tips: '订单已流转至线上运营审核', icon: 'passed', color: '#35C376'},
'3': {name: '已驳回', tips: '订单已驳回', icon: 'warning-o', color: '#666666'}
},
orderTypeMap: {
'': '订单类型',
'1': '打折策略',
'2': '组合付款',
'3': '买赠策略',
'4': '冲量活动',
'5': '错误订单'
},
orderForm:[{
label: '订单编号',
key: 'orderCode'
}, {
label: '订单类型',
key: 'orderType',
format: true
}, {
label: '总价',
key: 'allPrice'
}, {
label: '提单人',
key: ['name', 'merchantName'],
arr: true
}, {
label: '提单时间',
key: 'orderTime'
}],
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// 可以从 options 中获取订单ID,然后加载详情
const { orderId } = options
if (orderId) {
this.loadOrderDetail(orderId)
}
},
/**
* 加载订单详情
*/
loadOrderDetail(orderId) {
this.setData({ loading: true })
// 这里调用API获取订单详情
// 示例代码
// wx.request({
// url: '/api/order/detail',
// data: { orderId },
// success: (res) => {
// this.setData({
// orderInfo: res.data.orderInfo,
// productList: res.data.productList,
// loading: false
// })
// }
// })
},
/**
* 通过审核
*/
pass() {
this.setData({
showPopup: true,
popupInfo: {
type: '1',
title: '审核通过',
label: '通过备注'
}
})
},
/**
* 驳回
*/
reject() {
this.setData({
showPopup: true,
popupInfo: {
type: '2',
title: '审核驳回',
label: '驳回备注'
}
})
},
/**
* 提交审核结果
*/
submitApproval(status) {
this.setData({ loading: true })
const { orderInfo, rejectReason } = this.data
// 这里调用API提交审核结果
// wx.request({
// url: '/api/order/approval',
// method: 'POST',
// data: {
// orderId: orderInfo.orderNumber,
// status: status,
// rejectReason: status === 'rejected' ? rejectReason : ''
// },
// success: (res) => {
// this.setData({ loading: false, approvalStatus: status })
// wx.showToast({
// title: status === 'approved' ? '审核通过' : '已驳回',
// icon: 'success'
// })
// // 延迟返回上级页面
// setTimeout(() => {
// wx.navigateBack()
// }, 1500)
// },
// fail: () => {
// this.setData({ loading: false })
// wx.showToast({
// title: '提交失败,请重试',
// icon: 'error'
// })
// }
// })
},
hidePopup() {
this.setData({showPopup: false})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {
"van-icon": "@vant/weapp/icon/index",
"approval-popup": "../components/approvalPopup/approvalPopup"
},
"navigationBarTitleText": "审核详情"
}
\ No newline at end of file \ No newline at end of file
page {
background: #F2F3F7;
}
.isFullSucreen-btn {
padding-bottom: 34px !important;
}
.flex {
display: flex;
align-items: center;
}
.column {
flex-flow: column;
}
.flex-start {
align-items: flex-start;
}
.page-container {
padding: 24rpx;
.content-scroll {
.status-section {
.status-text {
font-size: 36rpx;
font-weight: 500;
color: #222222;
margin-left: 20rpx;
}
.status-tip {
font-size: 26rpx;
color: #999999;
margin-left: 52rpx;
}
}
.section {
border-radius: 32rpx;
background: #ffffff;
margin: 24rpx 0;
padding: 24rpx 32rpx;
.section-title {
font-size: 30rpx;
font-weight: 500;
color: #222222;
margin-bottom: 24rpx;
}
.info-item {
display: flex;
align-items: center;
font-size: 26rpx;
color: #222222;
margin-bottom: 12rpx;
&:last-child {
margin-bottom: 0;
}
.info-label {
width: 104rpx;
margin-right: 32rpx;
color: #999999;
flex-shrink: 0;
}
.info-item {
.text-hide {
max-width: 320rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&.name {
max-width: 160rpx;
}
}
.split {
margin: 0 8rpx;
}
}
}
.order-item {
border-radius: 20rpx;
background: #f7f8fa;
padding: 24rpx;
margin-bottom: 24rpx;
color: #222222;
font-size: 26rpx;
.just-space {
justify-content: space-between;
}
.package-item {
margin-bottom: 24rpx;
}
.name {
width: 410rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-break: break-all;
}
.dot {
display: inline-block;
width: 12rpx;
height: 12rpx;
border-radius: 50%;
background: #347BFF;
margin: 12rpx 12rpx 0 0;
}
.gray {
font-size: 24rpx;
color: #999999;
margin-top: 8rpx;
}
.pl-24 {
padding-left: 24rpx;
}
.split {
margin: 0 8rpx;
}
.ml-24 {
margin-left: 24rpx;
}
.count {
font-size: 24rpx;
color: #999999;
margin-top: 8rpx;
padding-left: 24rpx;
}
.item {
font-size: 26rpx;
color: #222222;
}
.package-list {
.list-item {
padding: 24rpx;
margin: 0 -24rpx;
border-top: 1px solid #dfe4f2;
&:last-child {
padding-bottom: 0;
}
}
}
}
}
}
.footerBtn {
position: fixed;
left: 0;
width: 100%;
bottom: 0;
min-height: var(--fontSize100);
background: #FFFFFF;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
font-size: var(--fontSize32);
font-weight: 500;
z-index: 99;
padding: 20rpx 32rpx;
.btn {
width: 320rpx;
height: 80rpx;
border-radius: 20rpx;
text-align: center;
line-height: 80rpx;
font-size: 32rpx;
}
.cancel {
height: 76rpx;
line-height: 76rpx;
border: 2rpx solid #2C66F7;
background: #f0f4ff;
color: #2C66F7;
}
.confirm {
color: #ffffff;
font-weight: 500;
height: 80rpx;
line-height: 80rpx;
background: #347BFF;
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail.wxml-->
<view class="page-container">
<!-- 页面内容 -->
<view class="content-scroll">
<!-- 审核状态标签 -->
<view class="status-section">
<view class="status-badge">
<van-icon name="{{approvalMap[orderInfo.approvalStatus].icon}}" color="{{approvalMap[orderInfo.approvalStatus].color}}"></van-icon>
<text class="status-text">{{approvalMap[orderInfo.approvalStatus].name}}</text>
</view>
<text class="status-tip">{{approvalMap[orderInfo.approvalStatus].tips}}</text>
</view>
<!-- 订单信息 -->
<view class="section">
<view class="section-title">订单信息</view>
<view class="info-item" wx:for="{{orderForm}}" wx:key="index">
<text class="info-label">{{item.label}}</text>
<block wx:if="{{item.format}}">
<view class="info-item">{{orderTypeMap[orderInfo[item.key]]}}</view>
</block>
<block wx:elif="{{item.arr}}">
<view class="info-item"><text class="name text-hide">{{orderInfo[item.key[0]]}}</text><text class="split">|</text><text class="text-hide">{{orderInfo[item.key[1]]}}</text></view>
</block>
<block wx:else>
<text class="info-value">{{ orderInfo[item.key] }}</text>
</block>
</view>
</view>
<!-- 原错误订单商品信息 -->
<view class="section" wx:if="{{orderInfo.errorOrderCode}}">
<view class="section-title">原错误订单商品信息</view>
</view>
<!-- 商品信息 -->
<view class="section">
<view class="section-title">{{orderInfo.errorOrderCode ? '新订单商品信息' : '商品信息'}}</view>
<view class="order-item" wx:for="{{orderInfo.subOrderList}}" wx:key="index">
<!-- 商品类型 -->
<block wx:if="{{item.type == 'goods'}}">
<view class="flex just-space flex-start">
<view class="item-left">
<view class="flex flex-start">
<text class="dot"></text>
<text class="name">{{item.name}}</text>
</view>
<view class="gray pl-24">
<text>原价¥{{item.originalPrice}}</text>
<text class="split">|</text>
<text wx:if="{{item.discountType == 1}}">{{item.discountRate}}折</text>
<text wx:else>折扣¥{{item.discountPrice}}</text>
</view>
</view>
<view class="item-right">
<view class="price">¥{{item.price}}</view>
<view class="gray">
共<text class="split">{{item.number}}</text>件
</view>
</view>
</view>
</block>
<!-- 套餐类型 -->
<view wx:elif="{{item.type === 'package'}}">
<view class="item flex just-space package-item">
<view class="item-left flex flex-start">
<text class="dot"></text>
<text class="name">{{item.name}}</text>
</view>
<view class="item-right">
<text class="price">¥{{item.packagePrice}}</text>
</view>
</view>
<!-- 套餐内商品列表 -->
<view class="package-list">
<view wx:for="{{item.items}}" class="list-item flex just-space flex-start" wx:key="index">
<view class="item-left">
<view class="flex flex-start pl-24">
<text class="name">{{item.name}}</text>
</view>
<view class="gray pl-24">
<text>原价¥{{item.originalPrice}}</text>
<text class="split">|</text>
<text wx:if="{{item.discountType == 1}}">{{item.discountRate}}折</text>
<text wx:else>折扣¥{{item.discountPrice}}</text>
</view>
</view>
<view class="item-right">
<view class="price">¥{{item.price}}</view>
<view class="gray">
共<text class="split">{{item.number}}</text>件
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view class="footerBtn {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="btn cancel" bindtap="reject">驳回</view>
<view class="btn confirm" bindtap="pass">通过</view>
</view>
</view>
<approval-popup show="{{ showPopup }}" infoData="{{popupInfo}}" bindconfirm="handlePopupConfirm" bindcancel="hidePopup"></approval-popup>
\ No newline at end of file \ No newline at end of file
// packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.js // packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.js
import dayjs from 'dayjs'
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
Page({ Page({
/** /**
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
IMG_URL,
filterObj: {
orderType: '',
orderStatus: '1',
date: ''
},
maxDate: new Date().format('yyyy-MM-dd'),
orderTypeMap: {
'': '订单类型',
'1': '打折策略',
'2': '组合付款',
'3': '买赠策略',
'4': '冲量活动',
'5': '错误订单'
},
orderStatusMap: {
'': {name: '订单状态'},
'1': {name: '待审核', color: '#FF9D0A', background: '#ff9d0a1a'},
'2': {name: '已审核', color: '#35C376', background: '#35C3761a'},
'3': {name: '已驳回', color: '#777777', background: '#7777771a'}
},
orderTypeList: [{
name: '全部',
value: ''
}, {
name: '打折策略',
value: '1'
}, {
name: '组合付款',
value: '2'
}, {
name: '买赠策略',
value: '3'
}, {
name: '冲量活动',
value: '4'
}, {
name: '错误订单',
value: '5'
}],
orderStatusList: [{
name: '全部',
value: ''
}, {
name: '待审核',
value: '1'
}, {
name: '已审核',
value: '2'
}, {
name: '已驳回',
value: '3'
}],
list: [],
errorOrderItems: [{
label: '订单类型',
key: 'orderType',
format: true
}, {
label: '原错误订单编号',
key: 'errorCode'
}, {
label: '提单人',
key: 'name'
}, {
label: '提单时间',
key: 'orderTime'
}],
orderItems: [{
label: '订单类型',
key: 'orderType',
format: true
}, {
label: '提单人',
key: 'name'
}, {
label: '提单时间',
key: 'orderTime'
}]
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.search()
}, },
/** /**
...@@ -29,6 +109,145 @@ Page({ ...@@ -29,6 +109,145 @@ Page({
}, },
input(e) {
let { value } = e.detail
this.setData({keyword: value})
},
clear() {
this.setData({keyword: ''})
this.search()
},
search() {
this.setData({
list: [],
pageNum: 1,
flag: false,
nothing: false,
})
this.getList()
},
getList() {
this.setData({
list: [[{applyCode: 1, status: '1', orderType: 2, name: '梁达康', orderTime: '2026-01-07 10:05:32', allPrice: 6000},
{applyCode: 1, status: '2', orderType: 2, name: '梁达康', orderTime: '2026-01-07 10:05:32', allPrice: 6000},
{applyCode: 1, status: '3', orderType: 2, name: '梁达康', orderTime: '2026-01-07 10:05:32', allPrice: 6000}, ]]
})
return
let { pageNum, nothing, filterObj, keyword } = this.data
let userInfo = wx.$util.getUserInfo()
if (nothing) return
const auditStatus = tabIndex == 1 ? 0 : tabIndex == 2 ? 3 : ''
wx.$util.showLoading()
api.getRefundReviewListAPI({sceneType: userInfo.sceneType, auditStatus, pageNum, pageSize: 4}).then(res => {
wx.$util.hideLoading()
let total = 0
let list = []
let {
code,
data,
message
} = res
if (code == 0) {
list = data.list
total = data.total
} else {
wx.$util.showToast(message)
}
if (total != 0) {
this.setData({
[`list[${pageNum - 1}]`]: list
})
}
this.setData({
total,
flag: true,
triggered: false,
pageNum: pageNum + 1,
nothing: pageNum == data.pages
})
})
},
scrollonReachBottom() {
this.getList()
},
handleDetail(e) {
let { target } = e.currentTarget.dataset
wx.navigateTo({
url: '/packageWorkspace/pages/orderApprovalManage/orderApprovalDetail/orderApprovalDetail',
})
},
rangeSelect(e) {
let {
date: { start, end }
} = e.detail
this.setData({
['filterObj.date']: `${start} 至 ${end}`
})
},
// 重置筛选条件
handleFilterReset() {
this.setData({
filterObj: {
orderType: '',
orderStatus: '',
date: ''
}
})
},
// 选择订单类型
handleOrderTypeFilter() {
let {
filterObj,
orderTypeList
} = this.data
this.setData({
showSelectPopup: true,
selectOptions: orderTypeList,
selectTitle: '订单类型',
selectMultiple: false,
selectValue: [filterObj.orderType],
selectType: 'orderType'
})
},
// 选择处理状态
handleOrderStatusFilter() {
let {
filterObj,
orderStatusList
} = this.data
this.setData({
showSelectPopup: true,
selectOptions: orderStatusList,
selectTitle: '订单状态',
selectMultiple: false,
selectValue: [filterObj.orderStatus],
selectType: 'orderStatus'
})
},
handlePopupConfirm(e) {
let { values } = e.detail
let { selectType } = this.data
this.setData({
[`filterObj.${selectType}`]: values
})
this.hideSelectPopup()
},
hideSelectPopup() {
this.setData({
showSelectPopup: false
})
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
......
{ {
"usingComponents": {}, "usingComponents": {
"select-popup": "/packageWorkspace/components/selectPopup/selectPopup"
},
"navigationBarTitleText": "订单审核" "navigationBarTitleText": "订单审核"
} }
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxss */
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxss */
page {
background: #F2F3F7;
}
.list-page {
.flex {
display: flex;
align-items: center;
}
.top-box {
background: #FFFFFF;
padding: 16rpx 24rpx 24rpx;
.search-input {
background: #F7F8FA;
border-radius: var(--fontSize72);
width: 100%;
height: var(--fontSize72);
display: flex;
align-items: center;
margin-bottom: 16rpx;
.search-icon {
width: var(--fontSize28);
height: var(--fontSize28);
margin: 0 var(--fontSize10) 0 var(--fontSize26);
}
.search-clear {
width: var(--fontSize36);
height: var(--fontSize36);
margin: 0 var(--fontSize26) 0 var(--fontSize10);
}
.input {
font-size: var(--fontSize28);
height: var(--fontSize38);
line-height: var(--fontSize38);
width: calc(100% - var(--fontSize136));
}
.input-placeholder {
color: #BBBBBB;
}
}
.filter-box {
justify-content: space-between;
.filter-item {
height: 56rpx;
border-radius: 56rpx;
background: #F7F8FA;
padding: 0 16rpx 0 24rpx;
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
&.active {
color: #2C66F7;
}
.hide-text {
max-width: 170rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
text {
line-height: 40rpx;
}
image {
width: 32rpx;
height: 32rpx;
flex-shrink: 0;
}
}
.reset-btn {
color: #222222;
font-size: 26rpx;
}
}
}
.list {
.empty-box {
width: 100%;
height: 24rpx;
}
.item {
margin: 0 24rpx 24rpx;
border-radius: 32rpx;
background: #FFFFFF;
padding: 24rpx 32rpx;
.item-top {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 -24rpx;
padding: 0 24rpx 24rpx;
font-size: 26rpx;
font-weight: 500;
color: #666666;
border-bottom: 2rpx dashed #F0F1F5;
.code-text {
color: #222222;
margin-left: 16rpx;
}
.status {
height: 48rpx;
line-height: 48rpx;
border-radius: 8rpx;
padding: 0 12rpx;
}
}
.order-list {
padding: 24rpx 0;
.order {
margin-bottom: 12rpx;
font-size: 26rpx;
color: #222222;
&:last-child {
margin-bottom: 0;
}
.order-label {
width: 184rpx;
margin-right: 32rpx;
color: #999999;
}
}
}
.btn-box {
justify-content: space-between;
font-weight: 500;
.label {
font-size: 26rpx;
color: #666666;
margin-right: 16rpx;
}
.unit {
margin-right: 8rpx;
}
.btn {
font-weight: 400;
width: 168rpx;
height: 64rpx;
line-height: 64rpx;
text-align: center;
border-radius: 16rpx;
font-size: 26rpx;
color: #2C66F7;
background: #2c66f71a;
&.primary {
color: #FFFFFF;
background: #2c66f7;
}
}
}
}
}
}
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxml--> <!--packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxml-->
<text>packageWorkspace/pages/orderApprovalManage/orderApprovalList/orderApprovalList.wxml</text>
\ No newline at end of file \ No newline at end of file
<view class="list-page">
<view class="top-box">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="员工姓名" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<block wx:if="{{ keyword }}">
<image src="/images/clear.png" class="search-clear" bindtap="clear" />
</block>
</view>
</view>
<view class="filter-box flex">
<view class="flex">
<view class="filter-item flex {{filterObj.orderType ? 'active': ''}}" bindtap="handleOrderTypeFilter">
<text>{{orderTypeMap[filterObj.orderType]}}</text><image src="{{IMG_URL}}{{filterObj.orderType ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<view class="filter-item flex {{filterObj.orderStatus ? 'active': ''}}" bindtap="handleOrderStatusFilter">
<text>{{orderStatusMap[filterObj.orderStatus].name}}</text><image src="{{IMG_URL}}{{filterObj.orderStatus ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<calendar id="calender" class="calendar" allowSameDay shortcut bindselect="rangeSelect" calenderColor="#347BFF" vertical dateType='range' minDate="2020-10-01" maxDate="{{ maxDate }}" isComponents>
<view class="filter-item flex {{filterObj.date ? 'active': ''}}">
<text class="hide-text">{{filterObj.date || '提单日期'}}</text>
<image src="{{IMG_URL}}{{filterObj.date ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
</calendar>
</view>
<view class="reset-btn" bindtap="handleFilterReset">重置</view>
</view>
</view>
<scroll-view scroll-y enable-back-to-top
refresher-enabled="{{ true }}"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
class="list"
style="height:calc(100vh - var(--fontSize184));"
refresher-threshold="104"
refresher-triggered="{{ triggered }}">
<block wx:if="{{ list.length > 0 }}">
<view class="empty-box"></view>
<block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view
data-ind="{{ ind }}"
data-index="{{ index }}"
>
<view
class="item content"
data-ind="{{ ind }}"
data-index="{{ index }}"
data-item="{{ li }}"
>
<view class="item-top">
<view class="code">
<text>订单编号</text>
<text class="code-text">{{li.applyCode}}</text>
</view>
<view class="status text-center" style="color:{{ orderStatusMap[li.status].color }};background-color:{{orderStatusMap[li.status].background }};">
{{orderStatusMap[li.status].name }}
</view>
</view>
<view class="order-list">
<block wx:for="{{li.orderType == 5 ? errorOrderItems : orderItems }}" wx:key="sindex" wx:for-index="sindex" wx:for-item="i">
<view class="order flex">
<view class="order-label">{{i.label}}</view>
<view class="order-value">
<block wx:if="{{ i.format }}">
<text>{{orderTypeMap[li[i.key]]}}</text>
</block>
<block wx:else>{{li[i.key] || ''}}</block>
</view>
</view>
</block>
</view>
<view class="btn-box flex">
<view><text class="label">总价</text><text class="unit">¥</text><text>{{li.allPrice}}</text></view>
<view bindtap="handleDetail" data-target="{{li}}" class="btn {{li.status == 1 ? 'primary' : ''}}">{{li.status == 1 ? '审核' : '查看'}}</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data />
</block>
</scroll-view>
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" title="{{ selectTitle }}" bindcancel="hideSelectPopup" customIsTab="{{ true }}"></select-popup>
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="rate-item"> <view class="rate-item">
<view class="level-item" style="background: {{info.color}};">{{info.level}}级:{{info.score}}分</view> <view class="level-item" style="background: {{info.color}};">{{info.level}}级:{{info.score}}分</view>
<view class="rate-box"> <view class="rate-box">
<van-rate readonly value="{{ info.rate }}" count="{{info.maxRate}}" void-icon="star" size="16px" void-color="#DEE0E3" color="#FFB742" /> <van-rate readonly value="{{ info.rate }}" count="{{6}}" void-icon="star" size="16px" void-color="#DEE0E3" color="#FFB742" />
</view> </view>
<view class="coeff">系数:{{info.coefficient}}</view> <view class="coeff">系数:{{info.coefficient}}</view>
</view> </view>
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
const __NOW__ = new Date() const __NOW__ = new Date()
const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).getTime() const __CUR_YM_TS__ = new Date(__NOW__.getFullYear(), __NOW__.getMonth(), 1).getTime()
const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/' const IMG_URL = 'https://img02.glsx.com.cn/weapp/resource/miniprogram/regional-assistant/'
const sysInfo = wx.getSystemInfoSync()
const rpxToPx = sysInfo.screenWidth / 750
Page({ Page({
/** /**
...@@ -19,49 +21,42 @@ Page({ ...@@ -19,49 +21,42 @@ Page({
score: '>150', score: '>150',
color: '#E9E0FA', color: '#E9E0FA',
rate: 6, rate: 6,
maxRate: 6,
coefficient: 2.0 coefficient: 2.0
}, { }, {
level: 'A', level: 'A',
score: '>120', score: '>120',
color: '#D8F4D4', color: '#D8F4D4',
rate: 5, rate: 5,
maxRate: 5,
coefficient: 1.5 coefficient: 1.5
}, { }, {
level: 'B+', level: 'B+',
score: '>110', score: '>110',
color: '#D6F5EF', color: '#D6F5EF',
rate: 4, rate: 4,
maxRate: 5,
coefficient: 1.3 coefficient: 1.3
}, { }, {
level: 'B', level: 'B',
score: '=100', score: '=100',
color: '#E6EFFF', color: '#E6EFFF',
rate: 3, rate: 3,
maxRate: 5,
coefficient: 1 coefficient: 1
}, { }, {
level: 'B-', level: 'B-',
score: '<85', score: '<85',
color: '#D5F1FA', color: '#D5F1FA',
rate: 2, rate: 2,
maxRate: 5,
coefficient: 0.7 coefficient: 0.7
}, { }, {
level: 'C', level: 'C',
score: '<70', score: '<70',
color: '#F7EFCD', color: '#F7EFCD',
rate: 1, rate: 1,
maxRate: 5,
coefficient: 0.5 coefficient: 0.5
}, { }, {
level: 'D', level: 'D',
score: '<60', score: '<60',
color: '#F9E0E0', color: '#F9E0E0',
rate: 0, rate: 0,
maxRate: 5,
coefficient: 0.0 coefficient: 0.0
}], }],
row1: [ row1: [
...@@ -92,9 +87,9 @@ Page({ ...@@ -92,9 +87,9 @@ Page({
'D': 'D' 'D': 'D'
}, },
statusMap: { statusMap: {
'': '处理状态', '': {name: '处理状态'},
'1': '未处理', '1': {name: '未处理', color: '#FF9D0A', background: '#ff9d0a1a'},
'2': '已处理' '2': {name: '已处理', color: '#35C376', background: '#35c3761a'}
}, },
levelList: [{ levelList: [{
name: 'S', name: 'S',
...@@ -124,14 +119,15 @@ Page({ ...@@ -124,14 +119,15 @@ Page({
}, { }, {
name: '未处理', name: '未处理',
value: '2' value: '2'
}] }],
list: []
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getList()
}, },
/** /**
...@@ -148,8 +144,80 @@ Page({ ...@@ -148,8 +144,80 @@ Page({
}, },
input(e) {
let { value } = e.detail
this.setData({keyword: value})
},
clear() {
this.setData({
keyword: ''
}, () => {
this.search()
})
},
search() {
this.setData({
list: [],
pageNum: 1,
flag: false,
nothing: false,
})
this.getList()
},
// 获取统计数据
getStatics() {
},
// 获取列表数据
getList() {
this.setData({
list: [[{staffName: '张三', status: '1', level: 'S', score: '>150', name: '梁达康', orderTime: '2026-01-07 10:05:32', allPrice: 6000},
{applyCode: 1, status: '2', orderType: 2, level: 'A', name: '梁达康', orderTime: '2026-01-07 10:05:32', allPrice: 6000},
{applyCode: 1, status: '3', orderType: 2, name: '梁达康', orderTime: '2026-01-07 10:05:32', allPrice: 6000}, ]]
})
return
let { pageNum, nothing, filterObj, keyword } = this.data
let userInfo = wx.$util.getUserInfo()
if (nothing) return
const auditStatus = tabIndex == 1 ? 0 : tabIndex == 2 ? 3 : ''
wx.$util.showLoading()
api.getRefundReviewListAPI({sceneType: userInfo.sceneType, auditStatus, pageNum, pageSize: 4}).then(res => {
wx.$util.hideLoading()
let total = 0
let list = []
let {
code,
data,
message
} = res
if (code == 0) {
list = data.list
total = data.total
} else {
wx.$util.showToast(message)
}
if (total != 0) {
this.setData({
[`list[${pageNum - 1}]`]: list
})
}
this.setData({
total,
flag: true,
triggered: false,
pageNum: pageNum + 1,
nothing: pageNum == data.pages
})
})
},
scrollonReachBottom() {
this.getList()
},
openMonthPicker() { openMonthPicker() {
console.log(this.data.monthPickerValue)
this.setData({ monthPickerShow: true, pendingMonthValue: this.data.monthPickerValue }) this.setData({ monthPickerShow: true, pendingMonthValue: this.data.monthPickerValue })
}, },
closeMonthPicker() { closeMonthPicker() {
...@@ -205,6 +273,26 @@ Page({ ...@@ -205,6 +273,26 @@ Page({
} }
}) })
}, },
onScroll(e) {
const query = wx.createSelectorQuery().in(this)
query.select('.sticky-box').boundingClientRect()
query.select('.top-box').boundingClientRect()
query.exec(res => {
const stickyRect = res[0]
const topRect = res[1]
if (!stickyRect || !topRect) return
const marginTopPx = 16 * rpxToPx
// 判断 sticky-box 是否“吸顶”
const stickyThreshold = topRect.top + topRect.height + marginTopPx
if (stickyRect.top <= stickyThreshold) {
// 已吸顶
this.setData({ isSticky: true })
} else {
this.setData({ isSticky: false })
}
})
},
// 选择绩效等级 // 选择绩效等级
handleLevelFilter() { handleLevelFilter() {
let { let {
...@@ -223,7 +311,18 @@ Page({ ...@@ -223,7 +311,18 @@ Page({
// 选择处理状态 // 选择处理状态
handleStatusFilter() { handleStatusFilter() {
let {
filterObj,
statusList
} = this.data
this.setData({
showSelectPopup: true,
selectOptions: statusList,
selectTitle: '处理状态',
selectMultiple: false,
selectValue: [filterObj.status],
selectType: 'status'
})
}, },
handlePopupConfirm(e) { handlePopupConfirm(e) {
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
"usingComponents": { "usingComponents": {
"van-datetime-picker": "@vant/weapp/datetime-picker/index", "van-datetime-picker": "@vant/weapp/datetime-picker/index",
"level-rate": "../components/levelRate/levelRate", "level-rate": "../components/levelRate/levelRate",
"select-popup": "../components/selectPopup/selectPopup" "select-popup": "/packageWorkspace/components/selectPopup/selectPopup",
"van-rate": "@vant/weapp/rate/index"
}, },
"navigationBarTitleText": "绩效考核评分" "navigationBarTitleText": "绩效考核评分"
} }
\ No newline at end of file \ No newline at end of file
...@@ -34,16 +34,17 @@ page { ...@@ -34,16 +34,17 @@ page {
height: 32rpx; height: 32rpx;
margin-right: 8rpx; margin-right: 8rpx;
} }
.note {
margin-right: 16rpx;
}
} }
} }
.container { .container {
padding: 16rpx 24rpx;
box-sizing: border-box; box-sizing: border-box;
height: calc(100vh - var(--fontSize88)); height: calc(100vh - var(--fontSize88));
.rule-card { .rule-card {
background: #FFFFFF; background: #FFFFFF;
margin: -16rpx -24rpx 16rpx -16rpx;
padding: 24rpx; padding: 24rpx;
border-radius: 0 0 32rpx 32rpx; border-radius: 0 0 32rpx 32rpx;
.title { .title {
...@@ -80,7 +81,12 @@ page { ...@@ -80,7 +81,12 @@ page {
} }
} }
} }
.empty-box {
width: 100%;
height: 16rpx;
}
.top { .top {
margin: 0 24rpx 16rpx;
.title { .title {
font-size: 26rpx; font-size: 26rpx;
color: #222222; color: #222222;
...@@ -124,10 +130,26 @@ page { ...@@ -124,10 +130,26 @@ page {
} }
} }
.list-box { .list-box {
padding-top: 24rpx; margin: 24rpx;
.search-input { .sticky-box {
position: sticky; position: sticky;
top: 0; top: 0;
margin: -16rpx -24rpx 0;
padding: 16rpx 24rpx;
}
.is-sticky {
background: #FFFFFF;
transition: background 0.1s ease-in-out;
.search-input {
background: #f7f8fa;
transition: background 0.1s ease-in-out;
}
.filter-item {
background: #f7f8fa !important;
transition: background 0.1s ease-in-out;
}
}
.search-input {
background: #ffffff; background: #ffffff;
border-radius: var(--fontSize38); border-radius: var(--fontSize38);
width: 100%; width: 100%;
...@@ -183,6 +205,70 @@ page { ...@@ -183,6 +205,70 @@ page {
font-size: 26rpx; font-size: 26rpx;
} }
} }
.list {
.item {
border-radius: 32rpx;
background: #ffffff;
margin-bottom: 24rpx;
padding: 32rpx;
.item-top {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 32rpx;
color: #222222;
margin-bottom: 24rpx;
.name {
max-width: calc(100% - 110rpx);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-weight: 500;
}
.status {
font-size: 24rpx;
padding: 0 12rpx;
height: 44rpx;
line-height: 44rpx;
border-radius: 8rpx;
}
}
.list-item {
display: flex;
align-items: center;
margin-bottom: 12rpx;
font-size: 28rpx;
.label {
width: 144rpx;
flex-shrink: 0;
margin-right: 32rpx;
color: #999999;
}
.score {
margin-left: 12rpx;
}
}
.btn-box {
justify-content: flex-end;
margin-top: 24rpx;
.btn {
width: 168rpx;
height: 64rpx;
line-height: 64rpx;
border-radius: 16rpx;
background: #2c66f71a;
text-align: center;
color: #2C66F7;
font-size: 26rpx;
}
.primary {
color: #FFFFFF;
margin-left: 24rpx;
background: #2C66F7;
}
}
}
}
} }
} }
} }
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/rateList/retaList.wxml--> <!--packageWorkspace/pages/performanceRating/rateList/retaList.wxml-->
<wxs module="utils">
var rateFormat = function(rateList, level) {
for (var i = 0; i < rateList.length; i++) {
if (rateList[i].level == level) {
return rateList[i].rate
}
}
return 0
}
module.exports = {
rateFormat: rateFormat
}
</wxs>
<view class="ratelist"> <view class="ratelist">
<view class="top-box flex"> <view class="top-box flex">
<view class="date-box flex" bindtap="openMonthPicker"> <view class="date-box flex" bindtap="openMonthPicker">
...@@ -7,18 +20,18 @@ ...@@ -7,18 +20,18 @@
</view> </view>
<view class="flex btn-box"> <view class="flex btn-box">
<view class="note flex" bindtap="handleRuleShow"> <view class="note flex" bindtap="handleRuleShow">
<image src="" mode=""/> <image src="{{IMG_URL}}note-icon.png" mode=""/>
<view>规则说明</view> <view>规则说明</view>
</view> </view>
<view class="flex"> <view class="flex">
<image src="" mode=""/> <image src="{{IMG_URL}}batch-icon.png" mode=""/>
<view>批量操作</view> <view>批量操作</view>
</view> </view>
</view> </view>
</view> </view>
<scroll-view class="container" scroll-y> <scroll-view class="container" scroll-y show-scrollbar="{{false}}" enhanced="true" bindscroll="onScroll">
<view class="rule-card" wx:if="{{showRule}}"> <view class="rule-card" wx:if="{{showRule}}">
<view class="title flex"><image src="" mode=""/>绩效评分规则总览</view> <view class="title flex"><image src="{{IMG_URL}}overview-icon.png" mode=""/>绩效评分规则总览</view>
<view class="box"> <view class="box">
<view class="box-title">当月入职新员工规则</view> <view class="box-title">当月入职新员工规则</view>
<view class="box-content"><view>当月入职,出勤≥15天,产值<10000元 → 自动D级(系数:0)</view>除上述规则以外,当月入职的新员工绩效默认为【B】</view> <view class="box-content"><view>当月入职,出勤≥15天,产值<10000元 → 自动D级(系数:0)</view>除上述规则以外,当月入职的新员工绩效默认为【B】</view>
...@@ -35,6 +48,7 @@ ...@@ -35,6 +48,7 @@
</view> </view>
<view class="arrow-btn flex"><view class="flex" bindtap="handleRuleClose">收起规则<image src="{{IMG_URL}}arrow-left.png" mode=""/></view></view> <view class="arrow-btn flex"><view class="flex" bindtap="handleRuleClose">收起规则<image src="{{IMG_URL}}arrow-left.png" mode=""/></view></view>
</view> </view>
<view class="empty-box"></view>
<view class="top"> <view class="top">
<view class="title">统计卡片<text class="tips">规则影响统计</text></view> <view class="title">统计卡片<text class="tips">规则影响统计</text></view>
<view class="card-row"> <view class="card-row">
...@@ -50,29 +64,79 @@ ...@@ -50,29 +64,79 @@
</view> </view>
</view> </view>
</view> </view>
<view class="list-box" style="height: 100vh;"> <view class="list-box">
<view class="search-box"> <view class="sticky-box {{isSticky ? 'is-sticky' : ''}}">
<view class="search-input"> <view class="search-box">
<image src="/images/search.png" class="search-icon" /> <view class="search-input">
<input type="text" placeholder="员工姓名/手机号查询" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" /> <image src="/images/search.png" class="search-icon" />
<block wx:if="{{ keyword }}"> <input type="text" placeholder="员工姓名/手机号查询" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
<image src="/images/clear.png" class="search-clear" bindtap="clear" /> <block wx:if="{{ keyword }}">
</block> <image src="/images/clear.png" class="search-clear" bindtap="clear" />
</view> </block>
</view>
<view class="filter-box flex">
<view class="flex">
<view class="filter-item flex {{filterObj.level ? 'active': ''}}" bindtap="handleLevelFilter">
<text>{{levelMap[filterObj.level]}}</text><image src="{{IMG_URL}}{{filterObj.level ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view> </view>
<view class="filter-item flex {{filterObj.status ? 'active': ''}}" bindtap="handleStatusFilter"> </view>
<text>{{statusMap[filterObj.status]}}</text><image src="{{IMG_URL}}{{filterObj.status ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/> <view class="filter-box flex">
<view class="flex">
<view class="filter-item flex {{filterObj.level ? 'active': ''}}" bindtap="handleLevelFilter">
<text>{{levelMap[filterObj.level]}}</text><image src="{{IMG_URL}}{{filterObj.level ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
<view class="filter-item flex {{filterObj.status ? 'active': ''}}" bindtap="handleStatusFilter">
<text>{{statusMap[filterObj.status].name}}</text><image src="{{IMG_URL}}{{filterObj.status ? 'expand_icon_blue' : 'expand_icon'}}.png" mode=""/>
</view>
</view> </view>
<view class="reset-btn" bindtap="handleFilterReset">重置</view>
</view> </view>
<view class="reset-btn" bindtap="handleFilterReset">重置</view>
</view> </view>
<view class="list" style="height: 2000rpx;"> <view class="list" style="min-height: 300rpx;">
<view wx:if="{{isSticky}}" class="empty-box"></view>
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index">
<block wx:for="{{ item }}" wx:for-item="li" wx:for-index="ind" wx:key="ind">
<view
data-ind="{{ ind }}"
data-index="{{ index }}"
>
<view
class="item content"
data-ind="{{ ind }}"
data-index="{{ index }}"
data-item="{{ li }}"
>
<view class="item-top">
<view class="name">{{li.staffName}}</view>
<view class="status text-center" style="color:{{ statusMap[li.status].color }};background-color:{{statusMap[li.status].background }};">
{{statusMap[li.status].name }}
</view>
</view>
<view class="list-item">
<view class="label">入职门店</view>
<view class="value">{{li.merchantName}}</view>
</view>
<view class="list-item">
<view class="label">绩效分数</view>
<van-rate readonly value="{{ utils.rateFormat(rateRuleList, li.level) }}" count="{{6}}" void-icon="star" size="16px" void-color="#DEE0E3" color="#FFB742" />
<view class="score">{{li.score}}</view>
</view>
<view class="list-item">
<view class="label">入职门店</view>
<view class="value">{{li.merchantName}}</view>
</view>
<view class="btn-box flex">
<view bindtap="handleDetail" data-target="{{li}}" class="btn">查看</view>
<view bindtap="handleDetail" data-target="{{li}}" class="btn primary">编辑</view>
</view>
</view>
</view>
</block>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
<view class="empty-box" style="height: 80rpx;"></view>
</block>
<block wx:else>
<empty-data />
</block>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
......
// packageWorkspace/pages/performanceRating/ruleNote/rulwNote.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file \ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageWorkspace/pages/performanceRating/ruleNote/rulwNote.wxss */
\ No newline at end of file \ No newline at end of file
<!--packageWorkspace/pages/performanceRating/ruleNote/rulwNote.wxml-->
<text>packageWorkspace/pages/performanceRating/ruleNote/rulwNote.wxml</text>
\ No newline at end of file \ No newline at end of file
...@@ -189,7 +189,7 @@ Page({ ...@@ -189,7 +189,7 @@ Page({
let { url, query, trackingCode, params, path } = e.currentTarget.dataset.target let { url, query, trackingCode, params, path } = e.currentTarget.dataset.target
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
// 埋点 // 埋点
// wx.$track.setTrackData(0, trackingCode, {}, '', userInfo?.sceneType) wx.$track.setTrackData(0, trackingCode, {}, '', userInfo?.sceneType)
if (url == 'packageWorkspace.receptionRecords' && query) { if (url == 'packageWorkspace.receptionRecords' && query) {
return wx.navigateTo({ return wx.navigateTo({
url: '/packageWorkspace/pages/receptionRecords/receptionRecords?hideScore=1', url: '/packageWorkspace/pages/receptionRecords/receptionRecords?hideScore=1',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!