| xqd
@@ -4,7 +4,8 @@
|
|
|
<view class="spinning" :style="{backgroundImage:'url('+bigWheelConfig.big_wheel_bg+')'}">
|
|
|
<view class="spinning-title" style="opacity: 0;">
|
|
|
<text>{{drawInfo.draw_template.name?drawInfo.draw_template.name:"幸运大轮盘"}}</text>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+ <view style="width:0px;height:0px;"><image src="http://t9.9026.com/imgs/step01.png" style="width: 285rpx;height: 341rpx;transform: translate(232rpx, 167rpx);"/></view>
|
|
|
<!-- <q-turntable isRenderImage ref="turntable" :areaNumber='9' @start="turntableStart" @success="turntableSuccess">
|
|
|
</q-turntable> -->
|
|
|
<q-turntable ref="turntable" :isValid="drawInfo.id" @start="turntableStart" :big_wheel_disc="bigWheelConfig.big_wheel_disc" :big_wheel_button="bigWheelConfig.big_wheel_button"/>
|
| xqd
@@ -205,6 +206,12 @@
|
|
|
if(res.code == 0){
|
|
|
this.drawInfo = res.data;
|
|
|
this.$refs.turntable.init(this.drawInfo.draw_template.draw_config);
|
|
|
+ // if(this.drawInfo.draw_template.draw_config.length == 0 || !this.drawInfo.draw_template.draw_config){
|
|
|
+ // this.error.info = "活动未开放";
|
|
|
+ // this.$refs.dialogError.open()
|
|
|
+ // }else{
|
|
|
+ // this.$refs.turntable.init(this.drawInfo.draw_template.draw_config);
|
|
|
+ // }
|
|
|
}else{
|
|
|
this.error.info = res.msg ? res.msg : "暂无权限";
|
|
|
this.$refs.dialogError.open()
|