Browse Source

上传

master
前端-胡立永 6 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', url: '/rice_index/addCart',
method: 'GET', method: 'GET',
auth : true, auth : true,
showLoading : true,
}, },
// 删除购物车信息 // 删除购物车信息
deleteCart: { deleteCart: {
url: '/rice_index/deleteCart', url: '/rice_index/deleteCart',
method: 'DELETE', method: 'DELETE',
auth : true, auth : true,
showLoading : true,
}, },
// 修改购物车信息数量 // 修改购物车信息数量
updateCartNum: { updateCartNum: {
@ -77,24 +79,32 @@ const api = {
url: '/rice_index/createOrder', url: '/rice_index/createOrder',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000,
showLoading : true,
}, },
// 创建订单-再次支付 // 创建订单-再次支付
createOrderTwo: { createOrderTwo: {
url: '/rice_index/createOrderTwo', url: '/rice_index/createOrderTwo',
method: 'GET', method: 'GET',
auth : true, auth : true,
limit : 1000,
showLoading : true,
}, },
// 多商品创建订单 // 多商品创建订单
createSumOrder: { createSumOrder: {
url: '/rice_index/createSumOrder', url: '/rice_index/createSumOrder',
method: 'POST', method: 'POST',
auth : true, auth : true,
limit : 1000,
showLoading : true,
}, },
// 多商品订单再次支付 // 多商品订单再次支付
createSumOrderAgain: { createSumOrderAgain: {
url: '/rice_index/createSumOrderAgain', url: '/rice_index/createSumOrderAgain',
method: 'POST', method: 'POST',
auth : true, auth : true,
limit : 1000,
showLoading : true,
}, },
} }

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

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


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

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


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

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


Loading…
Cancel
Save