Commit 271255cc authored by Xuguangxing's avatar Xuguangxing

fix

parent 525f56cd
...@@ -223,6 +223,7 @@ export default { ...@@ -223,6 +223,7 @@ export default {
message: '请点击小程序右上角更多进行分享~', message: '请点击小程序右上角更多进行分享~',
showCancelButton: false, showCancelButton: false,
confirmButtonText: '我知道了哦~', confirmButtonText: '我知道了哦~',
closeOnClickOverlay: !isApp && !isWxMp ? false : true,
onConfirm: () => {} onConfirm: () => {}
}); });
}, },
...@@ -248,6 +249,7 @@ export default { ...@@ -248,6 +249,7 @@ export default {
tipDialogMessage() { tipDialogMessage() {
this.$dialog({ this.$dialog({
message: '请在App或小程序中进行分享~', message: '请在App或小程序中进行分享~',
closeOnClickOverlay: !isApp && !isWxMp ? false : true,
title: '', title: '',
showCancelButton: false, showCancelButton: false,
confirmButtonText: '我知道了' confirmButtonText: '我知道了'
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
} }
</style> </style>
<script> <script>
import { isApp, isWxMp } from '@/service/validation.service';
export default { export default {
props: { props: {
groupInfo: { groupInfo: {
...@@ -44,6 +45,7 @@ export default { ...@@ -44,6 +45,7 @@ export default {
showRules() { showRules() {
this.$dialog({ this.$dialog({
messageAlign: 'left', messageAlign: 'left',
closeOnClickOverlay: !isApp && !isWxMp ? false : true,
message: this.groupInfo.groupBuyDesc || '', message: this.groupInfo.groupBuyDesc || '',
title: '拼团须知', title: '拼团须知',
showCancelButton: false, showCancelButton: false,
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
this.$dialog({ this.$dialog({
message: '参与拼团活动需要您先进行登录哦~', message: '参与拼团活动需要您先进行登录哦~',
title: '', title: '',
closeOnClickOverlay: true,
showCancelButton: false, showCancelButton: false,
confirmButtonText: '登录', confirmButtonText: '登录',
onConfirm: () => { onConfirm: () => {
...@@ -51,6 +52,7 @@ export default { ...@@ -51,6 +52,7 @@ export default {
this.$dialog({ this.$dialog({
message: '请在App或小程序中参与活动~', message: '请在App或小程序中参与活动~',
title: '', title: '',
closeOnClickOverlay: true,
showCancelButton: false, showCancelButton: false,
confirmButtonText: '我知道了' confirmButtonText: '我知道了'
}); });
......
...@@ -171,6 +171,7 @@ export default { ...@@ -171,6 +171,7 @@ export default {
const _this = this; const _this = this;
this.$dialog({ this.$dialog({
title: '', title: '',
closeOnClickOverlay: true,
message: '确认删除该地址?', message: '确认删除该地址?',
onConfirm: function() { onConfirm: function() {
_this.deleteAddr(); _this.deleteAddr();
......
...@@ -206,6 +206,7 @@ import localStorage from '@/service/localStorage.service'; ...@@ -206,6 +206,7 @@ import localStorage from '@/service/localStorage.service';
import goodsCheckMixin from '@/mixins/goodsCheck.mixin'; import goodsCheckMixin from '@/mixins/goodsCheck.mixin';
import { EventBus } from '@/service/utils.service'; import { EventBus } from '@/service/utils.service';
import { saTrackEvent } from '@/service/sa.service'; import { saTrackEvent } from '@/service/sa.service';
import { isApp, isWxMp } from '@/service/validation.service';
export default { export default {
// eslint-disable-next-line vue/name-property-casing // eslint-disable-next-line vue/name-property-casing
name: 'goodDetail', name: 'goodDetail',
...@@ -346,7 +347,8 @@ export default { ...@@ -346,7 +347,8 @@ export default {
message: checkStatus.failedReason || '', message: checkStatus.failedReason || '',
cancelButtonText: '知道了', cancelButtonText: '知道了',
showConfirmButton: false, showConfirmButton: false,
cancelButtonColor: '#ec1500' cancelButtonColor: '#ec1500',
closeOnClickOverlay: !isApp && !isWxMp ? false : true
// confirmButtonText: '返回活动', // confirmButtonText: '返回活动',
// onConfirm: () => { // onConfirm: () => {
// this.$router.replace({ // this.$router.replace({
...@@ -438,6 +440,7 @@ export default { ...@@ -438,6 +440,7 @@ export default {
this.$dialog({ this.$dialog({
message: '哎呀,活动太火爆,该商品已经卖光,换一个商品试试吧!', message: '哎呀,活动太火爆,该商品已经卖光,换一个商品试试吧!',
title: '', title: '',
closeOnClickOverlay: !isApp && !isWxMp ? false : true,
showCancelButton: false, showCancelButton: false,
confirmButtonText: '查看其他商品', confirmButtonText: '查看其他商品',
onConfirm: () => { onConfirm: () => {
......
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
this.$dialog({ this.$dialog({
message, message,
closeOnClickOverlay: true,
showCancelButton: true, showCancelButton: true,
confirmButtonText, confirmButtonText,
onConfirm: () => { onConfirm: () => {
......
...@@ -170,6 +170,7 @@ export default { ...@@ -170,6 +170,7 @@ export default {
async handleBuy() { async handleBuy() {
if (!this.orderInfo.addrReceiverInfo?.addrReceiverId) { if (!this.orderInfo.addrReceiverInfo?.addrReceiverId) {
this.$dialog({ this.$dialog({
closeOnClickOverlay: true,
message: '你还没有选择收货地址哦!', message: '你还没有选择收货地址哦!',
showCancelButton: false, showCancelButton: false,
confirmButtonText: '去添加', confirmButtonText: '去添加',
......
...@@ -191,6 +191,7 @@ export default { ...@@ -191,6 +191,7 @@ export default {
} else { } else {
// todo 处理纯h5情况 // todo 处理纯h5情况
this.$dialog({ this.$dialog({
closeOnClickOverlay: !isApp && !isWxMp ? false : true,
message: '请在App或小程序中参与活动~', message: '请在App或小程序中参与活动~',
title: '', title: '',
showCancelButton: false, showCancelButton: false,
......
...@@ -119,6 +119,7 @@ function havePayingOrder() { ...@@ -119,6 +119,7 @@ function havePayingOrder() {
this.$dialog({ this.$dialog({
message: '您的享花卡额度被其他订单占用,暂时不可使用享花卡支付哦!', message: '您的享花卡额度被其他订单占用,暂时不可使用享花卡支付哦!',
confirmButtonText: '重新选择', confirmButtonText: '重新选择',
closeOnClickOverlay: true,
showCancelButton: false, showCancelButton: false,
confirmButtonColor: '#EC1500' confirmButtonColor: '#EC1500'
}); });
......
...@@ -448,6 +448,7 @@ export default { ...@@ -448,6 +448,7 @@ export default {
} }
if (this.payType === CREDIT_PAY && this.canUseAmount < 0) { if (this.payType === CREDIT_PAY && this.canUseAmount < 0) {
this.$dialog({ this.$dialog({
closeOnClickOverlay: true,
message: '您的消费额度不足,请更换支付方式!', message: '您的消费额度不足,请更换支付方式!',
confirmButtonText: '知道了', confirmButtonText: '知道了',
showCancelButton: false, showCancelButton: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment