commonProblem.vue 1.8 KB
<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>