update:新增骰子个数逻辑判断和缩短骰子出现时间

This commit is contained in:
lihaoyuan 2025-12-24 16:20:11 +08:00
parent 9f46bc8179
commit dbd676bfb1

View File

@ -286,20 +286,6 @@
</view>
</scroll-view>
</view>
<!-- <view style="display:flex; flex-direction: column; justify-content:center;align-items: center;">
<view>活动规则</view>
<textarea name="" id="" cols="30" rows="10">
砍价时间顾客发起活动后需要在规定时间内完成砍价超过时间则砍价失败一般建议时间为24小时
1
砍价次数顾客需要让朋友帮忙砍价的次数通常每人只能帮砍一次
2
参与方式用户可以通过商城砍价列表选择产品或通过好友分享的链接参与砍价活动
1
砍价成功当产品价格砍至系统设置的最低价时砍价成功顾客需支付相应金额购买产品
1
这些规则有助于商家和顾客更好地参与砍价活动</textarea>
</view> -->
</view>
</view>
@ -426,6 +412,7 @@ export default {
isCut: true,
imgPath: "",
user_nickname: "",
lottery_num:0,
mid: 0,
uid: 0,
pid: 0,
@ -587,6 +574,7 @@ export default {
that.setData({
Info: data,
ac_id: data.ac_id,
lottery_num:data.lottery_num,
width: 100 * parseFloat(data.CutPricePercent).toFixed(2),
});
// that.getTime();
@ -635,7 +623,7 @@ export default {
}
}
});
},2500)
},2000)
}
console.log("hhhhhh",that.tossResult)
}
@ -836,13 +824,16 @@ export default {
showCancel: false,
confirmText: '确定',
success(res) {
if (res.confirm) {
console.log('用户点击确定');
if (res.confirm&&that.lottery_num>0) {
setTimeout(()=>{
that.setData({
showMask: true,
})
},200)
}else if(res.confirm&&that.lottery_num==0){
that.setData({
showImg: true
})
}
}
});