Commit 5cb4aac9 by 前端

积分

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