Commit 5cb4aac9 by 前端

积分

1 parent 8097e76e
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-08 10:31:49
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-15 15:38:27
* @LastEditTime: 2025-02-28 14:11:20
* @FilePath: \gl-tape\components\HomeFrame\components\Income\Dailog.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -10,7 +10,7 @@
<view class="dailog-panel">
<view class="dailog-box" :style="{ width: width }">
<view class="dailog-header flex">
<view :class="[`sprite-icon icon-${icon}`, { enlarge: icon }]" v-if="icon"></view>
<view :class="[`sprite-icon icon-${icon}`, { enlarge: icon && scale == 0 }]" v-if="icon"></view>
<view class="sprite-icon icon-income-count" v-else></view>
<view class="dailog-title">{{ title }}</view>
<view class="dailog-close" @click="close"><uni-icons type="closeempty" size="20"></uni-icons></view>
......@@ -29,6 +29,10 @@ export default {
default: '1040rpx'
},
icon: String,
scale: {
type: Number,
default: 0
},
title: String
},
data() {
......
<template>
<Dailog @close="close" v-if="show" width="1288rpx" :title="detail.label" :icon="detail.icon">
<Dailog @close="close" v-if="show" width="1288rpx" :title="detail.label" :icon="detail.icon" :scale="detail.scale">
<view class="dailog-body" slot="content">
<view class="table-container">
<table class="table-box">
......
......@@ -295,6 +295,7 @@ export default {
this.detail = {
label: '产品提成比例明细',
icon: 'info-icon',
scale: 1,
tabelTh: [
{
title: '产品名称'
......
......@@ -81,17 +81,17 @@ export default {
inject: ['hideFooter', 'showPage'],
async mounted() {
this.hideFooter(false)
// const { phone } = uni.$storage.get('userInfo')
// const res = await uni.$api.pointApi.incomeMeasurementConfig({ staffPhone: phone })
// const phoneList = res.whiteConfig || {}
// if (res.configFlag == 0 || (res.configFlag == 2 && phoneList.staffPhone == phone)) {
// this.isShow = true
// } else {
// this.isShow = false
// return
// }
const { phone } = uni.$storage.get('userInfo')
const res = await uni.$api.pointApi.incomeMeasurementConfig({ staffPhone: phone })
const phoneList = res.whiteConfig || {}
if (res.configFlag == 0 || (res.configFlag == 2 && phoneList.staffPhone == phone)) {
this.isShow = true
} else {
this.isShow = false
return
}
this.incomeCalculation()
// this.start()
this.start()
},
destroyed() {
this.hideFooter(true)
......
......@@ -26,7 +26,7 @@
</view>
</view>
<view class="point-up">
<view class="card-box medal-card" @click="jump('LevelPoint')">
<view class="card-box medal-card" @click="jump('LevelMedal')">
<view class="card-top">
<view class="sprite-icon icon-medal"></view>
<view class="card-title">成长勋章</view>
......@@ -45,13 +45,13 @@
<view class="sprite-icon icon-certificate"></view>
<view class="card-title">我的兑换券</view>
<!-- <view class="card-wait">敬请期待</view> -->
<view class="card-number">{{couponCount}}</view>
<view class="card-number">{{ couponCount }}</view>
<view class="sprite-icon icon-coupon-arrow card-arrow"></view>
</view>
<view class="card-content">
<template v-if="couponCount != 0">
<view class="coupon-card">
<view v-for="item in couponList" :key="item.id" class="card-bg" :class="item.isclaimed ? 'claimed-bg': 'unclaimed-bg'">
<view v-for="item in couponList" :key="item.id" class="card-bg" :class="item.isclaimed ? 'claimed-bg' : 'unclaimed-bg'">
<view class="coupon-img"></view>
<view class="coupon-right">
<view class="coupon-name">{{ item.couponName }}</view>
......@@ -264,12 +264,12 @@ export default {
height: calc(100vh - #{toRpx(1118)});
.card-title {
font-size: toRpx(36);
color: #1A1A1A !important;
color: #1a1a1a !important;
}
.card-number {
font-weight: 700;
font-size: toRpx(80);
color: #FA9D23;
color: #fa9d23;
margin-left: auto;
}
.card-arrow {
......@@ -373,7 +373,7 @@ export default {
.coupon-name {
width: toRpx(196);
font-size: toRpx(28);
color: #181A1F;
color: #181a1f;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
......@@ -383,7 +383,7 @@ export default {
.coupon-price {
margin-top: toRpx(16);
font-size: toRpx(26);
color: #4D9CFB;
color: #4d9cfb;
}
}
}
......
......@@ -70,6 +70,7 @@ import Point from './components/Point.vue'
import dayPoint from './components/Point/DayPoint.vue'
import rulePoint from './components/Point/RulePoint.vue'
import LevelPoint from './components/Point/LevelPoint.vue'
import LevelMedal from './components/Point/LevelMedal.vue'
import Course from './components/Point/Course.vue'
import Ranking from './components/Point/Ranking.vue'
import Calendar from './components/Income/Calendar.vue'
......@@ -78,7 +79,7 @@ import History from './components/Income/History.vue'
import merge from '@/mixin/record/merge.js'
export default {
mixins: [recorder, uploader, timeout, versionCheck, merge],
components: { RecordList, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History },
components: { RecordList, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal },
props: {
id: [String, Number],
finishDoneText: String,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!