zhang 2 år sedan
förälder
incheckning
4fd5523d22
6 ändrade filer med 92 tillägg och 39 borttagningar
  1. 3 20
      api/index.js
  2. 20 1
      libs/i18n/lang/cn.json
  3. 19 1
      libs/i18n/lang/en.json
  4. 19 1
      libs/i18n/lang/tw.json
  5. 15 15
      pages/index/entertainment.vue
  6. 16 1
      pages/index/index.vue

+ 3 - 20
api/index.js

@@ -1,29 +1,12 @@
 import request from '@/utils/request'
-// 新品首发
-export function groom(data, id) {
+// 首页代币价格
+export function prices(data) {
 	return request({
-		url: '/api/groom/list/' + id,
+		url: '/api/prices',
 		method: 'get',
 		data
 	});
 }
 
-// 获取首页信息
-export function loadIndexs(data) {
-	return request({
-		url: '/api/index',
-		method: 'get',
-		data
-	});
-}
-
-export function enroll(data) {
-	return request({
-		url: '/api/enroll',
-		method: 'post',
-		data
-	});
-}
-
 
 

+ 20 - 1
libs/i18n/lang/cn.json

@@ -18,11 +18,12 @@
 		"a4": "日均收益率",
 		"a5": "立即加入"
 	},
-	"homeingor":{
+	"homeinformation":{
 		"m1":"互娱玩法介绍",
 		"m0":"互娱游戏推广计划",
 		"m2":"互娱游戏举例",
 		"m4": "项目亮点"
+		
 	},
 	"zy":{
 		"a1": "单笔上限",
@@ -74,6 +75,24 @@
 		"u7": "购买时间",
 		"u8": "到期时间"
 	},
+	"enter": {
+		"u1": "下单金额",
+		"u2": "单笔最高200U",
+		"u3": "k线类型",
+		"u4": "下",
+		"u5": "奇",
+		"u6": "上",
+		"u7": "偶",
+		"u8": "距离结束",
+		"u9": "订单列表",
+		"u10": "历史列表",
+		"u11": "币种",
+		"u12": "金额",
+		"u13": "盈亏",
+		"u14": "进度",
+		"u15": "余额",
+		"u16": "去充值"
+	},
 	"userinfo": {
 		"u1": "收款地址",
 		"u2": "保存相冊",

+ 19 - 1
libs/i18n/lang/en.json

@@ -67,7 +67,7 @@
 	},	
 	"myple": {
 		"u1": "Number of pledges",
-		"u2": "in progress",
+		"u2": "Progress",
 		"u3": "Ended",
 		"u4": "Amount",
 		"u5": "Income",
@@ -75,6 +75,24 @@
 		"u7": "Buying",
 		"u8": "Expiration"
 	},
+	"enter": {
+		"u1": "Order amount",
+		"u2": "Highest 200U",
+		"u3": "K types",
+		"u4": "Dowm",
+		"u5": "Strange",
+		"u6": "Up",
+		"u7": "Image",
+		"u8": "Distance End",
+		"u9": "Order",
+		"u10": "History",
+		"u11": "Currency",
+		"u12": "Amount",
+		"u13": "Status",
+		"u14": "Schedule",
+		"u15": "Balance",
+		"u16": "Recharge"
+	},
 	"money": {
 		"a1": "wallet",
 		"a2": "My Balance",

+ 19 - 1
libs/i18n/lang/tw.json

@@ -18,7 +18,7 @@
 		"a4": "日均收益率",
 		"a5": "立即加入"
 	},
-	"homeingor":{
+	"homeinformation":{
 		"m1":"互娛遊戲玩法介紹",
 		"m0":"互娛遊戲推廣計劃",
 		"m2":"互娛遊戲舉例",
@@ -74,6 +74,24 @@
 		"u7": "購買時間",
 		"u8": "到期時間"
 	},
+	"enter": {
+		"u1": "下單金額",
+		"u2": "(單筆最高200U)",
+		"u3": "k線類型",
+		"u4": "下",
+		"u5": "奇",
+		"u6": "上",
+		"u7": "偶",
+		"u8": "距離結束",
+		"u9": "訂單列表",
+		"u10": "歷史列表",
+		"u11": "幣種",
+		"u12": "金額",
+		"u13": "盈虧",
+		"u14": "進度",
+		"u15": "餘額",
+		"u16": "去充值"
+	},
 	"userinfo": {
 		"u1": "收款地址",
 		"u2": "保存相冊",

+ 15 - 15
pages/index/entertainment.vue

@@ -10,8 +10,8 @@
 			<!-- 左 -->
 			<view class="le">
 				<view class="tit">
-					<view class="ti1">下單金額</view>
-					<view class="ti2">(單筆最高200U)</view>
+					<view class="ti1">{{$t('enter.u1')}}</view>
+					<view class="ti2">({{$t('enter.u2')}})</view>
 				</view>
 				<view class="he">
 					<view class="sh">
@@ -58,7 +58,7 @@
 			<!--右 -->
 			<view class="ri">
 				<view class="ti">
-					<view class="t1">k線類型</view>
+					<view class="t1">{{$t('enter.u3')}}</view>
 					<view class="t2">60秒</view>
 					<view class="">
 						<image
@@ -114,7 +114,7 @@
 					</view>
 				</view>
 				<view class="db">
-					<view class="jl">距離結束</view>
+					<view class="jl">{{$t('enter.u8')}}</view>
 					<view class="sj">
 						<view class="">00</view>
 					</view>
@@ -131,11 +131,11 @@
 
 		<view class="last">
 			<view class="yi">
-				<view class="dd">訂單列表</view>
+				<view class="dd">{{$t('enter.u9')}}</view>
 				<view
 					class="aa"
 					@click="nav">
-					<view class="ls">歷史列表</view>
+					<view class="ls">{{$t('enter.u10')}}</view>
 					<view class="lb">
 						<image
 							class="lb"
@@ -182,13 +182,13 @@
 
 		<view class="chz">
 			<view class="ye">
-				<view class="yue">餘額</view>
+				<view class="yue">{{$t('enter.u15')}}</view>
 				<view class="yes">2955.3000U</view>
 			</view>
 			<view
 				class="chong"
 				@click="navC">
-				<view class="quc">去充值</view>
+				<view class="quc">{{$t('enter.u16')}}</view>
 				<view class="">
 					<image
 						class="choz"
@@ -316,9 +316,9 @@
 							smooth: true,
 							showSymbol: false,
 							lineStyle: {
-								normal: {
+								// normal: {
 									width: 1,
-								},
+								// },
 							},
 						},
 						{
@@ -328,9 +328,9 @@
 							smooth: true,
 							showSymbol: false,
 							lineStyle: {
-								normal: {
+								// normal: {
 									width: 1,
-								},
+								// },
 							},
 						},
 						{
@@ -340,9 +340,9 @@
 							smooth: true,
 							showSymbol: false,
 							lineStyle: {
-								normal: {
+								// normal: {
 									width: 1,
-								},
+								// },
 							},
 						},
 					],
@@ -781,7 +781,7 @@
 		font-weight: 500;
 		color: #ffffff;
 		margin-top: 51rpx;
-		margin-left: 326rpx;
+		margin-left: 306rpx;
 	}
 	.choz {
 		width: 22rpx;

+ 16 - 1
pages/index/index.vue

@@ -66,6 +66,7 @@
 	</view>
 </template>
 <script>
+	import {prices} from "@/api/index.js"
 	import {
 		mapState,
 		mapActions
@@ -132,10 +133,14 @@
 				return label
 			}
 		},
+		onLoad() {
+			this.prices()
+		},
+		
 		methods: {
 			...mapActions({
 				setLang: "setLang",
-			}),
+			}), 
 			getCurrent() {
 				let pages = getCurrentPages();
 				let curPage = pages[pages.length - 1];
@@ -163,9 +168,15 @@
 						page: navItem.page,
 						limit: navItem.limit
 					})
+				// prices({
+				// 		page: navItem.page,
+				// 		limit: navItem.limit
+				// 	})
 					.then(({
 						data
 					}) => {
+						console.log(data, '111');
+						
 						let list = data.list.data;
 						navItem.orderList = navItem.orderList.concat(list);
 						navItem.page++;
@@ -199,6 +210,10 @@
 						console.log(e);
 					});
 			},
+			async prices() {
+				const res = await prices();
+				console.log('123', res);
+			},
 		},
 	}
 </script>