import { imageBasUrl } from '../../utils/config'; import { storagePaymentBack } from '../../utils/utils' Component({ mixins: [], data: { imageBasUrl, backShow: false, backInfo: {} }, props: { popupShow: true, onClosePopup: { type: Function, value: () => { } } }, didMount() { console.log(5465465465) }, didUpdate() { }, didUnmount() { }, methods: { closePopup() { const storageData = my.getStorageSync({ key: 'paymentBack' }).data; if (storageData && storageData.paymentBack) { storagePaymentBack(false); this.props.onClosePopup(); } else { storagePaymentBack(true); // this.http.get('/payback').then(res => { // res.isBack = 1; // this.backInfo = res; // this.payList.unshift(res); // }); this.setData({ backShow: true }) } }, payItem() { // const bsPayItem = await this.http.get('/iosPayment'); // const platform = uni.getSystemInfoSync().platform; // if (platform === 'ios' && bsPayItem.status === 1) { // this.fui.toast('暂不支持IOS支付'); // return; // } }, closeBackShow() { this.setData({ backShow: false }) }, toPurchaseNotes() { my.navigateTo({ url: '/pages/purchaseNotes/purchaseNotes' }) } }, });