|
|
|
@ -49,11 +49,11 @@ |
|
|
|
<img v-show="getData.couponStatus > 0" src="../assets/images/get.png" width="60" height="60" alt="" class="f-mt-10"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="f-mt10 f-text-center"> |
|
|
|
<!--<div class="f-mt10 f-text-center"> |
|
|
|
<button class="btn-md bg-gray s-white f-font-18">立即使用</button> |
|
|
|
</div> |
|
|
|
</div>--> |
|
|
|
<div style="padding: 0 10px 20px;"> |
|
|
|
<p class="s-gray-1 f-font-11 f-mt20" style="line-height: 18px;">使用范围:广州市(天河区、海珠区、白云区、番禺区、花都区、从化区、越秀区、黄埔区、南沙区、荔湾区)</p> |
|
|
|
<p class="s-gray-1 f-font-11 f-mt20" style="line-height: 18px;">使用范围:{{getData.authAreaStr}}</p> |
|
|
|
<p class="f-mt10 f-font-11 s-orange-2"> |
|
|
|
使用流程:领券下单→关注公众号→预约服务 |
|
|
|
</p> |
|
|
|
@ -133,15 +133,35 @@ |
|
|
|
|
|
|
|
that.loading = false; |
|
|
|
console.log(result) |
|
|
|
if (result.code == 0) { |
|
|
|
|
|
|
|
console.log('领取成功') |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
console.log('领取失败') |
|
|
|
|
|
|
|
} |
|
|
|
// if (result.code == 0) { |
|
|
|
// |
|
|
|
// console.log('领取成功') |
|
|
|
// |
|
|
|
// } else { |
|
|
|
// |
|
|
|
// console.log('领取失败') |
|
|
|
// |
|
|
|
// } |
|
|
|
if (result.code === 0 || result.code === 3) { |
|
|
|
alert("领取成功!"); |
|
|
|
setTimeout(function () { |
|
|
|
window.location.href = 'http://192.168.40.160:8808/mall/web/vgoods/detail/' + that.getData.goodsNo; |
|
|
|
}, 2000); |
|
|
|
// window.history.go(0); |
|
|
|
// hide_layer(1); |
|
|
|
} else if (result.code === 666) { |
|
|
|
alert("您还没登录,请先登录!"); |
|
|
|
setTimeout(function () { |
|
|
|
window.location.href = '/mall/web/user/login'; |
|
|
|
}, 2000); |
|
|
|
} else { |
|
|
|
if (result.msg === '' || result.msg === undefined || result.msg == null) { |
|
|
|
result.msg = '操作失败,请刷新重试'; |
|
|
|
} |
|
|
|
alert(result.msg); |
|
|
|
// $('.get-btn').attr('disabled', true).text("已使用"); |
|
|
|
// hide_layer(1); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|