Blame view

addons/exam/uniapp/common/api/cate.js 641 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  import utils from "../js/utils.js";

  

  /**

   * 用户相关接口

   */

  module.exports = {

  	/**

  	 * 检测是否已开通题库

  	 * @returns {Promise<*>}

  	 */

  	checkPay(handler, cate_id) {

  		return utils.http(handler, 'cate/checkPay', {cate_id: cate_id})

  	},

  

  	/**

  	 * 创建题库开通订单

  	 * @returns {Promise<*>}

  	 */

  	createOrder(handler, cate_id) {

  		return utils.http(handler, 'cate/createOrder', {cate_id: cate_id})

  	},

  

  	/**

  	 * 题库码激活

  	 * @returns {Promise<*>}

  	 */

  	activateCate(handler, cate_id, code) {

  		return utils.http(handler, 'cate/activateCate', {cate_id: cate_id, code: code})

  	},

  }