fix: 修改弹窗

This commit is contained in:
zhangds 2024-06-18 15:50:00 +08:00
parent 0193965f8a
commit e104a9a61c
3 changed files with 29 additions and 29 deletions

View File

@ -148,10 +148,10 @@
this.isMini = /miniProgram/i.test(ua);
/* 初始弹窗 */
// if (![1, 9].includes(this.ysf.available)) {
// this.is = true;
// this.tip(product_status(this.ysf.available, this.ysf), 2);
// }
if (![1, 9].includes(this.ysf.available)) {
this.is = true;
this.tip(product_status(this.ysf.available, this.ysf), 2);
}
/* 倒计时 */
const key_expiration_time = sessionStorage.getItem('key_expiration_time');

View File

@ -119,7 +119,7 @@
const emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
new Vue({
el: "#redPacketsViews",
data () {
data() {
return {
popShow: false,
popText: '请点击下方[复制]按钮,复制链接到浏览器打开!',
@ -141,7 +141,7 @@
modelPop
},
mounted () {
mounted() {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
@ -150,15 +150,15 @@
document.title = localStorage.getItem('title');
// /* 初始弹窗 */
// if (this.goodsInfo.available == 8) {
// this.is = true;
// this.tip(product_status(this.goodsInfo.available, this.goodsInfo), 2);
// }
if (this.goodsInfo.available == 8) {
this.is = true;
this.tip(product_status(this.goodsInfo.available, this.goodsInfo), 2);
}
},
methods: {
/* 立即领取 */
receive () {
receive() {
let self = this;
const { receive_name, receive_account } = this.form;
if (this.loading) return;
@ -206,7 +206,7 @@
},
judgeEnvironment (order_number) {
judgeEnvironment(order_number) {
req.axiosPost('/alipay/cash/receive/account', { ...this.form, order_number })
.then(({ code, data, message }) => {
if (code == 200) {
@ -236,7 +236,7 @@
},
/* 触发提示 */
tip (text, status, bt) {
tip(text, status, bt) {
this.popText = text;
this.popStatus = status; /*1 成功 2提示 3失败 */
this.popShow = true;
@ -244,7 +244,7 @@
/* 触发提示 */
tips (text) {
tips(text) {
this.cls && clearTimeout(this.cls);
this.prompt_text = text;
this.promptShow = true;
@ -255,7 +255,7 @@
/* 返回 */
backGoodsFn () {
backGoodsFn() {
if (this.backAble) {
locationReplace('./homepage.html');
} else {
@ -264,7 +264,7 @@
},
/* 动态font */
fonts () {
fonts() {
const { cash_amount_type, min_denomination, max_denomination } = this.goodsInfo.entity;
const defaultCss = { b: '0.2rem', a: '0.32rem' };
if (cash_amount_type === '2') {

View File

@ -117,7 +117,7 @@
const emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
new Vue({
el: "#redPacketsViews",
data () {
data() {
return {
popShow: false,
popText: '请点击下方[复制]按钮,复制链接到浏览器打开!',
@ -139,19 +139,19 @@
modelPop
},
mounted () {
mounted() {
document.title = localStorage.getItem('title');
// /* 初始弹窗 */
// if (this.goodsInfo.available == 8) {
// this.is = true;
// this.tip(product_status(this.goodsInfo.available, this.goodsInfo), 2);
// }
/* 初始弹窗 */
if (this.goodsInfo.available == 8) {
this.is = true;
this.tip(product_status(this.goodsInfo.available, this.goodsInfo), 2);
}
},
methods: {
/* 立即领取 */
receive () {
receive() {
const { receive_name, receive_account } = this.form;
if (this.loading) return;
if (!receive_name) return this.tips('请输入真实姓名');
@ -190,7 +190,7 @@
},
judgeEnvironment (order_number) {
judgeEnvironment(order_number) {
req.axiosPost('/alipay/cash/receive/account', { ...this.form, order_number })
.then(({ code, data, message }) => {
if (code == 200) {
@ -220,7 +220,7 @@
},
/* 触发提示 */
tip (text, status, bt) {
tip(text, status, bt) {
this.popText = text;
this.popStatus = status; /*1 成功 2提示 3失败 */
this.popShow = true;
@ -228,7 +228,7 @@
/* 触发提示 */
tips (text) {
tips(text) {
this.cls && clearTimeout(this.cls);
this.prompt_text = text;
this.promptShow = true;
@ -239,7 +239,7 @@
/* 返回 */
backGoodsFn () {
backGoodsFn() {
if (this.backAble) {
window.location.replace('./homepage.html');
} else {
@ -248,7 +248,7 @@
},
/* 动态font */
fonts () {
fonts() {
const { cash_amount_type, min_denomination, max_denomination } = this.goodsInfo.entity;
const defaultCss = { b: '0.2rem', a: '0.32rem' };
if (cash_amount_type === '2') {