|
@@ -78,7 +78,7 @@
|
|
</view>
|
|
</view>
|
|
<view
|
|
<view
|
|
class="count"
|
|
class="count"
|
|
- v-if="pros.validFlag == 2"
|
|
|
|
|
|
+ v-if="pros.validFlag == 1"
|
|
:class="[isshowDelbtn ? 'none' : 'show']"
|
|
:class="[isshowDelbtn ? 'none' : 'show']"
|
|
>
|
|
>
|
|
<text class="count-tips" v-if="pros.number < pros.min"
|
|
<text class="count-tips" v-if="pros.number < pros.min"
|
|
@@ -151,7 +151,7 @@
|
|
<view class="pros-product">
|
|
<view class="pros-product">
|
|
<view class="producttitle">{{ failure.name }}</view>
|
|
<view class="producttitle">{{ failure.name }}</view>
|
|
<view class="productspec">规格:{{ failure.unit ? failure.unit : '' }}</view>
|
|
<view class="productspec">规格:{{ failure.unit ? failure.unit : '' }}</view>
|
|
- <view class="productstate">{{ failureStateText(failure.status) }}</view>
|
|
|
|
|
|
+ <view class="productstate">{{ failure.status | failurefilters }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="pros-marks" v-if="failure.isFailureLayer"></view>
|
|
<view class="pros-marks" v-if="failure.isFailureLayer"></view>
|
|
</view>
|
|
</view>
|
|
@@ -268,7 +268,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- staticUrl:this.global.staticUrl,
|
|
|
|
|
|
+ staticUrl: this.global.staticUrl,
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
CustomBar: this.CustomBar, // 顶部导航栏高度
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
isIphoneX: this.$store.state.isIphoneX,
|
|
userId: 0,
|
|
userId: 0,
|
|
@@ -278,9 +278,9 @@ export default {
|
|
handlerPros: {}, // 监听单挑促销商品
|
|
handlerPros: {}, // 监听单挑促销商品
|
|
failureList: [], // 失效商品列表
|
|
failureList: [], // 失效商品列表
|
|
goodsList: [], // 购物车的商品
|
|
goodsList: [], // 购物车的商品
|
|
- promotionsList: [], // 促销列表
|
|
|
|
- totalCouponList: [], // 优惠券算列表
|
|
|
|
- eligibleCoupons: [], // 最终需要用到优惠券
|
|
|
|
|
|
+ // promotionsList: [], // 促销列表
|
|
|
|
+ // totalCouponList: [], // 优惠券算列表
|
|
|
|
+ // eligibleCoupons: [], // 最终需要用到优惠券
|
|
setGoodData: '', // 确认订单的商品
|
|
setGoodData: '', // 确认订单的商品
|
|
isCheckAll: false, // 是否全选
|
|
isCheckAll: false, // 是否全选
|
|
kindCount: 0, // 购物车宝贝数量
|
|
kindCount: 0, // 购物车宝贝数量
|
|
@@ -303,11 +303,8 @@ export default {
|
|
submitIds: [],
|
|
submitIds: [],
|
|
checkenProsList: [],
|
|
checkenProsList: [],
|
|
popupShow: false,
|
|
popupShow: false,
|
|
- popupShow0: false,
|
|
|
|
- popupShow1: false,
|
|
|
|
popupShow2: false,
|
|
popupShow2: false,
|
|
currentTab: 1,
|
|
currentTab: 1,
|
|
- navbar: [{ name: '未领取', num: 0 }, { name: '已领取', num: 0 }],
|
|
|
|
couponParam: {
|
|
couponParam: {
|
|
// 获取弹窗优惠券领取参数
|
|
// 获取弹窗优惠券领取参数
|
|
userId: 0,
|
|
userId: 0,
|
|
@@ -326,10 +323,10 @@ export default {
|
|
plain: true //是否空心
|
|
plain: true //是否空心
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- text: '去升级',
|
|
|
|
|
|
+ text: '确认',
|
|
customStyle: {
|
|
customStyle: {
|
|
color: '#fff',
|
|
color: '#fff',
|
|
- bgColor: 'linear-gradient(90deg, #F28F31 0%, #FF5B00 100%)'
|
|
|
|
|
|
+ bgColor: '#F3B574'
|
|
},
|
|
},
|
|
plain: false
|
|
plain: false
|
|
}
|
|
}
|
|
@@ -355,6 +352,12 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
|
|
+ failurefilters(state) {
|
|
|
|
+ const map = {
|
|
|
|
+ 3: '商品已下架'
|
|
|
|
+ }
|
|
|
|
+ return map[state]
|
|
|
|
+ },
|
|
NumFormat(value) {
|
|
NumFormat(value) {
|
|
//处理金额
|
|
//处理金额
|
|
return Number(value).toFixed(2)
|
|
return Number(value).toFixed(2)
|
|
@@ -371,101 +374,60 @@ export default {
|
|
this.isCheckAll = false //是否全选
|
|
this.isCheckAll = false //是否全选
|
|
this.submitIds = []
|
|
this.submitIds = []
|
|
this.checkenProsList = []
|
|
this.checkenProsList = []
|
|
- this.eligibleCoupons = []
|
|
|
|
- this.userId = this.couponParam.userId = userInfo.userId ? userInfo.userId : 0
|
|
|
|
- this.userIdentity = userInfo.userIdentity ? userInfo.userIdentity : 0
|
|
|
|
- this.vipFlag = userInfo.vipFlag ? userInfo.vipFlag : 0
|
|
|
|
|
|
+ this.userId = userInfo.userId ? userInfo.userId : 0
|
|
this.initGetCartGoodsList()
|
|
this.initGetCartGoodsList()
|
|
},
|
|
},
|
|
- isShowVipFlag(pros) {
|
|
|
|
- if (pros.priceFlag != 1) {
|
|
|
|
- if (this.userIdentity == 4 && this.vipFlag == 1) {
|
|
|
|
- return true
|
|
|
|
- } else if (this.userIdentity == 2) {
|
|
|
|
- return true
|
|
|
|
- }
|
|
|
|
|
|
+ async initGetCartGoodsList() {
|
|
|
|
+ //初始化购物车 index:1
|
|
|
|
+ const res = await this.ProductService.QueryShoppingCartList({ userId: this.userId, source: 2 })
|
|
|
|
+ let data = res.data
|
|
|
|
+ console.log('data', data)
|
|
|
|
+ this.kindCount = data.kindCount
|
|
|
|
+ this.$store.commit('updateAllNum', data.kindCount)
|
|
|
|
+ if (data.list.length === 0 && data.invalid.length === 0) {
|
|
|
|
+ this.isEmpty = true
|
|
}
|
|
}
|
|
|
|
+ this.infoCartData(data.list)
|
|
|
|
+ this.infoInvalidData(data.invalid)
|
|
|
|
+ this.skeletonShow = false
|
|
},
|
|
},
|
|
- initLogin() {
|
|
|
|
- this.$api.redirectTo('/pages/login/login')
|
|
|
|
- },
|
|
|
|
- clickPopupShow(pros, type) {
|
|
|
|
- this.popupShow = true
|
|
|
|
- this.handlerPros = pros
|
|
|
|
- },
|
|
|
|
- setScrollHeight() {
|
|
|
|
- // 窗口高度-footer高度
|
|
|
|
- const { windowHeight, pixelRatio } = uni.getSystemInfoSync()
|
|
|
|
- setTimeout(() => {
|
|
|
|
- const query = uni.createSelectorQuery().in(this)
|
|
|
|
- query.selectAll('.footer').boundingClientRect()
|
|
|
|
- query.exec(res => {
|
|
|
|
- this.windowHeight = windowHeight
|
|
|
|
- if (res[0][0]) {
|
|
|
|
- this.scrollHeight = windowHeight - res[0][0].height
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- }, 500)
|
|
|
|
- },
|
|
|
|
- initGetCartGoodsList() {
|
|
|
|
- //初始化购物车 index:1
|
|
|
|
- this.ProductService.QueryShoppingCartList({ userId: this.userId, source: 2 })
|
|
|
|
- .then(response => {
|
|
|
|
- this.skeletonShow = false
|
|
|
|
- let data = response.data
|
|
|
|
- this.kindCount = data.kindCount
|
|
|
|
- this.promotionsList = data.promotions
|
|
|
|
- this.totalCouponList = data.couponList
|
|
|
|
- this.$store.commit('updateAllNum', data.kindCount)
|
|
|
|
- if (data.list.length > 0 || data.invalid.length > 0) {
|
|
|
|
- this.isEmpty = false
|
|
|
|
- } else {
|
|
|
|
- this.isEmpty = true
|
|
|
|
- }
|
|
|
|
- if (data.list && data.list.length > 0) {
|
|
|
|
- this.goodsList = data.list
|
|
|
|
- this.goodsList.forEach((supplier, index) => {
|
|
|
|
- supplier.cartList.forEach(pros => {
|
|
|
|
- pros.shopId = supplier.shopId
|
|
|
|
- pros.isStep = false
|
|
|
|
- if (pros.stock === 0 || pros.number > pros.stock) {
|
|
|
|
- supplier.isDisable = true
|
|
|
|
- pros.isDisable = true
|
|
|
|
- } else {
|
|
|
|
- pros.isDisable = false
|
|
|
|
- }
|
|
|
|
- if (pros.step === 2) {
|
|
|
|
- if (pros.number % pros.min != 0) {
|
|
|
|
- pros.number = pros.min
|
|
|
|
- this.totalShopPeice()
|
|
|
|
- this.updateShoppogNum(pros)
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- this.totalShopPeice()
|
|
|
|
|
|
+ infoCartData(data) {
|
|
|
|
+ //初始化有效商品
|
|
|
|
+ this.goodsList = data.map((supplier, index) => {
|
|
|
|
+ supplier.cartList.forEach(pros => {
|
|
|
|
+ pros.shopId = supplier.shopId
|
|
|
|
+ pros.isStep = false
|
|
|
|
+ if (pros.stock === 0 || pros.number > pros.stock) {
|
|
|
|
+ supplier.isDisable = true
|
|
|
|
+ pros.isDisable = true
|
|
} else {
|
|
} else {
|
|
- this.goodsList = []
|
|
|
|
|
|
+ pros.isDisable = false
|
|
}
|
|
}
|
|
- if (data.invalid && data.invalid.length > 0) {
|
|
|
|
- let newFailureList = [],
|
|
|
|
- isFailureLayer
|
|
|
|
- data.invalid.forEach((failure, index) => {
|
|
|
|
- if (failure.status == 1 || failure.status == 2) {
|
|
|
|
- isFailureLayer = true
|
|
|
|
- } else {
|
|
|
|
- isFailureLayer = false
|
|
|
|
- }
|
|
|
|
- newFailureList.push(Object.assign({}, failure, { isFailureLayer: isFailureLayer }))
|
|
|
|
- })
|
|
|
|
- this.failureList = newFailureList
|
|
|
|
- } else {
|
|
|
|
- this.failureList = []
|
|
|
|
|
|
+ if (pros.step === 2) {
|
|
|
|
+ if (pros.number % pros.min != 0) {
|
|
|
|
+ pros.number = pros.min
|
|
|
|
+ this.totalShopPeice()
|
|
|
|
+ this.updateShoppogNum(pros)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- .catch(error => {
|
|
|
|
- this.$util.msg(error.msg, 2000)
|
|
|
|
- })
|
|
|
|
|
|
+ return supplier
|
|
|
|
+ })
|
|
|
|
+ this.totalShopPeice()
|
|
|
|
+ },
|
|
|
|
+ infoInvalidData(data) {
|
|
|
|
+ // 初始化失效商品
|
|
|
|
+ this.failureList = data.map((failure, index) => {
|
|
|
|
+ failure.isFailureLayer = false
|
|
|
|
+ if (failure.status == 1 || failure.status == 2) {
|
|
|
|
+ failure.isFailureLayer = true
|
|
|
|
+ }
|
|
|
|
+ return failure
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ clickPopupShow(pros, type) {
|
|
|
|
+ this.popupShow = true
|
|
|
|
+ this.handlerPros = pros
|
|
},
|
|
},
|
|
handleCheckFailure(failure) {
|
|
handleCheckFailure(failure) {
|
|
// 选择失效商品
|
|
// 选择失效商品
|
|
@@ -517,23 +479,21 @@ export default {
|
|
},
|
|
},
|
|
updateCheckAllBtn() {
|
|
updateCheckAllBtn() {
|
|
// 全选勾选判断
|
|
// 全选勾选判断
|
|
- let goodsCheckedLength = 0,
|
|
|
|
- goodsList = this.goodsList,
|
|
|
|
- failureList = this.failureList
|
|
|
|
- goodsList.forEach(item => {
|
|
|
|
|
|
+ let goodsCheckedLength = 0
|
|
|
|
+ this.goodsList.forEach(item => {
|
|
if (item.isChecked) {
|
|
if (item.isChecked) {
|
|
goodsCheckedLength++
|
|
goodsCheckedLength++
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- failureList.forEach(failureItem => {
|
|
|
|
|
|
+ this.failureList.forEach(failureItem => {
|
|
if (failureItem.isChecked) {
|
|
if (failureItem.isChecked) {
|
|
goodsCheckedLength++
|
|
goodsCheckedLength++
|
|
}
|
|
}
|
|
})
|
|
})
|
|
if (this.isshowDelbtn) {
|
|
if (this.isshowDelbtn) {
|
|
- this.isCheckAll = goodsCheckedLength === goodsList.length + failureList.length
|
|
|
|
|
|
+ this.isCheckAll = goodsCheckedLength === this.goodsList.length + this.failureList.length
|
|
} else {
|
|
} else {
|
|
- this.isCheckAll = goodsCheckedLength === goodsList.length
|
|
|
|
|
|
+ this.isCheckAll = goodsCheckedLength === this.goodsList.length
|
|
}
|
|
}
|
|
},
|
|
},
|
|
handleCheckShop(supplier) {
|
|
handleCheckShop(supplier) {
|
|
@@ -607,20 +567,16 @@ export default {
|
|
handleCheckAll() {
|
|
handleCheckAll() {
|
|
//全选方法内调用方法
|
|
//全选方法内调用方法
|
|
this.isCheckAll = !this.isCheckAll
|
|
this.isCheckAll = !this.isCheckAll
|
|
- if (!this.isCheckAll) {
|
|
|
|
- this.popupShow1 = false
|
|
|
|
- }
|
|
|
|
this.updateBothCheckBtn()
|
|
this.updateBothCheckBtn()
|
|
},
|
|
},
|
|
totalShopPeice() {
|
|
totalShopPeice() {
|
|
//每次所属会所下的商品增减重新计算合计价格&减去含有下架的商品
|
|
//每次所属会所下的商品增减重新计算合计价格&减去含有下架的商品
|
|
this.goodsList.map((item, index) => {
|
|
this.goodsList.map((item, index) => {
|
|
- let _totalPrice = 0
|
|
|
|
|
|
+ let totalPrice = 0
|
|
item.cartList.forEach(pros => {
|
|
item.cartList.forEach(pros => {
|
|
- let _price = pros.price * pros.number
|
|
|
|
- _totalPrice += pros.price * pros.number
|
|
|
|
|
|
+ totalPrice += pros.price * pros.number
|
|
})
|
|
})
|
|
- item.totalPrice = _totalPrice
|
|
|
|
|
|
+ item.totalPrice = totalPrice
|
|
})
|
|
})
|
|
},
|
|
},
|
|
totalPeice() {
|
|
totalPeice() {
|
|
@@ -832,24 +788,20 @@ export default {
|
|
this.$api.navigateTo(`/pages/goods/product?id=${failure.productId}`)
|
|
this.$api.navigateTo(`/pages/goods/product?id=${failure.productId}`)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- failureStateText(state) {
|
|
|
|
- let stateText = '',
|
|
|
|
- stateTextObject = {
|
|
|
|
- 1: '商品已丢失',
|
|
|
|
- 2: '商品已停售',
|
|
|
|
- 3: '商品已下架',
|
|
|
|
- 4: '商品已售罄',
|
|
|
|
- 5: '价格仅会员可见,您不能购买',
|
|
|
|
- 6: '未公开价格',
|
|
|
|
- 7: '库存不足',
|
|
|
|
- 8: '价格仅医美机构可见'
|
|
|
|
- }
|
|
|
|
- Object.keys(stateTextObject).forEach(key => {
|
|
|
|
- if (key == state) {
|
|
|
|
- stateText = stateTextObject[key]
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
- return stateText
|
|
|
|
|
|
+ handleShouUnitPopup(pros) {
|
|
|
|
+ // 规格弹窗
|
|
|
|
+ this.popupShow2 = true
|
|
|
|
+ this.handlePros = pros
|
|
|
|
+ },
|
|
|
|
+ hideMobel() {
|
|
|
|
+ this.modal = false
|
|
|
|
+ },
|
|
|
|
+ handleClick(e) {
|
|
|
|
+ //个人机构跳转升级页面
|
|
|
|
+ if (e.index == 1) {
|
|
|
|
+ this.shoppingCartDelete({ userId: this.userId, skuIds: this.delSkuIds })
|
|
|
|
+ }
|
|
|
|
+ this.modal = false
|
|
},
|
|
},
|
|
setHeaderBtnPosi() {
|
|
setHeaderBtnPosi() {
|
|
// 获得胶囊按钮位置信息
|
|
// 获得胶囊按钮位置信息
|
|
@@ -866,126 +818,19 @@ export default {
|
|
})
|
|
})
|
|
return systeminfo
|
|
return systeminfo
|
|
},
|
|
},
|
|
- PromotionsFormat(promo) {
|
|
|
|
- //促销活动类型数据处理
|
|
|
|
- if (promo != null) {
|
|
|
|
- if (promo.type == 1 && promo.mode == 1) {
|
|
|
|
- return true
|
|
|
|
- } else {
|
|
|
|
- return false
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return false
|
|
|
|
- },
|
|
|
|
- queryPopupCoupons() {
|
|
|
|
- // 获取优惠券列表调用 apisMixins -> apiShoppingCartGetCoupon
|
|
|
|
- this.apiShoppingCartGetCoupon(this.couponParam)
|
|
|
|
- },
|
|
|
|
- receiveCoupon(coupon) {
|
|
|
|
- // 点击优惠券领取按钮,友盟埋点收集领取优惠券
|
|
|
|
- if (process.env.NODE_ENV != 'development') {
|
|
|
|
- this.$uma.trackEvent('Um_Event_cartCouponReceive', {
|
|
|
|
- Um_Key_PageName: '机构购物车',
|
|
|
|
- Um_Key_EvenName: '领取优惠券',
|
|
|
|
- Um_Key_CouponId: `${coupon.couponId}`
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- // 领取优惠券调用 apisMixins -> apiReceiveCoupon
|
|
|
|
- this.apiReceiveCoupon({ userId: this.couponParam.userId, couponId: coupon.couponId, source: 1 })
|
|
|
|
- },
|
|
|
|
- handleToDeductCoupon(coupon) {
|
|
|
|
- // 点击采美豆抵扣优惠券
|
|
|
|
- if (process.env.NODE_ENV != 'development') {
|
|
|
|
- this.$uma.trackEvent('Um_Event_userCouponCollectionBuy', {
|
|
|
|
- Um_Key_PageName: '领券中心',
|
|
|
|
- Um_Key_EvenName: '抵扣优惠券',
|
|
|
|
- Um_Key_CouponId: `${coupon.couponId}`
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- if (this.hasLogin) {
|
|
|
|
- if (this.userIdentity === 1 || this.userIdentity === 3) {
|
|
|
|
- this.$util.msg('您的身份暂不支持领取优惠券', 2000)
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- // 调用 apisMixins -> apiWeChatPayCouponBeans
|
|
|
|
- this.apiWeChatPayCouponBeans({ source: 1, userId: this.couponParam.userId, couponId: coupon.couponId })
|
|
|
|
- } else {
|
|
|
|
- this.$api.navigateTo('/pages/login/login')
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- handlePayCoupon(coupon) {
|
|
|
|
- // 点击购买优惠券,友盟埋点收集购买优惠券
|
|
|
|
- if (process.env.NODE_ENV != 'development') {
|
|
|
|
- this.$uma.trackEvent('Um_Event_cartCouponBuy', {
|
|
|
|
- Um_Key_PageName: '机构购物车',
|
|
|
|
- Um_Key_EvenName: '购买优惠券',
|
|
|
|
- Um_Key_CouponId: `${coupon.couponId}`
|
|
|
|
- })
|
|
|
|
- }
|
|
|
|
- // 生成购买优惠券记录Id调用 apisMixins -> apiReceiveCoupon
|
|
|
|
- this.apiWeChatCouponRecord({ userId: this.userId, couponId: coupon.couponId }, coupon)
|
|
|
|
- },
|
|
|
|
- hideMobel() {
|
|
|
|
- this.modal = false
|
|
|
|
- },
|
|
|
|
- handleClick(e) {
|
|
|
|
- //个人机构跳转升级页面
|
|
|
|
- if (e.index == 1) {
|
|
|
|
- this.$api.navigateTo('/pages/login/apply')
|
|
|
|
- }
|
|
|
|
- this.modal = false
|
|
|
|
- },
|
|
|
|
- showPopup(index, shop) {
|
|
|
|
- // 显示popup弹窗
|
|
|
|
- switch (index) {
|
|
|
|
- case 0:
|
|
|
|
- // 友盟埋点收集领券按钮
|
|
|
|
- if (process.env.NODE_ENV != 'development') {
|
|
|
|
- this.$uma.trackEvent('Um_Event_cartCouponButton', {
|
|
|
|
- Um_Key_PageName: '机构购物车',
|
|
|
|
- Um_Key_EvenName: '点击领券按钮',
|
|
|
|
- Um_Key_userId: `${this.userId}`
|
|
|
|
- })
|
|
|
|
|
|
+ setScrollHeight() {
|
|
|
|
+ // 窗口高度-footer高度
|
|
|
|
+ const { windowHeight, pixelRatio } = uni.getSystemInfoSync()
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ const query = uni.createSelectorQuery().in(this)
|
|
|
|
+ query.selectAll('.footer').boundingClientRect()
|
|
|
|
+ query.exec(res => {
|
|
|
|
+ this.windowHeight = windowHeight
|
|
|
|
+ if (res[0][0]) {
|
|
|
|
+ this.scrollHeight = windowHeight - res[0][0].height
|
|
}
|
|
}
|
|
- this.currentTab = 0
|
|
|
|
- this.couponParam.status = 1
|
|
|
|
- this.couponParam.shopId = shop.shopId
|
|
|
|
- this.queryPopupCoupons()
|
|
|
|
- this.popupShow0 = true
|
|
|
|
- break
|
|
|
|
- case 1:
|
|
|
|
- this.popupShow1 = true
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- handleShouUnitPopup(pros) {
|
|
|
|
- // 规格弹窗
|
|
|
|
- this.popupShow2 = true
|
|
|
|
- this.handlePros = pros
|
|
|
|
- },
|
|
|
|
- hidePopup(index) {
|
|
|
|
- // 隐藏popup弹窗
|
|
|
|
- switch (index) {
|
|
|
|
- case 0:
|
|
|
|
- this.popupShow0 = false
|
|
|
|
- break
|
|
|
|
- case 1:
|
|
|
|
- this.popupShow1 = false
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- couponChange(e) {
|
|
|
|
- this.currentTab = e.index
|
|
|
|
- switch (this.currentTab) {
|
|
|
|
- case 0:
|
|
|
|
- this.couponParam.status = 1
|
|
|
|
- this.queryPopupCoupons()
|
|
|
|
- break
|
|
|
|
- case 1:
|
|
|
|
- this.couponParam.status = 2
|
|
|
|
- this.queryPopupCoupons()
|
|
|
|
- break
|
|
|
|
- }
|
|
|
|
|
|
+ })
|
|
|
|
+ }, 500)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1888,7 +1733,7 @@ page {
|
|
width: 200rpx;
|
|
width: 200rpx;
|
|
height: 100%;
|
|
height: 100%;
|
|
background: $btn-confirm;
|
|
background: $btn-confirm;
|
|
- font-size: $font-size-28;
|
|
|
|
|
|
+ font-size: $font-size-26;
|
|
line-height: 84rpx;
|
|
line-height: 84rpx;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -1924,8 +1769,8 @@ page {
|
|
border-radius: 40rpx;
|
|
border-radius: 40rpx;
|
|
}
|
|
}
|
|
.btn.btn-cancel {
|
|
.btn.btn-cancel {
|
|
- background: #F7F7F7;
|
|
|
|
- color: #B2B2B2;
|
|
|
|
|
|
+ background: #f7f7f7;
|
|
|
|
+ color: #b2b2b2;
|
|
}
|
|
}
|
|
.btn.btn-confirm {
|
|
.btn.btn-confirm {
|
|
background: #ff2a2a;
|
|
background: #ff2a2a;
|