Commit b2576e8a authored by 林文清's avatar 林文清

update:开始考试介绍,内容动态读取

parent ca124670
......@@ -159,10 +159,12 @@ export default {
uni.hideLoading();
if (res.data.code == 200) {
if (res.data.data.ruleDisc) {
console.log(res.data.data.ruleDisc);
var str = res.data.data.ruleDisc;
console.log(str.substring(0, 11));
this.ruleDisc = str.substring(0, 11);
let strArr = str.split('(')[0].split(',');
this.desc.title = strArr[0];
this.desc.score = strArr[1];
this.desc.time = strArr[2];
this.ruleDisc = strArr[3];
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment