zero.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. import request from "@/utils/request.js";
  2. export function getCardList() {
  3. return request({
  4. url: '/api/pass/card',
  5. method: 'get'
  6. });
  7. }
  8. //pass/create
  9. export function createPass(data) {
  10. return request({
  11. url: '/api/pass/create',
  12. method: 'post',
  13. data
  14. });
  15. }
  16. //获取广告信息
  17. export function getGG() {
  18. // browse/data
  19. return request({
  20. url: '/api/browse/data',
  21. method: 'get'
  22. });
  23. }
  24. //browse/create
  25. export function createGG(data) {
  26. // browse/data
  27. return request({
  28. url: '/api/browse/create',
  29. method: 'get',
  30. data
  31. });
  32. }
  33. //广告生效
  34. export function ggGive(data) {
  35. return request({
  36. url: '/api/browse/valid',
  37. method: 'post',
  38. data
  39. });
  40. }
  41. //挂售
  42. export function createGs(data) {
  43. return request({
  44. url: '/api/transaction/create',
  45. method: 'post',
  46. data
  47. });
  48. }
  49. //挂售列表
  50. export function getGsList(data) {
  51. return request({
  52. url: '/api/pass/transaction',
  53. method: 'get',
  54. data
  55. });
  56. }
  57. //
  58. export function passUser(data) {
  59. return request({
  60. url: '/api/pass/user',
  61. method: 'get',
  62. data
  63. });
  64. }
  65. export function tradeMoney(data) {
  66. return request({
  67. url: '/api/pass/trade_money',
  68. method: 'post',
  69. data
  70. });
  71. }
  72. export function passLst(data) {
  73. return request({
  74. url: '/api/pass/lst',
  75. method: 'get',
  76. data
  77. });
  78. }
  79. //买单
  80. export function buyGs(data) {
  81. return request({
  82. url: '/api/pass/buy_order',
  83. method: 'post',
  84. data
  85. });
  86. }
  87. //取消挂售
  88. export function qxGs(data) {
  89. return request({
  90. url: '/api/pass/cancel',
  91. method: 'post',
  92. data
  93. });
  94. }
  95. //上传凭证
  96. export function upEvaluation(data) {
  97. return request({
  98. url: '/api/pass/up_evaluation',
  99. method: 'post',
  100. data
  101. });
  102. }
  103. //审核
  104. export function auth(data) {
  105. return request({
  106. url: '/api/pass/auth',
  107. method: 'post',
  108. data
  109. });
  110. }
  111. //getCardInfo
  112. export function getCardInfo(data) {
  113. return request({
  114. url: '/api/transaction/info',
  115. method: 'get',
  116. data
  117. });
  118. }
  119. export function createBuy(data) {
  120. return request({
  121. url: '/api/pass/buy_create',
  122. method: 'post',
  123. data
  124. });
  125. }
  126. export function goBuy(data) {
  127. return request({
  128. url: '/api/pass/buy_save',
  129. method: 'post',
  130. data
  131. });
  132. }
  133. export function cancelBuy(data) {
  134. return request({
  135. url: '/api/pass/buy_cancel',
  136. method: 'post',
  137. data
  138. });
  139. }
  140. export function lotteryLst() {
  141. return request({
  142. url: '/api/lottery/lst',
  143. method: 'get'
  144. });
  145. }
  146. export function getTreeList(data) {
  147. return request({
  148. url: '/api/fruiter/index',
  149. method: 'get',
  150. data
  151. });
  152. }
  153. export function getMyTrees(data) {
  154. return request({
  155. url: '/api/fruiter/order',
  156. method: 'get',
  157. data
  158. });
  159. }
  160. export function buyTree(data) {
  161. return request({
  162. url: '/api/fruiter/create',
  163. method: 'post',
  164. data
  165. });
  166. }
  167. export function getSpeedInfo(data) {
  168. return request({
  169. url: '/api/fruiter/speed',
  170. method: 'get',
  171. data
  172. });
  173. }
  174. export function getMyFruit(data) {
  175. return request({
  176. url: '/api/fruiter/goods',
  177. method: 'get',
  178. data
  179. });
  180. }
  181. export function setAuth(data) {
  182. return request({
  183. url: '/api/fruiter/status',
  184. method: 'post',
  185. data
  186. });
  187. }
  188. export function sell(data) {
  189. return request({
  190. url: '/api/fruiter/sell_goods',
  191. method: 'post',
  192. data
  193. });
  194. }
  195. export function getUser(data) {
  196. return request({
  197. url: '/api/fruiter/user',
  198. method: 'get',
  199. data
  200. });
  201. }
  202. export function fertilize(data) {
  203. return request({
  204. url: '/api/fruiter/speed_recommend_speed',
  205. method: 'post',
  206. data
  207. });
  208. }
  209. // Route::post('fruiter/status', 'store.FruiterController/status')->name('treestatus');//设置开关
  210. // Route::get('fruiter/index', 'store.FruiterController/index')->name('treelst');//获取树信息
  211. // Route::get('fruiter/info/:id', 'store.FruiterController/info')->name('treeinfo');//获取树信息
  212. // Route::post('fruiter/create', 'store.FruiterController/create_order')->name('treecreate');//创建树
  213. // Route::get('fruiter/order', 'store.FruiterController/order')->name('treeorder');//获取树订单
  214. // Route::get('fruiter/goods', 'store.FruiterController/goods')->name('treegoods');//获取果子信息
  215. // Route::get('fruiter/speed', 'store.FruiterController/speed')->name('treespeed');//获取加速信息
  216. // Route::post('fruiter/sell_goods', 'store.FruiterController/sell_goods')->name('sell_goods');//出售果子信息
  217. // Route::get('fruiter/speed_recommend_speed', 'store.FruiterController/speed_recommend_speed')->name('speed_recommend_speed');//施肥