2 Star 0 Fork 0

loveLife/lovelife

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
liuyanbing36 提交于 2020-07-17 08:51 +08:00 . 自定义表单
<script>
export default {
onLaunch: function() {
//地址加上?解决支付的时候URL未注册
if(!location.search){
location.replace(location.origin+location.pathname+"?from=web"+location.hash)
return
}
this.$comm.request({
url: 'api/web_config',
method: 'GET',
success: res => {
let jssdk = res.data.result.jssdk
this.$wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: jssdk.appId, // 必填,公众号的唯一标识
timestamp: jssdk.timestamp, // 必填,生成签名的时间戳
nonceStr: jssdk.nonceStr, // 必填,生成签名的随机串
signature: jssdk.signature, // 必填,签名
jsApiList: ['chooseImage', 'updateAppMessageShareData', 'updateTimelineShareData'] // 必填,需要使用的JS接口列表
});
}
});
},
onShow: function() {
console.log('App Show');
},
onHide: function() {
console.log('App Hide');
},
globalData:{
login:true
}
};
</script>
<style>
/* @import url('/common/zcm-main.css');
@import url('/common/main.css'); */
/*每个页面公共css */
uni-page-head[uni-page-head-type='default'] ~ uni-page-wrapper {
height: auto;
}
uni-checkbox .uni-checkbox-input {
border-radius: 50% !important;
color: #ffffff !important;
border: 1px solid #777777;
width: 36rpx;
height: 36rpx;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
color: #fff;
background: #0ba29a !important;
border: 1px solid #0ba29a !important;
}
uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked:before{
font-size: 32rpx;
}
uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
border: 1px solid #777777;
}
uni-radio .uni-radio-input {
border-radius: 50% !important;
color: #ffffff !important;
border: 1px solid #777777;
width: 32rpx;
height: 32rpx;
}
uni-radio .uni-radio-input.uni-radio-input-checked {
color: #fff;
background: #0ba29a !important;
border: 1px solid #0ba29a !important;
}
uni-radio .uni-radio-input.uni-radio-input-checked:before {
font-size: 26rpx;
}
uni-radio:not([disabled]) .uni-radio-input:hover {
border: 1px solid #777777;
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lovelifeF/lovelife.git
[email protected]:lovelifeF/lovelife.git
lovelifeF
lovelife
lovelife
master

搜索帮助