Commit 73c8a7cf authored by 李智书's avatar 李智书

Merge branch 'v_c_application_feature_1031' into 'develop'

1.新增支持外部跳转具体页面;

See merge request !7
parents a7c95f1a dc246953
......@@ -79,7 +79,9 @@
<view class="sketch">{{item.sketch||''}}</view>
</view>
<view class="icon">
<image :src="index+1 != 5 ? item.icon : 'https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/applyCons/menu3.png'" mode="aspectFit"></image>
<image
:src="index+1 != 5 ? item.icon : 'https://xiaopay2020.oss-cn-shenzhen.aliyuncs.com/static/weapp/applyCons/menu3.png'"
mode="aspectFit"></image>
</view>
</view>
</view>
......@@ -116,6 +118,8 @@
requestGet,
requestPost
} from '../common/request.js'
// 判断是否支付宝小程序
const AliAppMini = navigator.userAgent.indexOf('AliApp') > -1
export default {
name: "CampusConsumption",
data() {
......@@ -176,6 +180,10 @@
},
// 消费会员弹框
contractMenber: false,
// 跳转内部页面path
path: '',
// 支付宝小程序
aliMini: AliAppMini
};
},
onLoad(options) {
......@@ -190,6 +198,9 @@
return;
}
this.UserLogin(options['token'])
if (options['path']) {
this.path = options['path'] || ""
}
},
methods: {
// 弹框点击事情
......@@ -221,7 +232,13 @@
return
}
uni.setStorageSync('token', data.data['token'])
this.HomePageData()
await this.HomePageData()
// 20231031
if (this['path']) {
uni.redirectTo({
url: this['path']
})
}
},
// 查询消费会员权益项
async QueryProductContractItem(serviceItemCode = '1008') {
......
......@@ -81,7 +81,7 @@
</template>
</view>
<template >
<template>
<!-- 生活费额度 -->
<view class="living">
<view class="hed">
......@@ -227,7 +227,8 @@
class="prefer_light">{{userDealReportListAndSumObj.wanSumAmount || 0}}</text></span>
</view>
<view class="detail_lists">
<view class="listsHead" v-if="userDealReportListAndSumObj.list && userDealReportListAndSumObj.list.length">
<view class="listsHead"
v-if="userDealReportListAndSumObj.list && userDealReportListAndSumObj.list.length">
<span>日期</span>
<span>早餐</span>
<span>午餐</span>
......@@ -257,7 +258,7 @@
</template>
<!-- 底部部分 -->
<view class="footer">
<view class="footer" :style="aliMini?'visibility: hidden;':''">
<view class="footer_left">
<view class="footer_left_top">到期后将无法查看完整报告</view>
<view class="footer_left_bottom">有效期至<span class="special">{{vipExpiredDt}}</span>,剩余<span
......@@ -320,6 +321,8 @@
requestPost
} from '../common/request.js'
import config from '../common/config.js'
// 判断是否支付宝小程序
const AliAppMini = navigator.userAgent.indexOf('AliApp') > -1
export default {
name: 'campusReport',
data() {
......@@ -362,6 +365,8 @@
homeDataInfo: {},
vipExpiredDt: "", // 有效期
vipDaysRemaining: 0, //有效天数
// 支付宝小程序
aliMini: AliAppMini
}
},
components: {
......@@ -416,7 +421,7 @@
methods: {
// 查询消费会员权益项
async QueryProductContractItemDetailResp(serviceItemCode = '1002') {
console.log(config['ServiceEnum']['Auth2'], 'Auth2',this.homeDataInfo)
console.log(config['ServiceEnum']['Auth2'], 'Auth2', this.homeDataInfo)
const data = await requestPost('/cgi-xpay/app/h5/QueryProductContractItemDetail', {
accountId: this.homeDataInfo['accountId'],
serviceItemCode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment