This commit is contained in:
zpc 2026-01-25 16:36:01 +08:00
parent 3fd4799459
commit bc898cdc98
5 changed files with 27 additions and 22 deletions

View File

@ -156,7 +156,7 @@ export default {
provider = 'weixin', provider = 'weixin',
data data
}) { }) {
console.log('wxdata', data,this) console.log('wxdata', data, this)
// #ifdef H5 // #ifdef H5
console.log('进入h5支付', data) console.log('进入h5支付', data)
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
@ -379,10 +379,12 @@ export default {
const res = await getDanYeContent(id); const res = await getDanYeContent(id);
if (res.status == 1) { if (res.status == 1) {
if (res.data) { if (res.data) {
res.data = res.data.content.replace( if (res.data.content != null) {
/\<img/gi, res.data = res.data.content.replace(
'<img style="width: 100%;vertical-align: middle;"' /\<img/gi,
) '<img style="width: 100%;vertical-align: middle;"'
)
}
} }
return res; return res;
} else { } else {

View File

@ -5,7 +5,8 @@
<view class="button-container"> <view class="button-container">
<!-- 按钮1 (小按钮) - 当有多个按钮显示时才显示 --> <!-- 按钮1 (小按钮) - 当有多个按钮显示时才显示 -->
<view v-if="checkVisible(1) && !onlyButton1Visible" class="btn common_bg column center" <view v-if="checkVisible(1) && !onlyButton1Visible" class="btn common_bg column center"
:style="{ backgroundImage: `url(${$img1('common/chouBtn1.png')})` }" @click="handleButtonClick(1)"> :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(1)">
<text style="font-size: 24rpx;color: #424240;">冲一发</text>
</view> </view>
<!-- 只显示按钮1的时候显示这个按钮上面小的按钮隐藏 --> <!-- 只显示按钮1的时候显示这个按钮上面小的按钮隐藏 -->
<view v-if="checkVisible(1) && onlyButton1Visible" class="btn common_bg column center" <view v-if="checkVisible(1) && onlyButton1Visible" class="btn common_bg column center"
@ -15,17 +16,20 @@
<!-- 按钮3 --> <!-- 按钮3 -->
<view v-if="checkVisible(3)" class="btn common_bg column center" <view v-if="checkVisible(3)" class="btn common_bg column center"
:style="{ backgroundImage: `url(${$img1('common/chouBtn3.png')})` }" @click="handleButtonClick(3)"> :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(3)">
<text style="font-size: 24rpx;color: #424240;">冲三发</text>
</view> </view>
<!-- 按钮5 --> <!-- 按钮5 -->
<view v-if="checkVisible(5)" class="btn common_bg column center" <view v-if="checkVisible(5)" class="btn common_bg column center"
:style="{ backgroundImage: `url(${$img1('common/chouBtn5.png')})` }" @click="handleButtonClick(5)"> :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(5)">
<text style="font-size: 24rpx;color: #424240;">冲五发</text>
</view> </view>
<!-- 按钮10 (仅在无限模式显示) --> <!-- 按钮10 (仅在无限模式显示) -->
<view v-if="isWuxian && checkVisible(10)" class="btn common_bg column center" <view v-if="isWuxian && checkVisible(10)" class="btn common_bg column center"
:style="{ backgroundImage: `url(${$img1('common/chouBtn10.png')})` }" @click="handleButtonClick(10)"> :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(10)">
<text style="font-size: 24rpx;color: #424240;">冲十发</text>
</view> </view>
<!-- 无限抽 --> <!-- 无限抽 -->
<!-- <view v-if="isWuxian && checkVisible(-1)" class="btn common_bg column center" <!-- <view v-if="isWuxian && checkVisible(-1)" class="btn common_bg column center"

View File

@ -56,18 +56,17 @@
<view class="num">×{{ orderData.goods.prize_num }}</view> <view class="num">×{{ orderData.goods.prize_num }}</view>
</view> </view>
<!-- <view class="price-num"> <!-- 抽奖动画开关已隐藏默认关闭
<view class="price-num">
<view class="type"> <view class="type">
特效开关 抽奖动画
</view> </view>
<view class="num" style="height: 30rpx;"> <view class="num" style="height: 30rpx;">
<switch style="transform:scale(0.5);width:35px;height: 30rpx;" :checked="effectSwitch" <switch style="transform:scale(0.5);width:35px;height: 30rpx;" :checked="effectSwitch"
@change="onEffectSwitch" /> @change="onEffectSwitch" />
</view> </view>
</view> -->
<view class="type">
</view> </view>
-->
</view> </view>
</view> </view>
</view> </view>

View File

@ -282,7 +282,7 @@
this.couponData = data; this.couponData = data;
this.confirmSubmit([0, this.buyNum]); this.confirmSubmit([0, this.buyNum]);
}); });
this.effectSwitch = uni.getStorageSync('effectSwitch') === 1 || uni.getStorageSync('effectSwitch') === ""; this.effectSwitch = uni.getStorageSync('effectSwitch') === 1;
// uni.getImageInfo({ // uni.getImageInfo({
// src: this.$img('/static/img/animation.png'), // src: this.$img('/static/img/animation.png'),
// success: ({ path }) => { // success: ({ path }) => {

View File

@ -343,7 +343,7 @@
this.couponData = data this.couponData = data
this.confirmSubmit([0, this.buyNum]) this.confirmSubmit([0, this.buyNum])
}) })
this.effectSwitch = uni.getStorageSync('effectSwitch') === 1 || uni.getStorageSync('effectSwitch') === ""; this.effectSwitch = uni.getStorageSync('effectSwitch') === 1;
this.$c.getRule(10).then(res => { this.$c.getRule(10).then(res => {
if (res.status == 1) { if (res.status == 1) {
this.sendRuleData = res.data this.sendRuleData = res.data