lijj %!s(int64=2) %!d(string=hai) anos
pai
achega
211a69418f

+ 13 - 3
miniapp/api/dish.js

@@ -2,9 +2,7 @@ import http from '@/http/api.js'
 import {bizConst} from './biz/biz.js'
 import {clientId,tenantId} from '@/common/setting'
 
-// 获取token
 const getDishList = () => {
-  debugger
 	return http.request({
 		url: bizConst.basicPrefix + '/famous_dish/list',
 		method: 'GET',
@@ -15,6 +13,18 @@ const getDishList = () => {
 	})
 } 
 
+const getDishDetail = () => {
+	return http.request({
+		url: bizConst.basicPrefix + '/famous_dish/detail',
+		method: 'GET',
+		header: {
+			'Tenant-Id': tenantId
+		},
+		params: {},
+	})
+} 
+
 export default {
-	getDishList
+	getDishList,
+  getDishDetail
 }

+ 12 - 2
miniapp/api/location.js

@@ -2,7 +2,6 @@ import http from '@/http/api.js'
 import {bizConst} from './biz/biz.js'
 import {clientId,tenantId} from '@/common/setting'
 
-// 获取token
 const getLocationList = () => {
 	return http.request({
 		url: bizConst.basicPrefix + '/famous_location/list',
@@ -14,6 +13,17 @@ const getLocationList = () => {
 	})
 } 
 
+const getLocationDetail = () => {
+	return http.request({
+		url: bizConst.basicPrefix + '/famous_location/detail',
+		method: 'GET',
+		header: {
+			'Tenant-Id': tenantId
+		},
+		params: {},
+	})
+} 
 export default {
-	getLocationList
+	getLocationList,
+  getLocationDetail
 }

+ 12 - 2
miniapp/api/member.js

@@ -13,7 +13,17 @@ const getUserInfo = () => {
 		params: {},
 	})
 } 
-
+const updateUserInfo = () => {
+	return http.request({
+		url: bizConst.basicPrefix + '/member/update',
+		method: 'GET',
+		header: {
+			'Tenant-Id': tenantId
+		},
+		params: {},
+	})
+} 
 export default {
-	getUserInfo
+	getUserInfo,
+  updateUserInfo
 }

+ 12 - 2
miniapp/api/professional_style.js

@@ -2,7 +2,6 @@ import http from '@/http/api.js'
 import {bizConst} from './biz/biz.js'
 import {clientId,tenantId} from '@/common/setting'
 
-// 获取token
 const getProfessionalStyleList = () => {
 	return http.request({
 		url: bizConst.basicPrefix + '/professional_style/list',
@@ -13,7 +12,18 @@ const getProfessionalStyleList = () => {
 		params: {},
 	})
 } 
+const getProfessionalStyleDetail = () => {
+	return http.request({
+		url: bizConst.basicPrefix + '/professional_style/detail',
+		method: 'GET',
+		header: {
+			'Tenant-Id': tenantId
+		},
+		params: {},
+	})
+} 
 
 export default {
-	getProfessionalStyleList
+	getProfessionalStyleList,
+  getProfessionalStyleDetail
 }

+ 12 - 2
miniapp/api/restaurant.js

@@ -2,7 +2,6 @@ import http from '@/http/api.js'
 import {bizConst} from './biz/biz.js'
 import {clientId,tenantId} from '@/common/setting'
 
-// 获取token
 const getRestaurantList = () => {
 	return http.request({
 		url: bizConst.basicPrefix + '/famous_store/list',
@@ -13,7 +12,18 @@ const getRestaurantList = () => {
 		params: {},
 	})
 } 
+const getRestaurantDetail = () => {
+	return http.request({
+		url: bizConst.basicPrefix + '/famous_store/detail',
+		method: 'GET',
+		header: {
+			'Tenant-Id': tenantId
+		},
+		params: {},
+	})
+} 
 
 export default {
-	getRestaurantList
+	getRestaurantList,
+  getRestaurantDetail
 }

+ 1 - 1
miniapp/pages/yuecai/dish/index.vue

@@ -1,9 +1,9 @@
 <template>
   <page-theme :theme="theme">
     <template>
+      <u-swiper :list="list1" @click="click"></u-swiper>
       <view class="f-30 p-40 flex-dir-column flex-x-center">
         <view class="f-30 p-40 flex-dir-column flex-x-center">
-          <u-swiper :list="list1" @click="click"></u-swiper>
           <view class="col-info-d t-c m-b-30">其他内容展示</view>
         </view>
         <view class="col-info-d t-c m-b-30">搜索框</view>

+ 1 - 1
miniapp/pages/yuecai/home/index.vue

@@ -1,8 +1,8 @@
 <template>
   <page-theme :theme="theme">
     <template>
+      <u-swiper :list="list1" @click="click"></u-swiper>
       <view class="f-30 p-40 flex-dir-column flex-x-center">
-        <u-swiper :list="list1" @click="click"></u-swiper>
         <view class="col-info-d t-c m-b-30">其他内容展示</view>
       </view>
     </template>