You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_uniapp/pages/my/helpCenter.vue

128 lines
2.9 KiB

9 months ago
<template>
<BaseContainer class="help-center">
<NavBar title="帮助与反馈" />
<view class="help-box flex flex-center-x">
<view class="help-left">
<view class="title">常见问题解答</view>
<view class="cont">如您问题未得到解决可咨询我们客服哦 ~</view>
</view>
<view class="help-right flex flex-center-y" @click="toFeedback">
<image src="@/static/images/my/feedback.png" mode="aspectFill"></image>
<view class="name">意见反馈</view>
</view>
</view>
<view class="section-list">
9 months ago
<view class="section-link" v-for="(item, index) in menuList" :key="index" @click="goDetail(item)" >
9 months ago
{{ item.title }}
<view class="menu-more"></view>
</view>
</view>
</BaseContainer>
</template>
<script>
9 months ago
import { helpCenter } from '@/api/user';
9 months ago
export default {
data() {
return {
menuList: [
{ title: '怎么申请发票' , url: '' },
{ title: '如何联系人工客服' , url: '' },
{ title: '怎么绑定手机号' , url: '' },
{ title: '忘记密码找回' , url: '' },
],
};
},
9 months ago
onLoad() {
this.getHelpCenterData();
},
9 months ago
methods: {
9 months ago
goDetail(item) {
uni.navigateTo({
url: `/pages/my/helpDetail?title=${item.title}&content=${item.content}`
})
9 months ago
},
toFeedback() {
9 months ago
uni.navigateTo({
url: '/pages/my/feedback',
})
9 months ago
},
9 months ago
async getHelpCenterData() {
try{
const { data } = await helpCenter();
console.log(data);
this.menuList = data.helpcenter;
}catch(e){
//TODO handle the exception
}
},
9 months ago
},
};
</script>
<style lang="scss" scoped>
.help-center {
background: linear-gradient(to top, #f6f6f6 0%, #f6f6f6 60%, #F6F8FA 70%, #A1BFFD 100%);
.help-box {
padding: 30rpx 32rpx 0;
height: 193rpx;
.help-left {
flex: 1;
color: #333333;
font-size: 26rpx;
line-height: 26rpx;
.title {
font-size: 36rpx;
line-height: 36rpx;
font-weight: bold;
margin-bottom: 26rpx;
}
}
.help-right {
width: 99rpx;
height: 99rpx;
background: #fff;
border-radius: 20rpx;
color: #333333;
font-size: 22rpx;
line-height: 22rpx;
flex-direction: column;
align-items: center;
>image {
width: 51rpx;
height: 44rpx;
margin-bottom: 6rpx;
}
}
}
.section-list {
width: 690rpx;
margin: 0 auto;
font-size: 30rpx;
color: #282828;
background-color: #ffffff;
border-radius: 10rpx;
margin-top: 20rpx;
.section-link {
display: flex;
align-items: center;
font-size: 28rpx;
color: #333;
height: 96rpx;
padding-left: 36rpx;
padding-right: 26rpx;
.menu-more {
width: 14rpx;
height: 14rpx;
border-width: 2px 2px 0 0;
border-color: #ccc;
border-style: solid;
-webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
vertical-align: top;
margin-left: auto;
}
}
}
}
</style>