hwq 2 年之前
父节点
当前提交
0f8b066d99
共有 5 个文件被更改,包括 56 次插入8 次删除
  1. 14 5
      pages.json
  2. 2 1
      pages/index/gglist.vue
  3. 1 1
      pages/index/index.vue
  4. 33 0
      pages/index/kf.vue
  5. 6 1
      pages/transaction/transaction.vue

+ 14 - 5
pages.json

@@ -13,16 +13,19 @@
 		{
 			"path": "pages/index/gglist",
 			"style": {
-				"enablePullDownRefresh": true,
-				"navigationBarTitleText": "公告列表",
-				"navigationStyle": "custom"
+				"navigationBarTitleText": "公告列表"
 			}
 		},
 		{
 			"path": "pages/index/ggDetail",
 			"style": {
-				"enablePullDownRefresh": true,
-				"navigationBarTitleText": "公告詳情",
+				"navigationBarTitleText": "公告詳情"
+			}
+		},
+		{
+			"path": "pages/index/kf",
+			"style": {
+				"navigationBarTitleText": "客服",
 				"navigationStyle": "custom"
 			}
 		},
@@ -32,6 +35,12 @@
 				"navigationBarTitleText": "幣幣交易市場"
 			}
 		},
+		{
+			"path": "pages/transaction/transactionDetail",
+			"style": {
+				"navigationBarTitleText": "交易詳情"
+			}
+		},
 		{
 			"path": "pages/transaction/cblist",
 			"style": {

+ 2 - 1
pages/index/gglist.vue

@@ -2,6 +2,7 @@
 	<view class="content">
 		<view class="list" v-for="(item, index) in listInfo">
 			<view class="icon"><image src="../../static/img/gglist.png" mode=""></image></view>
+			<view class="main"></view>
 		</view>
 	</view>
 </template>
@@ -11,7 +12,7 @@ import { gglist } from '@/api/index.js';
 export default {
 	data() {
 		return {
-			listInfo
+			listInfo: []
 		};
 	},
 	onLoad() {},

+ 1 - 1
pages/index/index.vue

@@ -31,7 +31,7 @@
 					<image src="../../static/icon/gn-4.png" mode="" class=""></image>
 					<view class="">語言</view>
 				</view> -->
-				<view class="top-item flex">
+				<view class="top-item flex" @click="navto('/pages/index/kf')">
 					<image src="../../static/icon/gn-5.png" mode="" class=""></image>
 					<view class="">客服</view>
 				</view>

+ 33 - 0
pages/index/kf.vue

@@ -0,0 +1,33 @@
+<template>
+	<view class="content">
+
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+
+			}
+		},
+		onLoad() {
+
+		},
+		onShow() {
+
+		},
+		onReachBottom() {
+
+		},
+		onReady() {
+
+		},
+		methods: {
+
+		}
+	}
+</script>
+
+<style lang="scss">
+</style>

+ 6 - 1
pages/transaction/transaction.vue

@@ -9,7 +9,7 @@
 				<view class="title-center">最新價格</view>
 				<view class="title-right">24h漲跌</view>
 			</view>
-			<scroll-view class="swiper-box" scroll-y="true" :style="{ height: maxheight }">
+			<scroll-view class="swiper-box" scroll-y="true" :style="{ height: maxheight }" @click="navTo('/pages/transaction/transactionDetail')">
 				<view class="list-main flex" v-for="(item, index) in listOBj">
 					<view class="main-left">{{ index }}</view>
 					<view class="main-center" :class="{ down: item.dcf > 0, ping: item.dcf == 0 }">{{ item.last == 0 ? '--.--' : item.last }}</view>
@@ -81,6 +81,11 @@ export default {
 		this.closeScoket();
 	},
 	methods: {
+		navTo(url) {
+			uni.navigateTo({
+				url
+			});
+		},
 		tabClick(opt) {
 			this.tabCurrentIndex = opt;
 		},