diff --git a/pages/login/agreement.vue b/pages/login/agreement.vue
index 3b99326..707c63c 100644
--- a/pages/login/agreement.vue
+++ b/pages/login/agreement.vue
@@ -3,7 +3,9 @@
-
+
+
+
@@ -24,10 +26,10 @@
methods:{
checkAgreement(type){
console.log(type,26);
- let url = type*1 ? '/universal/api.login/register_user_agreement' : '/universal/api.login/register_privacy_agreement';
+ let url = type*1 ? '/universal/api.login/register_privacy_agreement' : '/universal/api.login/register_user_agreement';
this.$requst.post(url).then(res=>{
if(res.code==1) {
- // this.richText =
+ this.richText = this.$toolAll.tools.escape2Html(res.data.protocol);
} else this.$toolAll.tools.showToast(res.msg);
})
}
diff --git a/pages/tabbar/pagehome/pagehome.vue b/pages/tabbar/pagehome/pagehome.vue
index 0cf8db3..83546b6 100644
--- a/pages/tabbar/pagehome/pagehome.vue
+++ b/pages/tabbar/pagehome/pagehome.vue
@@ -182,7 +182,7 @@
-
+
{{item.title}}
@@ -193,13 +193,15 @@
常见故障Common faults
-
-
- {{item.title}}
- {{item.content}}
+
+
+
+ {{item.title}}
+ {{item.content}}
+
{{item.views}}人看过
-
+
@@ -293,26 +295,7 @@
{imgsrc:'/static/public/icon-home-checkSparePart.png',title:'查备件',num:0},
],
// 常见故障
- faultsList:[
- {
- imgsrc:'/static/deleteImg/flying-img05.png',
- title:'1.启动时提示“大屏幕系统没有找到”',
- content:'故障原因:串口线或者USB线与发送卡没连接;电脑 COM或者USB口坏;串口线或者USB线坏;发送卡坏;没 有安装USB驱动。',
- views:4399
- },
- {
- imgsrc:'/static/deleteImg/flying-img05.png',
- title:'1.启动时提示“大屏幕系统没有找到”',
- content:'故障原因:串口线或者USB线与发送卡没连接;电脑 COM或者USB口坏;串口线或者USB线坏;发送卡坏;没 有安装USB驱动。',
- views:4399
- },
- {
- imgsrc:'/static/deleteImg/flying-img05.png',
- title:'1.启动时提示“大屏幕系统没有找到”',
- content:'故障原因:串口线或者USB线与发送卡没连接;电脑 COM或者USB口坏;串口线或者USB线坏;发送卡坏;没 有安装USB驱动。',
- views:4399
- },
- ],
+ faultsList:[],
}
},
onLoad(options) {
@@ -322,6 +305,8 @@
this.getPlanType();
// 调用增值服务类型
// this.getIncrementServiceType();
+ // 调用获取常见故障列表事件
+ this.getFaultsList();
},
methods: {
goNoticeDetail(e){
@@ -377,6 +362,23 @@
this.$toolAll.tools.showToast('已催单成功')
}
},
+ // 获取常见故障推荐列表
+ getFaultsList(){
+ this.$requst.post('/universal/api.question/question').then(res=>{
+ if(res.code) {
+ res.data.forEach(item=>{
+ let obj = {
+ id:item.id,
+ title:item.title,
+ imgsrc: uni.getStorageSync('hostapi') + '/' + item.cover_img,
+ content:item.summary,
+ views:item.reading
+ }
+ this.faultsList.push(obj);
+ })
+ }
+ })
+ },
// 其他分类下的点击事件
otherEv(index) {
let otherUrls = [
@@ -395,9 +397,9 @@
})
},
// 前往解决方案详情、常见故障详情
- goDetail(index) {
+ goDetail(index,id) {
uni.navigateTo({
- url:`/pagesB/plan-fault-product-detail/detail?index=${index}`
+ url:`/pagesB/plan-fault-product-detail/detail?index=${index}&id=${id}`
})
},
// 前往消息列表页面