zhang 2 år sedan
förälder
incheckning
8e8e78d292
5 ändrade filer med 44 tillägg och 5 borttagningar
  1. 10 0
      api/index.js
  2. 2 1
      libs/i18n/lang/cn.json
  3. 2 1
      libs/i18n/lang/en.json
  4. 2 1
      libs/i18n/lang/tw.json
  5. 28 2
      pages/index/user.vue

+ 10 - 0
api/index.js

@@ -9,4 +9,14 @@ export function prices(data) {
 }
 
 
+export function getIndex(data) {
+	return request({
+		url: '/api/index',
+		method: 'get',
+		data
+	});
+}
+
+
+
 

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

@@ -75,7 +75,8 @@
 		"b7":"交易密码",
 		"b8":"退出登录",
 		"b9":"设置",
-		"a1":"统计表"
+		"a1":"统计表",
+		"a2": "联系客服"
 	},
 	"myple": {
 		"u1": "质押数",

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

@@ -195,7 +195,8 @@
 		"b7":"Transaction password",
 		"b8":"Exit",
 		"b9":"Set",
-		"a1":"Statistical Table"
+		"a1":"Statistical Table",
+		"a2": "Customer Service"
 	},
 	"introduce": {
 		"a1": "One minute installment",

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

@@ -75,7 +75,8 @@
 		"b8":"退出登錄",
 		"ck": "存款",
 		"b9": "设置",
-		"a1": "統計表"
+		"a1": "統計表",
+		"a2": "聯系客服"
 	},
 	"myple": {
 		"u1": "質押數",

+ 28 - 2
pages/index/user.vue

@@ -72,6 +72,7 @@
 				</view>
 				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
 			</view>
+			
 			<!-- 额外添加 -->
 			<view class="user-list flex" @click="navTo('/pages/user/shareQrCode')">
 				<image src="../../static/shouye/money.png" mode="scaleToFill" class="left-img"></image>
@@ -116,6 +117,15 @@
 				</view>
 				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
 			</view>
+			
+			 <!-- 跳转到联系客服 -->
+			<view class="user-list flex" @click="nav()">
+				<image src="../../static/shouye/yue.png" mode="scaleToFill" class="left-img"></image>
+				<view class="item-name">
+					{{$t('user.a2')}}
+				</view>
+				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
+			</view>
 			<!-- todo -->
 			<view class="user-list flex" @click="navTo('/pages/user/set/set')">
 				<image src="../../static/shouye/shezhi.png" mode="scaleToFill" class="left-img"></image>
@@ -124,11 +134,16 @@
 				</view>
 				<image src="../../static/icon/back.png" mode="scaleToFill" class="right-img"></image>
 			</view>
+			
 		</view>
 		<taber tab='user'></taber>
 	</view>
 </template>
 <script>
+	import {
+		getIndex,
+	} from "@/api/index.js";
+	
 	import {
 		gameWallet,
 	} from "@/api/game.js";
@@ -158,8 +173,8 @@
 				sum_win: '', //累计收益
 				sum_bet: '', //个人交易量
 				group_sum_bet: '', // 团队交易量
-				userInfo:{}
-				
+				userInfo:{},
+				service: ""
 			};
 		},
 		onShow() {
@@ -169,6 +184,7 @@
 				this.getUser();
 			}
 			this.loadBaseData();
+			this.getIndex()
 		},
 		computed: {
 			...mapState('user', [ 'hasLogin'])
@@ -178,6 +194,11 @@
 			showY() {
 				this.show = !this.show
 			},
+			
+			async getIndex() {
+				const res = await getIndex()
+				this.service = res.data.service		
+			},
 			// 统计表
 			async getUser() {
 				const res = await getUser();
@@ -188,6 +209,11 @@
 				this.sum_bet = res.data.sum_bet
 				this.group_sum_bet = res.data.group_sum_bet
 			},
+			
+			// 跳转到联系客服
+			nav() {
+				window.location.href = this.service
+			},
 
 			// 获取用户余额信息
 			getUserWallet() {