Commit 53239c95 by 前端

合并

1 parent 6a0aee8a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2025-01-07 13:49:15 * @Date: 2025-01-07 13:49:15
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-20 11:35:39 * @LastEditTime: 2025-01-20 16:15:42
* @FilePath: \gl-tape\components\HomeFrame\components\Income\History.vue * @FilePath: \gl-tape\components\HomeFrame\components\Income\History.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
--> -->
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<view class="income-tips"> <view class="income-tips">
<view class="sprite-icon icon-tips-b"></view> <view class="sprite-icon icon-tips-b"></view>
<text>以下未包括 个人所得税、社保等事项</text> <text>以上未包括 个人所得税、社保等事项</text>
</view> </view>
</template> </template>
<view class="empty-body" v-else> <view class="empty-body" v-else>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<view class="value-title">产值</view> <view class="value-title">产值</view>
<view class="value-price"> <view class="value-price">
<text>¥</text> <text>¥</text>
{{ formatNumber(item.orderTotalPrice || '0') }} {{ item.orderTotalPrice || '0' }}
</view> </view>
</view> </view>
<view class="value-desc flex"> <view class="value-desc flex">
...@@ -428,9 +428,10 @@ export default { ...@@ -428,9 +428,10 @@ export default {
.value-box { .value-box {
margin-top: toRpx(12); margin-top: toRpx(12);
.value-desc { .value-desc {
min-width: 50%; width: 55%;
&:last-child { &:last-child {
width: 45%;
margin-left: toRpx(30); margin-left: toRpx(30);
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-08 11:30:30 * @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-20 13:41:26 * @LastEditTime: 2025-01-20 17:13:06
--> -->
<template> <template>
<view class="point-box"> <view class="point-box">
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
}, },
methods: { methods: {
getHtml(val) { getHtml(val) {
return val.replaceAll('\n', '<br/>') return val.replace(/\n/g, '<br/>')
}, },
getDetail(countDate) { getDetail(countDate) {
this.getRule(1) this.getRule(1)
......
...@@ -75,8 +75,9 @@ import Ranking from './components/Point/Ranking.vue' ...@@ -75,8 +75,9 @@ import Ranking from './components/Point/Ranking.vue'
import Calendar from './components/Income/Calendar.vue' import Calendar from './components/Income/Calendar.vue'
import Promotion from './components/Income/Promotion.vue' import Promotion from './components/Income/Promotion.vue'
import History from './components/Income/History.vue' import History from './components/Income/History.vue'
import merge from '@/mixin/record/merge.js'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck], 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 },
props: { props: {
id: [String, Number], id: [String, Number],
......
import { storageApi } from '@/utils/cache'
export default {
mounted() {
this.mergeRecord()
},
methods: {
async mergeRecord() {
console.log('mergeRecord')
const records = uni.$recordManager.getRecords() || []
const tempRecords = storageApi.getRecords('preRecordList') || []
for (let i = 0; i < records.length; i++) {
await uni.$dbManager.addRecord(records[i])
uni.$recordManager.removeRecord(records[i].id)
}
for (let i = 0; i < tempRecords.length; i++) {
await uni.$dbTempRecord.addRecord(tempRecords[i])
}
storageApi.setRecords('preRecordList', [])
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!