mine concerns 8.15
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
51
pageE/setting/question.vue
Normal file
51
pageE/setting/question.vue
Normal 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>
|
||||
Reference in New Issue
Block a user