From d5eb1ecff5d0236359c744b334cf30fcfdad1132 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期四, 22 八月 2024 17:17:34 +0800 Subject: [PATCH] - --- src/common/request/http.api.js | 1550 +++++----------------------------------------------------- 1 files changed, 150 insertions(+), 1,400 deletions(-) diff --git a/src/common/request/http.api.js b/src/common/request/http.api.js index 4097830..2bc3044 100644 --- a/src/common/request/http.api.js +++ b/src/common/request/http.api.js @@ -1,1405 +1,11 @@ -const http = uni.$u.http +// const http = uni.$u.http +import { + http +} from '@/uni_modules/uview-plus' // 姝ゅ绗簩涓弬鏁皏m锛屽氨鏄垜浠湪椤甸潰浣跨敤鐨則his锛屼綘鍙互閫氳繃vm鑾峰彇vuex绛夋搷浣滐紝鏇村鍐呭璇﹁uView瀵规嫤鎴櫒鐨勪粙缁嶉儴鍒嗭細 // https://uviewui.com/js/http.html#%E4%BD%95%E8%B0%93%E8%AF%B7%E6%B1%82%E6%8B%A6%E6%88%AA%EF%BC%9F // const install = (Vue, vm) => { - -// 鑾峰彇搴楅摵閰嶇疆 -let shopConfigV2 = (params, config = {}) => http.post('/Api/Common/GetConfigV2', params, { - custom: { - methodName: 'common.shopConfigV2', - needToken: false - } -}); -//鑾峰彇鍟嗗煄鍏抽敭璇嶈鏄� -let getServiceDescription = (params, config = {}) => http.post('/Api/Common/GetServiceDescription', params, { - custom: { - methodName: 'common.getServiceDescription', - needToken: false - } -}); -// 鐢ㄦ埛淇℃伅 -let userInfo = (params, config = {}) => http.post('/Api/User/GetUserInfo', params, { - custom: { - methodName: 'user.info', - needToken: true - } -}); -// 涓婁紶澶村儚 -let changeAvatar = (params, config = {}) => http.post('/Api/User/ChangeAvatar', params, { - custom: { - methodName: 'user.changeavatar', - needToken: true - } -}); -// 缂栬緫鐢ㄦ埛淇℃伅 -let editInfo = (params, config = {}) => http.post('/Api/User/EditInfo', params, { - custom: { - methodName: 'user.editinfo', - needToken: true - } -}); -// 鍙戦�佺煭淇¢獙璇佺爜 -let sms = (params, config = {}) => http.post('/Api/User/SendSms', params, { - custom: { - methodName: 'user.sms', - needToken: false - } -}); -// 鐭俊楠岃瘉鐮佺櫥褰� -let smsLogin = (params, config = {}) => http.post('/Api/User/SmsLogin', params, { - custom: { - methodName: 'user.smslogin', - needToken: false - } -}); -// 閫�鍑虹櫥褰� -let logout = (params, config = {}) => http.post('/Api/User/LogOut', params, { - custom: { - methodName: 'user.logout', - needToken: true - } -}); -// 鑾峰彇棣栭〉骞荤伅鐗� -let slider = (params, config = {}) => http.post('/Api/Advert/GetAdvertList', params, { - custom: { - methodName: 'advert.getAdvertList', - needToken: false - } -}); -// 鑾峰彇骞垮憡 -let advert = (params, config = {}) => http.post('/Api/Advert/GetPositionList', params, { - custom: { - methodName: 'advert.getcarousellists', - needToken: false - } -}); -// 鑾峰彇鍏憡鍒楄〃 -let notice = (params, config = {}) => http.post('/Api/Notice/NoticeList', params, { - custom: { - methodName: 'notice.noticeList', - needToken: false - } -}); -// 鑾峰彇鍏憡璇︽儏 -let noticeInfo = (params, config = {}) => http.post('/Api/Notice/NoticeInfo', params, { - custom: { - methodName: 'notice.noticeInfo', - needToken: false - } -}); -// 鑾峰彇鏂囩珷璇︽儏 -let articleInfo = (params, config = {}) => http.post('/Api/Article/GetArticleDetail', params, { - custom: { - methodName: 'articles.getArticleDetail', - needToken: false - } -}); -// 鑾峰彇鏂囩珷鍒楄〃 -let articleList = (params, config = {}) => http.post('/Api/Article/GetArticleList', params, { - custom: { - methodName: 'articles.getArticleList', - needToken: false - } -}); - - -// 鑾峰彇鍟嗗搧鍒嗙被 -let categories = (params, config = {}) => http.post('/Api/Good/GetAllCategories', params, { - custom: { - methodName: 'categories.getallcat', - needToken: false - } -}); -// 鑾峰彇鍟嗗搧鍒楄〃 -let goodsList = (params, config = {}) => http.post('/Api/Good/GetGoodsPageList', params, { - custom: { - methodName: 'goods.goodsList', - needToken: false - } -}); -//鑾峰彇闅忔満鎺ㄨ崘鍟嗗搧 -let getGoodsRecommendList = (params, config = {}) => http.post('/Api/Good/GetGoodsRecommendList', params, { - custom: { - methodName: 'goods.getGoodsRecommendList', - needToken: false - } -}); -// 鑾峰彇鍟嗗搧鍙傛暟淇℃伅 -let goodsParams = (params, config = {}) => http.post('/Api/Good/GetGoodsParams', params, { - custom: { - methodName: 'goods.getgoodsparams', - needToken: false - } -}); -// 鑾峰彇璁剧疆榛樿璐у搧 -let getProductInfo = (params, config = {}) => http.post('/Api/Good/GetProductInfo', params, { - custom: { - methodName: 'goods.getproductinfo', - needToken: false - } -}); -// 鑾峰彇鍟嗗搧璇勮淇℃伅 -let goodsComment = (params, config = {}) => http.post('/Api/Good/GetGoodsComment', params, { - custom: { - methodName: 'goods.getgoodscomment', - needToken: false - } -}); -// 鑾峰彇鍟嗗搧璇︽儏 -let goodsDetail = (params, config = {}) => http.post('/Api/Good/GetDetial', params, { - custom: { - methodName: 'goods.getdetial', - needToken: false - } -}); -// 鑾峰彇鍟嗗搧璇︽儏 -let goodsDetailByToken = (params, config = {}) => http.post('/Api/Good/GetDetialByToken', params, { - custom: { - methodName: 'goods.getDetialByToken', - needToken: true - } -}); - -// 鑾峰彇鍟嗗搧璇︽儏 -let goodsSku = (params, config = {}) => http.post('/Api/Good/GetSku', params, { - custom: { - methodName: 'goods.getdetial', - needToken: false - } -}); -// 鑾峰彇鍟嗗搧璇︽儏 -let goodsSkuByToken = (params, config = {}) => http.post('/Api/Good/GetSkuByToken', params, { - custom: { - methodName: 'goods.getDetialByToken', - needToken: true - } -}); - - - - - -// 娣诲姞璐墿杞� -let addCart = (params, config = {}) => http.post('/Api/Cart/AddCart', params, { - custom: { - methodName: 'cart.add', - needToken: true - } -}); -// 绉婚櫎璐墿杞� -let removeCart = (params, config = {}) => http.post('/Api/Cart/DoDelete', params, { - custom: { - methodName: 'cart.del', - needToken: true - } -}); -// 鑾峰彇璐墿杞﹀垪琛� -let cartList = (params, config = {}) => http.post('/Api/Cart/GetList', params, { - custom: { - methodName: 'cart.getlist', - needToken: true - } -}); -// 璁剧疆璐墿杞﹀晢鍝佹暟閲� -let setCartNum = (params, config = {}) => http.post('/Api/Cart/SetCartNum', params, { - custom: { - methodName: 'cart.setnums', - needToken: true - } -}); -// 鑾峰彇璐墿杞︽暟閲� -let getCartNum = (params, config = {}) => http.post('/Api/User/GetCartNumber', params, { - custom: { - methodName: 'cart.getnumber', - needToken: true - } -}); -// 鑾峰彇璐墿杞︽暟閲忓拰鍟嗗搧鎬讳环鏍� -let getCartNumAndMoney = (params, config = {}) => http.post('/Api/User/GetCartNumberAndMoney', params, { - custom: { - methodName: 'cart.getnumber', - needToken: true - } -}); -// 鏍规嵁璐墿杞﹀凡鏈夋暟鎹幏鍙栬兘澶熶娇鐢ㄧ殑浼樻儬鍒� -let getCartCoupon = (params, config = {}) => http.post('/Api/Cart/GetCartAvailableCoupon', params, { - custom: { - methodName: 'cart.getCartCoupon', - needToken: true - } -}); - -// 鑾峰彇鐢ㄦ埛鐨勬敹璐у湴鍧�鍒楄〃 -let userShip = (params, config = {}) => http.post('/Api/User/GetUserShip', params, { - custom: { - methodName: 'user.getusership', - needToken: true - } -}); -// 鑾峰彇鐢ㄦ埛榛樿鏀惰揣鍦板潃 -let userDefaultShip = (params, config = {}) => http.post('/Api/User/GetUserDefaultShip', params, { - custom: { - methodName: 'user.getuserdefaultship', - needToken: true - } -}); -// 瀛樺偍鐢ㄦ埛鏀惰揣鍦板潃 -let saveUserShip = (params, config = {}) => http.post('/Api/User/SaveUserShip', params, { - custom: { - methodName: 'user.vuesaveusership', - needToken: true - } -}); -// 寰俊瀛樺偍鏀惰揣鍦板潃 -let saveUserShipWx = (params, config = {}) => http.post('/Api/User/SaveUserShip', params, { - custom: { - methodName: 'user.saveusership', - needToken: true - } -}); -//鑾峰彇鍖哄煙ID -let getAreaId = (params, config = {}) => http.post('/Api/User/GetAreaId', params, { - custom: { - methodName: 'user.getareaid', - needToken: false - } -}); -//鏍规嵁鍖�/鍘垮悕绉拌幏鍙栧煄甯俰d淇℃伅 -let getAreaIdByName = (params, config = {}) => http.post('/Api/User/GetAreaIdByName', params, { - custom: { - methodName: 'user.getareaid', - needToken: false - } -}); -// 鑾峰彇鏀惰揣鍦板潃璇︽儏 -let shipDetail = (params, config = {}) => http.post('/Api/User/GetShipDetail', params, { - custom: { - methodName: 'user.getshipdetail', - needToken: true - } -}); -// 鏀惰揣鍦板潃缂栬緫 -let editShip = (params, config = {}) => http.post('/Api/User/SaveUserShip', params, { - custom: { - methodName: 'user.editship', - needToken: true - } -}); -// 鏀惰揣鍦板潃鍒犻櫎 -let removeShip = (params, config = {}) => http.post('/Api/User/RemoveShip', params, { - custom: { - methodName: 'user.removeship', - needToken: true - } -}); -// 璁剧疆榛樿鏀惰揣鍦板潃 -let setDefShip = (params, config = {}) => http.post('/Api/User/SetDefShip', params, { - custom: { - methodName: 'user.setdefship', - needToken: true - } -}); - -// 鐢熸垚璁㈠崟 -let createOrder = (params, config = {}) => http.post('/Api/Order/CreateOrder', params, { - custom: { - methodName: 'order.create', - needToken: true - } -}); -// 鍙栨秷璁㈠崟 -let cancelOrder = (params, config = {}) => http.post('/Api/Order/CancelOrder', params, { - custom: { - methodName: 'order.cancel', - needToken: true - } -}); -// 鍒犻櫎璁㈠崟 -let delOrder = (params, config = {}) => http.post('/Api/Order/DeleteOrder', params, { - custom: { - methodName: 'order.del', - needToken: true - } -}); -// 鑾峰彇璁㈠崟璇︽儏 -let orderDetail = (params, config = {}) => http.post('/Api/Order/OrderDetails', params, { - custom: { - methodName: 'order.details', - needToken: true - } -}); -// 纭鏀惰揣 -let confirmOrder = (params, config = {}) => http.post('/Api/Order/OrderConfirm', params, { - custom: { - methodName: 'order.confirm', - needToken: true - } -}); -// 鑾峰彇閰嶉�佹柟寮� -let orderShip = (params, config = {}) => http.post('/Api/Order/GetShip', params, { - custom: { - methodName: 'order.getship', - needToken: true - } -}); -// 鑾峰彇鍏ㄩ儴璁㈠崟鍒楄〃 -let orderList = (params, config = {}) => http.post('/Api/Order/GetOrderList', params, { - custom: { - methodName: 'order.getorderlist', - needToken: true - } -}); -// 鑾峰彇璁㈠崟涓嶅悓鐘舵�佺殑鏁伴噺 -let getOrderStatusSum = (params, config = {}) => http.post('/Api/Order/GetOrderStatusNum', params, { - custom: { - methodName: 'order.getorderstatusnum', - needToken: true - } -}); -// 鑾峰彇涓嶅悓绫诲瀷钀ラ攢涓嬪崟鏀寔鐨勯厤閫佹柟寮� -let getOrderDistributionModel = (params, config = {}) => http.post('/Api/Order/GetOrderDistributionModel', params, { - custom: { - methodName: 'order.getOrderdistributionmodel', - needToken: true - } -}); - -// 鑾峰彇娲鹃�佽鍗曞垪琛� -let deliveryList = (params, config = {}) => http.post('/Api/DistributorDelivery/GetList/GetList', params, { - custom: { - methodName: 'order.getdeliveryorderlist', - needToken: true - } -}); -// 纭娲鹃�� -let confirmDelivery = (params, config = {}) => http.post('/Api/DistributorDelivery/Accepted/Accepted', params, { - custom: { - methodName: 'order.confirmDelivery', - needToken: true - } -}); - -// 鍞悗鍗曞垪琛� -let afterSalesList = (params, config = {}) => http.post('/Api/Order/AftersalesList', params, { - custom: { - methodName: 'order.aftersaleslist', - needToken: true - } -}); -// 鍞悗鍗曡鎯� -let afterSalesInfo = (params, config = {}) => http.post('/Api/Order/Aftersalesinfo', params, { - custom: { - methodName: 'order.aftersalesinfo', - needToken: true - } -}); -// 娣诲姞鍞悗鍗� -let addAfterSales = (params, config = {}) => http.post('/Api/Order/AddAftersales', params, { - custom: { - methodName: 'order.addaftersales', - needToken: true - } -}); -// 鐢ㄦ埛鍙戦�侀��璐у寘瑁� -let sendShip = (params, config = {}) => http.post('/Api/Order/SendReship', params, { - custom: { - methodName: 'order.sendreship', - needToken: true - } -}); - -// 娣诲姞鍟嗗搧娴忚瓒宠抗 -let addGoodsBrowsing = (params, config = {}) => http.post('/Api/User/AddGoodsBrowsing', params, { - custom: { - methodName: 'user.addgoodsbrowsing', - needToken: true - } -}); -// 鍒犻櫎鍟嗗搧娴忚瓒宠抗 -let delGoodsBrowsing = (params, config = {}) => http.post('/Api/User/DelGoodsBrowsing', params, { - custom: { - methodName: 'user.delgoodsbrowsing', - needToken: true - } -}); -// 鑾峰彇鍟嗗搧娴忚瓒宠抗 -let goodsBrowsing = (params, config = {}) => http.post('/Api/User/Goodsbrowsing', params, { - custom: { - methodName: 'user.goodsbrowsing', - needToken: true - } -}); -// 鍟嗗搧鏀惰棌 鍏虫敞/鍙栨秷 -let goodsCollection = (params, config = {}) => http.post('/Api/User/GoodsCollectionCreateOrDelete', params, { - custom: { - methodName: 'user.goodscollection', - needToken: true - } -}); -// 鑾峰彇鍟嗗搧鏀惰棌鍏虫敞鍒楄〃 -let goodsCollectionList = (params, config = {}) => http.post('/Api/User/GoodscollectionList', params, { - custom: { - methodName: 'user.goodscollectionlist', - needToken: true - } -}); - -// 鑾峰彇搴楅摵鏀粯鏂瑰紡鍒楄〃 -let paymentList = (params, config = {}) => http.post('/Api/Payments/GetList', params, { - custom: { - methodName: 'payments.getlist', - needToken: false - } -}); -// 鑾峰彇鏀粯鍗曡鎯� -let paymentInfo = (params, config = {}) => http.post('/Api/Payments/GetInfo', params, { - custom: { - methodName: 'payments.getinfo', - needToken: true - } -}); -// 鏀粯鎺ュ彛 -let pay = (params, config = {}) => http.post('/Api/User/Pay', params, { - custom: { - methodName: 'user.pay', - needToken: true - } -}); -// 璁㈠崟璇勪环鎺ュ彛 -let orderEvaluate = (params, config = {}) => http.post('/Api/User/OrderEvaluate', params, { - custom: { - methodName: 'user.orderevaluate', - needToken: true - } -}); - -// 绛惧埌鎺ュ彛 -let userCheckIn = (params, config = {}) => http.post('/Api/CheckIn/DoUserCheckIn', params, { - custom: { - methodName: 'user.doUserCheckIn', - needToken: true - } -}); -//鑾峰彇鐢ㄦ埛鎸夋湀绛惧埌鏁版嵁 -let getUserCheckByMonth = (params, config = {}) => http.post('/Api/CheckIn/GetUserCheckByMonth', params, { - custom: { - methodName: 'user.getUserCheckByMonth', - needToken: true - } -}); -//鑾峰彇鐢ㄦ埛鎬荤鍒版鏁� -let getUserCheckCount = (params, config = {}) => http.post('/Api/CheckIn/GetUserCheckCount', params, { - custom: { - methodName: 'user.getUserCheckCount', - needToken: true - } -}); - - -// 绉垎璁板綍 -let pointLog = (params, config = {}) => http.post('/Api/User/UserPointLog', params, { - custom: { - methodName: 'user.userpointlog', - needToken: true - } -}); -// 鐗╂祦淇℃伅鎺ュ彛 -let logistics = (params, config = {}) => http.post('/Api/Order/LogisticsByApi', params, { - custom: { - methodName: 'order.logisticbyapi', - needToken: true - } -}); -// 浼樻儬鍒稿垪琛� -let couponList = (params, config = {}) => http.post('/Api/Coupon/CouponList', params, { - custom: { - methodName: 'coupon.couponlist', - needToken: false - } -}); -// 浼樻儬鍒歌鎯� -let couponDetail = (params, config = {}) => http.post('/Api/Coupon/CouponDetail', params, { - custom: { - methodName: 'coupon.coupondetail', - needToken: false - } -}); -// 鐢ㄦ埛棰嗗彇浼樻儬鍒� -let getCoupon = (params, config = {}) => http.post('/Api/Coupon/GetCoupon', params, { - custom: { - methodName: 'coupon.getcoupon', - needToken: true - } -}); -// 鐢ㄦ埛宸查鍙栫殑浼樻儬鍒稿垪琛� -let userCoupon = (params, config = {}) => http.post('/Api/Coupon/UserCoupon', params, { - custom: { - methodName: 'coupon.usercoupon', - needToken: true - } -}); -// 鑾峰彇鎴戠殑閾惰鍗″垪琛� -let getBankCardList = (params, config = {}) => http.post('/Api/User/GetMyBankcardsList', params, { - custom: { - methodName: 'user.getbankcardlist', - needToken: true - } -}); -// 鑾峰彇榛樿鐨勯摱琛屽崱 -let getDefaultBankCard = (params, config = {}) => http.post('/Api/User/GetDefaultBankCard', params, { - custom: { - methodName: 'user.getdefaultbankcard', - needToken: true - } -}); -// 娣诲姞閾惰鍗� -let addBankCard = (params, config = {}) => http.post('/Api/User/AddBankCards', params, { - custom: { - methodName: 'user.addbankcard', - needToken: true - } -}); -// 鍒犻櫎閾惰鍗� -let removeBankCard = (params, config = {}) => http.post('/Api/User/Removebankcard', params, { - custom: { - methodName: 'user.removebankcard', - needToken: true - } -}); -// 璁剧疆榛樿閾惰鍗� -let setDefaultBankCard = (params, config = {}) => http.post('/Api/User/SetDefaultBankCard', params, { - custom: { - methodName: 'user.setdefaultbankcard', - needToken: true - } -}); -// 鑾峰彇閾惰鍗′俊鎭� -let getBankCardInfo = (params, config = {}) => http.post('/Api/User/GetBankCardInfo', params, { - custom: { - methodName: 'user.getbankcardinfo', - needToken: true - } -}); -// 鑾峰彇閾惰鍗$粍缁囦俊鎭� -let getBankCardOrganization = (params, config = {}) => http.post('/Api/User/GetBankCardsOrganization', params, { - custom: { - methodName: 'user.getbankcardorganization', - needToken: true - } -}); -// 鐢ㄦ埛淇敼瀵嗙爜 -let editPwd = (params, config = {}) => http.post('/Api/User/EditPwd', params, { - custom: { - methodName: 'user.editpwd', - needToken: true - } -}); -// 鐢ㄦ埛鎵惧洖瀵嗙爜 -let forgotPwd = (params, config = {}) => http.post('/Api/Common/InterFaceTest', params, { - custom: { - methodName: 'user.forgotpwd', - needToken: true - } -}); -// 鑾峰彇鐢ㄦ埛浣欓鏄庣粏 -let getBalanceList = (params, config = {}) => http.post('/Api/User/UserBalance', params, { - custom: { - methodName: 'user.balancelist', - needToken: true - } -}); -// 鐢ㄦ埛鎺ㄨ崘鍒楄〃 -let recommendUserList = (params, config = {}) => http.post('/Api/User/Recommend', params, { - custom: { - methodName: 'user.recommend', - needToken: true - } -}); -// 閭�璇风爜 -let shareCode = (params, config = {}) => http.post('/Api/User/ShareCode', params, { - custom: { - methodName: 'user.sharecode', - needToken: true - } -}); -// 鐢ㄦ埛鎻愮幇 -let userToCash = (params, config = {}) => http.post('/Api/User/Cash', params, { - custom: { - methodName: 'user.cash', - needToken: true - } -}); -// 鐢ㄦ埛鎻愮幇鍒楄〃 -let cashList = (params, config = {}) => http.post('/Api/User/CashList', params, { - custom: { - methodName: 'user.cashlist', - needToken: true - } -}); -// 鍒ゆ柇鐢ㄦ埛涓嬪崟鍙互浣跨敤澶氬皯绉垎 -let usablePoint = (params, config = {}) => http.post('/Api/User/GetUserPoint', params, { - custom: { - methodName: 'user.getuserpoint', - needToken: true - } -}); - -// 闂ㄥ簵鍒楄〃 -let storeList = (params, config = {}) => http.post('/Api/Store/GetStoreList', params, { - custom: { - methodName: 'store.getstorelist', - needToken: false - } -}); -//鏍规嵁鐢ㄦ埛搴忓垪鑾峰彇闂ㄥ簵鏁版嵁 -let getStoreByUserId = (params, config = {}) => http.post('/Api/Store/GetStoreByUserId', params, { - custom: { - methodName: 'store.getStoreByUserId', - needToken: true - } -}); -//鑾峰彇鍗曚釜鐢ㄦ埛鑳界鐞嗙殑闂ㄥ簵鍒楄〃 -let getStoreListForUser = (params, config = {}) => http.post('/Api/Store/GetStoreListForUser', params, { - custom: { - methodName: 'store.GetStoreListForUser', - needToken: true - } -}); -//鏍规嵁搴忓垪鑾峰彇闂ㄥ簵鏁版嵁 -let getStoreById = (params, config = {}) => http.post('/Api/Store/GetStoreById', params, { - custom: { - methodName: 'store.getStoreByUserId', - needToken: false - } -}); -//鑾峰彇闂ㄥ簵璁㈠崟鍒楄〃 -let getOrderPageByMerchant = (params, config = {}) => http.post('/Api/Store/GetOrderPageByMerchant', params, { - custom: { - methodName: 'store.getOrderPageByMerchant', - needToken: true - } -}); -//鑾峰彇闂ㄥ簵璁㈠崟鍒楄〃 -let getOrderPageByMerchantSearch = (params, config = {}) => http.post('/Api/Store/GetOrderPageByMerchantSearch', - params, { - custom: { - methodName: 'store.getOrderPageByMerchantSearch', - needToken: true - } - }); - -// 鍒ゆ柇鏄惁寮�鍚棬搴楄嚜鎻� -let switchStore = (params, config = {}) => http.post('/Api/Store/GetStoreSwitch', params, { - custom: { - methodName: 'store.getstoreswitch', - needToken: false - } -}); -// 鑾峰彇榛樿鐨勯棬搴� -let defaultStore = (params, config = {}) => http.post('/Api/Store/GetDefaultStore', params, { - custom: { - methodName: 'store.getdefaultstore', - needToken: false - } -}); -// 鍒ゆ柇鏄惁寮�鍚Н鍒� -let isPoint = (params, config = {}) => http.post('/Api/User/isPoint', params, { - custom: { - methodName: 'user.ispoint', - needToken: false - } -}); -// 鐢ㄦ埛杈撳叆code棰嗗彇浼樻儬鍒� -let couponKey = (params, config = {}) => http.post('/Api/Coupon/GetCouponKey', params, { - custom: { - methodName: 'coupon.getcouponkey', - needToken: true - } -}); -// 鍒ゆ柇鏄惁鏄簵鍛� -let isStoreUser = (params, config = {}) => http.post('/Api/Store/IsClerk', params, { - custom: { - methodName: 'store.isclerk', - needToken: true - } -}); -// 鑾峰彇搴楅摵鎻愯揣鍗曞垪琛� -let storeLadingList = (params, config = {}) => http.post('/Api/Store/StoreLadingList', params, { - custom: { - methodName: 'store.storeladinglist', - needToken: true - } -}); -// 鑾峰彇鎻愯揣鍗曡鎯� -let ladingInfo = (params, config = {}) => http.post('/Api/Store/LadingInfo', params, { - custom: { - methodName: 'store.ladinginfo', - needToken: true - } -}); -// 搴楅摵鎻愬崟鏍搁攢鎿嶄綔 -let ladingExec = (params, config = {}) => http.post('/Api/Store/Lading', params, { - custom: { - methodName: 'store.lading', - needToken: true - } -}); -// 鎻愯揣鍗曞垹闄� -let ladingDel = (params, config = {}) => http.post('/Api/Store/LadingDelete', params, { - custom: { - methodName: 'store.ladingdel', - needToken: true - } -}); - - - -// 鑾峰彇娲诲姩鍒楄〃 -let activityList = (params, config = {}) => http.post('/Api/Group/GetList', params, { - custom: { - methodName: 'group.getlist', - needToken: false - } -}); -// 鑾峰彇娲诲姩璇︽儏 -let activityDetail = (params, config = {}) => http.post('/Api/Group/GetGoodsDetial', params, { - custom: { - methodName: 'group.getgoodsdetial', - needToken: false - } -}); -//灏忕▼搴忚В鏋恈ode -let onLogin = (params, config = {}) => http.post('/Api/User/OnLogin', params, { - custom: { - methodName: 'user.wxappOnlogin', - needToken: false - } -}); -//灏忕▼搴忕櫥褰曠浜屾锛堟牳楠屾暟鎹苟鑾峰彇鐢ㄦ埛璇︾粏璧勬枡锛� -let loginByDecodeEncryptedData = (params, config = {}) => http.post('/Api/User/DecodeEncryptedData', params, { - custom: { - methodName: 'user.wxapploginByDecodeEncryptedData', - needToken: false - } -}); -//灏忕▼搴忓悓姝ョ敤鎴锋暟鎹� -let syncWeChatInfo = (params, config = {}) => http.post('/Api/User/SyncWeChatInfo', params, { - custom: { - methodName: 'user.SyncWeChatInfo', - needToken: true - } -}); -//灏忕▼搴忔墜鏈烘巿鏉冿紙鎷夊彇鎵嬫満鍙风爜锛� -let loginByGetPhoneNumber = (params, config = {}) => http.post('/Api/User/DecryptPhoneNumber', params, { - custom: { - methodName: 'user.wxapploginByGetPhoneNumber', - needToken: false - } -}); -//鍙栦笅绾у湴鍧�鍒楄〃 -let getAreaList = (params, config = {}) => http.post('/Api/Common/GetAreas', params, { - custom: { - methodName: 'user.getarealist', - needToken: false - } -}); -//鍙栨悳绱㈤〉鎺ㄨ崘鍏抽敭瀛� -let getRecommendKeys = (params, config = {}) => http.post('/Api/Common/GetRecommendKeys', params, { - custom: { - methodName: 'common.getrecommendkeys', - needToken: false - } -}); -// 鑾峰彇鎴戠殑閭�璇蜂俊鎭� -let myInvite = (params, config = {}) => http.post('/Api/User/MyInvite', params, { - custom: { - methodName: 'user.myinvite', - needToken: true - } -}); -// 璁剧疆鎴戠殑涓婄骇閭�璇蜂汉 -let setMyInvite = (params, config = {}) => http.post('/Api/User/SetMyInvite', params, { - custom: { - methodName: 'user.SetMyInvite', - needToken: true - } -}); -// 鑾峰彇鎴戠殑涓婄骇閭�璇蜂汉 -let getMyInvite = (params, config = {}) => http.post('/Api/User/GetMyInvite', params, { - custom: { - methodName: 'user.GetMyInvite', - needToken: true - } -}); -//鑾峰彇鎴戠殑涓嬬骇鍙戝睍鐢ㄦ埛鏁伴噺 -let getMyChildSum = (params, config = {}) => http.post('/Api/User/GetMyChildSum', params, { - custom: { - methodName: 'user.GetMyChildSum', - needToken: true - } -}); -// 鑾峰彇绉掓潃鍥㈣喘 -let getGroup = (params, config = {}) => http.post('/Api/Group/GetList', params, { - custom: { - methodName: 'group.getlist', - needToken: false - } -}); -// 鑾峰彇绉掓潃鍥㈣喘璇︽儏 -let groupInfo = (params, config = {}) => http.post('/Api/Group/GetGoodsDetial', params, { - custom: { - methodName: 'group.getgoodsdetial', - needToken: false - } -}); -// 鑷畾涔夐〉闈� -// 淇敼 -let getPageConfig = (params, config = {}) => http.post('/Api/Page/GetPageConfig', params, { - custom: { - methodName: 'pages.getpageconfig', - needToken: false - } -}); - - -// 鑾峰彇缁忛攢鍟嗚繘搴︾姸鎬� -let getDistributionInfo = (params, config = {}) => http.post('/Api/Distribution/Info', params, { - custom: { - methodName: 'distribution_center-api-info', - needToken: true - } -}); -// 鐢宠缁忛攢鍟� -let applyDistribution = (params, config = {}) => http.post('/Api/Distribution/ApplyDistribution', params, { - custom: { - methodName: 'distribution_center-api-applydistribution', - needToken: true - } -}); -// 搴楅摵璁剧疆 -let setDistributionStore = (params, config = {}) => http.post('/Api/Distribution/SetStore', params, { - custom: { - methodName: 'distribution_center-api-setstore', - needToken: true - } -}); -//鑾峰彇搴楅摵淇℃伅 -let getDistributionStoreInfo = (params, config = {}) => http.post('/Api/Distribution/GetStoreInfo', params, { - custom: { - methodName: 'distribution_center-api-getstoreinfo', - needToken: false - } -}); -//鎴戠殑缁忛攢璁㈠崟 -let getDistributionOrder = (params, config = {}) => http.post('/Api/Distribution/MyOrder', params, { - custom: { - methodName: 'distribution_center-api-myorder', - needToken: true - } -}); -//缁忛攢鍥㈤槦缁熻 -let getDistributionTeamSum = (params, config = {}) => http.post('/Api/Distribution/GetTeamSum', params, { - custom: { - methodName: 'distribution.getTeamSum', - needToken: true - } -}); -//缁忛攢璁㈠崟缁熻 -let getDistributionOrderSum = (params, config = {}) => http.post('/Api/Distribution/GetOrderSum', params, { - custom: { - methodName: 'distribution.getOrderSum', - needToken: true - } -}); -//鑾峰彇缁忛攢鍟嗘帓琛� -let getDistributionRanking = (params, config = {}) => http.post('/Api/Distribution/getDistributionRanking', params, { - custom: { - methodName: 'distribution.getDistributionRanking', - needToken: true - } -}); - -// 鑾峰彇浠g悊鍟嗚繘搴︾姸鎬� -let getAgentInfo = (params, config = {}) => http.post('/Api/Agent/Info', params, { - custom: { - methodName: 'agent_center-api-info', - needToken: true - } -}); -// 鐢宠浠g悊鍟� -let applyAgent = (params, config = {}) => http.post('/Api/Agent/ApplyAgent', params, { - custom: { - methodName: 'agent_center-api-applyAgent', - needToken: true - } -}); -// 搴楅摵璁剧疆 -let setAgentStore = (params, config = {}) => http.post('/Api/Agent/SetStore', params, { - custom: { - methodName: 'agent_center-api-setstore', - needToken: true - } -}); -//鑾峰彇搴楅摵淇℃伅 -let getAgentStoreInfo = (params, config = {}) => http.post('/Api/Agent/GetStoreInfo', params, { - custom: { - methodName: 'agent_center-api-getstoreinfo', - needToken: false - } -}); -//鎴戠殑浠g悊璁㈠崟 -let getAgentOrder = (params, config = {}) => http.post('/Api/Agent/MyOrder', params, { - custom: { - methodName: 'agent_center-api-myorder', - needToken: true - } -}); -//浠g悊鍥㈤槦缁熻 -let getAgentTeamSum = (params, config = {}) => http.post('/Api/Agent/GetTeamSum', params, { - custom: { - methodName: 'agent.getTeamSum', - needToken: true - } -}); -//浠g悊璁㈠崟缁熻 -let getAgentOrderSum = (params, config = {}) => http.post('/Api/Agent/GetOrderSum', params, { - custom: { - methodName: 'agent.getOrderSum', - needToken: true - } -}); -//鑾峰彇浠g悊姹犲晢鍝佹暟鎹� -let getAgentGoodsPageList = (params, config = {}) => http.post('/Api/Agent/GetGoodsPageList', params, { - custom: { - methodName: 'agent.getGoodsPageList', - needToken: true - } -}); -//鑾峰彇浠g悊鍟嗘帓琛� -let getAgentRanking = (params, config = {}) => http.post('/Api/Agent/GetAgentRanking', params, { - custom: { - methodName: 'agent.getAgentRanking', - needToken: true - } -}); - - -// 鎷煎洟鍒楄〃 -let pinTuanList = (params, config = {}) => http.post('/Api/PinTuan/GetList', params, { - custom: { - methodName: 'pinTuan.list', - needToken: false - } -}); -// 鎷煎洟鍟嗗搧璇︽儏 -let pinTuanGoodsInfo = (params, config = {}) => http.post('/Api/PinTuan/GetGoodsInfo', params, { - custom: { - methodName: 'pinTuan.goodsinfo', - needToken: false - } -}); -// 鎷煎洟璐у搧璇︽儏 -let pinTuanProductInfo = (params, config = {}) => http.post('/Api/PinTuan/GetProductInfo', params, { - custom: { - methodName: 'pinTuan.productinfo', - needToken: false - } -}); -//鑾峰彇鎴戠殑鍙戠エ鍒楄〃 -let myInvoiceList = (params, config = {}) => http.post('/Api/User/UserInvoiceList', params, { - custom: { - methodName: 'user.myinvoicelist', - needToken: true - } -}); -//鑾峰彇鏀粯淇℃伅 -let paymentsCheckpay = (params, config = {}) => http.post('/Api/Payments/CheckPay', params, { - custom: { - methodName: 'payments.checkpay', - needToken: true - } -}); -//蹇樿瀵嗙爜 -let userForgetpwd = (params, config = {}) => http.post('/Api/User/ForgetPwd', params, { - custom: { - methodName: 'user.forgetpwd', - needToken: false - } -}); -// 鏍规嵁璁㈠崟id鍙栨嫾鍥俊鎭紝鐢ㄥ湪璁㈠崟璇︽儏椤� -let getOrderPinTuanTeamInfo = (params, config = {}) => http.post('/Api/PinTuan/GetPinTuanTeam', params, { - custom: { - methodName: 'pinTuan.pinTuanteam', - needToken: true - } -}); -//鍙戠エ妯$硦鏌ヨ -let getTaxInfo = (params, config = {}) => http.post('/Api/Order/GetTaxCode', params, { - custom: { - methodName: 'order.gettaxcode', - needToken: true - } -}); - - -// 鑾峰彇搴楅摵璁剧疆 -let getSetting = (params, config = {}) => http.post('/Api/User/GetSetting', params, { - custom: { - methodName: 'user.getsetting', - needToken: false - } -}); -// 鑾峰彇鍟嗘埛閰嶇疆淇℃伅 -let getSellerSetting = (params, config = {}) => http.post('/Api/User/GetSellerSetting', params, { - custom: { - methodName: 'user.getsellersetting', - needToken: false - } -}); -// 鑾峰彇灏忕▼搴忎簩缁寸爜 -let getInviteQRCode = (params, config = {}) => http.post('/Api/Store/GetInviteQrCode', params, { - custom: { - methodName: 'store.getinviteqrcode', - needToken: false - } -}); -// 鐢熸垚娴锋姤 -let createPoster = (params, config = {}) => http.post('/Api/User/GetPoster', params, { - custom: { - methodName: 'user.getposter', - needToken: false - } -}); - -//鑾峰彇琛ㄥ崟鍒楄〃 -let getFormList = (params, config = {}) => http.post('/Api/Form/GetList', params, { - custom: { - methodName: 'form.getformdetial', - needToken: false - } -}); -//鑾峰彇琛ㄥ崟璇︽儏 -let getFormDetial = (params, config = {}) => http.post('/Api/Form/GetFormDetial', params, { - custom: { - methodName: 'form.getformdetial', - needToken: false - } -}); -//============================================================//鎻愪氦琛ㄥ崟 -let addSubmitForm = (params, config = {}) => http.post('/Api/Form/AddSubmit', params, { - custom: { - methodName: 'form.addsubmit', - needToken: false - } -}); - -//================================================================////鎶藉瑙勫垯 -let lotteryConfig = (params, config = {}) => http.post('/Api/Lottery/GetLotteryConfig', params, { - custom: { - methodName: 'lottery-api-getLotteryConfig', - needToken: true - } -}); -//================================================================////鎶藉鎿嶄綔 -let lottery = (params, config = {}) => http.post('/Api/Lottery/Lottery', params, { - custom: { - methodName: 'lottery-api-lottery', - needToken: true - } -}); -//================================================================////鑾峰彇鎴戠殑鎶藉璁板綍 -let myLottery = (params, config = {}) => http.post('/Api/Lottery/LotteryLog', params, { - custom: { - methodName: 'lottery-api-lotteryLog', - needToken: true - } -}); -//================================================================////鐢熸垚鍒嗕韩URL -let createShareUrl = (params, config = {}) => http.post('/Api/User/ShareUrl', params, { - custom: { - methodName: 'user.shareurl', - needToken: false - } -}); -//================================================================////寰俊鍥炬枃娑堟伅 -let messageDetail = (params, config = {}) => http.post('/Api/Articles/GetWeChatMessage', params, { - custom: { - methodName: 'articles.getweixinmessage', - needToken: false - } -}); -//================================================================////鑾峰彇APP鐗堟湰 -let getAppVersion = (params, config = {}) => http.post('/Api/Common/GetAppVersions', params, { - custom: { - methodName: 'Common.checkVersion', - needToken: false - } -}); - -//============================================================//鍏紬鍙锋巿鏉冭幏鍙杘penid锛堢涓夋柟鐧诲綍锛� -let getOpenId = (params, config = {}) => http.post('/Api/User/OfficialLogin', params, { - custom: { - methodName: 'user.officiallogin', - needToken: false - } -}); -//============================================================// 鑾峰彇鎺堟潈鐧诲綍鏂瑰紡锛堣幏鍙栫涓夋柟鐧诲綍鍒楄〃锛� -let getTrustLogin = (params, config = {}) => http.post('/Api/User/GetTrustLogin', params, { - custom: { - methodName: 'user.gettrustlogin', - needToken: false - } -}); -//============================================================// APP淇′换鐧诲綍(app绗笁鏂圭櫥褰曟柟寮�) -let appTrustLogin = (params, config = {}) => http.post('/Api/User/UniAppLogin', params, { - custom: { - methodName: 'user.uniapplogin', - needToken: false - } -}); -//================================================================//// 缁戝畾鎺堟潈鐧诲綍 -let trustBind = (params, config = {}) => http.post('/Api/User/TrustBind', params, { - custom: { - methodName: 'user.trustbind', - needToken: false - } -}); -//================================================================//鏀粯瀹濆皬绋嬪簭瑙f瀽code锛堢涓夋柟鏀粯瀹濈櫥褰曟柟寮忥級 -let alilogin1 = (params, config = {}) => http.post('/Api/User/AlipayAppLogin1', params, { - custom: { - methodName: 'user.alipayapplogin1', - needToken: false - } -}); -//================================================================////澶存潯灏忕▼搴忕櫥褰� -let ttlogin = (params, config = {}) => http.post('/Api/User/TtLogin', params, { - custom: { - methodName: 'user.ttlogin', - needToken: false - } -}); -//鑾峰彇璁㈤槄妯℃澘 -let getSubscriptionTmplIds = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/Tmpl', params, { - custom: { - methodName: 'wechat_applets_message-api-tmpl', - needToken: true - } -}); -//璁㈤槄鐘舵�佷慨鏀� -let setSubscriptionStatus = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/SetTip', params, { - custom: { - methodName: 'wechat_applets_message-api-settip', - needToken: true - } -}); -//鐢ㄦ埛鍏抽棴璁㈤槄鎻愰啋 -let subscriptionCloseTip = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/CloseTip', params, { - custom: { - methodName: 'wechat_applets_message-api-closetip', - needToken: true - } -}); -//鍒ゆ柇鐢ㄦ埛鏄惁闇�瑕佹樉绀鸿闃呮彁閱� -let subscriptionIsTip = (params, config = {}) => http.post('/Api/WeChatAppletsMessage/IsTip', params, { - custom: { - methodName: 'wechat_applets_message-api-istip', - needToken: true - } -}); -//缁熶竴鍒嗕韩 -let share = (params, config = {}) => http.post('/Api/User/Share', params, { - custom: { - methodName: 'user.share', - needToken: false - } -}); -//缁熶竴鍒嗕韩瑙g爜 -let deshare = (params, config = {}) => http.post('/Api/User/deshare', params, { - custom: { - methodName: 'user.deshare', - needToken: false - } -}); - -//鑾峰彇鏈嶅姟鍒楄〃 -let getServicelist = (params, config = {}) => http.post('/Api/Service/GetPageList', params, { - custom: { - methodName: 'service.getpagelist', - needToken: false - } -}); -//鑾峰彇鏈嶅姟璇︽儏 -let getServiceDetail = (params, config = {}) => http.post('/Api/Service/GetDetails', params, { - custom: { - methodName: 'service.getdetail', - needToken: false - } -}); -//鐢熸垚鏈嶅姟璐拱璁㈠崟 -let addServiceOrder = (params, config = {}) => http.post('/Api/Service/AddServiceOrder', params, { - custom: { - methodName: 'service.addServiceOrder', - needToken: true - } -}); - -//鑾峰彇涓汉鏈嶅姟璁㈠崟鍒楄〃 -let getUserServicesPageList = (params, config = {}) => http.post('/Api/User/GetServicesPageList', params, { - custom: { - methodName: 'user.getServicesPageList', - needToken: true - } -}); -//鑾峰彇鍗曚釜鏈嶅姟璁㈠崟 -let getServicesById = (params, config = {}) => http.post('/Api/User/GetServicesById', params, { - custom: { - methodName: 'user.getServicesTickets', - needToken: true - } -}); -//鑾峰彇鍗曚釜鏈嶅姟璁㈠崟涓嬮潰鏈嶅姟鍒� -let getServicesTickets = (params, config = {}) => http.post('/Api/User/GetServicesTickets', params, { - custom: { - methodName: 'user.getServicesTickets', - needToken: true - } -}); - - -//闂ㄥ簵鏍搁攢鐨勬湇鍔″埜鍒楄〃 -let getverificationPageList = (params, config = {}) => http.post('/Api/Service/VerificationPageList', params, { - custom: { - methodName: 'service.verificationPageList', - needToken: true - } -}); -//鍒犻櫎鏍搁攢鍒� -let serviceLogDelete = (params, config = {}) => http.post('/Api/Service/LogDelete', params, { - custom: { - methodName: 'service.logDelete', - needToken: true - } -}); -// 鑾峰彇鏈嶅姟鍒歌鎯呭噯澶囨牳閿� -let getServiceVerificationTicketInfo = (params, config = {}) => http.post('/Api/Service/GetTicketInfo', params, { - custom: { - methodName: 'service.getTicketInfo', - needToken: true - } -}); -//鏍搁攢鏈嶅姟鍒� -let serviceVerificationTicket = (params, config = {}) => http.post('/Api/Service/VerificationTicket', params, { - custom: { - methodName: 'service.verificationTicket', - needToken: true - } -}); - - -//鑾峰彇鎺ラ緳鍒楄〃 -let getSolitairePageList = (params, config = {}) => http.post('/Api/Solitaire/GetList', params, { - custom: { - methodName: 'solitaire.getList', - needToken: false - } -}); -let getSolitaireDetail = (params, config = {}) => http.post('/Api/Solitaire/GetDetail', params, { - custom: { - methodName: 'solitaire.getDetail', - needToken: false - } -}); - - -//鐩存挱 -let getLiveInfo = (params, config = {}) => http.post('/Api/LiveBroadCast/GetLiveInfo', params, { - custom: { - methodName: 'liveBroadCast.getLiveInfo', - needToken: false - } -}); - - -//鍏呭�艰鍒欏垪琛� -let getTopUpTypeList = (params, config = {}) => http.post('/Api/TopUp/TypeList', params, { - custom: { - methodName: 'topUp.typeList', - needToken: false - } -}); -//鑾峰彇鍗曚釜鍏呭�艰鍒� -let getTypeDetail = (params, config = {}) => http.post('/Api/TopUp/getTypeDetail', params, { - custom: { - methodName: 'topUp.getTypeDetail', - needToken: false - } -}); - - - -//鏈湴閫夋嫨鍥剧墖杞琤ase64锛屽啀涓婁紶鏈嶅姟鍣ㄥ瓨鍌ㄨ繑鍥炲湴鍧� -let uploadFilesFByBase64 = (params, config = {}) => http.post('/Api/Common/UploadFilesFByBase64', params, { - custom: { - methodName: 'topUp.uploadFilesFByBase64', - needToken: true - } -}); - -//鑾峰彇鍏ㄥ眬淇冮攢鍒楄〃 -let getPromotionList = (params, config = {}) => http.post('/Api/Promotion/GetPromotionList', params, { - custom: { - methodName: 'promotion.getPromotionList', - needToken: false - } -}); - -//鑾峰彇鍙戠エ鏄惁寮�鍏� -let checkInvoice = (params, config = {}) => http.post('/Api/Order/CheckInvoice', params, { - custom: { - methodName: 'order.checkInvoice', - needToken: true - } -}); -//鎻愪氦鍙戠エ鐢宠 -let submitInvoiceApply = (params, config = {}) => http.post('/Api/Order/SubmitInvoiceApply', params, { - custom: { - methodName: 'order.submitInvoiceApply', - needToken: true - } -}); - -let addOfflineDistributor = (params, config = {}) => http.post('/Api/OfflineDistributor/addOfflineDistributor', - params, { - custom: { - methodName: 'addOfflineDistributor', - needToken: true - } - }); - -//璁″垝璁㈠崟 鑾峰彇璁″垝璁㈠崟璇︽儏 -let GetPlanOrder = (params, config = {}) => http.post('/Api/Order/GetPlanOrder', params, { - custom: { - methodName: 'GetPlanOrder', - needToken: true - } -}); - -//璁″垝璁㈠崟 鑾峰彇璁″垝璁㈠崟鍒楄〃 -let GetPlanOrderList = (params, config = {}) => http.post('/Api/Order/GetPlanOrderList', params, { - custom: { - methodName: 'GetPlanOrderList', - needToken: true - } -}); -//璁″垝璁㈠崟 淇敼璁″垝璁㈠崟 -let UpdatePlanOrder = (params, config = {}) => http.post('/Api/Order/UpdatePlanOrder', params, { - custom: { - methodName: 'UpdatePlanOrder', - needToken: true - } -}); - let temLogin = (params, config = {}) => http.get(`/api/LogoIn/LogoinFast?jscode=${params}`, params, { custom: { @@ -1428,15 +34,159 @@ methodName: 'topUp.IaiAddPerso', needToken: true }, - params:config + params: config }); +// 鏌ヨ褰撳墠鐢ㄦ埛 +let getUser = (params, config = {}) => http.get(`/api/User/getUser`, { + custom: { + methodName: 'getUser', + needToken: true + } +}); + +// 淇濆瓨鐢ㄦ埛宸ヤ汉淇℃伅 +let saveUserWorker = (params, config = {}) => http.post(`/api/User/saveUserWorker`, params, { + custom: { + methodName: 'saveUserWorker', + needToken: true + } +}); + +// 淇濆瓨鎷涘伐淇℃伅(鏂板/淇敼) +let saveOrder = (params, config = {}) => http.post(`/api/OrderCompany/saveOrder`, params, { + custom: { + methodName: 'saveOrder', + needToken: true + } +}); + +// 鏌ヨ鍏徃宸茬粡鍙戝竷鐨勬嫑宸ヨ鍗� +let PostMyListPageCompany = (params, config = {}) => http.post(`/api/OrderCompany/PostMyListPage`, params, { + custom: { + methodName: 'PostMyListPageCompany', + needToken: true + } +}); + +// 鍏徃閫夋嫨宸ヤ汉 +let saveQueRen = (params, config = {}) => http.post(`/api/OrderCompany/saveQueRen`, params, { + custom: { + methodName: 'saveQueRen', + needToken: true + } +}); + +// 鏌ヨ鍏徃涓嬪伐浜虹殑鎵撳崱璁板綍 +let PostMyComDakaListPage = (params, config = {}) => http.post(`/api/OrderCompany/PostMyComDakaListPage`, params, { + custom: { + methodName: 'PostMyComDakaListPage', + needToken: true + } +}); + +// 鍏徃纭宸ヤ汉褰撳ぉ鎵撳崱璇︽儏 +let saveDakaDetailCompany = (params, config = {}) => http.post(`/api/OrderCompany/saveDakaDetail`, params, { + custom: { + methodName: 'saveDakaDetailCompany', + needToken: true + } +}); + +// 鏌ヨ宸ヤ汉鍙互鎶曢�掔殑鎷涘伐璁㈠崟 +let PostListPage = (params, config = {}) => http.post(`/api/OrderWorker/PostListPage`, params, { + custom: { + methodName: 'PostListPage', + needToken: true + } +}); + +// 鏌ヨ宸ヤ汉宸茬粡鎶曢�掔殑鎷涘伐璁㈠崟 +let PostMyListPage = (params, config = {}) => http.post(`/api/OrderWorker/PostMyListPage`, params, { + custom: { + methodName: 'PostMyListPage', + needToken: true + } +}); + +// 宸ヤ汉鎶曢�� +let saveBaoMing = (params, config = {}) => http.post(`/api/OrderWorker/saveBaoMing`, params, { + custom: { + methodName: 'saveBaoMing', + needToken: true + } +}); + +// 杩涘叆鎵撳崱椤甸潰 +let getDaka = (params, config = {}) => http.post(`/api/OrderWorker/getDaka`, params, { + custom: { + methodName: 'getDaka', + needToken: true + } +}); + +// 宸ヤ汉鎵撳崱 +let saveDaka = (params, config = {}) => http.post(`/api/OrderWorker/saveDaka`, params, { + custom: { + methodName: 'saveDaka', + needToken: true + } +}); + +// 鏌ヨ宸ヤ汉鐨勬墦鍗¤褰� +let PostMyDakaListPage = (params, config = {}) => http.post(`/api/OrderWorker/PostMyDakaListPage`, params, { + custom: { + methodName: 'PostMyDakaListPage', + needToken: true + } +}); + +// 杩涘叆濉啓/瀹℃壒宸ヤ环椤甸潰 +let getDakaDetail = (params, config = {}) => http.post(`/api/OrderWorker/getDakaDetail`, params, { + custom: { + methodName: 'getDakaDetail', + needToken: true + } +}); + +// 宸ヤ汉纭褰撳ぉ鎵撳崱璇︽儏 +let saveDakaDetail = (params, config = {}) => http.post(`/api/OrderWorker/saveDakaDetail`, params, { + custom: { + methodName: 'saveDakaDetail', + needToken: true + } +}); + +// 宸ヤ汉纭褰撳ぉ鎵撳崱璇︽儏 +let PostMyTiXianDetailListPage = (params, config = {}) => http.post(`/api/OrderWorker/PostMyTiXianDetailListPage`, + params, { + custom: { + methodName: 'PostMyTiXianDetailListPage', + needToken: true + } + }); // 灏嗗悇涓畾涔夌殑鎺ュ彛鍚嶇О锛岀粺涓�鏀捐繘瀵硅薄鎸傝浇鍒皏m.$u.api(鍥犱负vm灏辨槸this锛屼篃鍗硉his.$u.api)涓� export { temLogin, //鐧诲綍 CreateUser, //娉ㄥ唽骞剁櫥褰� UpdateFileBase64, //杞崲鎴恇ase64 - IaiAddPerso + IaiAddPerso, // 澧炲姞浜鸿劯鐗瑰緛 + getUser, // 鏌ヨ褰撳墠鐢ㄦ埛 + saveUserWorker, // 淇濆瓨鐢ㄦ埛宸ヤ汉淇℃伅 + saveOrder, // 淇濆瓨鎷涘伐淇℃伅(鏂板/淇敼) + PostMyListPageCompany, // 鏌ヨ鍏徃宸茬粡鍙戝竷鐨勬嫑宸ヨ鍗� + saveQueRen, // 鍏徃閫夋嫨宸ヤ汉 + PostMyComDakaListPage, // 鏌ヨ鍏徃涓嬪伐浜虹殑鎵撳崱璁板綍 + saveDakaDetailCompany, // 鍏徃纭宸ヤ汉褰撳ぉ鎵撳崱璇︽儏 + PostListPage, // 鏌ヨ宸ヤ汉鍙互鎶曢�掔殑鎷涘伐璁㈠崟锛� + PostMyListPage, // 鏌ヨ宸ヤ汉宸茬粡鎶曢�掔殑鎷涘伐璁㈠崟 + saveBaoMing, // 宸ヤ汉鎶曢�� + getDaka, // 杩涘叆鎵撳崱椤甸潰 + saveDaka, //宸ヤ汉鎵撳崱 + PostMyDakaListPage, // 鏌ヨ宸ヤ汉鐨勬墦鍗¤褰� + getDakaDetail, // 杩涘叆濉啓/瀹℃壒宸ヤ环椤甸潰 + saveDakaDetail, // 宸ヤ汉纭褰撳ぉ鎵撳崱璇︽儏 + PostMyTiXianDetailListPage //鏌ヨ宸ヤ汉鐨勬敹鍏ヨ褰� }; // } -- Gitblit v1.9.1