Selaa lähdekoodia

1.调试充值历史列表接口
2.更换logo图标

306132416@qq.com 6 vuotta sitten
vanhempi
commit
2309a9741d

+ 1 - 1
pages/index/index.vue

@@ -53,7 +53,7 @@
 				nowTime: '',
 				nowHeight: '622px',
 				inputInfo: '',
-				rabotHeadImg: "../../static/logo.png",
+				rabotHeadImg: "../../static/rabotHead.png",
 				userHeadUrl: getApp().globalData.user_headUrl || '../../static/alienware.png',
 				talkList: [],
 				config: {

+ 36 - 14
pages/selfInfo/rechargeRecord/rechargeRecord.vue

@@ -1,44 +1,66 @@
 <template>
 	<view class="content" :style="{height:nowHeight}">
 		
-		<view class="recharge-box" v-for="pay in payList" :key='pay.payId'>
+		<view class="recharge-box" v-for="pay in payList" :key='pay.id'>
 			 <view class="recharge-time-box">
 				 <view class="recharge-font">智能投顾</view>
-				 <view class="recharge-time">{{pay.payTime}}</view>
+				 <view class="recharge-time">{{pay.paytime}}</view>
 			 </view>
 			 <view class="recharge-money"> 
-				 <text>{{pay.payMoney}}</text>
+				 <text>{{pay.money}}</text>
 			 </view>
 		</view>
 	
 	</view>
 </template>
 
-<script>
+<script>
+	var md5 = require("../../../common/md5.js");
 	export default {
 		data() {
 			return { 
 				nowHeight:getApp().globalData.glbalHeight,
 				payList:[
 					{
-						payTime:'8-28 17:27',
-						payMoney:'¥ 14',
-						payId:'A1',	
+						paytime:'8-28 17:27',
+						money:'¥ 14',
+						id:'A1',	
 					},
 					{
-						payTime:'8-27 18:27',
-						payMoney:'¥ 6',
-						payId:'A2',
+						paytime:'8-27 18:27',
+						money:'¥ 6',
+						id:'A2',
 					},{
-						payTime:'8-29 19:27',
-						payMoney:'¥ 10'	,
-						payId:'A3',
+						paytime:'8-29 19:27',
+						money:'¥ 10'	,
+						id:'A3',
 					},
 				],
 			}
+		},
+		onShow() {
+			this.getRechargeList()
 		},
 		methods: {
-			
+			getRechargeList(){
+				let that = this;
+				uni.request({
+					url:getApp().globalData.shareUrl, //需要设置为全局
+					method: 'POST',
+					header: {
+						'content-type': 'application/x-www-form-urlencoded'
+					},
+					data: {
+						method: 'charge_list',
+						timestamp: getApp().globalData.globalTimestamp, //Date.now()
+						uid:getApp().globalData.user_id,
+						sign: md5('charge_list' + getApp().globalData.globalTimestamp),
+					},
+					success: res => {
+					  that.payList = res.data.msg
+					} 
+				});
+			},
 		}
 	}
 	

+ 1 - 1
pages/selfInfo/selfInfo.vue

@@ -62,7 +62,7 @@
 				nowHeight:getApp().globalData.glbalHeight,
 				isShowAuthBtn:getApp().globalData.isAuth,
 				userName:getApp().globalData.user_name || '芝麻开发',
-				userHeadUrl:getApp().globalData.user_headUrl || '../../static/logo.png',
+				userHeadUrl:getApp().globalData.user_headUrl || '../../static/rabotHead.png',
 				userTime:getApp().globalData.times,
 				userTotalTime:getApp().globalData.total_times
 			}

BIN
static/rabotHead.png