yunshangxie/pages/index/my_assist.vue

174 lines
4.3 KiB
Vue

<template>
<view class="tn-safe-area-inset-bottom">
<!-- 顶部自定义导航 -->
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
<view style="padding-left: 15rpx;" @click="goBack()">
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
</view>
<view class="tn-margin-top"
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
<tn-tabs :list="[{name:'帮助中心'}]" :current="topCurrent" activeColor="#000" :bold="false"
:fontSize="36"></tn-tabs>
</view>
</view>
</tn-nav-bar>
<view class="tn-margin-bottom-xl" :style="{paddingTop: vuex_custom_bar_height + 'px'}">
<view class="tn-flex tn-flex-row-between tn-padding tn-strip-bottom-min tn-margin-top-xs">
<view class="justify-content-item">
<view class="tn-text-bold tn-text-lg">
常见问题
</view>
</view>
</view>
<view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding tn-margin-top-xs"
v-for="(item, index) in helpList" :key="index" @click="tn('/minePages/content')">
<view class="justify-content-item">
<view class="tn-text-df">
{{ item.title }}
</view>
</view>
<view class="justify-content-item tn-text-lg tn-color-grey">
<view class="tn-icon-right"></view>
</view>
</view>
<view class="tn-flex tn-flex-row-between tn-padding tn-strip-bottom-min tn-strip-top">
<view class="justify-content-item">
<view class="tn-text-bold tn-text-lg">
登录问题
</view>
</view>
</view>
<view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding tn-margin-top-xs"
v-for="(item, index) in helpList" @click="tn('/minePages/content')">
<view class="justify-content-item">
<view class="tn-text-df">
{{ item.title }}
</view>
</view>
<view class="justify-content-item tn-text-lg tn-color-grey">
<view class="tn-icon-right"></view>
</view>
</view>
<view class="tn-flex tn-flex-row-between tn-padding tn-strip-bottom-min tn-strip-top">
<view class="justify-content-item">
<view class="tn-text-bold tn-text-lg">
其他问题
</view>
</view>
</view>
<view class="tn-flex tn-flex-row-between tn-strip-bottom-min tn-padding tn-margin-top-xs"
v-for="(item, index) in helpList" @click="tn('/minePages/content')">
<view class="justify-content-item">
<view class="tn-text-df">
{{ item.title }}
</view>
</view>
<view class="justify-content-item tn-text-lg tn-color-grey">
<view class="tn-icon-right"></view>
</view>
</view>
</view>
<view class='tn-tabbar-height'></view>
</view>
</template>
<script>
export default {
data() {
return {
topCurrent: 0,
helpList: [{
title: "关于隐私授权",
name: "",
},
{
title: "账号无法退出切换账号",
name: "",
},
{
title: "无法授权微信登录",
name: "",
},
{
title: "积分记录不见了",
name: "",
}
]
}
},
methods: {
goBack() {
if (getCurrentPages().length > 1) {
uni.navigateBack()
} else {
uni.redirectTo({
url: '/pages/index/index'
})
}
},
// 跳转
tn(e) {
uni.navigateTo({
url: e,
});
},
}
}
</script>
<style lang="scss" scoped>
/* 间隔线 start*/
.tn-strip-bottom-min {
width: 100%;
border-bottom: 1rpx solid #F8F9FB;
}
.tn-strip-top {
width: 100%;
border-top: 20rpx solid rgba(241, 241, 241, 0.8);
}
/* 间隔线 end*/
/* 用户头像 start */
.user-image {
width: 90rpx;
height: 90rpx;
position: relative;
}
.user-pic {
background-size: cover;
background-repeat: no-repeat;
// background-attachment:fixed;
background-position: top;
border-radius: 50%;
overflow: hidden;
background-color: #FFFFFF;
}
/* 底部悬浮按钮 start*/
.tn-tabbar-height {
min-height: 120rpx;
height: calc(140rpx + env(safe-area-inset-bottom) / 2);
height: calc(140rpx + constant(safe-area-inset-bottom));
}
.tn-footerfixed {
position: fixed;
background-color: rgba(255, 255, 255, 0.5);
box-shadow: 0rpx 0rpx 30rpx 0rpx rgba(0, 0, 0, 0.07);
bottom: 0;
width: 100%;
transition: all 0.25s ease-out;
z-index: 100;
}
</style>