@focus-teach/ui 1.0.40 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/index.js +55 -1
- package/lib/ui.common.js +1944 -994
- package/lib/ui.css +1 -1
- package/lib/ui.umd.js +1944 -994
- package/lib/ui.umd.min.js +6 -6
- package/package.json +1 -1
package/api/index.js
CHANGED
|
@@ -276,7 +276,19 @@ export function getQuestion(options, success, error) {
|
|
|
276
276
|
);
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
|
|
279
|
+
export function getTitleHtml(options, params) {
|
|
280
|
+
return new Promise((resolve) => {
|
|
281
|
+
axios.get(`/files/${options.itemId}?type=2`, params, {
|
|
282
|
+
header: {
|
|
283
|
+
"Content-Type": "text/html;charset=UTF-8"
|
|
284
|
+
}
|
|
285
|
+
}).then(res => {
|
|
286
|
+
resolve([null, res])
|
|
287
|
+
}).catch(err => {
|
|
288
|
+
resolve([err, null])
|
|
289
|
+
})
|
|
290
|
+
});
|
|
291
|
+
}
|
|
280
292
|
//通用-获取单题的答案与解析【后台管理】(chenxianyong)
|
|
281
293
|
export function getAnswer(options, success, error) {
|
|
282
294
|
axios.get("/ybk/item/detail", {
|
|
@@ -924,4 +936,46 @@ export function getStudyfunEnv(options) {
|
|
|
924
936
|
}
|
|
925
937
|
);
|
|
926
938
|
});
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// 获取自制卡题目信息(分值、答案)
|
|
942
|
+
export function getCustomCardInfo(options){
|
|
943
|
+
return new Promise((resolve) => {
|
|
944
|
+
axios.get("/ybk/exam/blank/item/list/score", { params:options }).then(res => {
|
|
945
|
+
resolve([null, res])
|
|
946
|
+
}).catch(err => {
|
|
947
|
+
resolve([err, null])
|
|
948
|
+
})
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
//获取资源分享信息
|
|
953
|
+
export function getResourceShareInfo(options) {
|
|
954
|
+
return new Promise(resolve=>{
|
|
955
|
+
axios.get("/ybk/resource/share", {
|
|
956
|
+
params: options
|
|
957
|
+
}).then(
|
|
958
|
+
(res) => {
|
|
959
|
+
resolve([null, res])
|
|
960
|
+
},
|
|
961
|
+
(err) => {
|
|
962
|
+
resolve([err, null])
|
|
963
|
+
}
|
|
964
|
+
);
|
|
965
|
+
})
|
|
966
|
+
}
|
|
967
|
+
//获取自制卡信息
|
|
968
|
+
export function getCustomCardRecord(options) {
|
|
969
|
+
return new Promise(resolve=>{
|
|
970
|
+
axios.get("/ybk/exam/blank/item/get/record", {
|
|
971
|
+
params: options
|
|
972
|
+
}).then(
|
|
973
|
+
(res) => {
|
|
974
|
+
resolve([null, res])
|
|
975
|
+
},
|
|
976
|
+
(err) => {
|
|
977
|
+
resolve([err, null])
|
|
978
|
+
}
|
|
979
|
+
);
|
|
980
|
+
})
|
|
927
981
|
}
|