Commit ec1bcb2b authored by 刘文虎's avatar 刘文虎
parents d6ce40f7 6182ffc6
Pipeline #3241 canceled with stages
<template>
<view
class="cell-card"
hover-class="u-hover-class"
@click.stop="$u.throttle(handleClickCard, 500)"
>
<swiper
class="swiper"
:indicator-dots="true"
indicator-color="rgba(252, 184, 42, 0.45)"
indicator-active-color="#FCB82A"
style="height: 420rpx"
>
<swiper-item>
<Card
ref="card"
:info="info"
@save="handleCanvas"
@update="handleUpdate"
/>
</swiper-item>
<swiper-item>
<CardBack ref="cardBack" :info="info" @save="handleCanvasBack" />
</swiper-item>
</swiper>
</view>
</template>
<script>
import Card from '@/components/cell-card'
import CardBack from '@/components/cell-card-back'
export default {
components: {
Card,
CardBack,
},
props: {
info: {
type: Object,
default() {
return {}
},
},
},
data() {
return {}
},
computed: {},
methods: {
updateImage() {
this.$refs.card.updateImage()
},
saveImage() {
this.$refs.card.saveImage()
return
this.$refs.cardBack.saveImage()
},
handleClickCard() {
this.$emit('click')
},
handleCanvas(res) {
this.$emit('save', res)
},
handleUpdate(url) {
this.$emit('update', url)
},
handleCanvasBack(res) {
this.$refs.card.saveImage()
},
},
}
</script>
<style scoped lang="scss">
.cell-card {
width: 100%;
height: 420rpx;
border-radius: 16rpx;
background-color: #ffffff;
position: relative;
overflow: hidden;
}
</style>
<template> <template>
<view <view class="cell-card">
class="cell-card"
hover-class="u-hover-class"
@click.stop="$u.throttle(handleClick, 500)"
>
<template v-if="isGreen"> <template v-if="isGreen">
<view class="back-view"> <view class="back-view">
<image :src="settings.image"></image> <image :src="settings.image"></image>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</view> </view>
<template v-else> <template v-else>
<view class="card-content"> <view class="card-content">
<Card <CardSwiper
ref="card" ref="card"
:info="info" :info="info"
@click="handleClickCard" @click="handleClickCard"
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<script> <script>
import NavbarRight from '@/components/navbar-right' import NavbarRight from '@/components/navbar-right'
import NoData from '@/components/no-data' import NoData from '@/components/no-data'
import Card from '@/components/cell-card' import CardSwiper from '@/components/cell-card-swiper'
import CellRelation from '@/components/cell-relation' import CellRelation from '@/components/cell-relation'
import { import {
getBusinessCardSelf, getBusinessCardSelf,
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
components: { components: {
NavbarRight, NavbarRight,
NoData, NoData,
Card, CardSwiper,
CellRelation, CellRelation,
}, },
data() { data() {
......
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
date: this.$u.timeFormat(new Date().getTime(), 'yyyy-mm') + '-01', date: this.$u.timeFormat(new Date().getTime(), 'yyyy-mm') + '-01',
daterange: [], daterange: [],
showDatePicker: false, showDatePicker: false,
infoIndex: 0, infoIndex: 1,
info: {}, info: {},
loading: false, loading: false,
triggered: true, triggered: true,
...@@ -693,12 +693,13 @@ export default { ...@@ -693,12 +693,13 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 0 24rpx; padding: 0 24rpx;
font-size: 24rpx;
.left-view { .left-view {
display: flex; display: flex;
align-items: center; align-items: center;
.item-view { .item-view {
height: 48rpx; height: 48rpx;
width: 104rpx; width: 96rpx;
line-height: 48rpx; line-height: 48rpx;
font-weight: bold; font-weight: bold;
color: #8d8d8d; color: #8d8d8d;
...@@ -778,7 +779,7 @@ export default { ...@@ -778,7 +779,7 @@ export default {
.item-text { .item-text {
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
margin: 20rpx 0 10rpx 0; margin: 20rpx 0 14rpx 0;
padding: 0 24rpx; padding: 0 24rpx;
} }
.item-data { .item-data {
......
...@@ -126,6 +126,8 @@ export default { ...@@ -126,6 +126,8 @@ export default {
let { value } = e.detail; let { value } = e.detail;
this.date = value + '-01'; this.date = value + '-01';
this.form.date = this.parseTime(value + '-01', '{y}年{m}月'); this.form.date = this.parseTime(value + '-01', '{y}年{m}月');
this.defaultDate = this.parseTime(value, '{y}-{m}') + '-01';
console.log(this.date); console.log(this.date);
this.$nextTick(() => { this.$nextTick(() => {
// this.getMouthStatistics(); // this.getMouthStatistics();
......
...@@ -277,14 +277,18 @@ export default { ...@@ -277,14 +277,18 @@ export default {
if (this.billId) { if (this.billId) {
this.repairDetail(); this.repairDetail();
} else {
this.getLocation();
} }
uni.$on('maintain-bill-detail', (res) => {
this.repairDetail()
})
this.getLocation();
}, },
onReady() { onReady() {
this.$refs.uForm.setRules(this.rules); this.$refs.uForm.setRules(this.rules);
}, },
onUnload() {}, onUnload() {
uni.$off('maintain-bill-detail')
},
onShow() {}, onShow() {},
methods: { methods: {
preview() { preview() {
......
...@@ -625,8 +625,8 @@ export default { ...@@ -625,8 +625,8 @@ export default {
views: [ views: [
{ {
css: { css: {
color: ' #8d8d8d', color: '#8d8d8d',
width: '142rpx', width: '150rpx',
}, },
type: 'text', type: 'text',
text: this.infoKeys[key], text: this.infoKeys[key],
...@@ -638,7 +638,7 @@ export default { ...@@ -638,7 +638,7 @@ export default {
textAlign: 'right', textAlign: 'right',
'line-clamp': 2, 'line-clamp': 2,
boxSizing: 'border-box', boxSizing: 'border-box',
width: '512rpx', width: '508rpx',
}, },
type: 'text', type: 'text',
text: this.info[key], text: this.info[key],
...@@ -697,8 +697,8 @@ export default { ...@@ -697,8 +697,8 @@ export default {
views: [ views: [
{ {
css: { css: {
color: ' #8d8d8d', color: '#8d8d8d',
width: '142rpx', width: '150rpx',
}, },
type: 'text', type: 'text',
text: item.title, text: item.title,
...@@ -710,7 +710,7 @@ export default { ...@@ -710,7 +710,7 @@ export default {
textAlign: 'right', textAlign: 'right',
'line-clamp': 2, 'line-clamp': 2,
boxSizing: 'border-box', boxSizing: 'border-box',
width: '512rpx', width: '508rpx',
color: item.color, color: item.color,
}, },
type: 'text', type: 'text',
...@@ -838,7 +838,7 @@ export default { ...@@ -838,7 +838,7 @@ export default {
views: [ views: [
{ {
css: { css: {
color: ' #8d8d8d', color: '#8d8d8d',
}, },
type: 'text', type: 'text',
text: '品牌:', text: '品牌:',
...@@ -865,7 +865,7 @@ export default { ...@@ -865,7 +865,7 @@ export default {
views: [ views: [
{ {
css: { css: {
color: ' #8d8d8d', color: '#8d8d8d',
}, },
type: 'text', type: 'text',
text: '型号:', text: '型号:',
...@@ -906,7 +906,7 @@ export default { ...@@ -906,7 +906,7 @@ export default {
views: [ views: [
{ {
css: { css: {
color: ' #8d8d8d', color: '#8d8d8d',
}, },
type: 'text', type: 'text',
text: '故障现象:', text: '故障现象:',
...@@ -943,7 +943,7 @@ export default { ...@@ -943,7 +943,7 @@ export default {
views: [ views: [
{ {
css: { css: {
color: ' #8d8d8d', color: '#8d8d8d',
}, },
type: 'text', type: 'text',
text: '检修结果:', text: '检修结果:',
......
export const version = "1.0.7" export const version = "1.0.11"
export const baseURL = "/baseapi" export const baseURL = "/baseapi"
export const token = "TOKEN" export const token = "TOKEN"
export const PHONENUMBER = "PHONENUMBER" export const PHONENUMBER = "PHONENUMBER"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment