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