Browse Source

修改登录

v1
前端-胡立永 5 months ago
parent
commit
2858679fac
3 changed files with 7 additions and 7 deletions
  1. +3
    -3
      api/api.js
  2. +1
    -1
      api/http.js
  3. +3
    -3
      pages/login/login.vue

+ 3
- 3
api/api.js View File

@ -8,15 +8,15 @@ const config = {
// 登录接口
loginLogin: { url: '/cheer/login/login', method: 'GET' },
// 获取个人信息接口
infoGetInfo: { url: '/cheer/info/getInfo', method: 'GET', auth: true },
infoGetInfo: { url: '/cheer/info/getInfo', method: 'GET', auth: true, showLoading : true },
//下单
createOrderPay: { url: '/cheer/info/createOrderPay', method: 'GET', auth: true, limit : 2000 },
createOrderPay: { url: '/cheer/info/createOrderPay', method: 'GET', auth: true, limit : 2000, showLoading : true },
//获取折扣、客户电话、微信
getConfig: { url: '/cheer/info/getConfig', method: 'GET'},
//获取充值套餐
getRechargePage: { url: '/cheer/info/getRechargePage', method: 'GET'},
//获取加油流水订单
getOrderWaterPage: { url: '/cheer/info/getOrderWaterPage', method: 'GET'},
getOrderWaterPage: { url: '/cheer/info/getOrderWaterPage', method: 'GET', showLoading : true },
//获取隐私政策
getPrivacyPolicy: { url: '/cheer/login/getPrivacyPolicy', method: 'GET'},
//获取用户协议


+ 1
- 1
api/http.js View File

@ -6,7 +6,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) {
if(showLoading){
uni.showLoading({
title: title || '正在提交...'
title: title || '加载中...'
});
}


+ 3
- 3
pages/login/login.vue View File

@ -6,12 +6,12 @@
<view class="title">
欢迎使用车队佳油
</view>
<view class="btn mt">
<view class="btn mt"
@click="wxLogin">
<!-- <view class="icon">
<image src="/static/image/login/wx.png" mode=""></image>
</view> -->
<view class=""
@click="wxLogin">
<view class="">
微信授权登录
</view>
</view>


Loading…
Cancel
Save