Commit 9dc2cc9f authored by Facius's avatar Facius
parents f5974573 d15d4072
Pipeline #2976 canceled with stages
...@@ -11,7 +11,11 @@ ...@@ -11,7 +11,11 @@
<view class="card-title">{{ detail.classification && detail.classification.name }}</view> <view class="card-title">{{ detail.classification && detail.classification.name }}</view>
<view class="card-subtitle">{{ detail.amount }}</view> <view class="card-subtitle">{{ detail.amount }}</view>
</view> </view>
<view class="card-line"></view> <view class="card-line">
<view class="card-line-border"></view>
<view class="card-line-view card-line-up"></view>
<view class="card-line-view card-line-down"></view>
</view>
<view class="card-bdoy"> <view class="card-bdoy">
<view class="item" v-for="(item, index) in list" :key="index"> <view class="item" v-for="(item, index) in list" :key="index">
<view class="item-label">{{ item.label }}</view> <view class="item-label">{{ item.label }}</view>
...@@ -40,7 +44,7 @@ ...@@ -40,7 +44,7 @@
import AbButton from '@/components/common/ab-button.vue'; import AbButton from '@/components/common/ab-button.vue';
import PopInput from '@/components/pop-input-view'; import PopInput from '@/components/pop-input-view';
import BillingDetails from '@/components/billing-daily/billing-daily.vue'; import BillingDetails from '@/components/billing-daily/billing-daily.vue';
import { billStaticBaseUrl } from '@/utils/config.js'; import { billStaticBaseUrl, billBaseUrl } from '@/utils/config.js';
import { get } from '@/api/bill/index.js'; import { get } from '@/api/bill/index.js';
import { deleteByIds } from '@/api/bill/daily.js'; import { deleteByIds } from '@/api/bill/daily.js';
export default { export default {
...@@ -52,6 +56,7 @@ export default { ...@@ -52,6 +56,7 @@ export default {
data() { data() {
return { return {
billStaticBaseUrl, billStaticBaseUrl,
lineImage: billBaseUrl + 'fengexuxian@3x.png',
showConfirm: false, showConfirm: false,
id: '', id: '',
type: '', type: '',
...@@ -86,7 +91,7 @@ export default { ...@@ -86,7 +91,7 @@ export default {
value: 'remark' value: 'remark'
} }
], ],
firstEnter:true firstEnter: true
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -102,7 +107,7 @@ export default { ...@@ -102,7 +107,7 @@ export default {
} }
}, },
onShow() { onShow() {
if (!this.firstEnter&&this.id) { if (!this.firstEnter && this.id) {
this.getDetail(); this.getDetail();
} }
}, },
...@@ -118,7 +123,7 @@ export default { ...@@ -118,7 +123,7 @@ export default {
} catch (e) { } catch (e) {
//TODO handle the exception //TODO handle the exception
} }
this.firstEnter=false this.firstEnter = false;
}, },
toDelete() { toDelete() {
this.showConfirm = true; this.showConfirm = true;
...@@ -134,15 +139,15 @@ export default { ...@@ -134,15 +139,15 @@ export default {
let params = { let params = {
id: this.detail.id id: this.detail.id
}; };
let {data} = await deleteByIds(params); let { data } = await deleteByIds(params);
if(data){ if (data) {
this.showToast('删除成功', true); this.showToast('删除成功', true);
setTimeout(() => { setTimeout(() => {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}); });
}, 1500); }, 1500);
}else{ } else {
this.showToast('删除失败'); this.showToast('删除失败');
} }
} catch (e) { } catch (e) {
...@@ -150,7 +155,7 @@ export default { ...@@ -150,7 +155,7 @@ export default {
let { msg } = e; let { msg } = e;
if (msg) { if (msg) {
this.showToast(msg); this.showToast(msg);
}else{ } else {
this.showToast('删除失败'); this.showToast('删除失败');
} }
//TODO handle the exception //TODO handle the exception
...@@ -229,7 +234,53 @@ page { ...@@ -229,7 +234,53 @@ page {
} }
&-line { &-line {
width: 100%; width: 100%;
height: 24upx; height: 24rpx;
position: relative;
overflow: hidden;
background-color: #ffffff;
margin-bottom: -1px;
margin-top: -1px;
&-view {
position: absolute;
width: 24rpx;
height: 24rpx;
border-radius: 50%;
background-color: $default-color;
top: 0;
z-index: 2;
}
&-border {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
z-index: 1;
height: 0px;
width: 100%;
border-bottom: 1px dashed #f6f7fa;
// &:before {
// content: ' ';
// position: absolute;
// left: 0;
// top: 0;
// width: 100%;
// height: 1px;
// border-top: 1px dashed #f6f7fa;
// color: #f6f7fa;
// -webkit-transform-origin: 0 0;
// transform-origin: 0 0;
// -webkit-transform: scaleY(0.5);
// transform: scaleY(0.5);
// }
}
&-up {
left: 0;
transform: translateX(-50%);
}
&-down {
right: 0;
transform: translateX(50%);
}
} }
&-bdoy { &-bdoy {
background: #ffffff; background: #ffffff;
......
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