接口替换
This commit is contained in:
		
							parent
							
								
									4dee0c744c
								
							
						
					
					
						commit
						50edbe9323
					
				| 
						 | 
					@ -5,7 +5,7 @@ import request from '@/utils/request'
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export function getCanteenListApi(data) {
 | 
					export function getCanteenListApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_canteen/list',
 | 
					    url: '/smart-canteen/basic_canteen/list',
 | 
				
			||||||
    method: 'get',
 | 
					    method: 'get',
 | 
				
			||||||
    params: data
 | 
					    params: data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -112,7 +112,7 @@ export function getSubsidyTradeListApi(data) {
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export function getCarouselImageListApi(data) {
 | 
					export function getCarouselImageListApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/android/baseSetting/getCarouselImage',
 | 
					    url: '/smart-canteen/basic_carousel_image/list',
 | 
				
			||||||
    method: 'get',
 | 
					    method: 'get',
 | 
				
			||||||
    params:data
 | 
					    params:data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					@ -124,9 +124,9 @@ export function getCarouselImageListApi(data) {
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export function getBaseSettingByKeyApi(data) {
 | 
					export function getBaseSettingByKeyApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/android/baseSetting/getBaseSettingByKey',
 | 
					    url: '/smart-canteen/basic_setting/list',
 | 
				
			||||||
    method: 'post',
 | 
					    method: 'get',
 | 
				
			||||||
    data:data
 | 
					    params:data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,7 @@ export function getWalletBalanceAPI(data) {
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export function canteenEvaluateListAPI(data) {
 | 
					export function canteenEvaluateListAPI(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_canteen_evaluate/list',
 | 
					    url: '/smart-canteen/basic_canteen_evaluate/list',
 | 
				
			||||||
    method: 'get',
 | 
					    method: 'get',
 | 
				
			||||||
    params: data
 | 
					    params: data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					@ -130,7 +130,7 @@ export function cancelLossCardApi(data) {
 | 
				
			||||||
//获取食堂列表
 | 
					//获取食堂列表
 | 
				
			||||||
export function getAllCanteenStallApi(data) {
 | 
					export function getAllCanteenStallApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_canteen/list',
 | 
					    url: '/smart-canteen/basic_canteen/list',
 | 
				
			||||||
    method: 'get',
 | 
					    method: 'get',
 | 
				
			||||||
    params:data
 | 
					    params:data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					@ -138,16 +138,18 @@ export function getAllCanteenStallApi(data) {
 | 
				
			||||||
//通过食堂查询档口
 | 
					//通过食堂查询档口
 | 
				
			||||||
export function getStallByCanteenApi(data) {
 | 
					export function getStallByCanteenApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_stall/list',
 | 
					    url: '/smart-canteen/basic_stall/list',
 | 
				
			||||||
    method: 'get',
 | 
					    method: 'get',
 | 
				
			||||||
    params:data
 | 
					    params:data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// 评价及投诉建议
 | 
					// 评价及投诉建议
 | 
				
			||||||
//投诉建议(提交)
 | 
					//投诉建议(提交)
 | 
				
			||||||
export function postCanteenPlaintApi(data) {
 | 
					export function postCanteenPlaintApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_canteen_suggestion',
 | 
					    url: '/smart-canteen/basic_canteen_suggestion',
 | 
				
			||||||
    method: 'post',
 | 
					    method: 'post',
 | 
				
			||||||
    data
 | 
					    data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					@ -158,7 +160,7 @@ export function postCanteenPlaintApi(data) {
 | 
				
			||||||
//投诉建议(历史记录)
 | 
					//投诉建议(历史记录)
 | 
				
			||||||
export function getqueryPlaintApi(data) {
 | 
					export function getqueryPlaintApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_canteen_suggestion/list',
 | 
					    url: '/smart-canteen/basic_canteen_suggestion/list',
 | 
				
			||||||
    method: 'get',
 | 
					    method: 'get',
 | 
				
			||||||
    params:data
 | 
					    params:data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -6,7 +6,7 @@ import request from '@/utils/request'
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
export function addCartennnEvaluateApi(data) {
 | 
					export function addCartennnEvaluateApi(data) {
 | 
				
			||||||
  return request({
 | 
					  return request({
 | 
				
			||||||
    url: '/smart-canteen/alloc_canteen_evaluate',
 | 
					    url: '/smart-canteen/basic_canteen_evaluate',
 | 
				
			||||||
    method: 'post',
 | 
					    method: 'post',
 | 
				
			||||||
    data
 | 
					    data
 | 
				
			||||||
  })
 | 
					  })
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,9 +4,9 @@ module.exports = {
 | 
				
			||||||
  // baseUrl: 'http://192.168.0.39:21995',
 | 
					  // baseUrl: 'http://192.168.0.39:21995',
 | 
				
			||||||
  // #ifdef  H5
 | 
					  // #ifdef  H5
 | 
				
			||||||
  // baseUrl: '/canteen/dev-api',
 | 
					  // baseUrl: '/canteen/dev-api',
 | 
				
			||||||
  baseUrl: '/dev-api',
 | 
					  // baseUrl: '/dev-api',
 | 
				
			||||||
  // baseUrl: 'http://192.168.0.244:38380',//测试
 | 
					  // baseUrl: 'http://192.168.0.244:38380',//测试
 | 
				
			||||||
  // baseUrl: 'http://192.168.0.244:48380',//测试 
 | 
					  baseUrl: 'http://192.168.0.244:48380',//测试 
 | 
				
			||||||
  // baseUrl: 'http://192.168.0.244:58580',//测试
 | 
					  // baseUrl: 'http://192.168.0.244:58580',//测试
 | 
				
			||||||
  // baseUrl: 'http://192.168.2.82:58080',//张天强
 | 
					  // baseUrl: 'http://192.168.2.82:58080',//张天强
 | 
				
			||||||
  // baseUrl: 'http://192.168.2.69:58080',//董高文
 | 
					  // baseUrl: 'http://192.168.2.69:58080',//董高文
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -174,8 +174,7 @@ export default {
 | 
				
			||||||
			  "canteenName": this.canteenName,
 | 
								  "canteenName": this.canteenName,
 | 
				
			||||||
			  "complaintPicture": arr[0],
 | 
								  "complaintPicture": arr[0],
 | 
				
			||||||
			  "content": this.content,
 | 
								  "content": this.content,
 | 
				
			||||||
			  "mobile": this.contactInfo,
 | 
								  "contactTel": this.contactInfo, 
 | 
				
			||||||
			  "starLevel": 6,
 | 
					 | 
				
			||||||
			  "userId": uni.getStorageSync('userId')
 | 
								  "userId": uni.getStorageSync('userId')
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		console.log(param)
 | 
							console.log(param)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -237,23 +237,24 @@ export default {
 | 
				
			||||||
		async getCarouselImageList() {
 | 
							async getCarouselImageList() {
 | 
				
			||||||
			let param = {
 | 
								let param = {
 | 
				
			||||||
				"isEnabled":'0',
 | 
									"isEnabled":'0',
 | 
				
			||||||
 | 
									"usageType":'2',
 | 
				
			||||||
				"pageNum": 1,  
 | 
									"pageNum": 1,  
 | 
				
			||||||
				"pageSize": 100,  
 | 
									"pageSize": 100,  
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		  const { rows: res } = await getCarouselImageListApi(param)
 | 
							  const { rows: res } = await getCarouselImageListApi(param)
 | 
				
			||||||
		  this.bannerList = []
 | 
							  this.bannerList = []
 | 
				
			||||||
		  res.forEach(item=>{
 | 
							  res.forEach(item=>{
 | 
				
			||||||
			  this.bannerList.push(item.imageUrl)
 | 
								  this.bannerList.push(item.imgUrl)
 | 
				
			||||||
		  })
 | 
							  })
 | 
				
			||||||
		  console.log(this.bannerList)
 | 
							  console.log(this.bannerList)
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		async getBaseSettingByKey() {
 | 
							async getBaseSettingByKey() {
 | 
				
			||||||
			let param = {
 | 
								let param = {
 | 
				
			||||||
				"key":'首页标题', 
 | 
									"itemName":'h5_title'
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		  const { data: res } = await getBaseSettingByKeyApi(param)
 | 
							  const { rows: res } = await getBaseSettingByKeyApi(param)
 | 
				
			||||||
		  this.AppTitle = res.value
 | 
							  this.AppTitle = res[0].itemValue
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -138,7 +138,7 @@ export default {
 | 
				
			||||||
				  "userId": uni.getStorageSync('userId'),
 | 
									  "userId": uni.getStorageSync('userId'),
 | 
				
			||||||
				  "areaId": this.areaId,
 | 
									  "areaId": this.areaId,
 | 
				
			||||||
				  "canteenId": this.canteenId,
 | 
									  "canteenId": this.canteenId,
 | 
				
			||||||
				  "shopstallId": this.stallId, 
 | 
									  "stallId": this.stallId, 
 | 
				
			||||||
				  "proposal": this.comment
 | 
									  "proposal": this.comment
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			this.decorationList.forEach(item=>{
 | 
								this.decorationList.forEach(item=>{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue