alipay-emulator/eslint-output.json

2 lines
147 KiB
JSON
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[{"filePath":"D:\\AAA-Code\\AAA-work-code\\鏂板缓鏂囦欢澶筡\alipay-emulator\\pages\\common\\recharge\\index.vue","messages":[{"ruleId":"no-unused-vars","severity":1,"message":"'customTab' is defined but never used.","line":281,"column":8,"nodeType":"Identifier","messageId":"unusedVar","endLine":281,"endColumn":17},{"ruleId":"no-unused-vars","severity":1,"message":"'watch' is defined but never used.","line":290,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":290,"endColumn":7},{"ruleId":"no-unused-vars","severity":1,"message":"'onPullDownRefresh' is defined but never used.","line":298,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":298,"endColumn":19},{"ruleId":"no-unused-vars","severity":1,"message":"'onReachBottom' is defined but never used.","line":299,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":299,"endColumn":15},{"ruleId":"no-unused-vars","severity":1,"message":"'appContext' is assigned a value but never used.","line":304,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":304,"endColumn":12},{"ruleId":"no-unused-vars","severity":1,"message":"'couponBox' is assigned a value but never used.","line":309,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":309,"endColumn":16},{"ruleId":"no-unused-vars","severity":1,"message":"'packageList' is assigned a value but never used.","line":330,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":330,"endColumn":18},{"ruleId":"no-dupe-keys","severity":2,"message":"Duplicate key 'coupon'.","line":458,"column":2,"nodeType":"ObjectExpression","messageId":"unexpected","endLine":458,"endColumn":8},{"ruleId":"no-unused-vars","severity":1,"message":"'benefitList' is assigned a value but never used.","line":473,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":473,"endColumn":13},{"ruleId":"no-unused-vars","severity":1,"message":"'commentList' is assigned a value but never used.","line":475,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":475,"endColumn":13},{"ruleId":"no-unused-vars","severity":1,"message":"'source' is assigned a value but never used.","line":477,"column":2,"nodeType":"Identifier","messageId":"unusedVar","endLine":477,"endColumn":8},{"ruleId":"no-constant-condition","severity":1,"message":"Unexpected constant condition.","line":818,"column":7,"nodeType":"Literal","messageId":"unexpected","endLine":818,"endColumn":12},{"ruleId":"no-unused-vars","severity":1,"message":"'debouncedOnSelect' is assigned a value but never used.","line":956,"column":7,"nodeType":"Identifier","messageId":"unusedVar","endLine":956,"endColumn":24},{"ruleId":"no-unused-vars","severity":1,"message":"'generateNoticeList' is defined but never used.","line":1132,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":1132,"endColumn":28},{"ruleId":"no-unused-vars","severity":1,"message":"'resss' is defined but never used.","line":1237,"column":23,"nodeType":"Identifier","messageId":"unusedVar","endLine":1237,"endColumn":28},{"ruleId":"no-unused-vars","severity":1,"message":"'paytype' is defined but never used.","line":1288,"column":39,"nodeType":"Identifier","messageId":"unusedVar","endLine":1288,"endColumn":46},{"ruleId":"no-unused-vars","severity":1,"message":"'shouldBeTrue' is defined but never used.","line":1530,"column":10,"nodeType":"Identifier","messageId":"unusedVar","endLine":1530,"endColumn":22}],"suppressedMessages":[],"errorCount":1,"fatalErrorCount":0,"warningCount":16,"fixableErrorCount":0,"fixableWarningCount":0,"source":"<template>\r\n\t<view class=\"page-container\">\r\n\t\t<uni-icons class=\"back\" type=\"left\" size=\"20\" @click=\"open\" color=\"#fff\"></uni-icons>\r\n\t\t<view>\r\n\t\t\t<image :src=\"data.banner\" style=\"width: 100%;height: 244px;\"></image>\r\n\t\t</view>\r\n\t\t<exchange />\r\n\t\t<!-- <view style=\"margin-top:-90px;position: relative;\">\r\n\t\t\t<customTab :isHuise=\"shouldBeTrue(data.goods)\" />\r\n\t\t</view> -->\r\n\t\t<scroll-view class=\"package-items-box\" scroll-x=\"true\" v-if=\"data.goodsList.length\" :show-scrollbar=\"false\">\r\n\t\t\t<view class=\"package-items-container\">\r\n\t\t\t\t<view class=\"package-item\" :class=\"{ 'active-package-item': selected == (index + 1) }\"\r\n\t\t\t\t\tv-for=\"(item, index) in data.goodsList\" @click=\"onSelect(item, index)\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"top\">\r\n\t\t\t\t\t\t<view class=\"title\">\r\n\t\t\t\t\t\t\t{{ item.goods_name }}\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<text class=\"del-text\">锟{ item.origin_price }}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"price-box wx-font-regular\">\r\n\t\t\t\t\t\t<text>锟?/text><text class=\"price\">{{ item.price }}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"shen \">\r\n\t\t\t\t\t\t{{ item.tips2 || `绔嬬渷锟?{(Number(item.origin_price) - Number(item.price)).toFixed(0)}` }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"active-package-item-tips\" v-show=\"item.tips && selected == (index + 1)\">\r\n\t\t\t\t\t\t{{ item.tips }}\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</scroll-view>\r\n\t\t<view class=\"vipContent\" style=\"position: relative;\">\r\n\t\t\t<view class=\"top\">\r\n\t\t\t\t<image src=\"/static/image/recharge/vipContentTopBgImg.png\" mode=\"widthFix\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"vipList\">\r\n\t\t\t\t<template v-for=\"(item, index) in data.benefitList\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"item\"\r\n\t\t\t\t\t\tv-if=\"data.goods.features == 'common' || (data.goods.features != 'common' && index < 10)\">\r\n\t\t\t\t\t\t<image :src=\"item.url\"></image>\r\n\t\t\t\t\t\t<text>{{ item.name }}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</template>\r\n\r\n\t\t\t</view>\r\n\t\t</view>\r\n\r\n\t\t<view class=\"myCouponList\" @click=\"data.myActivity.length > 0 ? myCoupon.open() : ''\">\r\n\t\t\t<view class=\"left\">\r\n\t\t\t\t<image src=\"/static/image/recharge/couponMin.png\" mode=\"\"></image>\r\n\t\t\t\t<view class=\"title\">{{ data.active_id == 0 ? '浼樻儬鍒? : (data.activeCoupon.coupon_type_name + '宸插噺') }}\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"money\" v-if=\"data.active_id != 0\">\r\n\t\t\t\t\t锟{ $toFiexd(data.activeCoupon.coupon_type_name != '鎶樻墸鍒? ? (Number(data.activeCoupon.coupon_value) /\r\n\t\t\t\t\t\t100) : ((1 - Number(data.activeCoupon.coupon_value)) * data.goods.price), 2) }}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"right\" v-if=\"data.active_id == 0\">\r\n\t\t\t\t<text style=\"color: red;\">{{ data.myActivity.length == 0 ? '鏆傛棤浼樻儬鍒? : ('寰呬娇鐢? + data.myActivity.length +\r\n\t\t\t\t\t'寮?) }}</text>\r\n\t\t\t\t<uni-icons type=\"forward\" color=\"#AEAEAE\" class=\"forward\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"right \" v-else>\r\n\t\t\t\t<view class=\"timeBox\" v-if=\"data.countdown && data.active_id > 0\">\r\n\t\t\t\t\t<view class=\"titles\">璺濈浼樻儬缁撴潫</view>\r\n\t\t\t\t\t<uni-countdown :font-size=\"12\" :day=\"data.activeCoupon.days\" :hour=\"data.activeCoupon.hours\"\r\n\t\t\t\t\t\t:minute=\"data.activeCoupon.minutes\" :second=\"data.activeCoupon.seconds\" color=\"#FFFFFF\"\r\n\t\t\t\t\t\tbackground-color=\"#2A2617\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<uni-icons type=\"forward\" color=\"#AEAEAE\" class=\"forward\"\r\n\t\t\t\t\t:class=\"{ forward2: data.active_id != 0 }\"></uni-icons>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"question\" :class=\"{ 'iosQuestion': $system == 'iOS' }\">\r\n\t\t\t<view class=\"titles\">\r\n\t\t\t\t甯歌闂\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question1.png\"></image>\r\n\t\t\t\t<view class=\"text\">寮€閫氫細鍛樹韩鍙楀摢浜涙潈鐩?/view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question2.png\"></image>\r\n\t\t\t\t<view class=\"text text1\">浼氬憳鐢ㄦ埛浜彈鏃犳按鍗?鏃犲箍鍛婂強涓撳睘瀹㈡湇绛夋潈鐩?姝e湪寮€鍙戜腑鐨?00澶氫釜鍔熻兘鐐瑰厤璐规洿鏂?鍙﹀浼氬憳鐢ㄦ埛鍔熻兘闇€姹傚彲瀹氬埗銆?/view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question1.png\"></image>\r\n\t\t\t\t<view class=\"text\">鑻规灉瀹夊崜浼氬憳鏄惁浜掗€?/view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question2.png\"></image>\r\n\t\t\t\t<view class=\"text text1\">鑻规灉銆佸畨鍗撲互鍙婇缚钂欑郴缁熶細鍛樻槸浜掗€氱殑,鐧诲綍鍚屼竴涓处鍙?鍏朵粬骞冲彴涔熷彲浠ヤ娇鐢?娌℃湁璁惧鏁伴噺闄愬埗銆?/view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question1.png\"></image>\r\n\t\t\t\t<view class=\"text\">浼氬憳鏃堕暱濡備綍璁$畻</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question2.png\"></image>\r\n\t\t\t\t<view class=\"text text1\">鏈堜細鍛?1澶?骞翠細鍛?65澶?缁堣韩浼氬憳姘镐箙浣跨敤涓嶈繃鏈熴€?/view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question1.png\"></image>\r\n\t\t\t\t<view class=\"text\">鏄惁浼氳嚜鍔ㄦ墸璐?/view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"titleBox\">\r\n\t\t\t\t<image src=\"/static/image/recharge/question2.png\"></image>\r\n\t\t\t\t<view class=\"text text1\">鎴戜滑涓嶄細鑷姩鎵h垂,浼氬憳鍒版湡鍚庨渶瑕佹偍鎵嬪姩缁垂銆?/view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n\r\n\t<view class=\"footer-container\">\r\n\t\t<view class=\"payment-method-box\">\r\n\t\t\t<view class=\"wx-pay payment-method\" v-for=\"(item, index) in data.payList\"\r\n\t\t\t\t@click=\"onSelectPayment(item.type)\" :key=\"index\">\r\n\t\t\t\t<image class=\"img-select\"\r\n\t\t\t\t\t:src=\"paymentMethod == item.type ? '/static/image/recharge/selected.png' : '/static/image/recharge/unselected.png'\">\r\n\t\t\t\t</image>\r\n\t\t\t\t<image class=\"logo\" :src=\"item.image\" mode=\"aspectFit\"></image>\r\n\t\t\t\t<text class=\"name\">{{ item.name }}</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"buttonBoxs \" :class=\"{ 'christmas': data.isChristmas }\">\r\n\t\t\t<view class=\"hongbao\" v-if=\"data.ishongBao\">\r\n\t\t\t\t<c-lottie ref=\"cLottieRef\" :loop=\"false\" src='/static/lottie/hongbao.json' width=\"100vw\"\r\n\t\t\t\t\theight='216vw'></c-lottie>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"button-box \" :class=\"{ 'white-flow': data.active_id > 0 }\">\r\n\t\t\t\t<view class=\"text\">\r\n\t\t\t\t\t鍚堣\r\n\t\t\t\t\t<text>锟?/text>\r\n\t\t\t\t\t<countUp :num=\"$toFiexd(data.price, 2)\" height=\"24\" style=\"margin-top: -6px;\" color=\"red\"\r\n\t\t\t\t\t\tfontSize='24'>\r\n\t\t\t\t\t</countUp>\r\n\t\t\t\t\t宸蹭紭鎯狅骏{{ $toFiexd(data.coupon, 0) }}\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"button\" @click=\"activateVip\">\r\n\t\t\t\t\t绔嬪嵆寮€閫歕r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"footerBottom\"></view>\r\n\t</view>\r\n\r\n\t<uni-popup ref=\"coupon\" type=\"center\" mask-background-color=\"rgb(0 0 0 / 70%)\" :is-mask-click=\"false\"\r\n\t\t:mask-click=\"false\">\r\n\t\t<view>\r\n\t\t\t<view class=\"coupon\" v-if=\"data.coupon\">\r\n\t\t\t\t<c-lottie ref=\"cLottieRef\" src='/static/lottie/coupon.json' width=\"100vw\" height='462px' :loop=\"false\"\r\n\t\t\t\t\t@Complete=\"Complete\"></c-lottie>\r\n\t\t\t</view>\r\n\t\t\t<transition name=\"scale\">\r\n\t\t\t\t<view v-if=\"!data.coupon\" class=\"animated-box\">\r\n\t\t\t\t\t<view class=\"couponBox\"\r\n\t\t\t\t\t\t:style=\"{ height: data.activity.length == 1 ? '266px' : (data.activity.length == 2 ? '358px' : '450px') }\">\r\n\r\n\t\t\t\t\t\t<image class=\"shadowBg\" src=\"/static/image/recharge/shadowBg.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t<view class=\"header\">\r\n\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"couponConten\"\r\n\t\t\t\t\t\t\t:style=\"{ height: data.activity.length == 1 ? '76px' : (data.activity.length == 2 ? '168px' : '260px') }\">\r\n\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<c-lottie ref=\"cLottieRef\" class=\"couponTop\" src='/static/lottie/couponTop.json' width=\"100vw\"\r\n\t\t\t\t\t\t\theight='390px'></c-lottie>\r\n\t\t\t\t\t\t<image class=\"colse\" src=\"/static/image/watermarkColse.png\" mode=\"\" @click=\"coupon.close()\">\r\n\t\t\t\t\t\t</image>\r\n\t\t\t\t\t\t<scroll-view class=\"listCoupon\" scroll-y=\"true\"\r\n\t\t\t\t\t\t\t:style=\"{ height: data.activity.length == 1 ? '92px' : (data.activity.length == 2 ? '184px' : '276px') }\">\r\n\t\t\t\t\t\t\t<view class=\"item\" v-for=\"(item, index) in data.activity\" :key=\"index\">\r\n\t\t\t\t\t\t\t\t<view class=\"left\">\r\n\t\t\t\t\t\t\t\t\t<text class=\"danwei\">{{ item.activity_type_name == '鎶樻墸鍒? ? '' : '锟? }}</text>\r\n\t\t\t\t\t\t\t\t\t<text class=\"AlibabaPuHuiTiBold\">{{ item.activity_type_name == '鎶樻墸鍒? ?\r\n\t\t\t\t\t\t\t\t\t\t((Number(item.activity_value) * 10) + '鎶?) : item.activity_value }}</text>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t\t\t\t\t{{ item.activity_type_name }}\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</scroll-view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"couponButton\" @click=\"submitActivity\">\r\n\t\t\t\t\t\t<c-lottie ref=\"cLottieRef\" src='/static/lottie/couponButton.json' width=\"305px\"\r\n\t\t\t\t\t\t\theight='86px'></c-lottie>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</transition>\r\n\t\t</view>\r\n\t</uni-popup>\r\n\t<view class=\"popup\">\r\n\t\t<uni-popup ref=\"popup\" type=\"bottom\" border-radius=\"10px 10px 0 0\" mask-background-color=\"rgb(0 0 0 / 70%)\">\r\n\t\t\t<view class=\"dialog-container\">\r\n\t\t\t\t<view class=\"top\">\r\n\t\t\t\t\t<view>浜瞺鎮ㄨ繕鏈夌鍒?/view>\r\n\t\t\t\t\t<view>鐪熺殑瑕佹斁寮冧紭鎯犲悧锛?/view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"content\">\r\n\t\t\t\t\t<div class=\"title-box\">\r\n\t\t\t\t\t\t<image class=\"decorative-line\" src=\"/static/image/recharge/dialogTitleLeft.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t<text class=\"title\">鎮ㄥ彲浜互涓嬫潈鐩?/text>\r\n\t\t\t\t\t\t<image class=\"decorative-line\" src=\"/static/image/recharge/dialogTitleRight.png\" mode=\"\">\r\n\t\t\t\t\t\t</image>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<view class=\"vip-benefits\">\r\n\t\t\t\t\t\t<view class=\"benefit-item\" v-for=\"(benefit, index) in dialogVipBenefits\" :key=\"index\">\r\n\t\t\t\t\t\t\t<image class=\"img\" :src=\"benefit.url\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<view class=\"name\">\r\n\t\t\t\t\t\t\t\t{{ benefit.name }}\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"timeDJS\" v-if=\"data.active_id\">\r\n\t\t\t\t\t\t<view class=\"titles\">璺濈浼樻儬缁撴潫</view>\r\n\t\t\t\t\t\t<uni-countdown :font-size=\"14\" :day=\"data.activeCoupon2.days\" :hour=\"data.activeCoupon2.hours\"\r\n\t\t\t\t\t\t\t:minute=\"data.activeCoupon2.minutes\" :second=\"data.activeCoupon2.seconds\" color=\"#FFFFFF\"\r\n\t\t\t\t\t\t\tbackground-color=\"#2A2617\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"button-box\">\r\n\t\t\t\t\t\t<view class=\"button\" @click=\"activateVip('back')\">\r\n\t\t\t\t\t\t\t寮€閫氫細鍛榎r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<text class=\"leave\" @click=\"back\">鍘绘剰宸插喅</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</uni-popup>\r\n\t</view>\r\n\t<uni-popup ref=\"myCoupon\" type=\"bottom\" :safeArea=\"false\" border-radius=\"10px 10px 0 0\"\r\n\t\tmask-background-color=\"rgb(0,0,0,0.8)\">\r\n\t\t<view class=\"myCouponContainer\" :style=\"{ height: proxy.$system == 'iOS' ? '400px' : '370px' }\">\r\n\t\t\t<scroll-view scroll-y=\"true\" class=\"myCouponBox\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<view class=\"item\" v-for=\"(item, index) in data.myActivity\" :key=\"index\"\r\n\t\t\t\t\t\t@click=\"(data.goods.price < (Number(item.threshold) / 100) && item.threshold != '') || !item.isStatus ? '' : setActiveId(item)\">\r\n\t\t\t\t\t\t<view class=\"left\"\r\n\t\t\t\t\t\t\t:class=\"{ left2: data.goods.price < (Number(item.threshold) / 100) || !item.isStatus }\">\r\n\t\t\t\t\t\t\t<view class=\"money\">\r\n\t\t\t\t\t\t\t\t<text v-if=\"item.coupon_type_name != '鎶樻墸鍒?\">锟?/text>\r\n\t\t\t\t\t\t\t\t<text class=\"moneys\">{{ item.coupon_type_name != '鎶樻墸鍒? ? (Number(item.coupon_value) /\r\n\t\t\t\t\t\t\t\t\t100) : ((Number(item.coupon_value) * 10) + '鎶?) }}</text>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"dec\">\r\n\t\t\t\t\t\t\t\t{{ item.threshold != '' ? ('婊? + (Number(item.threshold) / 100) + '鍙敤') : '鏃犻棬妲? }}\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"right\">\r\n\t\t\t\t\t\t\t<view class=\"titlebox\">\r\n\t\t\t\t\t\t\t\t<view class=\"title\">{{ item.coupon_name }}</view>\r\n\t\t\t\t\t\t\t\t<view class=\"dec\">鏈夋晥鏈熻嚦{{ item.expire_time }}</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<image\r\n\t\t\t\t\t\t\t\tv-if=\"(data.goods.price < (Number(item.threshold) / 100) && item.threshold != '') || !item.isStatus\"\r\n\t\t\t\t\t\t\t\tclass=\"checkedImg\" src=\"/static/image/recharge/checked1.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<image v-else-if=\"data.active_ids == item.id\" class=\"checkedImg\"\r\n\t\t\t\t\t\t\t\tsrc=\"/static/image/recharge/checked3.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<image v-else class=\"checkedImg\" src=\"/static/image/recharge/checked2.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"jjdq\" v-if=\"isToday(item.expire_times)\">\r\n\t\t\t\t\t\t\t鍗冲皢鍒版湡\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"ygq\" v-if=\"!item.isStatus\">\r\n\t\t\t\t\t\t\t宸茶繃鏈焅r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n\t\t\t<view class=\"btn\" @click=\"activeClick(true)\">\r\n\t\t\t\t纭畾\r\n\t\t\t</view>\r\n\t\t\t<image @click=\"activeClick(false)\" class=\"myCouponContainerClose\"\r\n\t\t\t\tsrc=\"/static/image/recharge/myCouponContainerClose.png\" mode=\"\"></image>\r\n\t\t</view>\r\n\t</uni-popup>\r\n</template>\r\n\r\n\r\n<script setup>\r\nimport customTab from \"@/components/custom-tab/custom-tab.vue\"\r\nimport countUp from \"@/components/countUp/countUp.vue\"\r\nimport {\r\n\tpostJson\r\n} from \"@/utils/requests.js\"\r\nimport {\r\n\tref,\r\n\treactive,\r\n\tgetCurrentInstance,\r\n\twatch,\r\n\tnextTick,\r\n\ttoRefs\r\n} from \"vue\";\r\nimport {\r\n\tonLoad,\r\n\tonShow,\r\n\tonReady,\r\n\tonPullDownRefresh,\r\n\tonReachBottom,\r\n\tonBackPress,\r\n\tonUnload\r\n} from \"@dcloudio/uni-app\";\r\nconst {\r\n\tappContext,\r\n\tproxy\r\n} = getCurrentInstance();\r\nconst popup = ref();\r\nconst coupon = ref();\r\nconst couponBox = ref();\r\nconst myCoupon = ref();\r\nconst dialogVipBenefits = [{\r\n\tname: \"妯℃嫙寰俊\",\r\n\turl: \"/static/image/recharge/moniweixinDialog.png\"\r\n},\r\n{\r\n\tname: \"鏃犲箍鍛奬",\r\n\turl: \"/static/image/recharge/wuguanggaoDialog.png\"\r\n},\r\n{\r\n\tname: \"鏃犳按鍗癨",\r\n\turl: \"/static/image/recharge/wushuiyinDialog.png\"\r\n},\r\n{\r\n\tname: \"涓撳睘瀹㈡湇\",\r\n\turl: \"/static/image/recharge/zhuanshukefuDialog.png\"\r\n}\r\n]\r\n\r\n// 濂楅鍒楄〃\r\nconst packageList = [{\r\n\tname: \"杩炵画鍖呮湀\",\r\n\tdelPrice: \"89\",\r\n\tprice: \"29\",\r\n\tlifespan: \"涓€鏈圽"\r\n},\r\n{\r\n\tname: \"杩炵画鍖呭\",\r\n\tdelPrice: \"189\",\r\n\tprice: \"98\",\r\n\tlifespan: \"涓€瀛"\r\n},\r\n{\r\n\tname: \"杩炵画鍖呭勾\",\r\n\tdelPrice: \"365\",\r\n\tprice: \"198\",\r\n\tlifespan: \"涓€骞碶"\r\n}\r\n]\r\n\r\nconst data = reactive({\r\n\tscrollLeft: 0,\r\n\tactive_id: 0,\r\n\tactive_ids: 0,\r\n\tactiveitems: {},\r\n\tcoupon: true,\r\n\tcurrentUrl: '',\r\n\tbackground: ['color1', 'color2', 'color3'],\r\n\tindicatorDots: false,\r\n\tautoplay: false,\r\n\tinterval: 5000,\r\n\tduration: 500,\r\n\t// 搴曢儴鎸夐挳鏂囧瓧\r\n\tbuttonText: '',\r\n\t// 濂楅閫夋嫨\r\n\tselected: 1,\r\n\t// 鏀粯鏂瑰紡閫夋嫨\r\n\tpaymentMethod: \"wxpay\",\r\n\t// banner鍒楄〃\r\n\tbannerList: [{\r\n\t\turl: \"/static/image/recharge/banner1.png\"\r\n\t}],\r\n\t// 浼氬憳鏉冪泭鍒楄〃\r\n\tbenefitList: [{\r\n\t\tname: \"鏃犲箍鍛奬",\r\n\t\turl: \"/static/image/recharge/icon1.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"鏃犳按鍗癨",\r\n\t\turl: \"/static/image/recharge/icon2.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"寰俊妯℃嫙\",\r\n\t\turl: \"/static/image/recharge/icon3.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"灏忓疂妯℃嫙\",\r\n\t\turl: \"/static/image/recharge/icon4.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"璞溅妯℃嫙\",\r\n\t\turl: \"/static/image/recharge/icon5.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"妯℃嫙鏉ョ數\",\r\n\t\turl: \"/static/image/recharge/icon6.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"瑙嗛缇よ亰\",\r\n\t\turl: \"/static/image/recharge/icon7.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"宸ヨ祫鍗昞",\r\n\t\turl: \"/static/image/recharge/icon8.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"韬唤璇乗",\r\n\t\turl: \"/static/image/recharge/icon9.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"鍙戝湀绱犳潗\",\r\n\t\turl: \"/static/image/recharge/icon10.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"鏈虹エ\",\r\n\t\turl: \"/static/image/recharge/icon11.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"楂橀搧琛╘",\r\n\t\turl: \"/static/image/recharge/icon12.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"鐭俊妯℃嫙\",\r\n\t\turl: \"/static/image/recharge/icon13.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"閫氳瘽妯℃嫙\",\r\n\t\turl: \"/static/image/recharge/icon14.png\"\r\n\t},\r\n\t{\r\n\t\tname: \"澶氳澶嘰",\r\n\t\turl: \"/static/image/recharge/icon15.png\"\r\n\t}\r\n\t],\r\n\tgoodsList: [],\r\n\tmyActivity: [],\r\n\tactiveCoupon: {},\r\n\tactiveCoupon2: {},\r\n\tuni_recharge_back: [],\r\n\tgoods: {},\r\n\tactivity: [],\r\n\tappUser: {},\r\n\tcountdown: true,\r\n\tisBack: true,\r\n\tpayList: [{\r\n\t\timage: '/static/image/recharge/wxpay.png',\r\n\t\tname: '寰俊鏀粯',\r\n\t\ttype: 'wxpay'\r\n\t},\r\n\t{\r\n\t\timage: '/static/image/recharge/alipay.png',\r\n\t\tname: '鏀粯瀹濇敮浠?,\r\n\t\ttype: 'alipay',\r\n\t}\r\n\t],\r\n\topen_number: 1,\r\n\tback_number: 1,\r\n\tprice: 0,\r\n\tcoupon: 0,\r\n\tishongBao: false,\r\n\tincrementTimer: null,\r\n\ttimeout: null,\r\n\tisChristmas: false,\r\n\t// 娣诲姞涓€涓爣蹇椾綅鏉ラ槻姝㈠揩閫熻繛缁偣鍑诲鑷寸殑浠锋牸鏄剧ず閿欒\r\n\tisProcessingClick: false,\r\n\tbanner: '/static/image/recharge/banner1.png',\r\n\tisCombo: false,\r\n\tsource: \"uni_alipay_other\"\r\n})\r\n\r\nlet {\r\n\tbuttonText,\r\n\tselected,\r\n\tbenefitList,\r\n\tnoticeList,\r\n\tcommentList,\r\n\tpaymentMethod,\r\n\tsource\r\n} = toRefs(data)\r\n\r\n/**\r\n * 杩斿洖鐩戝惉\r\n */\r\nonBackPress((e) => {\r\n\tif (e.from == 'backbutton' && data.appUser.vip == 1) {\r\n\t\topen()\r\n\t\treturn true; //闃绘杩斿洖\r\n\t}\r\n})\r\n\r\n\r\nonLoad(async (option) => {\r\n\tif (option.source) {\r\n\t\tdata.source = option.source\r\n\t}\r\n\tconst config = uni.getStorageSync('config').config\r\n\tconst themeConfig = config?.['client.uniapp.theme']\r\n\tif (themeConfig?.enable) {\r\n\t\tif (themeConfig?.theme == '0214') {\r\n\t\t\tdata.banner = '/static/image/recharge/214/bannar.png'\r\n\t\t\t// })\r\n\t\t} else if (themeConfig?.theme == '0217') {\r\n\t\t\tdata.banner = '/static/image/recharge/chunjie/bannar.png'\r\n\t\t} else if (themeConfig?.theme == '0405') {\r\n\t\t\tdata.banner = '/static/image/recharge/qmj/bannar.png'\r\n\t\t\tdata.benefitList.forEach(item => {\r\n\t\t\t\titem.url = item.url.replace('/static/image/recharge/',\r\n\t\t\t\t\t'/static/image/recharge/qmj/')\r\n\t\t\t})\r\n\t\t} else if (themeConfig?.theme == '0401') {\r\n\t\t\tdata.banner = '/static/image/recharge/yrj/bannar.png'\r\n\t\t}\r\n\t}\r\n\tlet pages = getCurrentPages();\r\n\tlet currentPage = pages[pages.length - 1];\r\n\tdata.currentUrl = proxy.$pageData[currentPage.route];\r\n\tuni.showLoading({\r\n\t\ttitle: '鍔犺浇涓?,\r\n\t\tmask: true // 娣诲姞閬僵闃叉鐢ㄦ埛鎿嶄綔\r\n\t});\r\n\tlet user = await proxy.$requestPromise({\r\n\t\turl: 'api/user',\r\n\t\tmethod: \"GET\",\r\n\t\tdata: {}\r\n\t})\r\n\tif (user.code == 0) {\r\n\t\tdata.appUser = user.data\r\n\t}\r\n\tlet goods = await proxy.$requestPromise({\r\n\t\turl: 'api/order/goods',\r\n\t\tmethod: \"GET\",\r\n\t\tdata: {\r\n\t\t\ttype: \"member\"\r\n\t\t}\r\n\t})\r\n\tconsole.log(goods)\r\n\tif (goods.code == 0) {\r\n\t\tdata.goodsList.forEach(item => {\r\n\t\t\titem['features'] = item['features'] || ''\r\n\t\t})\r\n\t\tdata.goodsList = goods.data\r\n\r\n\t\tlet zsItem = goods.data[0]\r\n\t\tlet zsIndex = 0\r\n\t\tlet checked = true\r\n\t\tgoods.data.forEach((item, index) => {\r\n\t\t\tif (item.checked && checked) {\r\n\t\t\t\tchecked = false\r\n\t\t\t\tzsItem = item\r\n\t\t\t\tzsIndex = index\r\n\t\t\t}\r\n\t\t})\r\n\t\tnextTick(() => {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tdata.scrollLeft = zsIndex * 120\r\n\t\t\t}, 100)\r\n\t\t})\r\n\t\tlet activity = await proxy.$requestPromise({\r\n\t\t\turl: 'api/activity/coupon',\r\n\t\t\tmethod: \"GET\",\r\n\t\t\tdata: {\r\n\t\t\t\tpage: 1,\r\n\t\t\t\tsize: 50,\r\n\t\t\t\tstatus: 1\r\n\t\t\t}\r\n\t\t})\r\n\t\tif (activity.data.total != 0) {\r\n\t\t\tactivity.data.items.forEach(item => {\r\n\t\t\t\tif (new Date(item.expire_time) < new Date()) {\r\n\t\t\t\t\titem['isStatus'] = false\r\n\t\t\t\t} else {\r\n\t\t\t\t\titem['isStatus'] = true\r\n\t\t\t\t}\r\n\t\t\t\titem['expire_times'] = item.expire_time\r\n\t\t\t\titem.expire_time = item.expire_time.replace('-', '.').replace('-', '.').substring(\r\n\t\t\t\t\t0, 10)\r\n\t\t\t})\r\n\t\t\tdata.myActivity = [\r\n\t\t\t\t...activity.data.items.filter(item => (item.threshold == '' || zsItem.price >= (Number(\r\n\t\t\t\t\titem\r\n\t\t\t\t\t\t.threshold) / 100)) && item.isStatus),\r\n\t\t\t\t...activity.data.items.filter(item => (zsItem.price < (Number(item.threshold) / 100) &&\r\n\t\t\t\t\titem\r\n\t\t\t\t\t\t.threshold != '') || !item.isStatus)\r\n\t\t\t]\r\n\t\t\tdata.myActivity = deduplicateKeepLast(data.myActivity)\r\n\t\t}\r\n\t\tawait onSelect(zsItem, zsIndex)\r\n\t}\r\n\tlet activity = await proxy.$requestPromise({\r\n\t\turl: 'api/activity',\r\n\t\tmethod: \"GET\",\r\n\t\tdata: {\r\n\t\t\tscene: 'uni_open_recharge'\r\n\t\t}\r\n\t})\r\n\tdata.activity = activity.data\r\n\tif (activity.data.length != 0) {\r\n\t\tcoupon.value.open()\r\n\t}\r\n\tuni.setStorageSync('open_number', data.open_number + 1);\r\n\tlet uni_recharge_back = await proxy.$requestPromise({\r\n\t\turl: 'api/activity',\r\n\t\tmethod: \"GET\",\r\n\t\tdata: {\r\n\t\t\tscene: 'uni_recharge_back'\r\n\t\t}\r\n\t})\r\n\tdata.uni_recharge_back = uni_recharge_back.data\r\n\tif (uni_recharge_back.data.length == 0) {\r\n\t\tdata.isBack = false\r\n\t}\r\n\tuni.hideLoading();\r\n\tif (uni.getStorageSync('onNativeEventReceive') != 'ok') {\r\n\t\tuni.setStorageSync('onNativeEventReceive', 'ok')\r\n\t\t//鐩戝惉瀹夸富浼犻€掓秷鎭痋r\n\t\tuni.onNativeEventReceive((event, data) => {\r\n\t\t\tif (event) {\r\n\t\t\t\tif (event == \"wx_pay_result\") {\r\n\t\t\t\t\tif (Number(data) == 0) {\r\n\t\t\t\t\t\tpaymentResult(uni.getStorageSync('orderId'), paymentMethod.value)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\ttitle: '鏀粯澶辫触'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (event == \"ios_pay_result\") {\r\n\t\t\t\t\tif (Number(data) == 0) {\r\n\t\t\t\t\t\tpaymentResult(uni.getStorageSync('orderId'), paymentMethod.value)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\ttitle: '鏀粯澶辫触'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log('鎺ユ敹鍒板涓籄pp娑堟伅-' + event + '锛? + data);\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\r\n})\r\n\r\nonShow(() => {\r\n\tif (data.isCombo) {\r\n\t\tuni.showModal({\r\n\t\t\ttitle: '鎻愮ず',\r\n\t\t\tcontent: '鏄惁鏀粯鎴愬姛锛?,\r\n\t\t\tcancelText: '鏈敮浠?,\r\n\t\t\tconfirmText: \"宸叉敮浠榎",\r\n\t\t\tsuccess: function (res) {\r\n\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\tconsole.log('鐢ㄦ埛鐐瑰嚮纭畾');\r\n\t\t\t\t\tpaymentResult(uni.getStorageSync('orderId'), paymentMethod.value)\r\n\t\t\t\t} else if (res.cancel) {\r\n\t\t\t\t\tconsole.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tdata.isCombo = false\r\n\t}\r\n})\r\nonUnload(() => {\r\n\t// uni.offNativeEventReceive()\r\n})\r\nonReady(() => {\r\n\ttry {\r\n\t\tif (plus.os.name === 'Android') {\r\n\t\t\tlet color = plus.android.newObject(\"android.graphics.Color\");\r\n\t\t\tlet activity = plus.android.runtimeMainActivity();\r\n\t\t\tlet colorInt = plus.android.invoke(color, \"parseColor\", '#fff'); // 璁剧疆涓烘鑹? \r\n\t\t\tlet window = plus.android.invoke(activity, \"getWindow\");\r\n\t\t\tplus.android.invoke(window, \"setNavigationBarColor\", colorInt);\r\n\t\t\tuni.setNavigationBarColor({\r\n\t\t\t\tanimation: { // 鍔ㄧ敾鏁堟灉\r\n\t\t\t\t\tduration: 100,\r\n\t\t\t\t\ttimingFunc: 'easeIn'\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tconsole.log(\"鐘舵€佹爮璁剧疆瀹屾瘯锛乗");\r\n\t\t\tsetTimeout(function () {\r\n\t\t\t\tuni.setNavigationBarColor({\r\n\t\t\t\t\tbackgroundColor: '#fff',\r\n\t\t\t\t\tanimation: { // 鍔ㄧ敾鏁堟灉\r\n\t\t\t\t\t\tduration: 100,\r\n\t\t\t\t\t\ttimingFunc: 'easeIn'\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}, 200);\r\n\t\t\tsetTimeout(function () {\r\n\t\t\t\tplus.navigator.setStatusBarStyle(\"light\");\r\n\t\t\t}, 200);\r\n\t\t}\r\n\t} catch (error) {\r\n\t\t//TODO handle the exception\r\n\t}\r\n})\r\n\r\n\r\n\r\nfunction isToday(inputTime) {\r\n\t// 鑾峰彇褰撳墠鏃ユ湡鐨勬椂闂存埑锛堝幓鎺夋椂鍒嗙锛塡r\n\tconst today = new Date();\r\n\ttoday.setHours(0, 0, 0, 0);\r\n\tconst todayTimestamp = today.getTime();\r\n\r\n\t// 澶勭悊杈撳叆鏃堕棿\r\n\tconst inputDate = new Date(inputTime);\r\n\tinputDate.setHours(0, 0, 0, 0);\r\n\tconst inputTimestamp = inputDate.getTime();\r\n\r\n\t// 姣旇緝鏃堕棿鎴砛r\n\treturn inputTimestamp === todayTimestamp;\r\n}\r\n\r\nfunction calculateTimeRemaining(targetTime) {\r\n\t// 鑾峰彇鐩爣鏃堕棿鍜屽綋鍓嶆椂闂寸殑鏃堕棿鎴砛r\n\tconst target = new Date(targetTime).getTime();\r\n\tconst now = new Date().getTime();\r\n\t// 璁畻鏃堕棿宸紙姣锛塡r\n\tconst difference = target - now;\r\n\t// 濡傛灉鐩爣鏃堕棿宸茶繃锛岃繑鍥?\r\n\tif (difference <= 0) {\r\n\t\treturn {\r\n\t\t\tdays: 0,\r\n\t\t\thours: 0,\r\n\t\t\tminutes: 0,\r\n\t\t\tseconds: 0\r\n\t\t};\r\n\t}\r\n\t// 璁$畻澶╂暟\r\n\tconst days = Math.floor(difference / (1000 * 60 * 60 * 24));\r\n\t// 璁畻鍓╀綑灏忔椂鏁癨r\n\tconst hours = Math.floor((difference % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));\r\n\t// 璁畻鍓╀綑鍒嗛挓鏁癨r\n\tconst minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));\r\n\t// 璁$畻鍓╀綑绉掓暟\r\n\tconst seconds = Math.floor((difference % (1000 * 60)) / 1000);\r\n\tconsole.log({\r\n\t\tdays: days,\r\n\t\thours: hours,\r\n\t\tminutes: minutes,\r\n\t\tseconds: seconds\r\n\t})\r\n\treturn {\r\n\t\tdays: days,\r\n\t\thours: hours,\r\n\t\tminutes: minutes,\r\n\t\tseconds: seconds\r\n\t};\r\n}\r\n\r\nfunction activeClick(status) {\r\n\tmyCoupon.value.close()\r\n\tif (status && data.active_ids > 0) {\r\n\t\tlet item = data.activeitems\r\n\t\tdata.activeCoupon = {\r\n\t\t\t...item,\r\n\t\t\t...calculateTimeRemaining(item.expire_times)\r\n\t\t}\r\n\t\tdata.countdown = false\r\n\t\tsetTimeout(() => {\r\n\t\t\tdata.countdown = true\r\n\t\t}, 100);\r\n\t\tdata.active_id = item.id\r\n\t\tsetTimeout(() => {\r\n\t\t\tsetPrice(true)\r\n\t\t}, 1000);\r\n\t}\r\n}\r\n\r\nfunction setActiveId(item) {\r\n\tdata.active_ids = item.id\r\n\tdata.activeitems = item\r\n}\r\n\r\nfunction setPrice(status) {\r\n\tconsole.log(\"setPrice\")\r\n\tif (data.incrementTimer) {\r\n\t\tclearInterval(data.incrementTimer);\r\n\t\tdata.incrementTimer = null\r\n\t}\r\n\tif (data.timeout) {\r\n\t\tclearInterval(data.timeout);\r\n\t\tdata.timeout = null\r\n\t}\r\n\tlet oldPrice = Number(data.goods.origin_price)\r\n\tdata.price = Number(data.goods.origin_price)\r\n\tconsole.log(\"寮€濮媆", data.price)\r\n\tlet price = 0\r\n\tlet origin_price = 0\r\n\tlet coupon = 0\r\n\tif (data.active_id == 0) {\r\n\t\tprice = Number(data.goods.price)\r\n\t\torigin_price = Number(data.goods.origin_price)\r\n\t\tcoupon = origin_price - price\r\n\t} else {\r\n\t\tprice = data.goods.price - (data.activeCoupon.coupon_type_name != '鎶樻墸鍒? ? (Number(data.activeCoupon\r\n\t\t\t.coupon_value) /\r\n\t\t\t100) : ((1 - Number(data.activeCoupon.coupon_value)) * data.goods.price))\r\n\t\tcoupon = (Number(data.goods.origin_price) - Number(data.goods.price)) + (Number(data.goods.price) - (data.goods\r\n\t\t\t.price - (data.activeCoupon.coupon_type_name != '鎶樻墸鍒? ? (Number(data.activeCoupon.coupon_value) /\r\n\t\t\t\t100) : ((\r\n\t\t\t\t\t1 - Number(data.activeCoupon.coupon_value)) * data.goods.price))))\r\n\t}\r\n\tdata.coupon = proxy.$toFiexd(coupon, 0)\r\n\tif (status) {\r\n\t\tif (data.active_id) {\r\n\t\t\tdata.ishongBao = true\r\n\t\t\tdata.timeout = setTimeout(() => {\r\n\t\t\t\tdata.ishongBao = false\r\n\t\t\t}, 1500);\r\n\t\t}\r\n\t\tdata.price = proxy.$toFiexd(price, 2)\r\n\t\tif (false) {\r\n\t\t\t// 淇鍏抽敭鐐癸細璁畻鍚堢悊鐨勯棿闅旀椂闂碶r\n\t\t\tconst priceDiff = Math.abs(oldPrice - price);\r\n\t\t\t// 纭繚闂撮殧鍦ㄥ悎鐞嗚寖鍥村唴锛?6ms-100ms锛塡r\n\t\t\tlet interval = 1000 / priceDiff;\r\n\t\t\tif (interval < 16) interval = 16; // 涓嶄綆浜?6ms\r\n\t\t\tif (interval > 100) interval = 100; // 涓嶉珮浜?00ms\r\n\t\t\tif (!isFinite(interval)) interval = 16; // 澶勭悊闄ら浂\r\n\t\t\tconsole.log(`闂撮殧: ${interval}ms`);\r\n\t\t\tdata.incrementTimer = setInterval(() => {\r\n\t\t\t\tif (oldPrice > price) {\r\n\t\t\t\t\tif (Number(data.price) > price) {\r\n\t\t\t\t\t\tif ((oldPrice - price) > 500) {\r\n\t\t\t\t\t\t\tdata.price -= 4\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tdata.price -= 1\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdata.isProcessingClick = false\r\n\t\t\t\t\t\tdata.price = proxy.$toFiexd(price, 2)\r\n\t\t\t\t\t\tclearInterval(data.incrementTimer);\r\n\t\t\t\t\t\tdata.incrementTimer = null\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (Number(data.price) < price) {\r\n\t\t\t\t\t\tdata.price = Number(data.price) + 1\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdata.isProcessingClick = false\r\n\t\t\t\t\t\tdata.price = proxy.$toFiexd(price, 2)\r\n\t\t\t\t\t\tclearInterval(data.incrementTimer);\r\n\t\t\t\t\t\tdata.incrementTimer = null\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(data.price)\r\n\t\t\t}, interval)\r\n\t\t}\r\n\r\n\t} else {\r\n\t\tdata.isProcessingClick = false\r\n\t\tdata.price = proxy.$toFiexd(price, 2)\r\n\t}\r\n\tconsole.log(\"鏈€鍚嶾", data.price)\r\n\r\n\r\n}\r\n/* 鑾峰彇鎴戠殑浼樻儬鍒?*/\r\nasync function getActivity() {\r\n\tlet activity = await proxy.$requestPromise({\r\n\t\turl: 'api/activity/coupon',\r\n\t\tmethod: \"GET\",\r\n\t\tdata: {\r\n\t\t\tpage: 1,\r\n\t\t\tsize: 50,\r\n\t\t\tstatus: 1\r\n\t\t}\r\n\t})\r\n\tif (activity.data.total != 0) {\r\n\t\tactivity.data.items.forEach(item => {\r\n\t\t\tif (new Date(item.expire_time) < new Date()) {\r\n\t\t\t\titem['isStatus'] = false\r\n\t\t\t} else {\r\n\t\t\t\titem['isStatus'] = true\r\n\t\t\t}\r\n\t\t})\r\n\t\tactivity.data.items.forEach(item => {\r\n\t\t\titem['expire_times'] = item.expire_time\r\n\t\t\titem.expire_time = item.expire_time.replace('-', '.').replace('-', '.').substring(0, 10)\r\n\t\t})\r\n\t\tdata.myActivity = [\r\n\t\t\t...activity.data.items.filter(item => (item.threshold == '' || data.goods.price >= (Number(item\r\n\t\t\t\t.threshold) /\r\n\t\t\t\t100) && item.isStatus)),\r\n\t\t\t...activity.data.items.filter(item => (data.goods.price < (Number(item.threshold) / 100) && item\r\n\t\t\t\t.threshold !=\r\n\t\t\t\t'') || !item.isStatus)\r\n\t\t]\r\n\t\tdata.myActivity = deduplicateKeepLast(data.myActivity)\r\n\t}\r\n}\r\n\r\nfunction deduplicateKeepLast(arr, idKey = 'id') {\r\n\tconst map = new Map();\r\n\r\n\tarr.forEach(item => {\r\n\t\tconst id = item[idKey];\r\n\t\tmap.set(id, item); // 鎬绘槸璁剧疆鏈€鏂扮殑鍊糪r\n\t});\r\n\r\n\treturn Array.from(map.values());\r\n}\r\n\r\n/* 棰嗗彇浼樻儬鍒?*/\r\nasync function submitActivity() {\r\n\tconsole.log(\"activity_id\");\r\n\tlet activity_id = ''\r\n\tdata.activity.forEach(item => {\r\n\t\tactivity_id += ',' + item.id\r\n\t})\r\n\tactivity_id = activity_id.replace(',', '')\r\n\tif (activity_id != \"\") {\r\n\t\tconsole.log(\"activity_id\", activity_id);\r\n\t\tlet activityRes = await postJson('q', 'api/activity', {\r\n\t\t\tactivity_id: activity_id //activity_id+\"=\"\r\n\t\t})\r\n\t\tconsole.log(activityRes)\r\n\t\tif (activityRes.code == 0) {\r\n\t\t\tcoupon.value.close()\r\n\t\t\tuni.showToast({\r\n\t\t\t\ticon: 'none',\r\n\t\t\t\ttitle: '棰嗗彇鎴愬姛'\r\n\t\t\t})\r\n\t\t\tgetActivity()\r\n\t\t} else {\r\n\t\t\tcoupon.value.close()\r\n\t\t\tuni.showToast({\r\n\t\t\t\ticon: 'none',\r\n\t\t\t\ttitle: '棰嗗彇澶辫触'\r\n\t\t\t})\r\n\t\t}\r\n\t} else {\r\n\t\tcoupon.value.close()\r\n\t\tuni.showToast({\r\n\t\t\ticon: 'none',\r\n\t\t\ttitle: '棰嗗彇澶辫触'\r\n\t\t})\r\n\t}\r\n\r\n}\r\n/**\r\n * @param {Object} item\r\n * @param {Object} index\r\n * 閫夋嫨璐拱濂楅\r\n */\r\n\r\n\r\n/* \r\n闃叉姈\r\n*/\r\nconst debouncedOnSelect = debounce((items, index) => {\r\n\tonSelect(items, index);\r\n}, 200, false);\r\n\r\nfunction debounce(func, wait, immediate = true) {\r\n\tlet timeout;\r\n\treturn function (...args) {\r\n\t\tconst later = () => {\r\n\t\t\ttimeout = null;\r\n\t\t\tif (!immediate) func(...args);\r\n\t\t};\r\n\r\n\t\tconst callNow = immediate && !timeout;\r\n\t\tclearTimeout(timeout);\r\n\t\ttimeout = setTimeout(later, wait);\r\n\r\n\t\tif (callNow) func(...args);\r\n\t};\r\n}\r\nasync function onSelect(items, index) {\r\n\tdata.active_id = 0\r\n\tdata.activeCoupon = {}\r\n\tdata.active_ids = 0\r\n\tdata.countdown = false\r\n\tdata.goods = items\r\n\tconsole.log(\"閫変腑鍟嗗搧\", data.goods)\r\n\tlet id = 0\r\n\tif (data.myActivity.length > 0) {\r\n\t\tlet defaultCoupon = data.myActivity.filter(item => item.activity_id == data.goods.default_activity)\r\n\t\tif (defaultCoupon.length > 0) {\r\n\t\t\tdefaultCoupon.forEach(item => {\r\n\t\t\t\tif ((data.goods.price >= (Number(item.threshold) / 100) || item.threshold == '') && item\r\n\t\t\t\t\t.isStatus) {\r\n\t\t\t\t\titem['price2'] = data.goods.price - (item.coupon_type_name != '鎶樻墸鍒? ? (Number(item\r\n\t\t\t\t\t\t.coupon_value) /\r\n\t\t\t\t\t\t100) : ((1 - Number(item.coupon_value)) * data.goods.price))\r\n\t\t\t\t} else {\r\n\t\t\t\t\titem['price2'] = 10000000\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tlet maxItem = defaultCoupon.reduce((min, curr) => curr.price2 < min.price2 ? curr : min)\r\n\t\t\tconsole.log(\"榛樿\", maxItem)\r\n\t\t\tif (maxItem.price2 != 10000000) {\r\n\t\t\t\tid = maxItem.id\r\n\t\t\t\tdata.activeitems = maxItem\r\n\t\t\t\tdata.activeCoupon = {\r\n\t\t\t\t\t...maxItem,\r\n\t\t\t\t\t...calculateTimeRemaining(maxItem.expire_times)\r\n\t\t\t\t}\r\n\r\n\t\t\t\tconsole.log(\"data.activeCoupon\", data.activeCoupon)\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (id == 0 && data.goods.default_activity != '') {\r\n\t\t\ttry {\r\n\t\t\t\tdata.myActivity.forEach(item => {\r\n\t\t\t\t\tif ((data.goods.price >= (Number(item.threshold) / 100) || item.threshold == '') &&\r\n\t\t\t\t\t\titem.isStatus) {\r\n\t\t\t\t\t\titem['price2'] = data.goods.price - (item.coupon_type_name != '鎶樻墸鍒? ? (Number(item\r\n\t\t\t\t\t\t\t.coupon_value) /\r\n\t\t\t\t\t\t\t100) : ((1 - Number(item.coupon_value)) * data.goods.price))\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\titem['price2'] = 10000000\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tlet maxItem = data.myActivity.reduce((min, curr) => curr.price2 < min.price2 ? curr : min)\r\n\t\t\t\tconsole.log(\"鍏朵粬\", maxItem)\r\n\t\t\t\tif (maxItem.price2 != 10000000) {\r\n\t\t\t\t\tid = maxItem.id\r\n\t\t\t\t\tdata.activeitems = maxItem\r\n\t\t\t\t\tdata.activeCoupon = {\r\n\t\t\t\t\t\t...maxItem,\r\n\t\t\t\t\t\t...calculateTimeRemaining(maxItem.expire_times)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.log(error)\r\n\t\t\t\t//TODO handle the exception\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tconsole.log(data.activeitems)\r\n\tconsole.log(data.active_id)\r\n\tdata.active_id = id\r\n\tdata.active_ids = id\r\n\tselected.value = index + 1\r\n\tbuttonText.value = `${items.price}鍏冧韩鍙?{items.goods_name}`\r\n\tif (items.pay_type != '') {\r\n\t\tlet list = items.pay_type.split(',').filter(cell => cell == 'alipay' || cell == 'weixin')\r\n\t\tif (list.length != 0) {\r\n\t\t\tlet listData = list.map(cell => {\r\n\t\t\t\treturn {\r\n\t\t\t\t\timage: cell == 'weixin' ? '/static/image/recharge/wxpay.png' :\r\n\t\t\t\t\t\t'/static/image/recharge/alipay.png',\r\n\t\t\t\t\tname: cell == 'weixin' ? '寰俊鏀粯' : '鏀粯瀹濇敮浠?,\r\n\t\t\t\t\ttype: cell == 'weixin' ? 'wxpay' : 'alipay'\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tdata.payList = listData\r\n\t\t} else {\r\n\t\t\tdata.payList = [{\r\n\t\t\t\timage: '/static/image/recharge/wxpay.png',\r\n\t\t\t\tname: '寰俊鏀粯',\r\n\t\t\t\ttype: 'wxpay'\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\timage: '/static/image/recharge/alipay.png',\r\n\t\t\t\tname: '鏀粯瀹濇敮浠?,\r\n\t\t\t\ttype: 'alipay',\r\n\t\t\t}\r\n\t\t\t]\r\n\t\t}\r\n\t} else {\r\n\t\tdata.payList = [{\r\n\t\t\timage: '/static/image/recharge/wxpay.png',\r\n\t\t\tname: '寰俊鏀粯',\r\n\t\t\ttype: 'wxpay'\r\n\t\t},\r\n\t\t{\r\n\t\t\timage: '/static/image/recharge/alipay.png',\r\n\t\t\tname: '鏀粯瀹濇敮浠?,\r\n\t\t\ttype: 'alipay',\r\n\t\t}\r\n\t\t]\r\n\t}\r\n\tpaymentMethod.value = data.payList[0].type\r\n\tsetTimeout(function () {\r\n\t\tdata.countdown = true\r\n\t}, 100);\r\n\tawait setPrice(true)\r\n\tawait getActivity()\r\n\r\n}\r\n/**\r\n * @param {Object} value\r\n * 閫夋嫨鏀粯鏂瑰紡\r\n */\r\nfunction onSelectPayment(value) {\r\n\tpaymentMethod.value = value\r\n}\r\n\r\nfunction open() {\r\n\r\n\tuni.setStorageSync('back_number', data.back_number + 1);\r\n\t// 閫氳繃缁勪欢瀹氫箟鐨剅ef璋冪敤uni-popup鏂规硶 ,濡傛灉浼犲叆鍙傛暟 锛宼ype 灞炴€у皢澶辨晥 锛屼粎鏀寔 ['top','left','bottom','right','center']\r\n\tif (!data.isBack) {\r\n\t\tproxy.$apiUserEvent('all', {\r\n\t\t\ttype: \"event\",\r\n\t\t\tkey: \"recharge_dialog\",\r\n\t\t\tvalue: \"杩斿洖鍏呭€奸〉寮圭獥\",\r\n\t\t\textra: {\r\n\t\t\t\tuni_version: proxy.$version\r\n\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\ttype: 'recharge_dialog',\r\n\t\t\tdata: {\r\n\t\t\t\tuni_version: proxy.$version\r\n\t\t\t}\r\n\t\t})\r\n\t\tdata.activeCoupon2 = calculateTimeRemaining(data.activeCoupon.expire_times)\r\n\t\tconsole.log(\"data.activeCoupon2: \" + JSON.stringify(data.activeCoupon2));\r\n\t\tpopup.value.open('center')\r\n\t} else {\r\n\r\n\t\tdata.isBack = false\r\n\t\tdata.activity = data.uni_recharge_back\r\n\t\tdata.coupon = false\r\n\t\tcoupon.value.open()\r\n\r\n\t}\r\n}\r\n\r\n/**\r\n * 闅忔満鐢熸垚閫氱煡鍒楄〃\r\n */\r\nfunction generateNoticeList() {\r\n\tnoticeList.value = []\r\n\tfor (let i = 0; i <= 10; i++) {\r\n\t\tnoticeList.value.push({\r\n\t\t\tuser: `鐢ㄦ埛${generateMaskedPhoneNumber()}`,\r\n\t\t\ttime: generateNaturalTimeAgo(),\r\n\t\t\tpackage: getRandomItem()\r\n\t\t})\r\n\t}\r\n}\r\n/**\r\n * 涓嬪崟鎷夊彇鏀粯\r\n */\r\nasync function activateVip(type = '') {\r\n\tif (type == 'back') {\r\n\t\tproxy.$apiUserEvent('all', {\r\n\t\t\ttype: \"click\",\r\n\t\t\tkey: \"recharge_dialog_pay\",\r\n\t\t\tvalue: \"杩斿洖寮圭獥椤靛紑閫氫細鍛樻寜閽甛",\r\n\t\t\textra: {\r\n\t\t\t\tuni_version: proxy.$version\r\n\t\t\t}\r\n\t\t}, {\r\n\t\t\ttype: 'recharge_dialog_pay',\r\n\t\t\tdata: {\r\n\t\t\t\tuni_version: proxy.$version\r\n\t\t\t}\r\n\t\t})\r\n\t}\r\n\tuni.showLoading({\r\n\t\ttitle: '鏀粯涓?,\r\n\t\tmask: true // 娣诲姞閬僵闃叉鐢ㄦ埛鎿嶄綔\r\n\t});\r\n\r\n\tuni.setStorageSync(\"UserEventOrder\", {\r\n\t\t\"璁㈠崟閲戦\": data.goods.price + '鍏?,\r\n\t\t\"璁㈠崟鍚嶇О\": data.goods.goods_name,\r\n\t\t\"鏀粯鏂瑰紡\": paymentMethod.value == \"wxpay\" ? '寰俊' : \"鏀粯瀹漒",\r\n\t})\r\n\r\n\tlet isComBo = uni.getStorageSync('isCombo') == 'ok'\r\n\tlet paymentRes = await postJson('a', 'api/order', {\r\n\t\tgoods_id: data.goods.goods_id,\r\n\t\tcoupon: data.active_id ? data.active_id : '',\r\n\t\tpay_type: paymentMethod.value == \"wxpay\" ? (data.goods.weixinMpOriId && isComBo ? 'combo' :\r\n\t\t\t'weixin') : \"alipay\",\r\n\t\t\"pay_source\": \"app\",\r\n\t\t// source: \"uni_alipay\",\r\n\t\tsource: data.source,\r\n\t})\r\n\r\n\r\n\r\n\tif (paymentRes.code == 0) {\r\n\t\tlet payData = {}\r\n\t\tif (paymentMethod.value == \"wxpay\") {\r\n\r\n\t\t\tif (data.goods.weixinMpOriId && isComBo) {\r\n\t\t\t\tconsole.log(paymentRes)\r\n\t\t\t\tlet SZappData = {\r\n\t\t\t\t\tweixinMpOriId: data.goods.weixinMpOriId,\r\n\t\t\t\t\toutTradeNo: paymentRes.data.outTradeNo\r\n\t\t\t\t}\r\n\t\t\t\tuni.setStorageSync('orderId', paymentRes.data.orderId)\r\n\t\t\t\tuni.sendNativeEvent('start_combo_pay', SZappData, ret => {\r\n\t\t\t\t\tconsole.log('瀹夸富App鍥炰紶鐨勬暟鎹細' + ret);\r\n\t\t\t\t});\r\n\t\t\t\tdata.isCombo = true\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\treturn\r\n\t\t\t} else {\r\n\t\t\t\tpayData = {\r\n\t\t\t\t\t\"appid\": paymentRes.data.appId, // 搴旂敤ID\r\n\t\t\t\t\t\"noncestr\": paymentRes.data.nonceStr, // 闅忔満瀛楃涓瞈r\n\t\t\t\t\t\"package\": \"Sign=WXPay\", // 鍥哄畾鍊糪r\n\t\t\t\t\t\"partnerid\": paymentRes.data.partnerId, // 鍟嗘埛鍙穃r\n\t\t\t\t\t\"prepayid\": paymentRes.data.prepayId, // 棰勬敮浠樹氦鏄撲細璇滻D\r\n\t\t\t\t\t\"timestamp\": Number(paymentRes.data.timeStamp), // 鏃堕棿鎴筹紙绉掞紒锛塡r\n\t\t\t\t\t\"sign\": paymentRes.data.sign // 绛惧悕\r\n\t\t\t\t}\r\n\t\t\t\tuni.setStorageSync('orderId', paymentRes.data.orderId)\r\n\t\t\t\t//瀹夊崜wx鏀粯寮€濮嬩紶閫掑紑濮媆r\n\t\t\t\tif (proxy.$system != 'iOS') {\r\n\t\t\t\t\tuni.sendNativeEvent('wx_pay_start_alipay', paymentRes.data.orderId, ret => {\r\n\t\t\t\t\t\tconsole.log('瀹夸富App鍥炰紶鐨勬暟鎹細' + ret);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tpayData = paymentRes.data.payParam\r\n\t\t\tuni.setStorageSync('orderId', paymentRes.data.orderId)\r\n\t\t}\r\n\t\t// ios 鏀粯鐢卞涓诲鐞?\r\n\t\tif (proxy.$system == 'iOS') {\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t}, 30000);\r\n\t\t\tuni.sendNativeEvent('paymentResData', JSON.stringify(paymentRes.data), ret => {\r\n\t\t\t\tconsole.log('瀹夸富App鍥炰紶鐨勬暟鎹細' + ret);\r\n\t\t\t});\r\n\t\t\treturn\r\n\t\t}\r\n\t\tuni.requestPayment({\r\n\t\t\tprovider: paymentMethod.value,\r\n\t\t\torderInfo: payData, //鏀粯瀹濊鍗曟暟鎹甛r\n\t\t\tsuccess: function (resss) {\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tuni.hideLoading();\r\n\t\t\t\t}, 30000);\r\n\t\t\t\tpaymentResult(paymentRes.data.orderId, paymentMethod.value)\r\n\t\t\t},\r\n\t\t\tfail: function (err) {\r\n\t\t\t\tproxy.$apiUserEvent('all', {\r\n\t\t\t\t\ttype: \"event\",\r\n\t\t\t\t\tkey: \"pay_fail\",\r\n\t\t\t\t\tvalue: \"鏀粯澶辫触\",\r\n\t\t\t\t\textra: {\r\n\t\t\t\t\t\tfrom: data.currentUrl,\r\n\t\t\t\t\t\t\"璁㈠崟鍙穃": paymentRes.data.orderId,\r\n\t\t\t\t\t\t\"璁㈠崟閲戦\": data.goods.price + '鍏?,\r\n\t\t\t\t\t\t\"璁㈠崟鍚嶇О\": data.goods.goods_name,\r\n\t\t\t\t\t\t\"鏀粯鏂瑰紡\": paymentMethod.value == \"wxpay\" ? '寰俊' : \"鏀粯瀹漒",\r\n\t\t\t\t\t\t\"鍘熷洜\": JSON.stringify(err),\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\ttype: 'pay_fail',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tfrom: data.currentUrl,\r\n\t\t\t\t\t\t\"璁㈠崟鍙穃": paymentRes.data.orderId,\r\n\t\t\t\t\t\t\"璁㈠崟閲戦\": data.goods.price + '鍏?,\r\n\t\t\t\t\t\t\"璁㈠崟鍚嶇О\": data.goods.goods_name,\r\n\t\t\t\t\t\t\"鏀粯鏂瑰紡\": paymentMethod.value == \"wxpay\" ? '寰俊' : \"鏀粯瀹漒",\r\n\t\t\t\t\t\t\"鍘熷洜\": JSON.stringify(err),\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\ttitle: '鏀粯澶辫触'\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t});\r\n\t} else {\r\n\t\tuni.hideLoading();\r\n\t\tuni.showToast({\r\n\t\t\ticon: 'none',\r\n\t\t\ttitle: '鏀粯澶辫触'\r\n\t\t})\r\n\t}\r\n\tsetTimeout(() => {\r\n\t\tuni.hideLoading();\r\n\t}, 10000);\r\n}\r\n\r\n\r\n// 鏀粯鐘舵€佽疆璇㈠嚱鏁癨r\nasync function paymentResult(orderId, paytype) {\r\n\tuni.hideLoading();\r\n\tuni.showLoading({\r\n\t\ttitle: '浼氬憳鍙戞斁鎺掗槦涓紝姝e湪瀹炴椂鍚戞湇鍔″櫒绱㈣锛岃鑰愬績绛夊緟銆?,\r\n\t\tmask: true\r\n\t});\r\n\r\n\tlet attempts = 0;\r\n\tconst maxAttempts = 10;\r\n\tconst pollInterval = 1000;\r\n\r\n\tconst poll = async () => {\r\n\t\ttry {\r\n\t\t\tlet orderInfo = await proxy.$requestPromise({\r\n\t\t\t\turl: 'api/order',\r\n\t\t\t\tmethod: \"GET\",\r\n\t\t\t\tdata: {\r\n\t\t\t\t\torder_id: orderId\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tconsole.log(\"璁㈠崟鐘舵€侊細\", orderInfo);\r\n\r\n\t\t\tif (orderInfo.code == 0 && orderInfo.data.status == 2) {\r\n\t\t\t\t// 鏀粯鎴愬姛\r\n\t\t\t\tuni.sendNativeEvent('pay_success', paymentMethod.value, ret => {\r\n\t\t\t\t\tconsole.log('瀹夸富App鍥炰紶鐨勬暟鎹細' + ret);\r\n\t\t\t\t});\r\n\r\n\t\t\t\tproxy.$apiUserEvent('all', {\r\n\t\t\t\t\ttype: \"event\",\r\n\t\t\t\t\tkey: \"pay_success\",\r\n\t\t\t\t\tvalue: \"鏀粯鎴愬姛\",\r\n\t\t\t\t\textra: {\r\n\t\t\t\t\t\tfrom: data.currentUrl,\r\n\t\t\t\t\t\t\"璁㈠崟鍙穃": orderId,\r\n\t\t\t\t\t\t\"璁㈠崟閲戦\": data.goods.price + '鍏?,\r\n\t\t\t\t\t\t\"璁㈠崟鍚嶇О\": data.goods.goods_name,\r\n\t\t\t\t\t\t\"鏀粯鏂瑰紡\": paymentMethod.value == \"wxpay\" ? '寰俊' : \"鏀粯瀹漒",\r\n\t\t\t\t\t}\r\n\t\t\t\t}, {\r\n\t\t\t\t\ttype: 'pay_success',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tfrom: data.currentUrl,\r\n\t\t\t\t\t\t\"璁㈠崟鍙穃": orderId,\r\n\t\t\t\t\t\t\"璁㈠崟閲戦\": data.goods.price + '鍏?,\r\n\t\t\t\t\t\t\"璁㈠崟鍚嶇О\": data.goods.goods_name,\r\n\t\t\t\t\t\t\"鏀粯鏂瑰紡\": paymentMethod.value == \"wxpay\" ? '寰俊' : \"鏀粯瀹漒",\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t// 淇锛氳繖閲屽簲璇ョ敤璧嬪€兼搷浣滐紝鍘熶唬鐮佺己灏戠瓑鍙穃r\n\t\t\t\tdata.appUser.vip = 2;\r\n\r\n\t\t\t\t// 鍒锋柊鐢ㄦ埛鏁版嵁\r\n\t\t\t\tawait proxy.$getUserInfo();\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: '鏀粯鎴愬姛',\r\n\t\t\t\t\ticon: 'success',\r\n\t\t\t\t\tduration: 2000\r\n\t\t\t\t});\r\n\r\n\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\tuni.navigateBack();\r\n\t\t\t\t}, 1000);\r\n\r\n\t\t\t\treturn; // 鎴愬姛鏃跺仠姝㈣疆璇r\n\t\t\t}\r\n\r\n\t\t\t// 妫€鏌ユ槸鍚﹁揪鍒版渶澶у皾璇曟鏁癨r\n\t\t\tif (attempts >= maxAttempts) {\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: '鏌ヨ瓒呮椂锛岃绋嶅悗鏌ョ湅',\r\n\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\tduration: 3000\r\n\t\t\t\t});\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t// 缁х画杞\r\n\t\t\tattempts++;\r\n\t\t\tsetTimeout(poll, pollInterval);\r\n\r\n\t\t} catch (error) {\r\n\t\t\tconsole.error(\"杞璇锋眰鍑洪敊:\", error);\r\n\r\n\t\t\t// 閿欒鏃朵篃妫€鏌ュ皾璇曟鏁癨r\n\t\t\tif (attempts >= maxAttempts) {\r\n\t\t\t\tuni.hideLoading();\r\n\t\t\t\tuni.showToast({\r\n\t\t\t\t\ttitle: '缃戠粶閿欒锛岃绋嶅悗鏌ョ湅璁㈠崟鐘舵€?,\r\n\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\tduration: 3000\r\n\t\t\t\t});\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tattempts++;\r\n\t\t\tsetTimeout(poll, pollInterval);\r\n\t\t}\r\n\t};\r\n\r\n\t// 寮€濮嬭疆璇r\n\tpoll();\r\n}\r\n\r\n// 闅忔満鎶藉彇涓€涓厓绱燶r\nfunction getRandomItem() {\r\n\tconst list = ['鏈堝害浼氬憳', '瀛e害浼氬憳', '骞村害浼氬憳'];\r\n\tconst randomIndex = Math.floor(Math.random() * list.length);\r\n\treturn list[randomIndex];\r\n}\r\n\r\n/**\r\n * 闅忔満鐢熸垚鏃堕棿鎻愮ず璇璡r\n */\r\nfunction generateNaturalTimeAgo() {\r\n\tconst weights = [{\r\n\t\trange: [1, 30],\r\n\t\tweight: 30,\r\n\t\tunit: '鍒嗛挓'\r\n\t}, // 1-30鍒嗛挓锛屾潈閲?0%\r\n\t{\r\n\t\trange: [31, 60],\r\n\t\tweight: 15,\r\n\t\tunit: '鍒嗛挓'\r\n\t}, // 31-60鍒嗛挓锛屾潈閲?5%\r\n\t{\r\n\t\trange: [1, 3],\r\n\t\tweight: 10,\r\n\t\tunit: '灏忔椂'\r\n\t}, // 1-3灏忔椂锛屾潈閲?0%\r\n\t{\r\n\t\trange: [4, 12],\r\n\t\tweight: 10,\r\n\t\tunit: '灏忔椂'\r\n\t}, // 4-12灏忔椂锛屾潈閲?0%\r\n\t{\r\n\t\trange: [1, 2],\r\n\t\tweight: 10,\r\n\t\tunit: '澶?\r\n\t}, // 1-2澶╋紝鏉冮噸10%\r\n\t{\r\n\t\trange: [3, 7],\r\n\t\tweight: 10,\r\n\t\tunit: '澶?\r\n\t}, // 3-7澶╋紝鏉冮噸10%\r\n\t{\r\n\t\trange: [1, 4],\r\n\t\tweight: 10,\r\n\t\tunit: '鍛?\r\n\t}, // 1-4鍛紝鏉冮噸10%\r\n\t{\r\n\t\trange: [1, 3],\r\n\t\tweight: 3,\r\n\t\tunit: '涓湀'\r\n\t}, // 1-12涓湀锛屾潈閲?%\r\n\t{\r\n\t\trange: [4, 12],\r\n\t\tweight: 2,\r\n\t\tunit: '涓湀'\r\n\t} // 1-12涓湀锛屾潈閲?%\r\n\t];\r\n\r\n\t// 璁畻鎬绘潈閲峔r\n\tconst totalWeight = weights.reduce((sum, item) => sum + item.weight, 0);\r\n\tlet random = Math.random() * totalWeight;\r\n\tlet selected;\r\n\r\n\t// 鏍规嵁鏉冮噸閫夋嫨鏃堕棿鑼冨洿\r\n\tfor (const item of weights) {\r\n\t\trandom -= item.weight;\r\n\t\tif (random <= 0) {\r\n\t\t\tselected = item;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\t// 鍦ㄩ€変腑鐨勮寖鍥村唴鐢熸垚闅忔満鍊糪r\n\tconst [min, max] = selected.range;\r\n\tconst amount = Math.floor(Math.random() * (max - min + 1)) + min;\r\n\r\n\treturn `${amount}${selected.unit}鍓峘;\r\n}\r\n\r\n/**\r\n * 闅忔満鐢熸垚鐢佃瘽鍙风爜\r\n */\r\nfunction generateMaskedPhoneNumber() {\r\n\t// 甯歌鎵嬫満鍙锋\r\n\tconst prefixes = [\r\n\t\t'130', '131', '132', '133', '134', '135', '136', '137', '138', '139',\r\n\t\t'145', '146', '147', '148', '149',\r\n\t\t'150', '151', '152', '153', '155', '156', '157', '158', '159',\r\n\t\t'165', '166', '167', '168',\r\n\t\t'170', '171', '172', '173', '174', '175', '176', '177', '178',\r\n\t\t'180', '181', '182', '183', '184', '185', '186', '187', '188', '189',\r\n\t\t'191', '198', '199'\r\n\t];\r\n\r\n\t// 闅忔満閫夋嫨鍙锋\r\n\tconst prefix = prefixes[Math.floor(Math.random() * prefixes.length)];\r\n\r\n\t// 鐢熸垚瀹屾暣鐨?1浣嶅彿鐮乗r\n\tlet fullNumber = prefix;\r\n\tfor (let i = 0; i < 11 - prefix.length; i++) {\r\n\t\tfullNumber += Math.floor(Math.random() * 10);\r\n\t}\r\n\r\n\t// 瀵逛腑闂?浣嶈繘琛屾帺鐮佸鐞嗭細鍓?浣?+ **** + 鍚?浣峔r\n\treturn fullNumber.replace(/(\\d{3})(\\d{4})(\\d{4})/, '$1****$3');\r\n}\r\n\r\n\r\n/**\r\n * 杩斿洖\r\n */\r\nfunction back() {\r\n\tproxy.$apiUserEvent('all', {\r\n\t\ttype: \"click\",\r\n\t\tkey: \"recharge_dialog_cancel\",\r\n\t\tvalue: \"鍘绘剰宸插喅\",\r\n\t\textra: {\r\n\t\t\tuni_version: proxy.$version\r\n\r\n\t\t}\r\n\t}, {\r\n\t\ttype: 'recharge_dialog_cancel',\r\n\t\tdata: {\r\n\t\t\tuni_version: proxy.$version\r\n\t\t}\r\n\t})\r\n\tuni.navigateBack();\r\n}\r\n\r\nfunction Complete() {\r\n\tdata.coupon = false\r\n\tconsole.log(\"鎾斁瀹屾垚\");\r\n}\r\n\r\nfunction shouldBeTrue(obj) {\r\n\t// 鎯呭喌1: 娌℃湁 features 瀛楁 鈫?杩斿洖 true\r\n\tif (!('features' in obj)) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// 鎯呭喌2: features 瀛楁瀛樺湪浣嗕负绌烘垨 undefined 鈫?杩斿洖 true\r\n\tif (!obj.features) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// 鎯呭喌3: features 瀛楁鍖呭惈 alipay 鈫?杩斿洖 true\r\n\tif (obj.features.includes('alipay')) {\r\n\t\treturn false;\r\n\t}\r\n\r\n\t// 鎯呭喌4: 鏈?features 瀛楁涓斾笉鍖呭惈 alipay 鈫?杩斿洖 false\r\n\treturn true;\r\n}\r\n</script>\r\n<style>\r\n@import \"@/common/main.css\";\r\n</style>\r\n<style lang=\"scss\" scoped>\r\n* {\r\n\tbox-sizing: content-box;\r\n}\r\n\r\n.couponBox {\r\n\twidth: 375px;\r\n\theight: 450px;\r\n\tposition: relative;\r\n\tz-index: 1;\r\n\r\n\t.shadowBg {\r\n\t\tposition: absolute;\r\n\t\twidth: 750px;\r\n\t\theight: 750px;\r\n\t\tleft: -187.5px;\r\n\t\ttop: -240px;\r\n\t\tz-index: -1;\r\n\t}\r\n\r\n\t.listCoupon {\r\n\t\tposition: absolute;\r\n\t\twidth: 244px;\r\n\t\theight: 276px;\r\n\t\tleft: 65.5px;\r\n\t\ttop: 157px;\r\n\t\toverflow: hidden;\r\n\t\toverflow-y: scroll;\r\n\r\n\t\t.item {\r\n\t\t\tposition: relative;\r\n\t\t\twidth: 244px;\r\n\t\t\theight: 74px;\r\n\t\t\tbackground-image: url('/static/image/recharge/couponItemBg.png');\r\n\t\t\tbox-shadow: 0px 0px 14px 0px rgba(255, 255, 255, 0.5);\r\n\t\t\tbackground-repeat: no-repeat;\r\n\t\t\tbackground-size: 244px 74px;\r\n\t\t\tmargin-top: 18px;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tcolor: #fff;\r\n\r\n\t\t\t.left {\r\n\t\t\t\twidth: 100px;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: flex-end;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\tfont-size: 22px;\r\n\r\n\t\t\t\t.AlibabaPuHuiTiBold {\r\n\t\t\t\t\tfont-size: 32px;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.danwei {\r\n\t\t\t\t\tmargin-left: 11px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.right {\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\twidth: 144px;\r\n\t\t\t\tfont-size: 24px;\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t}\r\n\r\n\t\t\t.tips {\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tline-height: 30px;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\twidth: 70px;\r\n\t\t\t\theight: 30px;\r\n\t\t\t\tbackground-image: url('/static/image/recharge/couponItemTips.png');\r\n\t\t\t\tbackground-repeat: no-repeat;\r\n\t\t\t\tbackground-size: 70px 30px;\r\n\t\t\t\tright: 7px;\r\n\t\t\t\ttop: -14px;\r\n\t\t\t\tcolor: #F97902;\r\n\t\t\t\tfont-size: 11px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.header {\r\n\t\theight: 198px;\r\n\t\tbackground-image: url('/static/image/recharge/couponHeaderBg.png');\r\n\t\tbackground-repeat: no-repeat;\r\n\t\tbackground-size: 375px 198px;\r\n\t\tz-index: 2;\r\n\t}\r\n\r\n\t.couponConten {\r\n\t\twidth: 300px;\r\n\t\theight: 252px;\r\n\t\tbackground-color: #FEF5D8;\r\n\t\tborder-radius: 0 0 42px 42px;\r\n\t\tmargin-left: calc(74px / 2);\r\n\t\tz-index: 2;\r\n\t}\r\n\r\n\t.colse {\r\n\t\tposition: absolute;\r\n\t\tright: 36px;\r\n\t\ttop: 36px;\r\n\t\twidth: 18px;\r\n\t\theight: 20px;\r\n\t\tz-index: 4;\r\n\t}\r\n\r\n\t.couponTop {\r\n\t\tposition: absolute;\r\n\t\twidth: 375px;\r\n\t\theight: 390px;\r\n\t\tleft: 0;\r\n\t\ttop: -145px;\r\n\t\tz-index: 3;\r\n\t}\r\n}\r\n\r\n.couponButton {\r\n\tposition: relative;\r\n\tmargin-top: 37px;\r\n\twidth: 305px;\r\n\theight: 86px;\r\n\tmargin-left: calc(50% - 152.5px);\r\n\tz-index: 4 !important;\r\n}\r\n\r\n.page-container {\r\n\tbackground-color: #F7F7F7;\r\n\tpadding-bottom: 240rpx;\r\n\tpadding-bottom: calc(240rpx + constant(safe-area-inset-bottom)) !important;\r\n\tpadding-bottom: calc(240rpx + env(safe-area-inset-bottom)) !important;\r\n\r\n\t.package-items-box {\r\n\t\tposition: relative;\r\n\t\tbackground-color: #F7F7F7;\r\n\t\tborder-radius: 16px 16px 0 0;\r\n\t\twidth: 100vw;\r\n\t\tmargin-top: -70px;\r\n\t\t// background: linear-gradient(to bottom, #FFFFFF, #F7F7F7);\r\n\t}\r\n\r\n\t.package-items-container {\r\n\t\tdisplay: flex;\r\n\t\tpadding: 40rpx 32rpx 40rpx 32rpx;\r\n\r\n\t\t.active-package-item-tips {\r\n\t\t\tposition: absolute;\r\n\t\t\tcontent: '闄愭椂浼樻儬';\r\n\t\t\ttop: -8px;\r\n\t\t\tleft: 14px;\r\n\t\t\tfont-size: 20rpx;\r\n\t\t\tcolor: #FFFFFF;\r\n\t\t\theight: 44rpx;\r\n\t\t\twidth: 112rpx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tborder-radius: 12px 12px 12px 0;\r\n\t\t\tbackground: linear-gradient(200deg, #FFCCA8 0%, #ff0000 100%);\r\n\r\n\t\t}\r\n\r\n\t\t.active-package-item::after {\r\n\t\t\tcontent: \"\";\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 0;\r\n\t\t\tright: 0;\r\n\t\t\tbottom: 0;\r\n\t\t\twidth: 88%;\r\n\t\t\tbackground-color: initial;\r\n\t\t\tborder-radius: 25%;\r\n\t\t\tz-index: 0;\r\n\t\t\theight: 1px;\r\n\t\t\tmargin: auto;\r\n\t\t\tborder-radius: 10%;\r\n\t\t\t// box-shadow: 0px 2px 10px 1px #b1b1b1;\r\n\t\t}\r\n\r\n\t\t.package-item {\r\n\t\t\tflex-shrink: 0;\r\n\t\t\tbox-sizing: border-box;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\twidth: 184rpx;\r\n\t\t\theight: 280rpx;\r\n\t\t\tbackground-image: url(\"/static/image/recharge/packagItemBg.png\");\r\n\t\t\tbackground-size: cover;\r\n\t\t\tmargin-right: 40rpx;\r\n\t\t\tpadding: 54rpx 0 0 0;\r\n\t\t\ttransition: width 0.2s, background-image 0.2s;\r\n\r\n\t\t\t// overflow: hidden;\r\n\t\t\t.top {\r\n\r\n\t\t\t\tpadding-left: 26rpx;\r\n\t\t\t\tfont-size: 24rpx;\r\n\r\n\t\t\t\t.title {\r\n\t\t\t\t\tfont-size: 24rpx;\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t\tcolor: #1A1A1A;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.del-text {\r\n\t\t\t\t\tcolor: #767676;\r\n\t\t\t\t\ttext-decoration: line-through;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.price-box {\r\n\t\t\t\tpadding-left: 26rpx;\r\n\t\t\t\tfont-family: 'WeChatSansStd';\r\n\t\t\t\tfont-size: 30rpx;\r\n\r\n\t\t\t\t.price {\r\n\t\t\t\t\tfont-size: 64rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.shen {\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\twidth: 184rpx;\r\n\t\t\t\theight: 24px;\r\n\t\t\t\tcolor: #AAAAAA;\r\n\t\t\t\tfont-size: 10px;\r\n\t\t\t\tline-height: 24px;\r\n\t\t\t\tfont-weight: bold;\r\n\t\t\t\twhite-space: nowrap;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.active-package-item {\r\n\t\t\tposition: relative;\r\n\t\t\twidth: 240rpx !important;\r\n\t\t\theight: 280rpx !important;\r\n\t\t\tbackground-image: url(\"/static/image/recharge/activePackagItemBg.png\") !important;\r\n\t\t\tbackground-position: center;\r\n\t\t\t/* 灞呬腑鏄剧ず鍥剧墖 */\r\n\t\t\tbackground-repeat: no-repeat;\r\n\r\n\t\t\t/* 闃叉鍥剧墖閲嶅 */\r\n\t\t\t.shen {\r\n\t\t\t\twidth: 240rpx !important;\r\n\t\t\t\tcolor: #D86C24;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\t.vip-benefits-container {\r\n\t\tposition: relative;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tborder-radius: 12px 12px 12px 12px;\r\n\t\toverflow: hidden;\r\n\t\tmargin: -73px 32rpx 24rpx 32rpx;\r\n\t\tbackground: linear-gradient(to bottom, rgba(0, 0, 0, 0), #fff);\r\n\r\n\t\t.content {\r\n\t\t\tmargin-top: -4px;\r\n\t\t\tpadding: 16px 0px 0 0;\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tflex-wrap: wrap;\r\n\t\t\talign-items: center;\r\n\t\t\tbackground-color: #FFFFFF;\r\n\r\n\t\t\t.benefit-item {\r\n\t\t\t\twidth: 25%;\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-direction: column;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tmargin-bottom: 16px;\r\n\r\n\t\t\t\t.img {\r\n\t\t\t\t\twidth: 76rpx;\r\n\t\t\t\t\theight: 76rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.name {\r\n\t\t\t\t\tfont-size: 10px;\r\n\t\t\t\t\tmargin-top: 16rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}\r\n\r\n\r\n\r\n\r\n\r\n}\r\n\r\n@keyframes vertical-scroll {\r\n\tfrom {\r\n\t\ttransform: translateY(100%);\r\n\t}\r\n\r\n\tto {\r\n\t\ttransform: translateY(-100%);\r\n\t}\r\n}\r\n\r\n.footer-container {\r\n\tposition: fixed;\r\n\tleft: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\tbackground-color: #FFFFFF;\r\n\tbox-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.3);\r\n\tpadding: 16rpx 32rpx;\r\n\tpadding-top: 40rpx;\r\n\tpadding-bottom: constant(safe-area-inset-bottom); // 鍏煎 IOS<11.2 \r\n\tpadding-bottom: env(safe-area-inset-bottom); // 鍏煎 IOS>11.2\r\n\r\n\t.payment-method-box {\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-around;\r\n\t\talign-items: center;\r\n\t\tpadding-bottom: 32rpx;\r\n\r\n\t\t.payment-method {\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\r\n\t\t\t.img-select {\r\n\t\t\t\tflex-shrink: 0 !important;\r\n\t\t\t\theight: 16px;\r\n\t\t\t\twidth: 16px;\r\n\t\t\t\tborder-radius: 50%;\r\n\t\t\t}\r\n\r\n\t\t\t.logo {\r\n\t\t\t\twidth: 36rpx;\r\n\t\t\t\theight: 36rpx;\r\n\t\t\t\tmargin-right: 10rpx;\r\n\t\t\t\tmargin-left: 18rpx;\r\n\t\t\t}\r\n\r\n\t\t\t.name {\r\n\t\t\t\tcolor: #767676;\r\n\t\t\t\tfont-size: 24rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.footerBottom {\r\n\t\twidth: 100%;\r\n\t\theight: 20px;\r\n\t}\r\n\r\n\t.buttonBoxs {\r\n\t\twidth: 100%;\r\n\t\theight: 104rpx;\r\n\t\tbackground-image: url('/static/image/recharge/bottom-button.png');\r\n\t\tbackground-position: center;\r\n\t\t/* 灞呬腑鏄剧ず鍥剧墖 */\r\n\t\tbackground-repeat: no-repeat;\r\n\t\t/* 闃叉鍥剧墖閲嶅 */\r\n\t\tbackground-size: cover;\r\n\t\tposition: relative;\r\n\r\n\t\t.hongbao {\r\n\t\t\tposition: absolute;\r\n\t\t\tleft: 0;\r\n\t\t\tbottom: -52rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.christmas {\r\n\t\t// background-image: url('/static/image/recharge/christmas/bottom-button.png');\r\n\t}\r\n\r\n\t.button-box {\r\n\t\tdisplay: flex;\r\n\r\n\t\t.text {\r\n\t\t\tflex: 1;\r\n\t\t\t// color: text;\r\n\t\t\t// text-align: center;\r\n\t\t\tcolor: #ffffff;\r\n\t\t\t// line-height: 104rpx;\r\n\t\t\tfont-size: 12px;\r\n\t\t\theight: 104rpx;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\r\n\t\t\ttext {\r\n\t\t\t\tcolor: red;\r\n\t\t\t}\r\n\r\n\t\t\t.price {\r\n\t\t\t\tfont-size: 24px;\r\n\t\t\t\tcolor: red;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.button {\r\n\t\t\tflex-shrink: 0;\r\n\t\t\topacity: 0;\r\n\t\t\ttext-align: center;\r\n\t\t\theight: 104rpx;\r\n\t\t\twidth: 32%;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.dialog-container {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\twidth: 80vw;\r\n\r\n\t.top {\r\n\t\tflex-shrink: 0;\r\n\t\tposition: relative;\r\n\t\ttop: 1px;\r\n\t\tbox-sizing: border-box;\r\n\t\tbackground-image: url('/static/image/recharge/dialogImg.png');\r\n\t\tbackground-size: cover;\r\n\t\twidth: 80vw;\r\n\t\theight: 260rpx;\r\n\t\tcolor: #FFFFFF;\r\n\t\tfont-size: 32rpx;\r\n\t\tline-height: 60rpx;\r\n\t\tpadding-left: 80rpx;\r\n\t\tpadding-top: 96rpx;\r\n\t}\r\n\r\n\t.content {\r\n\t\tflex: 1;\r\n\t\tflex-shrink: 0;\r\n\t\tpadding-bottom: 24rpx;\r\n\t\tborder-radius: 0 0 25px 25px;\r\n\t\tbackground: linear-gradient(150deg, #fef9f0 0%, #FEF3E1 21%, #FFDDAF 100%);\r\n\t\t// box-shadow: 10px 10px 15px #ffffff78;\r\n\t\tbox-shadow: 2px 5px 30px 5px #9f9f9f9e;\r\n\r\n\t\t.title-box {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tmargin-top: 2px;\r\n\r\n\t\t\t.title {\r\n\t\t\t\tmargin: 0 32rpx;\r\n\t\t\t}\r\n\r\n\t\t\t.decorative-line {\r\n\t\t\t\twidth: 68rpx;\r\n\t\t\t\theight: 6rpx;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.timeDJS {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: center;\r\n\t\t\talign-items: center;\r\n\t\t\tmargin-bottom: 15px;\r\n\r\n\t\t\t.titles {\r\n\t\t\t\tcolor: #FC3939;\r\n\t\t\t\tfont-size: 14px;\r\n\t\t\t\tmargin-right: 11px;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.vip-benefits {\r\n\t\t\tdisplay: flex;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tmargin: 24px 0;\r\n\t\t\tpadding: 0 32rpx;\r\n\r\n\t\t\t.benefit-item {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tflex-direction: column;\r\n\t\t\t\tjustify-content: center;\r\n\t\t\t\talign-items: center;\r\n\r\n\t\t\t\t.img {\r\n\t\t\t\t\twidth: 90rpx;\r\n\t\t\t\t\theight: 90rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.name {\r\n\t\t\t\t\tfont-size: 26rpx;\r\n\t\t\t\t\tmargin-top: 18rpx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.button-box {\r\n\t\t\tmargin: 0 44rpx;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\talign-items: center;\r\n\r\n\t\t\t.button {\r\n\t\t\t\tposition: relative;\r\n\t\t\t\tbox-sizing: border-box;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tfont-size: 20px;\r\n\t\t\t\tborder-radius: 50px;\r\n\t\t\t\theight: 52px;\r\n\t\t\t\tline-height: 52px;\r\n\t\t\t\tcolor: #FFFFFF;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tbackground: linear-gradient(360deg, #4B3F30 0%, #181713 56%, #504834 100%);\r\n\t\t\t}\r\n\r\n\t\t\t/* .button::before {\r\n\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\tcontent: \"闄愭椂浼樻儬\";\r\n\t\t\t\t\ttop: -10px;\r\n\t\t\t\t\tright: -15px;\r\n\t\t\t\t\tfont-size: 0.625rem;\r\n\t\t\t\t\tcolor: #FFFFFF;\r\n\t\t\t\t\theight: 1.375rem;\r\n\t\t\t\t\twidth: 3.5rem;\r\n\t\t\t\t\tdisplay: flex;\r\n\t\t\t\t\tjustify-content: center;\r\n\t\t\t\t\talign-items: center;\r\n\t\t\t\t\tborder-radius: 12px 12px 12px 0;\r\n\t\t\t\t\tbackground: linear-gradient(200deg, #FFCCA8 0%, #ff0000 100%);\r\n\t\t\t\t}\r\n */\r\n\t\t\t.leave {\r\n\t\t\t\tcolor: #767676;\r\n\t\t\t\tmargin-top: 8px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n}\r\n\r\n.back {\r\n\tposition: fixed;\r\n\ttop: 100rpx;\r\n\tleft: 36rpx;\r\n\tz-index: 1;\r\n}\r\n\r\n.uni-margin-wrap::after {\r\n\t// position: absolute;\r\n\t// content: '';\r\n\t// left: 0;\r\n\t// bottom: -1px;\r\n\t// width: 100%;\r\n\t// height: 18px;\r\n\t// background-color: #f7f7f7;\r\n\t// border-radius: 16px 16px 0px 0px;\r\n}\r\n\r\n.uni-margin-wrap {\r\n\t// position: relative;\r\n\theight: auto;\r\n\twidth: 100%;\r\n\tz-index: 0;\r\n\r\n\t::v-deep .uni-swiper-dots-horizontal {\r\n\t\tbottom: 60rpx;\r\n\r\n\t\t.uni-swiper-dot {\r\n\t\t\twidth: 8rpx;\r\n\t\t\theight: 8rpx;\r\n\t\t\tbackground-color: #FFFFFF;\r\n\t\t\topacity: 0.5;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t}\r\n\r\n\t\t.uni-swiper-dot-active {\r\n\t\t\topacity: 1;\r\n\t\t\twidth: 24rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.swiper {\r\n\t\theight: 244px;\r\n\t}\r\n\r\n\t.swiper-item {\r\n\t\tdisplay: block;\r\n\t\theight: 244px;\r\n\t\twidth: 100%;\r\n\t\ttext-align: center;\r\n\t}\r\n\r\n\t.swiper-list {\r\n\t\tmargin-top: 40rpx;\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n\r\n\t.uni-common-mt {\r\n\t\tmargin-top: 60rpx;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t.info {\r\n\t\tposition: absolute;\r\n\t\tright: 20rpx;\r\n\t}\r\n\r\n\t.uni-padding-wrap {\r\n\t\twidth: 550rpx;\r\n\t\tpadding: 0 100rpx;\r\n\t}\r\n\r\n}\r\n\r\n\r\n\r\n.placeholder {\r\n\t// display: none;\r\n\t// position: relative;\r\n\t// background-color: #f7f7f7;\r\n\t// width: 100%;\r\n\t// border-radius: 1rem 1rem 0 0;\r\n\t// left: 0;\r\n\t// bottom: 30rpx;\r\n}\r\n\r\n/* 鐢卞皬鍒板ぇ缂╂斁鍔ㄧ敾 */\r\n.animated-box {\r\n\tanimation: scaleIn 1s ease-out forwards;\r\n}\r\n\r\n/* 寤惰繜鍔ㄧ敾 */\r\n.scale-in-delay {\r\n\tanimation: scaleIn 0.5s ease-out 0.2s forwards;\r\n}\r\n\r\n/* 鍔ㄧ敾鍏抽敭甯у畾涔?*/\r\n@keyframes scaleIn {\r\n\t0% {\r\n\t\ttransform: scale(0);\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\t50% {\r\n\t\ttransform: scale(1.05);\r\n\t}\r\n\r\n\t100% {\r\n\t\ttransform: scale(1);\r\n\t\topacity: 1;\r\n\t}\r\n}\r\n\r\n.iosQuestion {\r\n\t.titleBox {\r\n\t\t.image {\r\n\t\t\tmargin-top: 3px !important;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.question {\r\n\tmargin: 20rpx 32rpx;\r\n\tpadding: 17px 13px;\r\n\tbackground-color: #FFFFFF;\r\n\tborder-radius: 10px 10px 10px 10px;\r\n\r\n\t.titles {\r\n\t\ttext-align: center;\r\n\t\tfont-family: PingFang SC, PingFang SC;\r\n\t\tfont-weight: bold;\r\n\t\tfont-size: 12px;\r\n\t\tbackground-image: -webkit-linear-gradient(bottom, #6E430F, #1A1A1A);\r\n\t\t-webkit-background-clip: text;\r\n\t\t-webkit-text-fill-color: transparent;\r\n\t}\r\n\r\n\t.titleBox {\r\n\t\tdisplay: flex;\r\n\t\tmargin-top: 10px;\r\n\r\n\t\timage {\r\n\t\t\twidth: 10px;\r\n\t\t\theight: 10px;\r\n\t\t\tmargin-top: 1px;\r\n\t\t}\r\n\r\n\t\t.text {\r\n\t\t\tmargin-left: 5px;\r\n\t\t\twidth: calc(100% - 15px);\r\n\t\t\tfont-size: 11px;\r\n\t\t\tcolor: #767676;\r\n\t\t}\r\n\r\n\t\t.text1 {\r\n\t\t\tcolor: #AAAAAA;\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.myCouponList {\r\n\tmargin: 20rpx 32rpx;\r\n\tpadding: 17px 13px;\r\n\theight: 18px;\r\n\tbackground-color: #FFFFFF;\r\n\tborder-radius: 10px 10px 10px 10px;\r\n\tdisplay: flex;\r\n\tjustify-content: space-between;\r\n\talign-items: center;\r\n\toverflow: hidden;\r\n\r\n\t.left {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tfont-weight: bold;\r\n\r\n\t\timage {\r\n\t\t\twidth: 23px;\r\n\t\t\theight: 17px;\r\n\t\t\tmargin-right: 8px;\r\n\t\t}\r\n\r\n\t\t.title {\r\n\t\t\tmargin-top: 3px;\r\n\t\t\tdisplay: inline-block;\r\n\t\t\t/* 纭繚鏂囧瓧鍙互搴旂敤鑳屾櫙 */\r\n\t\t\tbackground: linear-gradient(to right, #6E430F, #1A1A1A);\r\n\t\t\t/* 浠庡乏鍒板彸鐨勬笎鍙?*/\r\n\t\t\t-webkit-background-clip: text;\r\n\t\t\t/* 浠呰鍓枃鏈儴鍒?*/\r\n\t\t\tcolor: transparent;\r\n\t\t\t/* 鏂囨湰棰滆壊璁剧疆涓洪€忔槑锛屼互鏄剧ず鑳屾櫙娓愬彉 */\r\n\t\t\tfont-size: 14px;\r\n\t\t\t/* 鏍规嵁闇€瑕佽皟鏁村瓧浣撳ぇ灏?*/\r\n\t\t}\r\n\r\n\t\t.money {\r\n\t\t\tmargin-top: 1px;\r\n\t\t\tfont-family: 'PingFangSC-Semibold';\r\n\t\t\tfont-weight: bold;\r\n\t\t\tcolor: #FC3939;\r\n\t\t\tfont-size: 16px;\r\n\t\t}\r\n\t}\r\n\r\n\t.right {\r\n\t\tcolor: #767676;\r\n\t\tfont-size: 12px;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\r\n\t\t.forward {\r\n\t\t\tmargin-left: 8px;\r\n\t\t}\r\n\r\n\t\t.forward2 {\r\n\t\t\tmargin: 0;\r\n\t\t}\r\n\r\n\t\t.timeBox {\r\n\t\t\t.titles {\r\n\t\t\t\ttext-align: right;\r\n\t\t\t\tcolor: #FC3939;\r\n\t\t\t\tfont-size: 10px;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n.myCouponContainer {\r\n\twidth: calc(100% - 52px);\r\n\theight: 400px;\r\n\tbackground-image: url('/static/image/recharge/myCouponContainerBg.png');\r\n\tbackground-size: 100% 100%;\r\n\tbackground-repeat: no-repeat;\r\n\tpadding: 0 26px;\r\n\tpadding-top: 150px;\r\n\tposition: relative;\r\n\r\n\t.myCouponContainerClose {\r\n\t\tposition: absolute;\r\n\t\twidth: 34px;\r\n\t\theight: 34px;\r\n\t\ttop: -27px;\r\n\t\tright: 16px;\r\n\t}\r\n\r\n\t.myCouponBox {\r\n\t\theight: 282px;\r\n\t\toverflow-y: scroll;\r\n\r\n\t\t.item {\r\n\t\t\twidth: calc(100% - 12px);\r\n\t\t\theight: 62px;\r\n\t\t\tbackground-color: #fff;\r\n\t\t\tborder-radius: 8px 8px 8px 8px;\r\n\t\t\tpadding: 6px;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\tmargin-bottom: 12px;\r\n\t\t\tposition: relative;\r\n\r\n\t\t\t.jjdq {\r\n\t\t\t\twidth: 52px;\r\n\t\t\t\theight: 18px;\r\n\t\t\t\tbackground: linear-gradient(194deg, #FFCCA8 0%, #FE3D32 100%);\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tright: 0;\r\n\t\t\t\ttop: 0;\r\n\t\t\t\tborder-radius: 0 8px 0 8px;\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tfont-size: 10px;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t}\r\n\r\n\t\t\t.ygq {\r\n\t\t\t\twidth: 52px;\r\n\t\t\t\theight: 18px;\r\n\t\t\t\tbackground: #AAAAAA;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tright: 0;\r\n\t\t\t\ttop: 0;\r\n\t\t\t\tborder-radius: 0 8px 0 8px;\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tfont-size: 10px;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tline-height: 18px;\r\n\t\t\t}\r\n\r\n\t\t\t.left {\r\n\t\t\t\twidth: 110px;\r\n\t\t\t\theight: 62px;\r\n\t\t\t\tbackground: #FFEDED;\r\n\t\t\t\tborder-radius: 6px 6px 6px 6px;\r\n\t\t\t\ttext-align: center;\r\n\r\n\t\t\t\t.money {\r\n\t\t\t\t\tmargin-top: 4px;\r\n\t\t\t\t\tcolor: #FF3838;\r\n\t\t\t\t\tfont-size: 16px;\r\n\r\n\t\t\t\t\t.moneys {\r\n\t\t\t\t\t\tfont-size: 28px;\r\n\t\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.dec {\r\n\t\t\t\t\tmargin-top: 1px;\r\n\t\t\t\t\tcolor: #FF3838;\r\n\t\t\t\t\tfont-size: 11px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.left2 {\r\n\t\t\t\tbackground-color: #EDEDED;\r\n\r\n\t\t\t\t.money {\r\n\t\t\t\t\tcolor: #8A8A8A;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.dec {\r\n\t\t\t\t\tcolor: #8A8A8A;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.right {\r\n\t\t\t\twidth: calc(100% - 126px);\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\tpadding-right: 7px;\r\n\r\n\t\t\t\t.titlebox {\r\n\t\t\t\t\t.titlle {\r\n\t\t\t\t\t\tmargin-top: 13px;\r\n\t\t\t\t\t\tcolor: #3D3D3D;\r\n\t\t\t\t\t\tfont-size: 16px;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t.dec {\r\n\t\t\t\t\t\tmargin-top: 8px;\r\n\t\t\t\t\t\tcolor: #AAAAAA;\r\n\t\t\t\t\t\tfont-size: 11px;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.checkedImg {\r\n\t\t\t\t\twidth: 26px;\r\n\t\t\t\t\theight: 26px;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.btn {\r\n\t\tmargin-top: 18px;\r\n\t\theight: 52px;\r\n\t\tbackground: linear-gradient(360deg, #4B3F30 0%, #181713 56%, #504834 100%);\r\n\t\tborder-radius: 508px 508px 508px 508px;\r\n\t\ttext-align: center;\r\n\t\tline-height: 52px;\r\n\t\tcolor: #fff;\r\n\t\tfont-size: 20px;\r\n\t}\r\n}\r\n\r\n.white-flow {\r\n\tbackground: linear-gradient(-45deg, transparent, transparent, transparent, transparent, transparent, transparent, transparent, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2), transparent, transparent, transparent, transparent, transparent, transparent, transparent);\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-size: 60% 100%;\r\n\tanimation: flow 2s infinite linear;\r\n}\r\n\r\n@keyframes flow {\r\n\t0% {\r\n\t\tbackground-position: -100% 0;\r\n\t}\r\n\r\n\t100% {\r\n\t\tbackground-position: 200% 0;\r\n\t}\r\n}\r\n\r\n::v-deep .uni-countdown-day {\r\n\twidth: auto !important;\r\n\tcolor: #2A2617 !important;\r\n\t/* 渚嬪锛屽皢鏂囧瓧棰滆壊鏀逛负绾㈣壊 */\r\n\tbackground-color: transparent !important;\r\n\tmargin-right: 0 !important;\r\n\tpadding-right: 0 !important;\r\n}\r\n\r\n::v-deep .uni-countdown-splitor-day {\r\n\tmargin-left: 0 !important;\r\n}\r\n\r\n.yanhua {\r\n\tposition: fixed;\r\n\ttop: 170px;\r\n\tleft: 15px;\r\n\tz-index: 999999;\r\n}\r\n\r\n.vipContent {\r\n\tbackground-color: #fff;\r\n\tmargin-left: 16px;\r\n\twidth: calc(100% - 32px);\r\n\tborder-radius: 16px;\r\n\tmargin-bottom: 20rpx;\r\n\r\n\t.top {\r\n\t\timage {\r\n\t\t\twidth: 100%;\r\n\t\t}\r\n\t}\r\n\r\n\t.vipList {\r\n\t\tdisplay: flex;\r\n\t\tflex-wrap: wrap;\r\n\t\tpadding: 0 10px 10px 10px;\r\n\r\n\t\t.item {\r\n\t\t\twidth: 20%;\r\n\t\t\theight: 75px;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: column;\r\n\t\t\talign-items: center;\r\n\t\t\tjustify-content: center;\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 38px;\r\n\t\t\t\theight: 38px;\r\n\t\t\t}\r\n\r\n\t\t\ttext {\r\n\t\t\t\tmargin-top: 5px;\r\n\t\t\t\tfont-size: 10px;\r\n\t\t\t\tcolor: #1A1A1A;\r\n\t\t\t\tline-height: 15px;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n@font-face {\r\n\tfont-family: 'AlipayNumber'; //瀛椾綋鍚嶇О\r\n\tsrc: url('/static/font/AlipayNumber.ttf');\r\n}\r\n\r\n.wx-font-regular {\r\n\tfont-family: 'AlipayNumber' !important;\r\n}\r\n</style>","usedDeprecatedRules":[{"ruleId":"no-extra-semi","replacedBy":[]},{"ruleId":"no-mixed-spaces-and-tabs","replacedBy":[]}]}]