|
@@ -8,6 +8,8 @@
|
|
|
<!-- 每次消耗多少积分 -->
|
|
|
<view class="every">{{lotteryConsumePoint}}积分/次</view>
|
|
|
|
|
|
+ <button @click="getUser">按一下</button>
|
|
|
+
|
|
|
<!-- 转盘 -->
|
|
|
<LuckyWheel class="lucky" ref="lucky" width="568rpx" height="568rpx" :prizes="prizes" :buttons="buttons"
|
|
|
:defaultStyle="defaultStyle" @start="startCallBack" @end="endCallBack" />
|
|
@@ -79,21 +81,18 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
- // this.getUserInfo()
|
|
|
- getUserInfo()
|
|
|
// this.userId = e.userId
|
|
|
this.statusBarHeight = uni.getWindowInfo().statusBarHeight + 'px'
|
|
|
this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
- // getUserInfo(e) {
|
|
|
- // console.log(1);
|
|
|
- // console.log(e);
|
|
|
- // uni.showToast({
|
|
|
- // icon: 'none',
|
|
|
- // title: `调用${e}`
|
|
|
- // })
|
|
|
- // },
|
|
|
+ getUser() {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'success',
|
|
|
+ title: '你好'
|
|
|
+ })
|
|
|
+ console.log(getUserInfo());
|
|
|
+ },
|
|
|
|
|
|
close() {
|
|
|
closePage.postMessage('关闭页面')
|