he2802 4 tahun lalu
induk
melakukan
c6a7857c47
3 mengubah file dengan 49 tambahan dan 7 penghapusan
  1. 43 0
      pages2/payment/payment.vue
  2. 5 6
      pages2/wd/avatar.vue
  3. 1 1
      pages2/wd/info.vue

+ 43 - 0
pages2/payment/payment.vue

@@ -0,0 +1,43 @@
+<template>
+	<view style="padding: 30rpx;" >
+		<view class="bd">
+			<text class="font1">¥{{price}}</text>
+			<text class="font2">付款金额</text>
+			<view class="flex">
+				<view class="flex_item">付款方式</view>
+				<view>微信支付</view>
+			</view>
+			<button type="button" class="btn" @click="pay">立即支付</button>
+		</view>
+	</view>
+</template>
+
+<script>
+	import wxPay from '@/common/wxPay.js'
+	export default {
+		data() {
+			return {
+				price:0.01
+			}
+		},
+		onLoad(option) {
+			
+		},
+		onShow(){
+		},
+		methods: {
+			pay(){
+				
+			}
+		
+		},
+		
+	}
+</script>
+
+<style scope>
+	
+page {
+		background: #FFFFFF;
+	}
+</style>

+ 5 - 6
pages2/wd/avatar.vue

@@ -2,25 +2,24 @@
 	<view>
 		<u-cell-group>
 				<u-cell-item  title="头像" @click="editAvatar">
-					<image :src="avatarUrl" class="avatar"></image>
+					<image :src="userInfo!=null?$method.splitImgHost(userInfo.avatar):''" class="avatar"></image>
 				</u-cell-item>
-				<u-cell-item  title="昵称" value="李宏杰" @click="editNickName"></u-cell-item>
+				<u-cell-item  title="昵称" :value="userInfo.nickname" @click="editNickName"></u-cell-item>
 			</u-cell-group>
 			<u-modal v-model="show" :show-cancel-button="true" title="修改昵称">
 				<view class="slot-content">
-					<u-input v-model="value"  />
+					<u-input v-model="userInfo.nickname"  />
 				</view>
 			</u-modal>
 	</view>
 </template>
 
 <script>
+	import {mapGetters} from 'vuex';
 	export default {
 		data() {
 			return {
 				show: false,
-				avatarUrl:'/static/avatar.png',
-				value: '李宏杰',
 			}
 		},
 		onLoad(option) {
@@ -44,7 +43,7 @@
 			}
 		
 		},
-		
+		computed: {...mapGetters(['userInfo'])}
 	}
 </script>
 

+ 1 - 1
pages2/wd/info.vue

@@ -382,7 +382,7 @@ export default {
 		background-color: #32467B !important;
 		border-color: #32467B !important;
 		color: #FFFFFF;
-		font-size: 28rpx;
+		font-size: 30rpx;
 	}
 .u-form-item__message.data-v-5e7216f1 {
 	padding: 0px !important;