Commit 9dc2cc9f authored by Facius's avatar Facius
parents f5974573 d15d4072
Pipeline #2976 canceled with stages
......@@ -11,7 +11,11 @@
<view class="card-title">{{ detail.classification && detail.classification.name }}</view>
<view class="card-subtitle">{{ detail.amount }}</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="item" v-for="(item, index) in list" :key="index">
<view class="item-label">{{ item.label }}</view>
......@@ -40,9 +44,9 @@
import AbButton from '@/components/common/ab-button.vue';
import PopInput from '@/components/pop-input-view';
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 { deleteByIds } from '@/api/bill/daily.js';
import { deleteByIds } from '@/api/bill/daily.js';
export default {
components: {
AbButton,
......@@ -52,6 +56,7 @@ export default {
data() {
return {
billStaticBaseUrl,
lineImage: billBaseUrl + 'fengexuxian@3x.png',
showConfirm: false,
id: '',
type: '',
......@@ -86,7 +91,7 @@ export default {
value: 'remark'
}
],
firstEnter:true
firstEnter: true
};
},
onLoad(options) {
......@@ -102,7 +107,7 @@ export default {
}
},
onShow() {
if (!this.firstEnter&&this.id) {
if (!this.firstEnter && this.id) {
this.getDetail();
}
},
......@@ -118,7 +123,7 @@ export default {
} catch (e) {
//TODO handle the exception
}
this.firstEnter=false
this.firstEnter = false;
},
toDelete() {
this.showConfirm = true;
......@@ -134,15 +139,15 @@ export default {
let params = {
id: this.detail.id
};
let {data} = await deleteByIds(params);
if(data){
let { data } = await deleteByIds(params);
if (data) {
this.showToast('删除成功', true);
setTimeout(() => {
uni.navigateBack({
delta: 1
});
}, 1500);
}else{
} else {
this.showToast('删除失败');
}
} catch (e) {
......@@ -150,7 +155,7 @@ export default {
let { msg } = e;
if (msg) {
this.showToast(msg);
}else{
} else {
this.showToast('删除失败');
}
//TODO handle the exception
......@@ -229,7 +234,53 @@ page {
}
&-line {
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 {
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