1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
|
{"version":3,"file":"detail.js","sources":["../../../../../../src/modules/mall/coupon/detail.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXGNvdXBvblxkZXRhaWwudnVl"],"sourcesContent":["<!-- 优惠券详情 -->\r\n<template>\r\n <s-layout title=\"优惠券详情\">\r\n <view class=\"bg-white\">\r\n <!-- 详情卡片 -->\r\n <view class=\"detail-wrap ss-p-20\">\r\n <view class=\"detail-box\">\r\n <view class=\"tag-box ss-flex ss-col-center ss-row-center\">\r\n <image\r\n class=\"tag-image\"\r\n :src=\"sheep.$url.static('/static/img/shop/app/coupon_icon.png')\"\r\n mode=\"aspectFit\"\r\n />\r\n </view>\r\n <view class=\"top ss-flex-col ss-col-center\">\r\n <view class=\"title ss-m-t-50 ss-m-b-20 ss-m-x-20\">{{ state.coupon.name }}</view>\r\n <view class=\"subtitle ss-m-b-50\">\r\n 满 {{ fen2yuan(state.coupon.usePrice) }} 元,\r\n {{\r\n state.coupon.discountType === 1\r\n ? '减 ' + fen2yuan(state.coupon.discountPrice) + ' 元'\r\n : '打 ' + state.coupon.discountPercent / 10.0 + ' 折'\r\n }}\r\n </view>\r\n <button\r\n class=\"ss-reset-button ss-m-b-30\"\r\n :class=\"\r\n state.coupon.canTake || state.coupon.status === 1\r\n ? 'use-btn' // 优惠劵模版(可领取)、优惠劵(可使用)\r\n : 'disable-btn'\r\n \"\r\n :disabled=\"!state.coupon.canTake\"\r\n @click=\"getCoupon\"\r\n >\r\n <text v-if=\"state.id > 0\">{{ state.coupon.canTake ? '立即领取' : '已领取' }}</text>\r\n <text v-else>\r\n {{\r\n state.coupon.status === 1\r\n ? '立即使用'\r\n : state.coupon.status === 2\r\n ? '已使用'\r\n : '已过期'\r\n }}\r\n </text>\r\n </button>\r\n <view class=\"time ss-m-y-30\" v-if=\"state.coupon.validityType === 2\">\r\n 有效期:领取后 {{ state.coupon.fixedEndTerm }} 天内可用\r\n </view>\r\n <view class=\"time ss-m-y-30\" v-else>\r\n 有效期: {{ sheep.$helper.timeFormat(state.coupon.validStartTime, 'yyyy-mm-dd') }} 至\r\n {{ sheep.$helper.timeFormat(state.coupon.validEndTime, 'yyyy-mm-dd') }}\r\n </view>\r\n <view class=\"coupon-line ss-m-t-14\"></view>\r\n </view>\r\n <view class=\"bottom\">\r\n <view class=\"type ss-flex ss-col-center ss-row-between ss-p-x-30\">\r\n <view>优惠券类型</view>\r\n <view>{{ state.coupon.discountType === 1 ? '满减券' : '折扣券' }}</view>\r\n </view>\r\n <!-- TODO 芋艿:可优化,增加优惠劵的描述 -->\r\n <uni-collapse>\r\n <uni-collapse-item title=\"优惠券说明\" v-if=\"state.coupon.description\">\r\n <view class=\"content ss-p-b-20\">\r\n <text class=\"des ss-p-l-30\">{{ state.coupon.description }}</text>\r\n </view>\r\n </uni-collapse-item>\r\n </uni-collapse>\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <!-- 适用商品 -->\r\n <view\r\n class=\"all-user ss-flex ss-row-center ss-col-center\"\r\n v-if=\"state.coupon.productScope === 1\"\r\n >\r\n 全场通用\r\n </view>\r\n\r\n <su-sticky v-else bgColor=\"#fff\">\r\n <view class=\"goods-title ss-p-20\">\r\n {{ state.coupon.productScope === 2 ? '指定商品可用' : '指定分类可用' }}\r\n </view>\r\n <su-tabs\r\n :scrollable=\"true\"\r\n :list=\"state.tabMaps\"\r\n @change=\"onTabsChange\"\r\n :current=\"state.currentTab\"\r\n v-if=\"
|