Browse Source

Merge branch 'master' of http://git.liuniu946.com/xuhaolan/paopaoShop

lhl 3 years ago
parent
commit
e3e8b57543
2 changed files with 25 additions and 1 deletions
  1. 23 1
      api/user.js
  2. 2 0
      pages/index/index.vue

+ 23 - 1
api/user.js

@@ -1,4 +1,26 @@
-import request from '@/utils/request'
+import request from '@/utils/request'
+
+
+//查看子点位
+export function lookSubpoints(data,id){
+	return request({
+		url:'/api/tree/children/'+id,
+		method:'get',
+		data
+	})
+}
+//查看自己的点位
+export function lookOneself(data){
+	return request({
+		url:'/api/tree/points',
+		method:'get',
+		data
+		
+	})
+}
+
+
+
 
 
 // 订单统计信息
 // 订单统计信息
 export function orderData(data) {
 export function orderData(data) {

+ 2 - 0
pages/index/index.vue

@@ -352,6 +352,7 @@
 </template>
 </template>
 
 
 <script>
 <script>
+	import {lookSubpoints,lookOneself} from '../../api/user.js'
 	import seckill from '../../components/seckill/seckill.vue';
 	import seckill from '../../components/seckill/seckill.vue';
 	import {
 	import {
 		loadIndexs
 		loadIndexs
@@ -476,6 +477,7 @@
 			// #endif
 			// #endif
 		},
 		},
 		onShow: function() {
 		onShow: function() {
+			this.lookJd()
 			this.$axios.all([this.$axios({
 			this.$axios.all([this.$axios({
 				url: '/api/index',
 				url: '/api/index',
 				method: 'get'
 				method: 'get'