|
@@ -312,7 +312,7 @@ function setSingleSelect(items) {
|
|
function getUserCoupons(userId) {
|
|
function getUserCoupons(userId) {
|
|
totalCoupons = [];
|
|
totalCoupons = [];
|
|
// 待确认订单 或新订单 才能修改优惠券
|
|
// 待确认订单 或新订单 才能修改优惠券
|
|
- if (!orderStatus) {
|
|
|
|
|
|
+ if (orderStatus == 0) {
|
|
$.get($("#ctx").val() + "/order/clubCouponList?userId="+userId, function(data) {
|
|
$.get($("#ctx").val() + "/order/clubCouponList?userId="+userId, function(data) {
|
|
if (data.code * 1 === 0) {
|
|
if (data.code * 1 === 0) {
|
|
totalCoupons = data.couponList;
|
|
totalCoupons = data.couponList;
|
|
@@ -456,7 +456,7 @@ function getShownCouponList(){
|
|
// 设置页面显示
|
|
// 设置页面显示
|
|
function setPageCoupon() {
|
|
function setPageCoupon() {
|
|
// 非待确认订单,不设置优惠券显示
|
|
// 非待确认订单,不设置优惠券显示
|
|
- if (!orderStatus) {
|
|
|
|
|
|
+ if (orderStatus == 0) {
|
|
var clubCouponId = $("#clubCouponId").val()*1;
|
|
var clubCouponId = $("#clubCouponId").val()*1;
|
|
var html = '<li><label><input type="radio" name="clubCouponId" value="0"><span class="couponDesc none">不使用优惠券</span></label></li>';
|
|
var html = '<li><label><input type="radio" name="clubCouponId" value="0"><span class="couponDesc none">不使用优惠券</span></label></li>';
|
|
selectCoupons.forEach(function(item){
|
|
selectCoupons.forEach(function(item){
|