diff --git a/honey_box/common/common.js b/honey_box/common/common.js
index dcd4cf0d..0383e302 100644
--- a/honey_box/common/common.js
+++ b/honey_box/common/common.js
@@ -56,7 +56,7 @@ export default {
if (typeof numStr !== 'string') {
numStr = String(numStr);
}
-
+
if (numStr.includes('.')) {
numStr = numStr.replace(/0+$/, ''); // 移除末尾的零
if (numStr.endsWith('.')) {
@@ -156,7 +156,7 @@ export default {
provider = 'weixin',
data
}) {
- console.log('wxdata', data,this)
+ console.log('wxdata', data, this)
// #ifdef H5
console.log('进入h5支付', data)
return new Promise((resolve, reject) => {
@@ -379,10 +379,12 @@ export default {
const res = await getDanYeContent(id);
if (res.status == 1) {
if (res.data) {
- res.data = res.data.content.replace(
- /\
{
@@ -480,7 +482,7 @@ export default {
if (typeof e === 'number' && !isNaN(e)) {
delta = e;
}
-
+
// 使用导入的routerNavigateBack而不是this.$router
routerNavigateBack(delta)
.catch(() => {
@@ -604,11 +606,11 @@ export default {
// 解析URL和参数
let urlPath = url;
let params = {};
-
+
if (url.includes('?')) {
const parts = url.split('?');
urlPath = parts[0];
-
+
// 解析参数
if (parts[1]) {
parts[1].split('&').forEach(param => {
@@ -619,7 +621,7 @@ export default {
});
}
}
-
+
// 使用导入的路由方法
return routerNavigateTo(urlPath, params);
},
diff --git a/honey_box/components/detail-button/detail-button.vue b/honey_box/components/detail-button/detail-button.vue
index 1f2bd440..eb3ec19a 100644
--- a/honey_box/components/detail-button/detail-button.vue
+++ b/honey_box/components/detail-button/detail-button.vue
@@ -5,7 +5,8 @@
+ :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(1)">
+ 冲一发
+ :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(3)">
+ 冲三发
+ :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(5)">
+ 冲五发
+ :style="{ backgroundImage: `url(${$img1('common/btn1131.png')})` }" @click="handleButtonClick(10)">
+ 冲十发
-
-
+ -->
diff --git a/honey_box/pages/shouye/detail.vue b/honey_box/pages/shouye/detail.vue
index 608ac1a8..d1168c9f 100644
--- a/honey_box/pages/shouye/detail.vue
+++ b/honey_box/pages/shouye/detail.vue
@@ -282,7 +282,7 @@
this.couponData = data;
this.confirmSubmit([0, this.buyNum]);
});
- this.effectSwitch = uni.getStorageSync('effectSwitch') === 1 || uni.getStorageSync('effectSwitch') === "";
+ this.effectSwitch = uni.getStorageSync('effectSwitch') === 1;
// uni.getImageInfo({
// src: this.$img('/static/img/animation.png'),
// success: ({ path }) => {
diff --git a/honey_box/pages/shouye/detail_wuxian.vue b/honey_box/pages/shouye/detail_wuxian.vue
index 0f83db8d..2c73e6af 100644
--- a/honey_box/pages/shouye/detail_wuxian.vue
+++ b/honey_box/pages/shouye/detail_wuxian.vue
@@ -343,7 +343,7 @@
this.couponData = data
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 => {
if (res.status == 1) {
this.sendRuleData = res.data