commonProblem.vue
1.8 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
<template>
<view class="">
<view class="top"><image class="wh100" src="/static/questionBg.png" mode=""></image></view>
<view class="topTitle">有什么可以帮您!</view>
<view class="botQuestion">
<u-tabs :list="list2" lineColor="#FED000" :scrollable="false" @click="click"></u-tabs>
<scroll-view scroll-y="true" class="questionList">
<view class="list" v-for="(item,idx) in 50" :key="idx" @click="toItem">
<view class="question">123132</view>
<view class="arrow"><image class="wh100" src="/static/arrowR.png" mode=""></image></view>
</view>
</scroll-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
list2: [{
name: '猜你想问',
}, {
name: '退换货品',
}, {
name: '服务条款'
},{name:'分期支付'}],
}
},
methods: {
toItem() {
uni.navigateTo({
url:'/pages/mine/questionDetails'
})
}
},
}
</script>
<style lang="less">
.top {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 400rpx;
z-index: -1;
}
.topTitle {
position: absolute;
left: 44rpx;
top: 134rpx;
color: rgba(0,0,0,1);
font-size: 44rpx;
font-weight: 700;
}
.botQuestion {
position: absolute;
left: 0;
border-top-left-radius: 20rpx;
border-top-right-radius: 20rpx;
top: 260rpx;
// height: calc(100vh - 260rpx);
width: 100%;
background: #fff;
.questionList {
margin-top: 10rpx;
height: calc(100vh - 360rpx);
.list {
padding: 0 32rpx;
margin-bottom: 40rpx;
display: flex;
justify-content: space-between;
align-items: center;
height: 40rpx;
.arrow {
width: 16rpx;
height: 32rpx;
}
}
}
}
</style>