Commit ac2a9e32 authored by Facius's avatar Facius
parents 41d059df 51c85c19
Pipeline #2973 canceled with stages
......@@ -19,9 +19,7 @@
>
<view class="item-view">
<view class="left-view">
<view class="image-view">
<image :src="billStaticBaseUrl+item.icon" v-if="item.icon"></image>
</view>
<view class="image-view"><image :src="billStaticBaseUrl + item.icon" v-if="item.icon"></image></view>
<view class="name-view">{{ item.label }}</view>
</view>
</view>
......@@ -41,9 +39,7 @@
>
<view class="item-view">
<view class="left-view">
<view class="image-view">
<image :src="billStaticBaseUrl+movableViewInfo.data.icon" class="image-view" v-if="movableViewInfo.data.icon"></image>
</view>
<view class="image-view"><image :src="billStaticBaseUrl + movableViewInfo.data.icon" class="image-view" v-if="movableViewInfo.data.icon"></image></view>
<view class="name-view">{{ movableViewInfo.data && movableViewInfo.data.label }}</view>
</view>
</view>
......@@ -56,7 +52,7 @@
<script>
import PopInput from '@/components/pop-input-view';
import {billStaticBaseUrl} from '@/utils/config.js'
import { billStaticBaseUrl } from '@/utils/config.js';
export default {
name: 'dragEdit',
props: ['list'],
......@@ -112,14 +108,13 @@ export default {
deep: true
}
},
computed: {
},
computed: {},
mounted() {
this.systemInfo = uni.getSystemInfoSync();
this.optionLists = [...this.list];
},
methods: {
contentClick(e){
contentClick(e) {
console.log('contentClick', e);
setTimeout(() => {
this.closeAll();
......@@ -153,7 +148,7 @@ export default {
}
});
}
console.log("open",this.optionLists)
console.log('open', this.optionLists);
},
toEdit(index) {
......@@ -167,11 +162,11 @@ export default {
});
uni.$once(`input-sure-payments-setting`, res => {
this.optionLists[index].label = res.content;
this.$emit("onEdit",this.optionLists[index])
this.$emit('onEdit', this.optionLists[index]);
});
},
handleConfirm() {
let row=this.optionLists[this.readyDeleteIndex]
let row = this.optionLists[this.readyDeleteIndex];
// this.optionLists.splice(this.readyDeleteIndex, 1);
this.optionLists[this.readyDeleteIndex].show = false;
this.$emit('onDelete', row);
......@@ -370,6 +365,7 @@ export default {
// margin-bottom: 12px;
border-radius: 8rpx;
background-color: #fff;
width: 100%;
}
.movable-area {
position: absolute;
......@@ -405,7 +401,7 @@ export default {
.left-view {
display: flex;
align-items: center;
width: 100%;
width: 100%;
.image-view {
width: 72rpx;
height: 72rpx;
......@@ -413,6 +409,7 @@ export default {
}
.name-view {
flex: 1;
font-size: 32rpx;
font-weight: bold;
}
......
......@@ -58,7 +58,7 @@ export default {
listHeight: 0,
showTip: false,
imageTop: 0,
notification : 'update-payments-setting'
notification : 'update-payments-setting',
};
},
computed: {
......
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