lilei пре 4 година
родитељ
комит
cddfc3d684
5 измењених фајлова са 102 додато и 6 уклоњено
  1. 6 0
      pages.json
  2. 21 1
      pages/index/index.vue
  3. 2 2
      pages/login/login.vue
  4. 5 3
      pages/userCenter/index.vue
  5. 68 0
      pages/userCenter/leDouQuery.vue

+ 6 - 0
pages.json

@@ -37,6 +37,12 @@
 				"navigationBarTitleText": "注意事项及服务协议"
 			}
 		},
+		{
+			"path": "pages/userCenter/leDouQuery",
+			"style": {
+				"navigationBarTitleText": "乐豆查询"
+			}
+		},
 		{
 			"path": "pages/userCenter/changePwd",		//  我的>修改密码
 			"style": {

+ 21 - 1
pages/index/index.vue

@@ -48,6 +48,10 @@
 				<u-loadmore v-if="total>pageSize || status=='loading'" :status="status" />
 			</view>
 		</scroll-view>
+		
+		<view class="footer-bar">
+			<u-button shape="circle" @click="openQuery" size="medium" type="primary">用户乐豆查询/核销</u-button>
+		</view>
 	</view>
 </template>
 <script>
@@ -83,6 +87,11 @@
 			this.refresh({})
 		},
 		methods:{
+			openQuery(){
+				uni.navigateTo({
+					url: "/pages/userCenter/leDouQuery"
+				})
+			},
 			//  总计
 			getGoldLogTotal(){
 				GoldLogTotal({
@@ -174,7 +183,18 @@
 		height: 100%;
 		display: flex;
 		flex-direction: column;
-		padding-top: 102rpx;
+		padding: 102rpx 0;
+		.footer-bar{
+			width: 100%;
+			display: flex;
+			align-items: center;
+			height: 102rpx;
+			justify-content: center;
+			padding: 0 10%;
+			position: fixed;
+			bottom: 0;
+			left: 0;
+		}
 		// 筛选菜单
 		.homePage-head{
 			font-size: 30rpx;

+ 2 - 2
pages/login/login.vue

@@ -41,14 +41,14 @@ export default {
 				password: this.$store.state.vuex_user.password
 			},
 			isRemember: true, //  是否记住密码
-			isAuthuserYs: false, // 是否同意隐私政策
+			isAuthuserYs: true, // 是否同意隐私政策
 			envTips: '',
 			buildType: '',
 		};
 	},
 	mounted() {
 		this.isRemember = this.$store.state.vuex_isRemember || true;
-		this.isAuthuserYs = this.$store.state.vuex_isUsrAuthYs || false;
+		this.isAuthuserYs = this.$store.state.vuex_isUsrAuthYs || true;
 		this.envTips = getApp().globalData.envTips;
 		this.buildType = getApp().globalData.buildType;
 	},

+ 5 - 3
pages/userCenter/index.vue

@@ -13,9 +13,10 @@
 		<!-- 列表 -->
 		<view class="user-list">
 			<u-cell-group>
-				<u-cell-item icon="file-text" icon-size="40" :icon-style="{color:'#ffaa00'}" index="0" @click="toPage" title="服务协议及隐私政策"></u-cell-item>
-				<u-cell-item icon="info-circle" icon-size="38" :icon-style="{color:'#55aa00'}" index="1" @click="toPage" title="关于我们"></u-cell-item>
-				<u-cell-item icon="lock" icon-size="38" :icon-style="{color:'#00aaff'}" index="2" @click="toPage" title="修改密码"></u-cell-item>
+				<!-- <u-cell-item icon="search" icon-size="36" :icon-style="{color:'#ff0000'}" index="0" @click="toPage" title="用户乐豆查询及核销"></u-cell-item> -->
+				<u-cell-item icon="info-circle" icon-size="38" :icon-style="{color:'#55aa00'}" index="2" @click="toPage" title="关于我们"></u-cell-item>
+				<u-cell-item icon="file-text" icon-size="40" :icon-style="{color:'#ffaa00'}" index="1" @click="toPage" title="服务协议及隐私政策"></u-cell-item>
+				<u-cell-item icon="lock" icon-size="38" :icon-style="{color:'#00aaff'}" index="3" @click="toPage" title="修改密码"></u-cell-item>
 			</u-cell-group>
 		</view>
 		<!-- 退出 -->
@@ -59,6 +60,7 @@
 			// 打开对应的页面
 			toPage(index){
 				let pageUrl=[
+					'/pages/userCenter/leDouQuery',
 					'/pages/agreement/agreement?fromPage=usercenter',
 					'/pages/userCenter/aboutUs',
 					'/pages/userCenter/changePwd'

+ 68 - 0
pages/userCenter/leDouQuery.vue

@@ -0,0 +1,68 @@
+<template>
+	<view class="query-content">
+		<view class="query-input">
+			<u-input v-model="queryWord" :border="true" placeholder="请输入完整手机号码查询" type="number"/>
+			<view class="query-button">
+				<u-button shape="circle" type="primary">查询</u-button>
+			</view>
+		</view>
+		<view class="query-result">
+			<u-gap height="20" bg-color="#f8f8f8"></u-gap>
+			<view class="result-list">
+				<view class="result-title">
+					<view>
+						<u-icon name="account-fill" color="#666" size="28"></u-icon>
+						<text>普通用户</text>
+					</view>
+					<view>
+						<u-button type="warning" size="mini">乐豆核销</u-button>
+					</view>
+				</view>
+				<view class="result-info">
+					<u-cell-group>
+						<u-cell-item :arrow="false" title="注册时间" value="2020-12-25 12:23:55"></u-cell-item>
+						<u-cell-item :arrow="false" title="用户手机" value="1279495656"></u-cell-item>
+						<u-cell-item :arrow="false" title="乐豆余额" :value-style="{color:'red'}" value="1200">
+						</u-cell-item>
+					</u-cell-group>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default{
+		data() {
+			return {
+				queryWord: ''
+			}
+		},
+	}
+</script>
+
+<style lang="less">
+	.query-content{
+		width: 100%;
+		display: flex;
+		flex-direction: column;
+		.query-input{
+			padding: 20rpx 60rpx;
+			background: #FFFFFF;
+		}
+		.query-button{
+			padding: 20rpx 0;
+		}
+		.query-result{
+			flex-grow: 1;
+		}
+		.result-title{
+			display: flex;
+			align-items: center;
+			justify-content: space-between;
+			background: #fff;
+			padding: 30rpx;
+			border-bottom: 1rpx solid #eee;
+		}
+	}
+</style>