You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xuan-pay-cweb/App.vue

88 lines
2.5 KiB

<script>
export default {
globalData: {
// url: 'http://192.168.3.4:9301/crest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//正式
// url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
//测试
url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
userInfo: "",
openId: '',
h5code: '',
token: '',
//行业id
businessid: '',
//行业名称
businessname: '',
//mccid
mccid: '',
//mcc名称
mccname: '',
//数据字典类型数据
Dictionaries: '',
//开户支行名称
depositaryBank: '',
//开户行号
branchBankNo: '',
//清算行号
clearNo: '',
//开户行地区
bankareaCode: '',
//接收方编号
receiverNo: '',
//接收方名称
receiverName: '',
//门店地址信息
storeAddress: ''
},
onLaunch: function() {
let that = this;
uni.getStorage({
key: 'payuser',
success: (res) => {
that.globalData.userInfo = res.data;
uni.getStorage({
key: "paytoken",
success: (res) => {
that.globalData.token = res.data;
}
})
}
});
},
onShow: function() {},
onHide: function() {}
}
</script>
<script>
export default {
//#ifdef APP-PLUS
// 获取设备的唯一标识cid
uni.getPushClientId({
success: res => {
console.log(res.cid)
},
fail(err) {
console.log(err)
}
}) // 接受推送消息// "type": "click" 用户点击系统通知栏中的消息,APP启动或者激活到前台运行,触发click事件// "type": "receive" 客户端接收到透传消息时(在系统通知栏中不显示消息),触发receive事件uni.onPushMessage(res => {console.log(res)if(res.type === 'click'){console.log(res.data.payload)}if (res.type === 'receive') {// 如果你希望当应用在线时,也通过“通知栏消息”,可以创建通知栏消息来提醒用户// uni.createPushMessage({// title: res.data.title,// content: res.data.content,// payload: res.data.payload// })}})//#endif},onShow: function () {},onHide: function () {}
}
</script>
<style lang="scss">
/*每个页面公共css */
@import "/static/iconfont/font.scss";
::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
</style>