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
100
101
102
103
<template>
<view>
<view class="header-content">
<image class="header-logo-img" src="@/static/img/ccdg.png"></image>
<view class="header-info">
<view class="header-tip">彩店名称</view>
<view class="header-name">{{data.addr}}</view>
</view>
</view>
<view class="panel" v-for="(list,i1) in navList" :class="{'panel-top':i1>0}" :key="i1">
<view v-for="(item,i2) in list" class="panel-item" :class="{'panel-item-bottom':i2<list.length-1}"
:key="i2">
<text class="panel-text">{{item}}</text>
<uni-icons type="forward" size="14" color="#d2d2d2"></uni-icons>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
navList: [
['宣传设置', '添加子账号', '分享给好友'],
['联系客服', '提建议', '缓存清理']
],
data: {
addr: '未登记彩店'
}
}
},
async onLoad(e) {
const res = await uni.$u.request.graphql({
name: 'lottery_shop_get_my_shop_info'
})
if (res.length < 1) return
this.data = res[0]
},
methods: {
}
}
</script>
<style>
page {
background-color: #F5F5F5;
}
.header-content {
background-color: #D23338;
width: 100vw;
height: 77px;
display: flex;
}
.header-logo-img {
margin: 16px;
width: 45px;
height: 45px;
border-radius: 45px;
background-color: #FFFFFF;
}
.header-info {
font-size: 16px;
color: #FFFFFF;
margin-top: 20px;
}
.header-name {
font-size: 12px;
}
.panel {
font-size: 12px;
}
.panel-item {
padding: 10px 20px;
display: flex;
justify-content: space-between;
background-color: #FFFFFF;
}
.panel-item-bottom {
border-bottom: solid 1px #F5F5F5;
}
.panel-text {
color: #000;
word-wrap: break-word;
}
.panel-top {
margin-top: 12px;
}
</style>