chenting 2 miesięcy temu
rodzic
commit
1229e3c0f5

+ 13 - 0
pages.json

@@ -154,6 +154,13 @@
 				"navigationBarBackgroundColor": "#161616"
 			}
 		}, 
+		{
+			"path": "pages/w3/X_bank",
+			"style": {
+				"navigationBarTitleText": "暗物质宝库",
+				"navigationBarBackgroundColor": "#161616"
+			}
+		}, 
 		{
 			"path": "pages/w3/ucenter",
 			"style": {
@@ -205,6 +212,12 @@
 					}
 				}
 			}
+		},{
+			"path": "pages/w3/miningRecord",
+			"style": {
+				"navigationBarTitleText": "探索记录",
+				"navigationBarBackgroundColor": "#161616"
+			}
 		}
 
 	],

+ 1 - 1
pages/my/M_coin.vue

@@ -19,7 +19,7 @@
 					</view>
 					<image class="icon" src="../../static/me/M_coin_bg1.png" mode="heightFix" />
 				</view>
-				<view style="padding-top: 20rpx;margin-left: 40rpx;" class="jinchu">
+				<view style="padding-top: 20rpx;margin-left: 40rpx;" >
 					<text style="color:#FFFFFF;font-size: 32rpx;">{{$t('txt.进出明细')}}</text>
 				</view>
 

+ 110 - 0
pages/w3/X_bank.scss

@@ -0,0 +1,110 @@
+
+page {
+	background-color: #161616;
+	width:750rpx;height:100vh;
+}
+.page {
+	width: 750rpx;height: 100vh;
+	background: url('../../static/w3/bg.png');
+	background-size: 750rpx 1624rpx;
+}
+
+
+.list_info {
+	// display: flex;flex-direction: column;justify-content: flex-start;align-items: center;color:#fff;
+	width:750rpx;
+	display:flex;flex-direction: column;margin:30rpx 30rpx 60rpx;justify-content: flex-start;
+	
+	.numlist {
+			display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
+			position: relative;
+			width: 690rpx;
+			height: 188rpx;
+			background: url('../../static/w3/invite_bg2.png');
+			background-size: 690rpx 188rpx;
+			.left {
+				display: flex;flex-direction: row;justify-content: space-between;align-items: center;
+				.icon {
+					margin-left: 60rpx;
+					margin-right: 42rpx;
+					width:164rpx;
+					height: 164rpx;
+				}
+
+				.num {
+					font-weight: bold;
+					font-size: 36rpx;
+					color: #FFFFFF;
+					text-align: left;display: flex;flex-direction: column;justify-content: left;align-items: left;
+					.name {
+						font-size: 28rpx;color: #999999;margin-top: 12rpx;font-weight: normal;
+					}
+
+				}
+			}
+
+	}
+	.mingxiList {
+		display: flex;flex-direction: row;justify-content: space-between;align-items: center;
+		position: relative;
+		.left {
+			display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
+			padding-left:40rpx;
+			padding-top: 20rpx;
+			.icon{
+				padding-left:5rpx;
+				height: 36rpx;
+			}
+		}
+		.right{
+			display: flex;flex-direction: row;justify-content: flex-start;align-items: center;
+			padding-right:80rpx;
+			padding-top: 20rpx;
+			.icon{
+				padding-left:5rpx;
+				height: 36rpx;
+			}
+		}
+
+	}
+	
+	.item {
+		margin-top: 20rpx;color:#fff;font-size: 28rpx;
+		display: flex;flex-direction: row;justify-content: space-between;align-items: center;
+		width: 690rpx;height: 157rpx;
+		background: url('../../static/w3/tran/bg_record.png');
+		background-size: 690rpx 157rpx;
+		.left {
+			display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
+			padding-left:30rpx;
+			.name {
+				margin-bottom:20rpx;
+				font-weight: 400;
+				font-size: 28rpx;
+				color: #FFFFFF;
+			}
+			.desc {
+				font-weight: 400;
+				font-size: 24rpx;
+				color: #999999;
+			}
+		}
+		.right{
+			height: 40%;
+			display: flex;flex-direction: row;justify-content: flex-start;align-items: flex-start;
+			.num1{
+				padding-right:50rpx;
+				text-align: center;display: flex;flex-direction: column;justify-content: center;align-items: center;
+				font-weight: bold;
+				font-size: 36rpx;
+				color: #FE2D56;
+			}
+			.num2{
+				color: #FFFFFF;
+			}
+		}
+	}
+}
+.blankHeight {
+	height:300rpx;
+}

+ 156 - 0
pages/w3/X_bank.vue

@@ -0,0 +1,156 @@
+<template>
+	<view class="page">
+
+		<view class="list_info">
+			<view style="margin-top: 24rpx;" class="numlist">				
+				<view class="left">
+					<image class="icon" mode="heightFix" src="../../static/w3/w3_x.png"></image>
+					<view class="num">
+						<text>100</text>
+						<view class="name">可用数量</view>
+					</view>
+				</view>
+			</view>			
+			<view style="margin-top: 72rpx;margin-left: 40rpx;" >
+				<text style="color:#FFFFFF;font-size: 32rpx;">暗物质明细</text>
+			</view>
+			<view class="mingxiList">
+				<view class="left">
+					<text style="font-size: 28rpx;color: #FFFFFF;">{{$t('txt.明细类型')}}</text>
+					<image class="icon" src="../../static/me/arrow_down_gray.png" mode="heightFix" />
+				</view>
+				<view class="right">
+					<text style="font-size: 28rpx;color: #FFFFFF;">{{$t('txt.开始时间-结束时间')}}</text>
+					<image class="icon" src="../../static/me/arrow_down_gray.png" mode="heightFix" />
+				</view>
+			</view>			
+
+			<view class="item" v-for="(item,index) in historyInfo">
+				<view class="left">
+					<view class="name">{{item.reason}}</view>
+					<view class="desc">2023-10-10 15:00</view>
+				</view>
+				<text class="right">
+					<view v-if="item.value>0" class="num1">
+						<text>+{{ item.value }}</text>
+					</view>
+					<view v-else class="num1 num2">
+						<text>{{ item.value }}</text>
+					</view>
+				</text>
+			</view>
+
+			<view class="blankHeight"></view>
+		</view>
+
+		<DialogBox ref="DialogBox"></DialogBox>
+	</view>
+</template>
+
+<script>
+	export default {
+		components: {},
+		data() {
+			return {
+				tab: 1,
+				scrollTop: 0,
+				old: {
+					scrollTop: 0
+				},
+				historyInfo: [
+					{
+						reason: "探索奖励",
+						value: 1100,
+					},
+					{
+						reason: "传送转出",
+						value: -100,
+					},					
+					{
+						reason: "传送转入",
+						value: 200,
+					},
+				]
+			}
+		},
+		onLoad() {
+			// setTimeout(function() {
+			// 	uni.setNavigationBarColor({
+			// 		frontColor: '#ffffff',
+			// 		backgroundColor: '#00000000',
+			// 		animation: {
+			// 			duration: 400,
+			// 			timingFunc: 'easeIn'
+			// 		}
+			// 	})
+			// }, 200);
+		},
+		onShow() {
+			this.loadData();
+		},
+		methods: {
+			onBack() {},
+			checkTab(tab) {
+				this.tab = tab;
+				// this.loadData();
+			},
+			onLinqu() {
+				this.$refs['DialogBox'].confirm({
+					title: '',
+					content: '你还没有维护收货地址,请先维护收货地址!',
+					DialogType: 'inquiry',
+					btn1: '我知道了',
+					btn2: '编辑地址',
+					animation: 0
+				}).then(() => {
+
+					// getApp().globalData.skey = "";
+					// uni.removeStorageSync("wapptoken")
+					// uni.redirectTo({
+					// 	url: '/pages/index/login',
+					// })
+					// uni.navigateBack();
+					// uni.sendNativeEvent("logout","tt", function(e){
+					// 	//关闭当前小程序
+					// 	console.log("sendNativeEvent-----------回调"+JSON.stringify(e));
+					// });
+				})
+			},
+			scroll: function(e) {
+				console.log(e)
+				this.old.scrollTop = e.detail.scrollTop
+			},
+			loadData() {
+				console.log("this.globalData", getApp().globalData);
+				let obj2 = {
+					is_first: 0
+				}
+				const postData = Object.assign({}, getApp().globalData.postHeader, obj2);
+
+				console.log(postData);
+
+				uni.request({
+					url: this.$apiHost + '/Gushi/getmyinfo', //仅为示例,并非真实接口地址。
+					data: postData,
+					method: 'POST',
+					header: {
+						'content-type': 'application/json', //自定义请求头信息
+						'Access-Control-Allow-Origin': '*'
+					},
+					success: (res) => {
+						console.log('data:', res.data);
+						this.myinfo = res.data;
+					}
+				});
+
+
+
+			},
+			
+		}
+	}
+</script>
+
+<style scoped lang="scss">
+	@import 'X_bank.scss';
+</style>

+ 4 - 4
pages/w3/box.scss

@@ -3,10 +3,10 @@ page {
 	width: 100%;
 	height: 100%;
 }
-.page {
-	width: 750rpx;height: 100vh;
-	background: url('../../static/w3/bg.png');
-	background-size: 750 1624;
+.page {
+	width: 750rpx;height: 100vh;
+	background: url('../../static/w3/bg.png');
+	background-size: 750rpx 1624rpx;
 }
 .thread {
 	height: 20rpx;

+ 5 - 5
pages/w3/friendsList.scss

@@ -25,7 +25,7 @@ page {
 	padding:50rpx;font-size: 52rpx;color:#6E6A6A;padding-top: 80rpx;
 }
 .myinfo {
-	width: 690rpx;display:flex;flex-direction: column;margin:30rpx 30rpx 60rpx;justify-content: center;
+	width: 690rpx;display:flex;flex-direction: column;margin:30rpx 30rpx 60rpx;justify-content: flex-start;
 	.imgList {
 		display: flex;flex-direction: row;justify-content: space-around;align-items: center;
 	}
@@ -34,8 +34,8 @@ page {
 		display: flex;flex-direction: row;justify-content: space-around;align-items: center;
 		position: relative;
 		height: 188rpx;
-		background: url('../../static/w3/invite_bg2.png');
-		background-size: 690rpx 188rpx;
+		// background: url('../../static/w3/invite_bg2.png');
+		// background-size: 690rpx 188rpx;
 		.left {
 			display: flex;justify-content: center;padding:20rpx;
 			border-radius: 38rpx;
@@ -88,7 +88,7 @@ page {
 	
 	.friendList{
 		display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
-		height :780rpx;
+		// height :780rpx;
 		width: 690rpx;
 		// margin-top: 34rpx;
 		.title{
@@ -112,7 +112,7 @@ page {
 			}
 		}
 		.numlist2 {
-			display: flex;flex-direction: column;justify-content: space;align-items: flex-start;
+			display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
 			width:690rpx;
 			// height: 690rpx;
 			background: url('../../static/w3/invite_bg.png');

+ 9 - 41
pages/w3/friendsList.vue

@@ -49,8 +49,9 @@
 							</view>
 						</view>
 					</view>
+				
 				</view>
-
+				<image style="height: 42rpx; width: 690rpx;margin-top: 0rpx;" src="../../static/w3/invite_bg_bottom.png" mode="widthFix"></image>
 
 			</view>
 
@@ -100,39 +101,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
-					{
-						reason: "txt.M币充值",
-						p_name: "佘和会",
-						vip:2,
-						value: -100,
-						phoneNum: "188*****255",
-						data: "2023-1-12 11:00"
-					},
-					{
-						reason: "txt.M币充值",
-						p_name: "佘和会",
-						vip:2,
-						value: -100,
-						phoneNum: "188*****255",
-						data: "2023-1-12 11:00"
-					},
-					{
-						reason: "txt.M币充值",
-						p_name: "佘和会",
-						vip:2,
-						value: -100,
-						phoneNum: "188*****255",
-						data: "2023-1-12 11:00"
-					},
-					{
-						reason: "txt.M币充值",
-						p_name: "佘和会",
-						vip:2,
-						value: -100,
-						phoneNum: "188*****255",
-						data: "2023-1-12 11:00"
-					},
+					},	
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",
@@ -140,7 +109,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
+					},	
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",
@@ -148,8 +117,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
-					
+					},	
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",
@@ -157,7 +125,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
+					},	
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",
@@ -165,7 +133,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
+					},		
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",
@@ -173,7 +141,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
+					},	
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",
@@ -181,7 +149,7 @@
 						value: -100,
 						phoneNum: "188*****255",
 						data: "2023-1-12 11:00"
-					},
+					},							
 					{
 						reason: "txt.M币充值",
 						p_name: "佘和会",

+ 6 - 6
pages/w3/invite.scss

@@ -87,8 +87,8 @@ page {
 	
 	
 	.friendList{
-		display: flex;flex-direction: column;justify-content: space-between;align-items: flex-start;
-		height :780rpx;
+		display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
+		// height :780rpx;
 		width: 690rpx;
 		// margin-top: 34rpx;
 		.title{
@@ -114,15 +114,15 @@ page {
 		.numlist2 {
 			display: flex;flex-direction: column;justify-content: space;align-items: flex-start;
 			width:690rpx;
-			height: 690rpx;
+			height: 560rpx;
 			background: url('../../static/w3/invite_bg.png');
-			background-size: 690rpx 690rpx;
+			background-size: 690rpx 560rpx;
 			// background: #ffffff;
 			
 			.empty{
 				display: flex;flex-direction: column;justify-content: normal;align-items: center;
 				width:690rpx;
-				height: 600rpx;
+				height: 560rpx;
 				.bg {
 					margin-top: 100rpx;
 					width:276rpx;
@@ -135,7 +135,7 @@ page {
 			
 			.item {
 				display: flex;flex-direction: column;justify-content: space-between;align-items: center;
-				height: 140rpx;
+				height: 138rpx;
 				width:690rpx;
 				background: rgba(22,22,22,0);
 				border-radius: 0rpx 0rpx 0rpx 0rpx;

+ 2 - 0
pages/w3/invite.vue

@@ -85,6 +85,8 @@
 							</view>
 						</view>
 					</view>
+					<image style="height: 42rpx; width: 690rpx;margin-top: 0rpx;" src="../../static/w3/invite_bg_bottom.png" ></image>
+
 				</view>
 
 

+ 4 - 4
pages/w3/levRule.scss

@@ -3,10 +3,10 @@ page {
 	width: 100%;
 	height: 100%;
 }
-.page {
-	width: 750rpx;height: 100vh;
-	background: url('../../static/w3/bg.png');
-	background-size: 750 1624;
+.page {
+	width: 750rpx;height: 100vh;
+	background: url('../../static/w3/bg.png');
+	background-size: 750rpx 1624rpx;
 }
 .top {
 	display: flex;

+ 46 - 0
pages/w3/miningRecord.scss

@@ -0,0 +1,46 @@
+
+page {
+	background-color: #161616;
+	width:750rpx;height:100vh;
+}
+.page {
+	width: 750rpx;height: 100vh;
+	background: url('../../static/w3/bg.png');
+	background-size: 750rpx 1624rpx;
+}
+
+.list_info {
+	display: flex;flex-direction: column;justify-content: flex-start;align-items: center;color:#fff;
+	width:750rpx;
+	
+	.item {
+		margin-top: 20rpx;color:#fff;font-size: 28rpx;
+		display: flex;flex-direction: row;justify-content: space-between;align-items: center;
+		width: 690rpx;height: 157rpx;
+		background: url('../../static/w3/tran/bg_record.png');
+		background-size: 690rpx 157rpx;
+		.left {
+			display: flex;flex-direction: column;justify-content: flex-start;align-items: flex-start;
+			padding-left:30rpx;
+			.name {
+				margin-bottom:20rpx;
+				font-weight: 400;
+				font-size: 28rpx;
+				color: #FFFFFF;
+			}
+			.desc {
+				font-weight: 400;
+				font-size: 24rpx;
+				color: #999999;
+			}
+		}
+		.right {
+			padding-right: 30rpx;
+			font-size: 36rpx;
+			color: #FF4655;
+		}
+	}
+}
+.blankHeight {
+	height:300rpx;
+}

+ 119 - 0
pages/w3/miningRecord.vue

@@ -0,0 +1,119 @@
+<template>
+	<view class="page">
+
+		<view class="list_info">
+			<view class="item" v-for="(item,index) in 3">
+				<view class="left">
+					<view class="name">探索奖励</view>
+					<view class="desc">2023-10-10 15:00</view>
+				</view>
+				<text class="right">
+					<view class="num">+100</view>
+				</text>
+			</view>
+
+			<view class="blankHeight"></view>
+		</view>
+
+		<DialogBox ref="DialogBox"></DialogBox>
+	</view>
+</template>
+
+<script>
+	export default {
+		components: {},
+		data() {
+			return {
+				tab: 1,
+				scrollTop: 0,
+				old: {
+					scrollTop: 0
+				},
+				list: [{
+					name: '实名认证',
+					'desc': '',
+					'path': ''
+				}]
+			}
+		},
+		onLoad() {
+			// setTimeout(function() {
+			// 	uni.setNavigationBarColor({
+			// 		frontColor: '#ffffff',
+			// 		backgroundColor: '#00000000',
+			// 		animation: {
+			// 			duration: 400,
+			// 			timingFunc: 'easeIn'
+			// 		}
+			// 	})
+			// }, 200);
+		},
+		onShow() {
+			this.loadData();
+		},
+		methods: {
+			onBack() {},
+			checkTab(tab) {
+				this.tab = tab;
+				// this.loadData();
+			},
+			onLinqu() {
+				this.$refs['DialogBox'].confirm({
+					title: '',
+					content: '你还没有维护收货地址,请先维护收货地址!',
+					DialogType: 'inquiry',
+					btn1: '我知道了',
+					btn2: '编辑地址',
+					animation: 0
+				}).then(() => {
+
+					// getApp().globalData.skey = "";
+					// uni.removeStorageSync("wapptoken")
+					// uni.redirectTo({
+					// 	url: '/pages/index/login',
+					// })
+					// uni.navigateBack();
+					// uni.sendNativeEvent("logout","tt", function(e){
+					// 	//关闭当前小程序
+					// 	console.log("sendNativeEvent-----------回调"+JSON.stringify(e));
+					// });
+				})
+			},
+			scroll: function(e) {
+				console.log(e)
+				this.old.scrollTop = e.detail.scrollTop
+			},
+			loadData() {
+				console.log("this.globalData", getApp().globalData);
+				let obj2 = {
+					is_first: 0
+				}
+				const postData = Object.assign({}, getApp().globalData.postHeader, obj2);
+
+				console.log(postData);
+
+				uni.request({
+					url: this.$apiHost + '/Gushi/getmyinfo', //仅为示例,并非真实接口地址。
+					data: postData,
+					method: 'POST',
+					header: {
+						'content-type': 'application/json', //自定义请求头信息
+						'Access-Control-Allow-Origin': '*'
+					},
+					success: (res) => {
+						console.log('data:', res.data);
+						this.myinfo = res.data;
+					}
+				});
+
+
+
+			},
+			
+		}
+	}
+</script>
+
+<style scoped lang="scss">
+	@import 'miningRecord.scss';
+</style>

+ 0 - 3
pages/w3/teamProfit.scss

@@ -26,9 +26,6 @@ page {
 }
 .myinfo {
 	width: 690rpx;display:flex;flex-direction: column;margin:30rpx 30rpx 60rpx;justify-content: center;
-	.imgList {
-		display: flex;flex-direction: row;justify-content: space-around;align-items: center;
-	}
 	
 	.numlist {
 		display: flex;flex-direction: row;justify-content: space-around;align-items: center;

+ 4 - 4
pages/w3/tran.scss

@@ -3,10 +3,10 @@ page {
 	width: 100%;
 	height: 100%;
 }
-.page {
-	width: 750rpx;height: 100vh;
-	background: url('../../static/w3/bg.png');
-	background-size: 750 1624;
+.page {
+	width: 750rpx;height: 100vh;
+	background: url('../../static/w3/bg.png');
+	background-size: 750rpx 1624rpx;
 }
 .bodyMain {
 	display: flex;

+ 4 - 2
pages/w3/tranRecord.scss

@@ -3,8 +3,10 @@ page {
 	background-color: #161616;
 	width:750rpx;height:100vh;
 }
-.page {
-	background-color: #161616;
+.page {
+	width: 750rpx;height: 100vh;
+	background: url('../../static/w3/bg.png');
+	background-size: 750rpx 1624rpx;
 }
 
 .list_info {

BIN
static/w3/invite_bg.png


BIN
static/w3/invite_bg_bottom.png


BIN
static/w3/w3_x.png