index.vue
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<template>
<u-popup :show="show" mode="center" bgColor="transparent">
<view class="InfoPop">
<view class="InfoPop-c" @click="show = false">
<image src="@/static/images/admin/icon14.png"></image>
</view>
<view class="InfoPop-b">
<view class="InfoPop-b-t">提示</view>
<view class="InfoPop-b-1">
确定修改为已读吗?
</view>
<view class="InfoPop-b-2">
<view class="InfoPop-b-2-l" @click="show = false">取消</view>
<view class="InfoPop-b-2-r" @click="confirm">确定</view>
</view>
</view>
</view>
</u-popup>
</template>
<script>
export default {
name: 'MarkReadPop',
data() {
return {
show: false,
info: {}
}
},
methods: {
open(info) {
this.show = true
this.info = info
},
confirm() {
var datas = {
id: this.info.id
}
var jkurl = '/admin/message_read'
this.$service.P_post(jkurl, datas).then(res => {
this.$emit('success',this.info.id)
this.show = false
})
}
}
}
</script>
<style lang="scss" scoped>
.InfoPop{
padding-bottom: 300rpx;
.InfoPop-c{
text-align: right;
image{
height: 58rpx;
width: 58rpx;
}
}
.InfoPop-b{
margin-top: 20rpx;
width: 700rpx;
background: #FFFFFF;
border-radius: 20rpx;
padding: 50rpx 80rpx;
.InfoPop-b-t{
color: #3D4054;
font-size: 30rpx;
margin-bottom: 35rpx;
text-align: center;
}
.InfoPop-b-1{
text-align: center;
font-size: 28rpx;
color: #3D4054;
}
.InfoPop-b-2{
display: flex;
justify-content: space-between;
margin-top: 40rpx;
.InfoPop-b-2-l{
line-height: 90rpx;
width: 260rpx;
text-align: center;
border-radius: 15rpx;
background: #EFEFEF;
color: #646464;
}
.InfoPop-b-2-r{
line-height: 90rpx;
width: 260rpx;
text-align: center;
border-radius: 15rpx;
background: #2D81FF;
color: #FFFFFF;
}
}
}
}
</style>