|
@@ -292,7 +292,6 @@ Page({
|
|
|
if (new RegExp("(" + k + ")").test(fmt))
|
|
|
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
|
|
|
return fmt;
|
|
|
-
|
|
|
},
|
|
|
async onLoad(options) {
|
|
|
wx.showLoading({
|
|
@@ -320,6 +319,7 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
allShi(id, paperId, sessionKey) {
|
|
|
+ wx.hideLoading();
|
|
|
wx.request({
|
|
|
url: app.globalData.publicUrl + '/wx/paper/detail',
|
|
|
method: "post",
|
|
@@ -336,6 +336,8 @@ Page({
|
|
|
json.QuestAnswer = item.QuestAnswer;
|
|
|
json.QuestStem = item.QuestStem;
|
|
|
if (item.QuestType == '1' || item.QuestType == '0') {
|
|
|
+ // console.log(item.QuestChoice,"aaaaa");
|
|
|
+ // console.log(item.QuestType,"ccccc");
|
|
|
let arr = item.QuestChoice.split('||');
|
|
|
let arrJson = arr.map(item => {
|
|
|
let json1 = {};
|
|
@@ -360,7 +362,6 @@ Page({
|
|
|
questionList: jsonArr,
|
|
|
chooseValue: chooceArr
|
|
|
})
|
|
|
- wx.hideLoading();
|
|
|
wx.setStorageSync('questionList' + wx.getStorageSync('answersId'), this.data.questionList);
|
|
|
wx.setStorageSync('chooseValue' + wx.getStorageSync('answersId'), this.data.chooseValue);
|
|
|
},
|