-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
76 lines (76 loc) · 1.9 KB
/
script.js
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
var app = new Vue({
el: '#app',
data: {
hisob: {
start: 0,
soni: 0,
dizayni: 0,
blog2:[],
blog3: 0,
},
admin: {
blog1:{
soni: [
{
nomi: "0-5",
narxi: 500000
},
{
nomi: "5-10",
narxi: 1000000
}
],
dizayni: [
{
nomi: "Tayyor shablon",
narxi: 1500000
},
{
nomi: "Maxsus dizayn",
narxi: 3500000
}
]
},
blog2: [
{
nomi: "Ro'yxatdan o'tish / Profil",
narxi: 1
},
{
nomi: "Foto / video galereya",
narxi: 2
},
{
nomi: "Saytning mobil versiyasi",
narxi: 3
}
],
blog3: [
{
nomi: "O'zimning domen va hostingim bor",
narxi: 123456
},
{
nomi: "Domen / hosting yo'q, yangi olish kerak",
narxi: 1234567
}
]
}
},
computed: {
jami(){
return this.hisob.start+this.hisob.soni+this.hisob.dizayni+this.summBlog2+this.hisob.blog3
},
summBlog2(){
return this.hisob.blog2.reduce((a, b) => a + b, 0)
}
},
methods: {
show(){
alert(this.jami+" so'm")
},
calcId(str){
return window.btoa(str)
}
}
})