mine concerns 8.15

This commit is contained in:
2020-08-15 17:16:11 +08:00
parent 7deb5d312b
commit df52535848
11 changed files with 377 additions and 227 deletions

View File

@@ -1,11 +1,11 @@
<template>
<view class="setting">
<view class="list-item">
<!-- <view class="list-item">
<view>消息提醒</view>
<view>
<u-switch v-model="checked" active-color="#FF770F" inactive-color="#A9A7A7" size="35"></u-switch>
</view>
</view>
</view> -->
<view v-for="(item, index) in settingList" :key="index" class="list-item" @click="toNextPage(item.link)">
<view>{{ item.title }}</view>
<image src="../static/mine/21.png"></image>

View File

@@ -5,17 +5,15 @@
<view class="feedback-itme">
<view class="manual">
<view class="service-phone">拨打官方客服电话400-100-100</view>
<view class="manual-time">周一至周五08:0-18:00</view>
<view class="manual-time">{{ wkTime }}</view>
</view>
<view class="suggestions">意见反馈</view>
<view class="suggestions" @click="writeComments">意见反馈</view>
</view>
</view>
<view class="feedback-box">
<view class="feedback-title">常见服务</view>
<view class="feedback-itme">
<view class="u-line-2">账号问题登录时需要验证码手机号使用不了怎么办</view>
<view class="u-line-2">账号问题登录时需提示您的密码不安全请重置</view>
<view class="u-line-2">账号问题登录密码忘记了怎么办</view>
<view class="u-line-2" v-for="item in helpList" :key="item.id" @click="viewAnswer(item)">{{ item.question }}</view>
</view>
</view>
</view>
@@ -23,7 +21,32 @@
<script>
export default {
data() {
return {}
return {
helpList: [],
wkTime: '',
tel400: '',
}
},
onLoad() {
this.getHelpList();
},
methods: {
viewAnswer(item) {
this.$store.commit('setQuestion', item);
this.$u.route('pageE/setting/question');
},
getHelpList() {
this.$u.api.getSettingHelpList().then(res => {
this.helpList = res.data.QA;
this.tel400 = res.data.tel400;
this.wkTime = res.data.wkTime;
})
},
writeComments() {
uni.navigateTo({
url: '/pageE/more/WriteComments'
});
}
}
};
</script>

View File

@@ -0,0 +1,51 @@
<template>
<view class="question">
<view class="public-view quest">
<view class="title qt">Q:</view>
<view class="qa">{{ item.question }}</view>
</view>
<view class="public-view answer">
<view class="title at">A:</view>
<view>
<rich-text :nodes="nodes"></rich-text>
</view>
</view>
</view>
</template>
<script>
import common from '@/static/js/common.js'
export default {
data() {
return {
item: {},
nodes: ''
}
},
onLoad() {
this.item = this.$store.state.question;
console.log(this.item);
this.nodes = common.unescapeHTML(this.item.answer);
}
};
</script>
<style lang="scss" scoped>
.question {
min-height: calc(100vh - var(--window-top));
background: #FFFFFF;
padding: 20rpx 30rpx;
.public-view {
display: flex;
margin-bottom: 40rpx;
.title {
font-size: 36rpx;
margin-right: 20rpx;
}
.at {
color: #ff780f;
}
.qa {
line-height: 36rpx;
}
}
}
</style>