index.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. import request from '@/api/request.js'
  2. function scoreshop(data) {
  3. return request({
  4. url: '/api/score/index',
  5. method: 'post',
  6. data
  7. })
  8. }
  9. function exchange(data) {
  10. return request({
  11. url: '/api/score/exchange',
  12. method: 'post',
  13. data
  14. })
  15. }
  16. /* 兑换详情 */
  17. function goods(data) {
  18. return request({
  19. url: '/api/score/goods',
  20. method: 'post',
  21. data
  22. })
  23. }
  24. /* 积分商城-生成订单 */
  25. function orderMake(data) {
  26. return request({
  27. url: '/api/score/orderMake',
  28. method: 'post',
  29. data
  30. })
  31. }
  32. /* 添加购物车 */
  33. function addtobasket(data) {
  34. return request({
  35. url: '/api/Shop/addtobasket',
  36. method: 'post',
  37. data
  38. })
  39. }
  40. /* 积分商城-sku */
  41. function shoopgoods(data) {
  42. return request({
  43. url: '/api/Shop/goods',
  44. method: 'post',
  45. data
  46. })
  47. }
  48. /* 积分商城-库存检测 */
  49. function fastbuys(data) {
  50. return request({
  51. url: '/api/Shop/fastbuy',
  52. method: 'post',
  53. data
  54. })
  55. }
  56. /* 积分商城-支付订单获取 */
  57. function orderIndex(data) {
  58. return request({
  59. url: '/api/score/orderIndex',
  60. method: 'post',
  61. data
  62. })
  63. }
  64. /* 商城-首页 */
  65. function shop(data) {
  66. return request({
  67. url: '/api/shop/home',
  68. method: 'get',
  69. data
  70. })
  71. }
  72. /* 商城-订单信息 */
  73. function shop_orderMake(data) {
  74. return request({
  75. url: '/api/shop/orderMake',
  76. method: 'get', // post 为提交
  77. data
  78. })
  79. }
  80. /* 商城-订单信息-提交 */
  81. function shop_orderMake_post(data) {
  82. return request({
  83. url: '/api/shop/orderMake',
  84. method: 'post', // post 为提交
  85. data
  86. })
  87. }
  88. /* 商城-省份 && 城市*/
  89. function getRegion(data) {
  90. return request({
  91. url: '/api/Api/getRegion',
  92. method: 'get',
  93. data
  94. })
  95. }
  96. /* 商城- 市区*/
  97. function getTwon(data) {
  98. return request({
  99. url: '/api/Api/getTwon',
  100. method: 'get',
  101. data
  102. })
  103. }
  104. /* 商城- 拼团*/
  105. function actlist(data) {
  106. return request({
  107. url: '/api/Activity/actlist',
  108. method: 'post',
  109. data
  110. })
  111. }
  112. /* 商城- 配送*/
  113. function category(data) {
  114. return request({
  115. url: '/api/Shop/category2',
  116. method: 'post',
  117. data
  118. })
  119. }
  120. /* 商城- 配送*/
  121. function goodslist(data) {
  122. return request({
  123. url: '/api/Shop/goodslist2',
  124. method: 'post',
  125. data
  126. })
  127. }
  128. /* 商城- 配送*/
  129. function pay(data) {
  130. return request({
  131. url: '/api/Shop/pay',
  132. method: 'get',
  133. data
  134. })
  135. }
  136. /* 兑换记录 带来注册type=2 带来消费 type=5 */
  137. function credit(data) {
  138. return request({
  139. url: '/api/Vip/credit',
  140. method: 'post', // post 为提交
  141. data
  142. })
  143. }
  144. /* 拼团- 列表*/
  145. function actgoods(data) {
  146. return request({
  147. url: '/api/Activity/actgoods',
  148. method: 'post',
  149. data
  150. })
  151. }
  152. /* 拼团- 列表-详情*/
  153. function joinGroup(data) {
  154. return request({
  155. url: '/api/Activity/joinGroup',
  156. method: 'post',
  157. data
  158. })
  159. }
  160. /* 拼团- 列表-分享*/
  161. function groupShare(data) {
  162. return request({
  163. url: '/api/Activity/groupShare',
  164. method: 'post',
  165. data
  166. })
  167. }
  168. /* 砍价 type=1 全部砍价 type=2 砍价中 type=3 已购买*/
  169. function barlist(data) {
  170. return request({
  171. url: '/api/Activity/barlist',
  172. method: 'post', // post 为提交
  173. data
  174. })
  175. }
  176. //砍价商品详情
  177. function bargoods(data) {
  178. return request({
  179. url: '/api/activity/bargoods',
  180. method: 'post', // post 为提交
  181. data
  182. })
  183. }
  184. //砍价
  185. function bargain(data) {
  186. return request({
  187. url: '/api/Activity/bargain',
  188. method: 'post', // post 为提交
  189. data
  190. })
  191. }
  192. //砍一刀
  193. function help(data) {
  194. return request({
  195. url: '/api/Activity/help',
  196. method: 'post', // post 为提交
  197. data
  198. })
  199. }
  200. function wxpay(data) {
  201. return request({
  202. url: '/api/Wxpaycz/shoppay',
  203. method: 'post',
  204. data
  205. })
  206. }
  207. function advertisement(data) {
  208. return request({
  209. url: '/api/Article/ad_advertisement',
  210. method: 'post',
  211. data
  212. })
  213. }
  214. // 收藏
  215. function goodslike(data) {
  216. return request({
  217. url: '/api/shop/goodslike',
  218. method: 'post',
  219. data
  220. })
  221. }
  222. //收藏列表
  223. function goodslikelist(data) {
  224. return request({
  225. url: '/api/shop/goodslikelist',
  226. method: 'post',
  227. data
  228. })
  229. }
  230. //下单土地
  231. function singleland(data) {
  232. return request({
  233. url: '/api/wxpaysoil/pay',
  234. method: 'post',
  235. data
  236. })
  237. }
  238. //获取后台实名认证状态
  239. function getrecation(data) {
  240. return request({
  241. url: '/api/vip/isneedaudit',
  242. method: 'post',
  243. data
  244. })
  245. }
  246. //余额支付
  247. function paybyinfo(data) {
  248. return request({
  249. url: '/api/wxpaysoil/pay_money',
  250. method: 'post',
  251. data
  252. })
  253. }
  254. //商城列表
  255. function cardlist(data) {
  256. return request({
  257. url: '/api/shop/cardlist2',
  258. method: 'post',
  259. data
  260. })
  261. }
  262. //领取优惠卷
  263. function getcoupon(data) {
  264. return request({
  265. url: '/api/shop/getcard',
  266. method: 'post',
  267. data
  268. })
  269. }
  270. //活动分类
  271. function getofflineindex(data) {
  272. return request({
  273. url: '/api/offline_activity/offline_index',
  274. method: 'post',
  275. data
  276. })
  277. }
  278. //活动列表
  279. function getofinlist(data) {
  280. return request({
  281. url: '/api/offline_activity/offline_activity_list',
  282. method: 'post',
  283. data
  284. })
  285. }
  286. //活动详情
  287. function getdeitbyid(data) {
  288. return request({
  289. url: '/api/offline_activity/index',
  290. method: 'post',
  291. data
  292. })
  293. }
  294. //活动订单退款
  295. function refund(data){
  296. return request({
  297. url: '/api/offline_activity/refund',
  298. method: 'post',
  299. data,
  300. })
  301. }
  302. //核销详情
  303. function writeindex(data){
  304. return request({
  305. url: '/api/offline_activity/write_index',
  306. method: 'post',
  307. data,
  308. })
  309. }
  310. //确认核销
  311. function writeoff(data){
  312. return request({
  313. url: '/api/offline_activity/writeoff',
  314. method: 'post',
  315. data,
  316. })
  317. }
  318. //收藏
  319. function setcareheart(data) {
  320. return request({
  321. url: '/api/offline_activity/activity_collect',
  322. method: 'post',
  323. data
  324. })
  325. }
  326. //分销申请主页
  327. function fxindex(data) {
  328. return request({
  329. url: '/api/vip/fx_index',
  330. method: 'post',
  331. data
  332. })
  333. }
  334. //分销申请
  335. function dionation(data) {
  336. return request({
  337. url: '/api/vip/fx_apply',
  338. method: 'post',
  339. data
  340. })
  341. }
  342. //余额活动支付
  343. function payfooice(data) {
  344. return request({
  345. url: '/api/wxpayoffline/pay_money',
  346. method: 'post',
  347. data
  348. })
  349. }
  350. //wx余额支付
  351. function wxpayfooice(data) {
  352. return request({
  353. url: '/api/wxpayoffline/pay',
  354. method: 'post',
  355. data
  356. })
  357. }
  358. //我的活动
  359. function myacunton(data) {
  360. return request({
  361. url: '/api/offline_activity/order_list',
  362. method: 'post',
  363. data
  364. })
  365. }
  366. //活动订单详情
  367. function orderindex(data) {
  368. return request({
  369. url: '/api/offline_activity/order_index',
  370. method: 'post',
  371. data
  372. })
  373. }
  374. export default {
  375. writeoff,
  376. writeindex,
  377. refund,
  378. scoreshop,
  379. exchange,
  380. goods,
  381. orderMake,
  382. addtobasket,
  383. shoopgoods,
  384. fastbuys,
  385. orderIndex,
  386. shop,
  387. shop_orderMake,
  388. getRegion,
  389. getTwon,
  390. actlist,
  391. category,
  392. goodslist,
  393. credit,
  394. barlist,
  395. actgoods,
  396. joinGroup,
  397. groupShare,
  398. shop_orderMake_post,
  399. bargoods,
  400. bargain,
  401. fxindex,
  402. help,
  403. pay,
  404. wxpay,
  405. advertisement,
  406. goodslike,
  407. goodslikelist,
  408. singleland,
  409. getrecation,
  410. paybyinfo,
  411. cardlist,
  412. getcoupon,
  413. getofinlist,
  414. getdeitbyid,
  415. setcareheart,
  416. dionation,
  417. payfooice,
  418. wxpayfooice,
  419. myacunton,
  420. orderindex,
  421. getofflineindex
  422. }