123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- // 以下是业务服务器API地址
- // var WxApiRoot = 'http://localhost:8081/v2/douyin/';
- // uat环境使用
- // #ifdef MP-TOUTIAO
- var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/v2/douyin/';
- // #endif
- // #ifdef MP-ALIPAY
- var WxApiRoot = 'https://uat.jzmall.lifejingzhi.com/zfb/';
- // #endif
- //新版,宅洁士
- // #ifdef MP-TOUTIAO
- // var WxApiRoot = 'https://mall.zhaijieshi.cc/v2/douyin/';
- // #endif
- // #ifdef MP-ALIPAY
- // var WxApiRoot = 'https://mall.zhaijieshi.cc/zfb/';
- // #endif
- var appid='tt9019e6a40f261c9a01'//鲸致
- // var appid='ttba36cc8b2506c25f01'//云嘉 ttf8798ec467461e4501
- // var appid='2021004145602252'//支付宝
- module.exports = {
- appid:appid,
- checkYunJia:function(){
- return appid=='ttba36cc8b2506c25f01';//校验是否云嘉
- },
- IndexUrl: WxApiRoot + 'home/index',
- //首页数据接口
- AboutUrl: WxApiRoot + 'home/about',
- //介绍信息
- CatalogList: WxApiRoot + 'catalog/index',
- //分类目录全部分类数据接口
- CatalogCurrent: WxApiRoot + 'catalog/current',
- //分类目录当前分类数据接口
- AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin',
- //微信登录--并注册
- AuthLogout: WxApiRoot + 'auth/logout',
- //账号登出
- AuthRegister: WxApiRoot + 'auth/register',
- //账号注册
- AuthReset: WxApiRoot + 'auth/reset',
- //获取openid
- AuthOpenId: WxApiRoot + 'auth/getOpenId',
- //账号密码重置
- AuthBindPhone: WxApiRoot + 'auth/bindPhone',
- //绑定微信手机号
- AuthDenPhone: WxApiRoot + 'auth/denPhone',
- //微信手机号解密
- AuthCert: WxApiRoot + 'auth/certification',
- //实名认证
- AuthIsCert: WxApiRoot + 'auth/iscertification',
- //是否实名认证
- GoodsCount: WxApiRoot + 'goods/count',
- //统计商品总数
- GoodsList: WxApiRoot + 'goods/list',
- //获得商品列表
- GoodsList_a2: WxApiRoot + 'goods/list_a2',
- //获得商品列表
- GoodsCategory: WxApiRoot + 'goods/category',
- //获得分类数据
- GoodsDetail: WxApiRoot + 'goods/detailV2',
- //获得商品的详情
- GoodsRelated: WxApiRoot + 'goods/related',
- //商品详情页的关联商品(大家都在看)
- GoodsL1Category: WxApiRoot + 'goods/categoryGoods',
- //类目下所有商品
- GoodsCoupon: WxApiRoot + 'goods/couponGoods',
- //返回优惠券绑定的商品
- BrandList: WxApiRoot + 'brand/list',
- //品牌列表
- BrandDetail: WxApiRoot + 'brand/detail',
- //品牌详情
- CartList: WxApiRoot + 'cart/index',
- //获取购物车的数据
- CartAdd: WxApiRoot + 'cart/add',
- // 添加商品到购物车
- CartFastAdd: WxApiRoot + 'cart/fastadd',
- // 立即购买商品
- CartUpdate: WxApiRoot + 'cart/update',
- // 更新购物车的商品
- CartDelete: WxApiRoot + 'cart/delete',
- // 删除购物车的商品
- CartChecked: WxApiRoot + 'cart/checked',
- // 选择或取消选择商品
- CartGoodsCount: WxApiRoot + 'cart/goodscount',
- // 获取购物车商品件数
- CartCheckout: WxApiRoot + 'order/checkoutV2',
- // 下单前信息确认
- CollectList: WxApiRoot + 'collect/list',
- //收藏列表
- CollectAddOrDelete: WxApiRoot + 'collect/addordelete',
- //添加或取消收藏
- CommentList: WxApiRoot + 'comment/list',
- //评论列表
- CommentCount: WxApiRoot + 'comment/count',
- //评论总数
- CommentPost: WxApiRoot + 'comment/post',
- //发表评论
- TopicList: WxApiRoot + 'topic/list',
- //专题列表
- TopicDetail: WxApiRoot + 'topic/detail',
- //专题详情
- TopicRelated: WxApiRoot + 'topic/related',
- //相关专题
- SearchIndex: WxApiRoot + 'search/index',
- //搜索关键字
- SearchResult: WxApiRoot + 'search/result',
- //搜索结果
- SearchHelper: WxApiRoot + 'search/helper',
- //搜索帮助
- SearchClearHistory: WxApiRoot + 'search/clearhistory',
- //搜索历史清楚
- AddressList: WxApiRoot + 'address/list',
- //收货地址列表
- AddressDetail: WxApiRoot + 'address/detail',
- //收货地址详情
- AddressSave: WxApiRoot + 'address/save2',
- //保存收货地址
- AddressDelete: WxApiRoot + 'address/delete',
- //保存收货地址
- LocationSave: WxApiRoot + 'address/saveLocation',
- //自定定位地址保存
- //收货check
- AddressChcek: WxApiRoot + 'address/check',
- ExpressQuery: WxApiRoot + 'express/query',
- //物流查询
- RegionList: WxApiRoot + 'region/list',
- //获取区域列表
- OrderSubmit: WxApiRoot + 'order/submit',
- // 提交订单
- OrderPrepay: WxApiRoot + 'order/prepayV2',
- // 订单的预支付会话
- OrderList: WxApiRoot + 'order/list',
- //订单列表
- OrderDetail: WxApiRoot + 'order/detail',
- //订单详情
- OrderCancel: WxApiRoot + 'order/cancel',
- //取消订单
- OrderRefund: WxApiRoot + 'order/refund',
- //退款取消订单
- OrderDelete: WxApiRoot + 'order/delete',
- //删除订单
- OrderConfirm: WxApiRoot + 'order/confirm',
- //确认收货
- OrderGoods: WxApiRoot + 'order/goods',
- // 代评价商品信息
- OrderComment: WxApiRoot + 'order/comment',
- //订单备注
- OrderMsg: WxApiRoot + 'order/orderMsg',
- // 评价订单商品信息
- OrderPayCheck: WxApiRoot + 'order/payCheck',
- OrderEdit: WxApiRoot + 'order/edit',
- //订单校验
- OrderCheckGoods: WxApiRoot + 'order/checkGoodsV2',
- AftersaleSubmit: WxApiRoot + 'aftersale/submit',
- // 提交售后申请
- AftersaleList: WxApiRoot + 'aftersale/list',
- // 售后列表
- AftersaleDetail: WxApiRoot + 'aftersale/detail',
- // 售后详情
- FeedbackAdd: WxApiRoot + 'feedback/submit',
- //添加反馈
- FootprintList: WxApiRoot + 'footprint/list',
- //足迹列表
- FootprintDelete: WxApiRoot + 'footprint/delete',
- //删除足迹
- CouponList: WxApiRoot + 'coupon/list',
- //优惠券列表
- CouponMyList: WxApiRoot + 'coupon/mylist',
- //我的优惠券列表
- CouponSelectList: WxApiRoot + 'coupon/selectlist',
- //当前订单可用优惠券列表
- CouponReceive: WxApiRoot + 'coupon/receive',
- //优惠券领取
- CouponExchange: WxApiRoot + 'coupon/exchange',
- //优惠券兑换
- CouponDouyinExchange: WxApiRoot + 'coupon/exchangeDouyin',
- //抖音优惠券兑换
- CouponPre: WxApiRoot + 'coupon/couponPre',
- //团购预售查询
- StorageUpload: WxApiRoot + 'storage/upload',
- //图片上传,
- UserIndex: WxApiRoot + 'user/index',
- //个人页面用户相关信息
- IssueList: WxApiRoot + 'issue/list',
- //帮助信息
- QrCodeCreate: WxApiRoot + 'qrcode/create',
- //普通二维码生成
- QrStarCodeCreate: WxApiRoot + 'qrcode/createstar',
- //专属二维码
- QrGoodsCodeCreate: WxApiRoot + 'qrcode/createDyQRCode',
- //商品分享链接 会员和普通用于一致 在分享用户注册时区分
- OrderBookGetShop: WxApiRoot + 'orderbook/getShop',
- //根据经纬度获取门店
- OrderCheckAddress: WxApiRoot + 'orderbook/checkAddress',
- //收货地址校验
- OrderBookDefaultAddress: WxApiRoot + 'address/default',
- //获取默认用户地址
- getDefaultCityShop: WxApiRoot + 'address/getDefaultCityShop',
- //小程序默认系统地址
- CouponRegister: WxApiRoot + 'coupon/register',
- //进入小程序优惠券
- OrderAppoint: WxApiRoot + 'orderbook/estimate',
- // POST 预约服务人员结果预估
- ServiceDetail: WxApiRoot + 'orderbook/detail',
- //服务详情 预约单明细
- ServiceOrderBook: WxApiRoot + 'orderbook/book',
- ServiceOrderBookV2: WxApiRoot + 'orderbook/bookV2',
- //工单备注
- ServiceOrderBookMsg: WxApiRoot + 'orderbook/bookMsg',
- // 未预约的权益 重新预约
- GetAllCity: WxApiRoot + 'address/getAllCity',
- //获取系统城市
- // ReferrerRidInfo:WxApiRoot + 'commission/referrerRidInfo', //根据分享的rid查询信息
- GetDenPhone: WxApiRoot + 'auth/getDenPhone',
- EveryDayStock: WxApiRoot + 'orderbook/everyDayStock',
- //单次卡库存
- EveryDayStockV2: WxApiRoot + 'orderbook/everyDayStockV2',
- //单次卡库存
- detailBookSuccess: WxApiRoot + 'orderbook/detailBookSuccess',
- checkRecommend: WxApiRoot + 'order/checkRecommend',
- //推荐码
- UserInfo: WxApiRoot + 'auth/syncUserInfo',
- //用户头像
- //退款金额
- AftersaleAmount: WxApiRoot + 'aftersale/preCheck',
- AftersaleRefundType: WxApiRoot + 'aftersale/refundTypeLevel',
- //退款原因
- //根据ip获取所在城市
- GetCityByIp: WxApiRoot + 'order/getCityByIP',
- GetLoginInfo: WxApiRoot + 'auth/getLoginInfo',
- //支付成功 如果是静默授权 设置客户为登录状态
- getTradeOrderList: WxApiRoot + 'customerRerutnApi/getTradeOrderList',
- //工单详情,传bookDetailId
- getConsoultType: WxApiRoot + 'customerRerutnApi/getConsoultType',
- //企业回访数据
- saveVisitBatch: WxApiRoot + 'customerRerutnApi/saveVisitBatch',
- //提交企业回访数据
- getGoodsComment: WxApiRoot + 'goods/getGoodsComment',
- //全部评价
- selectMaxCoupon: WxApiRoot + 'coupon/selectMaxCoupon',
- //最大优惠
- allStore: WxApiRoot + 'home/allStore',
- // 取消退款
- AftersaleCancel: WxApiRoot + 'aftersale/cancel',
- // 售后投诉处理满意度
- TicketSatisfaction: WxApiRoot + 'ticket/satisfaction',
- // 小雪花页面
- GoodsSnow: WxApiRoot + 'snow/list',
- OrderBookCancel: WxApiRoot + 'orderbook/cancelBook',
- //预约取消
- gdUrl: 'https://restapi.amap.com/v3/geocode/regeo',
- gdCityUrl: 'https://restapi.amap.com/v3/geocode/geo',
- gdSearchUrl: 'https://restapi.amap.com/v3/assistant/inputtips',
- gdKey: 'ad9076a2b3efffaf7ff54c2ece9e92c1',
- everyDayTime: WxApiRoot + 'orderbook/everyDayTime' ,//预约时间
- appTheme:WxApiRoot + 'home/about',
- getPaySuccessCalender:WxApiRoot + 'orderbook/getPaySuccessCalender',
- addLog:WxApiRoot + 'pageLog/addlog',
- //zfb登陆
- AuthLogin: WxApiRoot + 'auth/login',
- // 提交订单
- aliPrepay: WxApiRoot + 'order/prepay',
- getBooked:WxApiRoot + 'orderbook/getBooked',
- //提交encryptedCode
- alipayEncryptedCode: WxApiRoot + 'order/aliPayEncryptedCode',
- };
|