api.js 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. import request from '@/utils/request';
  2. // 微信登录
  3. export function WeChat_login(data) {
  4. return request({
  5. url: '/api/Login/WeChat_login',
  6. method: 'POST',
  7. data
  8. });
  9. }
  10. // 验证码登录
  11. export function verification_code_login(data) {
  12. return request({
  13. url: '/api/Login/verification_code_login',
  14. method: 'POST',
  15. data
  16. });
  17. }
  18. // 绑定手机号
  19. export function binding_phone(data) {
  20. return request({
  21. url: '/api/Login/binding_phone',
  22. method: 'POST',
  23. data
  24. });
  25. }
  26. // 发送短信验证码
  27. export function send_sms(data) {
  28. return request({
  29. url: '/api/Login/send_sms',
  30. method: 'POST',
  31. data
  32. });
  33. }
  34. // 获取配置信息
  35. export function config_info(params) {
  36. return request({
  37. url: '/api/Index/config_info',
  38. method: 'GET',
  39. params
  40. });
  41. }
  42. // 热门搜索关键词
  43. export function search_keyword_list(params) {
  44. return request({
  45. url: '/api/Index/search_keyword_list',
  46. method: 'GET',
  47. params
  48. });
  49. }
  50. // 热搜资讯
  51. export function consult_list(params) {
  52. return request({
  53. url: '/api/Index/consult_list',
  54. method: 'GET',
  55. params
  56. });
  57. }
  58. // 资讯详情
  59. export function consult_detail(params) {
  60. return request({
  61. url: '/api/Index/consult_detail',
  62. method: 'GET',
  63. params
  64. });
  65. }
  66. // 广告位
  67. export function adv_list(params) {
  68. return request({
  69. url: '/api/Index/adv_list',
  70. method: 'GET',
  71. params
  72. });
  73. }
  74. // 个人信息
  75. export function member_info(params) {
  76. return request({
  77. url: '/api/Member/member_info',
  78. method: 'GET',
  79. params
  80. });
  81. }
  82. // 编辑个人信息
  83. export function edit_member_info(data) {
  84. return request({
  85. url: '/api/Member/edit_member_info',
  86. method: 'POST',
  87. data
  88. });
  89. }
  90. // 搜索数据列表
  91. export function data_list(params) {
  92. return request({
  93. url: '/api/Index/data_list',
  94. method: 'GET',
  95. params
  96. });
  97. }
  98. // 获取OSS上传配置
  99. export function getSignedUrl(data) {
  100. return request({
  101. url: '/api/Upload/getSignedUrl',
  102. method: 'POST',
  103. data
  104. });
  105. }
  106. // 我的套餐
  107. export function my_package(params) {
  108. return request({
  109. url: '/api/Package/my_package',
  110. method: 'GET',
  111. params
  112. });
  113. }
  114. // 我的消息
  115. export function message_list(params) {
  116. return request({
  117. url: '/api/Message/message_list',
  118. method: 'GET',
  119. params
  120. });
  121. }
  122. // 提交留言
  123. export function submit_message(data) {
  124. return request({
  125. url: '/api/Message/submit_message',
  126. method: 'POST',
  127. data
  128. });
  129. }
  130. // 轮播图列表
  131. export function banner(params) {
  132. return request({
  133. url: '/api/Subject/banner',
  134. method: 'GET',
  135. params
  136. });
  137. }
  138. // 专题列表
  139. export function subject_list(params) {
  140. return request({
  141. url: '/api/Subject/subject_list',
  142. method: 'GET',
  143. params
  144. });
  145. }
  146. // 专题详情
  147. export function subject_detail(params) {
  148. return request({
  149. url: '/api/Subject/subject_detail',
  150. method: 'GET',
  151. params
  152. });
  153. }
  154. // 套餐信息
  155. export function package_list(params) {
  156. return request({
  157. url: '/api/Package/package_list',
  158. method: 'GET',
  159. params
  160. });
  161. }
  162. // 立即下单
  163. export function create_order(data) {
  164. return request({
  165. url: '/api/Package/create_order',
  166. method: 'POST',
  167. data
  168. });
  169. }
  170. // 关于我们
  171. export function about_us(params) {
  172. return request({
  173. url: '/api/Index/about_us',
  174. method: 'GET',
  175. params
  176. });
  177. }
  178. // 获取套餐订单支付状态
  179. export function get_pay_status(params) {
  180. return request({
  181. url: '/api/Package/get_pay_status',
  182. method: 'GET',
  183. params
  184. });
  185. }
  186. // 导航栏
  187. export function navigation_list(params) {
  188. return request({
  189. url: '/api/Index/navigation_list',
  190. method: 'GET',
  191. params
  192. });
  193. }