Blame view

addons/exam/uniapp/common/api/score.js 1.28 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
  import utils from "../js/utils.js";

  

  /**

   * 积分相关接口

   */

  module.exports = {

  

      /**

       * 获取用户积分记录

       * @returns {Promise<*>}

       */

  	getUserScoreLog(handler, data = {}) {

          return utils.http(handler, 'score/logs', data)

      },

  	

  	/**

  	 * 获取积分商品列表

  	 * @returns {Promise<*>}

  	 */

  	getGoodsList(handler, data = {}) {

  	    return utils.http(handler, 'score/goods', data)

  	},

  	

  	/**

  	 * 获取积分商品详情

  	 * @returns {Promise<*>}

  	 */

  	getGoodsDetail(handler, data = {}) {

  	    return utils.http(handler, 'score/goodDetail', data)

  	},

  	

  	/**

  	 * 积分兑换

  	 * @returns {Promise<*>}

  	 */

  	goodExchange(handler, data = {}) {

  	    return utils.http(handler, 'score/exchange', data)

  	},

  	

  	/**

  	 * 获取积分兑换订单列表

  	 * @returns {Promise<*>}

  	 */

  	getOrdersList(handler, data = {}) {

  	    return utils.http(handler, 'score/orders', data)

  	},

  	

  	/**

  	 * 获取积分兑换订单详情

  	 * @returns {Promise<*>}

  	 */

  	getOrderDetail(handler, data = {}) {

  	    return utils.http(handler, 'score/orderDetail', data)

  	},

  	

  	/**

  	 * 积分兑换订单完成

  	 * @returns {Promise<*>}

  	 */

  	orderComplete(handler, data = {}) {

  	    return utils.http(handler, 'score/complete', data)

  	},

  }