index.js 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. import request from '@/api/request.js'
  2. //我的消息列表
  3. function newsList(data){
  4. return request({
  5. url: '/api/ajax/mymessage',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 阅读消息
  11. function msgRead(data){
  12. return request({
  13. url: '/api/Ajax/msgRead',
  14. method: 'get',
  15. data
  16. })
  17. }
  18. function payinfo(data){
  19. return request({
  20. url: '/api/article/payinfo',
  21. method: 'post',
  22. data
  23. })
  24. }
  25. //认购记录
  26. function buyOrderList(data){
  27. return request({
  28. url: '/api/Ajax/buyOrderList',
  29. method: 'get',
  30. data
  31. })
  32. }
  33. //我的奖品
  34. function myprize(data){
  35. return request({
  36. url: '/api/Ajax/myprize',
  37. method: 'get',
  38. data
  39. })
  40. }
  41. //合同数据
  42. function contract(data){
  43. return request({
  44. url: '/api/Ajax/contractList',
  45. method: 'get',
  46. data
  47. })
  48. }
  49. //保单数据
  50. function insurance(data){
  51. return request({
  52. url: '/api/Ajax/insuranceList',
  53. method: 'get',
  54. data
  55. })
  56. }
  57. //绑定银行卡
  58. function bindtxinfo(data){
  59. return request({
  60. url: '/api/vip/bindtxinfo',
  61. method: 'post',
  62. data
  63. })
  64. }
  65. //优惠卷
  66. function mycard(data){
  67. return request({
  68. url: '/api/Ajax/mycard',
  69. method: 'get',
  70. data
  71. })
  72. }
  73. //关于我们
  74. function about(data){
  75. return request({
  76. url: '/api/article/aboutindex2',
  77. method: 'get',
  78. data
  79. })
  80. }
  81. //导报详情
  82. function articledetail(data){
  83. return request({
  84. url: '/api/article/articledetail',
  85. method: 'get',
  86. data
  87. })
  88. }
  89. //分销中心主页
  90. function fxindex(data){
  91. return request({
  92. url: '/api/fx/index',
  93. method: 'get',
  94. data
  95. })
  96. }
  97. //一级用户 && 二级用户
  98. function myuser(data){
  99. return request({
  100. url: '/api/Fx/myuser',
  101. method: 'get',
  102. data
  103. })
  104. }
  105. //推广二维码
  106. function myqrcode(data){
  107. return request({
  108. url: '/api/fx/myqrcode',
  109. method: 'get',
  110. data
  111. })
  112. }
  113. //账号设置
  114. function vipIndex(data){
  115. return request({
  116. url: '/api/vip/index',
  117. method: 'get',
  118. data
  119. })
  120. }
  121. //会员信息
  122. function vipinfo(data){
  123. return request({
  124. url: '/api/vip/vipinfo',
  125. method: 'get',
  126. data
  127. })
  128. }
  129. //修改昵称
  130. function myinfo(data){
  131. return request({
  132. url: '/api/vip/myinfo',
  133. method: 'get',
  134. data
  135. })
  136. }
  137. //认证信息
  138. function rzIndex(data){
  139. return request({
  140. url: '/api/vip/index',
  141. method: 'get',
  142. data
  143. })
  144. }
  145. //获取验证码
  146. function getAuthSmsCode(data){
  147. return request({
  148. url: '/api/sms/getAuthSmsCode',
  149. method: 'post',
  150. data
  151. })
  152. }
  153. //提交认证
  154. function auth(data){
  155. return request({
  156. url: '/api/vip/auth',
  157. method: 'post',
  158. data
  159. })
  160. }
  161. //修改支付密码 获取验证码
  162. function getPayPwdCode(data){
  163. return request({
  164. url: '/api/sms/getPayPwdCode',
  165. method: 'post',
  166. data
  167. })
  168. }
  169. //确认修改密码
  170. function pay_password_reset(data){
  171. return request({
  172. url: '/api/vip/pay_password_reset',
  173. method: 'post',
  174. data
  175. })
  176. }
  177. //上传头像
  178. function addheadimg(data,files){
  179. return request({
  180. url: '/api/vip/addheadimg',
  181. method: 'post',
  182. data,
  183. // header: {
  184. // 'Content-Type': 'multipart/form-data',
  185. // },
  186. })
  187. }
  188. //绑定微信
  189. function bindwx(data,files){
  190. return request({
  191. url: '/api/wxlogin/bindwx',
  192. method: 'post',
  193. data
  194. })
  195. }
  196. //认购记录详情
  197. function orderDetail(data){
  198. return request({
  199. url: '/api/Buy/orderDetail',
  200. method: 'post',
  201. data,
  202. })
  203. }
  204. //认购记录详情
  205. function contract_info(data){
  206. return request({
  207. url: '/api/Vip/contract_info',
  208. method: 'get',
  209. data,
  210. })
  211. }
  212. //保单合同详情
  213. function policy(data){
  214. return request({
  215. url: '/api/Ajax/financeInsuranceDetail',
  216. method: 'get',
  217. data,
  218. })
  219. }
  220. // 分销政策
  221. function Fxabout(data){
  222. return request({
  223. url: '/api/Fx/about',
  224. method: 'get',
  225. data,
  226. })
  227. }
  228. // 我的推广
  229. function tjlog(data){
  230. return request({
  231. url: '/api/Fx/tjlog',
  232. method: 'get',
  233. data,
  234. })
  235. }
  236. // 已收佣金
  237. function fxlog(data){
  238. return request({
  239. url: '/api/Fx/fxlog',
  240. method: 'get',
  241. data,
  242. })
  243. }
  244. //取消认养订单
  245. function cancelOrder(data){
  246. return request({
  247. url: '/api/Buy/cancelOrder',
  248. method: 'get',
  249. data,
  250. })
  251. }
  252. //认养订单退款
  253. function finaceTuikuan(data){
  254. return request({
  255. url: '/api/ajax/finaceTuikuan',
  256. method: 'post',
  257. data,
  258. })
  259. }
  260. //常见问题列表
  261. function aboutquestion(data){
  262. return request({
  263. url: '/api/article/aboutquestion',
  264. method: 'post',
  265. data
  266. })
  267. }
  268. //农场入驻申请
  269. function farm_apply(data){
  270. return request({
  271. url: '/api/farm/farm_apply',
  272. method: 'post',
  273. data
  274. })
  275. }
  276. //农场入驻申请状态
  277. function apply_status(data){
  278. return request({
  279. url: '/api/farm/apply_status',
  280. method: 'post',
  281. data
  282. })
  283. }
  284. // 店铺列表
  285. function farm_list(data){
  286. return request({
  287. url: '/api/farm/farm_list',
  288. method: 'post',
  289. data
  290. })
  291. }
  292. // 店铺详情
  293. function farm_item(data){
  294. return request({
  295. url: '/api/farm/farm_item',
  296. method: 'post',
  297. data
  298. })
  299. }
  300. // 直播间列表
  301. function room_list(data){
  302. return request({
  303. url: '/api/wxlive/room_list',
  304. method: 'post',
  305. data
  306. })
  307. }
  308. // 直播间详情
  309. function roominfo(data){
  310. return request({
  311. url: '/api/wxlive/roominfo',
  312. method: 'post',
  313. data
  314. })
  315. }
  316. // 直播轮播
  317. function roomimgs(data){
  318. return request({
  319. url: '/api/wxlive/roomimgs',
  320. method: 'post',
  321. data
  322. })
  323. }
  324. // 土地巡检
  325. function inspection(data){
  326. return request({
  327. url: '/api/soil/inspection',
  328. method: 'post',
  329. data
  330. })
  331. }
  332. // 土地巡检提交
  333. function goinspection(data){
  334. return request({
  335. url: '/api/soil/goinspection',
  336. method: 'post',
  337. data
  338. })
  339. }
  340. // 认养管理
  341. function financeoperator(data){
  342. return request({
  343. url: '/api/buy/financeoperator',
  344. method: 'post',
  345. data
  346. })
  347. }
  348. // 认养管理
  349. function finantype(data){
  350. return request({
  351. url: '/api/buy/finantype',
  352. method: 'post',
  353. data
  354. })
  355. }
  356. // 认养管理提交
  357. function getfinance(data){
  358. return request({
  359. url: '/api/buy/getfinance',
  360. method: 'post',
  361. data
  362. })
  363. }
  364. // 认养日志
  365. function operatorlog(data){
  366. return request({
  367. url: '/api/buy/operatorlog',
  368. method: 'post',
  369. data
  370. })
  371. }
  372. // 配送信息
  373. function financedelivery(data){
  374. return request({
  375. url: '/api/buy/financedelivery',
  376. method: 'post',
  377. data
  378. })
  379. }
  380. // 认样排行
  381. function financeranking(data){
  382. return request({
  383. url: '/api/buy/financeranking',
  384. method: 'post',
  385. data
  386. })
  387. }
  388. // 店铺管理
  389. function storemanagement(data){
  390. return request({
  391. url: '/api/merchant/storemanagement',
  392. method: 'post',
  393. data
  394. })
  395. }
  396. // 修改密码
  397. function reset_pwd(data){
  398. return request({
  399. url: '/api/merchant/reset_pwd',
  400. method: 'post',
  401. data
  402. })
  403. }
  404. // 店铺提交
  405. function getmanagement(data){
  406. return request({
  407. url: '/api/merchant/getmanagement',
  408. method: 'post',
  409. data
  410. })
  411. }
  412. // 商品管理
  413. function shopmanagement(data){
  414. return request({
  415. url: '/api/merchant/shopmanagement',
  416. method: 'post',
  417. data
  418. })
  419. }
  420. // 商品分类
  421. function getcatelist(data){
  422. return request({
  423. url: '/api/merchant/getcatelist',
  424. method: 'post',
  425. data
  426. })
  427. }
  428. // 添加商品
  429. function addgoods(data){
  430. return request({
  431. url: '/api/merchant/addgoods',
  432. method: 'post',
  433. data
  434. })
  435. }
  436. // 上架
  437. function upshop(data){
  438. return request({
  439. url: '/api/merchant/upshop',
  440. method: 'post',
  441. data
  442. })
  443. }
  444. // 下架
  445. function downshop(data){
  446. return request({
  447. url: '/api/merchant/downshop',
  448. method: 'post',
  449. data
  450. })
  451. }
  452. // 编辑
  453. function editshop(data){
  454. return request({
  455. url: '/api/merchant/editshop',
  456. method: 'post',
  457. data
  458. })
  459. }
  460. // 编辑
  461. function goodinfo(data){
  462. return request({
  463. url: '/api/merchant/goodinfo',
  464. method: 'post',
  465. data
  466. })
  467. }
  468. // 上传图片(非富文本)
  469. function upshopimg(data){
  470. return request({
  471. url: '/api/merchant/upshopimg',
  472. method: 'post',
  473. data
  474. })
  475. }
  476. function teamindex(data) {
  477. return request({
  478. url: '/api/buy/teamindex',
  479. method: 'post',
  480. data
  481. })
  482. }
  483. // 上传图片(富文本)
  484. function uprichimg(data){
  485. return request({
  486. url: '/api/merchant/uprichimg',
  487. method: 'post',
  488. data
  489. })
  490. }
  491. //
  492. function farmshoplist(data){
  493. return request({
  494. url: '/api/farm/farmshoplist',
  495. method: 'post',
  496. data
  497. })
  498. }
  499. function farm_item2(data){
  500. return request({
  501. url: '/api/farm/farm_item2',
  502. method: 'post',
  503. data
  504. })
  505. }
  506. function farm_item3(data){
  507. return request({
  508. url: '/api/farm/farm_item3',
  509. method: 'post',
  510. data
  511. })
  512. }
  513. export default {
  514. roomimgs,
  515. roominfo,
  516. room_list,
  517. bindwx,
  518. finaceTuikuan,
  519. farm_item,
  520. apply_status,
  521. farm_list,
  522. farm_apply,
  523. newsList,
  524. msgRead,
  525. buyOrderList,
  526. myprize,
  527. contract,
  528. insurance,
  529. bindtxinfo,
  530. mycard,
  531. about,
  532. articledetail,
  533. fxindex,
  534. myuser,
  535. myqrcode,
  536. vipIndex,
  537. vipinfo,
  538. myinfo,
  539. rzIndex,
  540. getAuthSmsCode,
  541. auth,
  542. getPayPwdCode,
  543. pay_password_reset,
  544. addheadimg,
  545. orderDetail,
  546. payinfo,
  547. contract_info,
  548. policy,
  549. Fxabout,
  550. tjlog,
  551. fxlog,
  552. cancelOrder,
  553. aboutquestion,
  554. inspection,
  555. goinspection,
  556. financeoperator,
  557. finantype,
  558. getfinance,
  559. operatorlog,
  560. financedelivery,
  561. financeranking,
  562. storemanagement,
  563. reset_pwd,
  564. getmanagement,
  565. shopmanagement,
  566. getcatelist,
  567. addgoods,
  568. upshop,
  569. downshop,
  570. editshop,
  571. goodinfo,
  572. upshopimg,
  573. uprichimg,
  574. teamindex,
  575. farmshoplist,
  576. farm_item2,
  577. farm_item3
  578. }