1.新增查询是否赠券接口

yj-dev
杨杰 3 years ago
parent 9635927ca4
commit 8fc9f0f655
  1. 16
      App.vue
  2. 5
      Utils/Api.js
  3. 20
      pages.json
  4. 29
      pages/tabBar/home/home.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
url: 'https://hsg.dctpay.com/crest', // url: 'https://hsg.dctpay.com/crest',
imgUrl: 'https://hsg.dctpay.com/filesystem/', // imgUrl: 'https://hsg.dctpay.com/filesystem/',
brestUrl : 'https://hsg.dctpay.com/brest', // brestUrl : 'https://hsg.dctpay.com/brest',
imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', // imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
// url: 'https://hsgcs.dctpay.com/crest', url: 'https://hsgcs.dctpay.com/crest',
// brestUrl : 'https://hsgcs.dctpay.com/brest', brestUrl : 'https://hsgcs.dctpay.com/brest',
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/', imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
// imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -247,7 +247,10 @@ export const getUserLotteryNum = params => {
export const getWinLotteryList = params => { export const getWinLotteryList = params => {
return POST('GET', `${base}/activity/getWinLotteryList`, params).then(res => res.data); return POST('GET', `${base}/activity/getWinLotteryList`, params).then(res => res.data);
} }
//跳转是否赠券
export const getMembershipLevel = params => {
return POST('GET', `${base}/highUser/GetMembershipLevel`, params).then(res => res.data);
}
/** /**
* 肯德基地址 * 肯德基地址
*/ */

@ -1,16 +1,6 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/qianZhuPay/union-pay/union-pay",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "选择方式",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
},{
"path": "pages/tabBar/home/home", "path": "pages/tabBar/home/home",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
@ -29,6 +19,16 @@
} }
} }
}, { }, {
"path": "pages/qianZhuPay/union-pay/union-pay",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "选择方式",
"navigationBarBackgroundColor": "#0083f5",
"backgroundColorTop": "#0083f5",
"enablePullDownRefresh": false
}
},{
"path": "pages/user/bindingCardList/bindingCardList", "path": "pages/user/bindingCardList/bindingCardList",
"style": { "style": {
"navigationBarTitleText": "卡列表", "navigationBarTitleText": "卡列表",

@ -101,6 +101,7 @@
getTPigKFCToken, getTPigKFCToken,
getTPigCinemaToken, getTPigCinemaToken,
getCmsContent, getCmsContent,
getMembershipLevel
} from "../../../Utils/Api.js"; //api } from "../../../Utils/Api.js"; //api
import wybPopup from '../../../components/wyb-popup/wyb-popup.vue'; import wybPopup from '../../../components/wyb-popup/wyb-popup.vue';
let app = getApp(); let app = getApp();
@ -174,6 +175,9 @@
this.getCmsContent(); this.getCmsContent();
this.getCmsContentcmshome(); this.getCmsContentcmshome();
this.getCmsContentcmsContent(); this.getCmsContentcmsContent();
if (app.globalData.userInfo.phone) {
this.getMembershipLevel();
}
} }
}, },
onLoad(options) { onLoad(options) {
@ -247,6 +251,14 @@
} }
}); });
}, },
//
getMembershipLevel() {
let params = {
phone: app.globalData.userInfo.phone,
regionId: app.globalData.cityId
}
getMembershipLevel(params).then(res => {});
},
// //
getCmsContentcmshome() { getCmsContentcmshome() {
let params = { let params = {
@ -495,23 +507,6 @@
} }
}) })
}, },
/**
* 跳转其他小程序
*/
tao(url, id) {
console.log(url);
uni.navigateToMiniProgram({
appId: id,
path: url,
success: res => {
//
console.log("打开成功", res);
},
fail: err => {
console.log(err);
}
});
},
// //
swiperChange(event) { swiperChange(event) {
this.currentSwiper = event.detail.current; this.currentSwiper = event.detail.current;

Loading…
Cancel
Save