浏览代码

1.添加默认图片
2.优化其他页面

306132416@qq.com 6 年之前
父节点
当前提交
f7124fb2d1
共有 5 个文件被更改,包括 21 次插入21 次删除
  1. 1 1
      manifest.json
  2. 11 5
      pages/index/index.vue
  3. 1 1
      pages/selfInfo/payList/payList.vue
  4. 8 14
      pages/selfInfo/rechargeRecord/rechargeRecord.vue
  5. 二进制
      static/userDefault.png

+ 1 - 1
manifest.json

@@ -1,5 +1,5 @@
 {
-    "name" : "mini_rabot",
+    "name" : "阿拉D神丁",
     "appid" : "__UNI__B2ACDFB",
     "description" : "",
     "versionName" : "1.0.0",

+ 11 - 5
pages/index/index.vue

@@ -12,7 +12,7 @@
 
 			<view class="talk-box">
 				<view class="talk-head-box">
-					<image src="../../static/logo.png" mode="" class="talk-head"></image> 
+					<image src="../../static/rabotHead.png" mode="" class="talk-head"></image> 
 				</view>
 				<view class="talk-content">您好,智能顾投很高兴为您服务!</view>
 			</view>
@@ -34,9 +34,8 @@
 			</view>
 
 		</scroll-view>
-
-		<view class="send-box">
-			<input type="number" class="enter-box" v-model="inputInfo">
+		<view class="send-box" :style="{ 'padding-bottom' : isShowKeyBoard + 'px'}">
+			<input type="text" class="enter-box" v-model="inputInfo" adjust-position='{{true}}' >
 			<button type="primary" class="submit-message" @click="sendInputInfo()">发送</button>
 		</view>
 	</view>
@@ -53,8 +52,9 @@
 				nowTime: '',
 				nowHeight: '622px',
 				inputInfo: '',
+				isShowKeyBoard:0,
 				rabotHeadImg: "../../static/rabotHead.png",
-				userHeadUrl: getApp().globalData.user_headUrl || '../../static/alienware.png',
+				userHeadUrl: getApp().globalData.user_headUrl || '../../static/userDefault.png',
 				talkList: [],
 				config: {
 					title: "阿拉丁神灯", //title
@@ -249,6 +249,12 @@
 					console.log('noData')
 				}
 			},		
+			// getInputFocus(e){
+			// 	this.isShowKeyBoard = e.detail.height
+			// },
+			// getInputBlur(){
+			// 	this.isShowKeyBoard = 0
+			// },
 			},
 		}
 </script>

+ 1 - 1
pages/selfInfo/payList/payList.vue

@@ -85,11 +85,11 @@
 				    signType:obj.signType,
 				    paySign:obj.paySign,
 				    success: function (res) {
-						console.log(res)
 						uni.showToast({
 							title: '支付成功',
 							icon:'none'
 						});
+						uni.navigateBack({})
 				    },
 				    fail: function (err) {
 				        console.log('支付失败:' + JSON.stringify(err));

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

@@ -10,6 +10,9 @@
 				 <text>{{pay.money}}</text>
 			 </view>
 		</view>
+		<view v-if='payList.length === 0' style="font-size: 14px;margin-top: 5%;">
+			<p>暂无充值记录</p>
+		</view>
 	
 	</view>
 </template>
@@ -21,20 +24,11 @@
 			return { 
 				nowHeight:getApp().globalData.glbalHeight,
 				payList:[
-					{
-						paytime:'8-28 17:27',
-						money:'¥ 14',
-						id:'A1',	
-					},
-					{
-						paytime:'8-27 18:27',
-						money:'¥ 6',
-						id:'A2',
-					},{
-						paytime:'8-29 19:27',
-						money:'¥ 10'	,
-						id:'A3',
-					},
+					// {
+					// 	paytime:'8-28 17:27',
+					// 	money:'¥ 14',
+					// 	id:'A1',	
+					// },
 				],
 			}
 		},

二进制
static/userDefault.png