lu_quan_dev
han 11 months ago
parent 2baf1f4254
commit 2e270c97c4
  1. 7
      common/httpRequest.js
  2. 2
      subPageA/method/methoddetail/methoddetail.vue
  3. 2
      subPageA/method/methodlist/methodClass.vue
  4. 4
      subPageA/method/methodlist/methodlist.vue
  5. 2
      subPageC/bookHomestay/bookHomestay.vue
  6. 2
      subPageC/orderHomestay/cancelStep.vue

@ -250,16 +250,14 @@ module.exports = {
}); });
}); });
}, },
get: function (url, data, headerContentType, tentId, needAes, auth) { get: function (url, data, headerContentType, tentId, needAes, auth) {
if (needAes !== false) { if (needAes !== false) {
for (var key in data) { for (var key in data) {
data[key] = aes.aesMinEncrypt(data[key]); data[key] = aes.aesMinEncrypt(data[key]);
} }
} }
console.log(needAes !== false)
console.log(url, data, headerContentType, tentId, needAes, 'get 请求参数');
headerContentType = headerContentType ? headerContentType : "application/x-www-form-urlencoded"; headerContentType = headerContentType ? headerContentType : "application/x-www-form-urlencoded";
let headers = { let headers = {
@ -271,6 +269,7 @@ console.log(url, data, headerContentType, tentId, needAes, 'get 请求参数');
// const tok = store.state.userInfo.accessToken || uni.getStorageSync('userInfo').accessToken; // const tok = store.state.userInfo.accessToken || uni.getStorageSync('userInfo').accessToken;
const tok = uni.getStorageSync('userInfo').accessToken; const tok = uni.getStorageSync('userInfo').accessToken;
headers['Authorization'] = 'Bearer ' + tok; headers['Authorization'] = 'Bearer ' + tok;
} }
if (tentId && tentId !== "" && tentId !== null && tentId !== undefined) { if (tentId && tentId !== "" && tentId !== null && tentId !== undefined) {

@ -84,7 +84,7 @@
"type": this.$param.methodType, "type": this.$param.methodType,
"guid": guid "guid": guid
} }
this.$Request.post(this.$config.getMessgeInfoDetailFormId, data).then(res => { this.$Request.post(this.$config.getMessgeInfoDetailFormId, data, '', '', false, true).then(res => {
if (!that.$util.isSuccess(res)) { if (!that.$util.isSuccess(res)) {
return; return;
} }

@ -80,7 +80,7 @@
// //
getListData() { getListData() {
console.log('adsf',this.parames) console.log('adsf',this.parames)
this.$Request.get(this.$config.selectMessageWalkthroughType, this.parames, '', '', false, '').then(res => { this.$Request.get(this.$config.selectMessageWalkthroughType, this.parames, '', '', false, true).then(res => {
const curPageData = res.data || [] // const curPageData = res.data || [] //
if (this.mescroll.num == 1) this.data_list = []; // if (this.mescroll.num == 1) this.data_list = []; //
this.data_list = [...this.data_list, ...curPageData] this.data_list = [...this.data_list, ...curPageData]

@ -91,7 +91,7 @@
type: this.$param.methodType, type: this.$param.methodType,
userkey: this.$param.userkey, userkey: this.$param.userkey,
}; };
this.$Request.get(this.$config.getMethodList, requestData, '', '', false, '').then(res => { this.$Request.get(this.$config.getMethodList, requestData, '', '', false, true).then(res => {
this.class_list = res.data this.class_list = res.data
this.pic_list = this.class_list.filter((item, index) => { this.pic_list = this.class_list.filter((item, index) => {
return item.isrecommend == 'YES' return item.isrecommend == 'YES'
@ -123,7 +123,7 @@
}, },
// //
getListData() { getListData() {
this.$Request.get(this.$config.getMethodRecommendList, this.parames, '', '', false, '').then(res => { this.$Request.get(this.$config.getMethodRecommendList, this.parames, '', '', false, true).then(res => {
const curPageData = res.data || [] // const curPageData = res.data || [] //
if (this.mescroll.num == 1) this.data_list = []; // if (this.mescroll.num == 1) this.data_list = []; //
this.data_list = [...this.data_list, ...curPageData] this.data_list = [...this.data_list, ...curPageData]

@ -177,7 +177,7 @@
"checkInPersonInfoDTOList": [this.formData] "checkInPersonInfoDTOList": [this.formData]
}; };
this.$Request.post(this.$config.createHotelOrder, data, 'json', null, false, null).then(( this.$Request.post(this.$config.createHotelOrder, data, 'json', null, false, true).then((
res) => { res) => {
if (res.code == 0) { if (res.code == 0) {
this.orderPay = res.data this.orderPay = res.data

@ -38,7 +38,7 @@
let data = { let data = {
'orderId': orderId 'orderId': orderId
} }
this.$Request.get(this.$config.getHomestayOrderRefund, data, null, null, false, null).then((res) => { this.$Request.get(this.$config.getHomestayOrderRefund, data, null, null, false, true).then((res) => {
console.log(res) console.log(res)
if (res.code == 0) { if (res.code == 0) {
this.homestayOrderRefund = res.data this.homestayOrderRefund = res.data

Loading…
Cancel
Save