Browse Source

上传

master
前端-胡立永 4 months ago
parent
commit
463981e108
4 changed files with 26 additions and 7 deletions
  1. +10
    -0
      api/model/index.js
  2. +7
    -0
      api/model/info.js
  3. +6
    -4
      pages/index/center.vue
  4. +3
    -3
      pages_order/mine/balance.vue

+ 10
- 0
api/model/index.js View File

@ -58,12 +58,14 @@ const api = {
url: '/rice_index/addCart',
method: 'GET',
auth : true,
showLoading : true,
},
// 删除购物车信息
deleteCart: {
url: '/rice_index/deleteCart',
method: 'DELETE',
auth : true,
showLoading : true,
},
// 修改购物车信息数量
updateCartNum: {
@ -77,24 +79,32 @@ const api = {
url: '/rice_index/createOrder',
method: 'GET',
auth : true,
limit : 1000,
showLoading : true,
},
// 创建订单-再次支付
createOrderTwo: {
url: '/rice_index/createOrderTwo',
method: 'GET',
auth : true,
limit : 1000,
showLoading : true,
},
// 多商品创建订单
createSumOrder: {
url: '/rice_index/createSumOrder',
method: 'POST',
auth : true,
limit : 1000,
showLoading : true,
},
// 多商品订单再次支付
createSumOrderAgain: {
url: '/rice_index/createSumOrderAgain',
method: 'POST',
auth : true,
limit : 1000,
showLoading : true,
},
}

+ 7
- 0
api/model/info.js View File

@ -7,12 +7,16 @@ const api = {
url: '/rice_info/recharge',
method: 'GET',
auth : true,
limit : 1000,
showLoading : true,
},
// 提现
withdraw: {
url: '/rice_info/withdraw',
method: 'GET',
auth : true,
limit : 1000,
showLoading : true,
},
// 获取地址列表带分页
getAddressPageList: {
@ -26,6 +30,7 @@ const api = {
method: 'POST',
limit : 500,
auth : true,
showLoading : true,
},
// 删除地址
deleteAddress: {
@ -33,12 +38,14 @@ const api = {
method: 'GET',
limit : 500,
auth : true,
showLoading : true,
},
// 修改默认地址
updateDefaultAddress: {
url: '/rice_info/updateDefaultAddress',
method: 'GET',
auth : true,
limit : 1000,
},
// 获取粉丝列表带分页
getFansPageList: {


+ 6
- 4
pages/index/center.vue View File

@ -43,7 +43,8 @@
</view>
<view class="boxs">收益明细</view>
</view>
<view class="box">
<!-- <view class="box">
<view
@click="$utils.navigateTo('/pages_order/mine/balance')">
<view class="num">{{ riceInfo.balance || 0 }}</view>
@ -51,7 +52,7 @@
</view>
<view class="boxs"
@click="$utils.navigateTo('/pages_order/mine/recharge')">去充值</view>
</view>
</view> -->
<view class="box">
<view
@ -325,10 +326,11 @@
flex-direction: column;
justify-content: space-around;
color: #fff;
border-right: 2rpx dashed;
flex: 1;
.num {
font-size: 48rpx;
border-right: 2rpx dashed;
// border-right: 2rpx dashed;
width: 100%;
padding: 0 30rpx 0 0;
}


+ 3
- 3
pages_order/mine/balance.vue View File

@ -1,6 +1,6 @@
<template>
<view class="page">
<navbar title="余额"
<navbar title="收支明细"
bgColor="#A3D250"
color="#fff"
leftClick
@ -8,14 +8,14 @@
<view class="bg"/>
<view class="price">
<!-- <view class="price">
<view class="title">
我的余额
</view>
<view class="num">
{{ riceInfo.balance || 0 }}
</view>
</view>
</view> -->
<view class="cell">
<view class="cell-top">收支明细</view>


Loading…
Cancel
Save