xiaoe_mp_npm 0.0.28-t1206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +11 -0
- package/.eslintrc.js +102 -0
- package/.gitlab-ci.yml +42 -0
- package/.prettierrc.js +8 -0
- package/LICENSE +21 -0
- package/README.md +134 -0
- package/gulpfile.js +26 -0
- package/package.json +77 -0
- package/project.config.json +77 -0
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.js +104 -0
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.json +4 -0
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +22 -0
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +82 -0
- package/src/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.js +227 -0
- package/src/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.json +4 -0
- package/src/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.wxml +64 -0
- package/src/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.wxss +167 -0
- package/src/AliveInvite/LiveRoomVertical/components/rewards/rewards.js +116 -0
- package/src/AliveInvite/LiveRoomVertical/components/rewards/rewards.json +4 -0
- package/src/AliveInvite/LiveRoomVertical/components/rewards/rewards.wxml +36 -0
- package/src/AliveInvite/LiveRoomVertical/components/rewards/rewards.wxss +104 -0
- package/src/AliveInvite/LiveRoomVertical/components/rules/rules.js +80 -0
- package/src/AliveInvite/LiveRoomVertical/components/rules/rules.json +4 -0
- package/src/AliveInvite/LiveRoomVertical/components/rules/rules.wxml +14 -0
- package/src/AliveInvite/LiveRoomVertical/components/rules/rules.wxss +41 -0
- package/src/AliveInvite/LiveRoomVertical/index.js +246 -0
- package/src/AliveInvite/LiveRoomVertical/index.json +9 -0
- package/src/AliveInvite/LiveRoomVertical/index.less +276 -0
- package/src/AliveInvite/LiveRoomVertical/index.wxml +142 -0
- package/src/AliveInvite/LiveRoomVertical/index.wxss +276 -0
- package/src/AliveInvite/LiveRoomVertical/libs/base64.js +234 -0
- package/src/AliveInvite/images/copylink.png +0 -0
- package/src/AliveInvite/images/cup.png +0 -0
- package/src/AliveInvite/images/icon_arrow_right_white.png +0 -0
- package/src/AliveInvite/images/icon_arrow_up.png +0 -0
- package/src/AliveInvite/images/invite_entrance/new_crown_blue_pure.svg +29 -0
- package/src/AliveInvite/images/invite_entrance/new_crown_pink_pure.svg +29 -0
- package/src/AliveInvite/images/invite_entrance/new_crown_yellow_pure.svg +27 -0
- package/src/AliveInvite/images/liveClose.png +0 -0
- package/src/AliveInvite/images/new_emptypage.svg +59 -0
- package/src/AliveInvite/images/new_icon_close.png +0 -0
- package/src/AliveInvite/images/new_invite_title.svg +23 -0
- package/src/AliveInvite/images/new_share_icon.png +0 -0
- package/src/AliveInvite/images/rank_first.svg +11 -0
- package/src/AliveInvite/images/rank_second.svg +11 -0
- package/src/AliveInvite/images/rank_third.svg +11 -0
- package/src/AliveInvite/images/wechat.png +0 -0
- package/src/ConfirmOrder/README.md +12 -0
- package/src/ConfirmOrder/components/AddressEdit/index.js +341 -0
- package/src/ConfirmOrder/components/AddressEdit/index.json +11 -0
- package/src/ConfirmOrder/components/AddressEdit/index.less +76 -0
- package/src/ConfirmOrder/components/AddressEdit/index.wxml +39 -0
- package/src/ConfirmOrder/components/AddressEdit/index.wxss +61 -0
- package/src/ConfirmOrder/components/AddressManage/index.js +158 -0
- package/src/ConfirmOrder/components/AddressManage/index.json +8 -0
- package/src/ConfirmOrder/components/AddressManage/index.less +94 -0
- package/src/ConfirmOrder/components/AddressManage/index.wxml +37 -0
- package/src/ConfirmOrder/components/AddressManage/index.wxss +82 -0
- package/src/ConfirmOrder/components/AddressSelect/index.js +160 -0
- package/src/ConfirmOrder/components/AddressSelect/index.json +4 -0
- package/src/ConfirmOrder/components/AddressSelect/index.less +78 -0
- package/src/ConfirmOrder/components/AddressSelect/index.wxml +33 -0
- package/src/ConfirmOrder/components/AddressSelect/index.wxss +65 -0
- package/src/ConfirmOrder/components/ChoosePicker/index.js +110 -0
- package/src/ConfirmOrder/components/ChoosePicker/index.json +6 -0
- package/src/ConfirmOrder/components/ChoosePicker/index.less +21 -0
- package/src/ConfirmOrder/components/ChoosePicker/index.wxml +10 -0
- package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +766 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.less +11 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +171 -0
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +9 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.js +72 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.json +6 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.less +45 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxml +18 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +39 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/filter.wxs +8 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.js +92 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.json +4 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.less +109 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxml +29 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +96 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.js +78 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.json +7 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.less +34 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxml +24 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +29 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +87 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.json +4 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.less +14 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxml +4 -0
- package/src/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +13 -0
- package/src/ConfirmOrder/components/GoodsInfo/filter.wxs +7 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.js +415 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.json +9 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.less +181 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.wxml +74 -0
- package/src/ConfirmOrder/components/GoodsInfo/index.wxss +155 -0
- package/src/ConfirmOrder/components/Header/index.js +50 -0
- package/src/ConfirmOrder/components/Header/index.json +6 -0
- package/src/ConfirmOrder/components/Header/index.less +20 -0
- package/src/ConfirmOrder/components/Header/index.wxml +10 -0
- package/src/ConfirmOrder/components/Header/index.wxss +19 -0
- package/src/ConfirmOrder/components/InfoCollect/index.js +107 -0
- package/src/ConfirmOrder/components/InfoCollect/index.json +6 -0
- package/src/ConfirmOrder/components/InfoCollect/index.less +0 -0
- package/src/ConfirmOrder/components/InfoCollect/index.wxml +13 -0
- package/src/ConfirmOrder/components/InfoCollect/index.wxss +1 -0
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.js +85 -0
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.json +4 -0
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.less +64 -0
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxml +31 -0
- package/src/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +57 -0
- package/src/ConfirmOrder/components/IntegralSelect/filter.wxs +7 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.js +83 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.json +8 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.less +55 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.wxml +27 -0
- package/src/ConfirmOrder/components/IntegralSelect/index.wxss +47 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.js +275 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.json +7 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.less +132 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxml +86 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +111 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.js +33 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.json +6 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.less +47 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxml +17 -0
- package/src/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +42 -0
- package/src/ConfirmOrder/components/Invoice/index.js +155 -0
- package/src/ConfirmOrder/components/Invoice/index.json +7 -0
- package/src/ConfirmOrder/components/Invoice/index.less +16 -0
- package/src/ConfirmOrder/components/Invoice/index.wxml +22 -0
- package/src/ConfirmOrder/components/Invoice/index.wxss +13 -0
- package/src/ConfirmOrder/components/LeaveWord/index.js +53 -0
- package/src/ConfirmOrder/components/LeaveWord/index.json +6 -0
- package/src/ConfirmOrder/components/LeaveWord/index.less +6 -0
- package/src/ConfirmOrder/components/LeaveWord/index.wxml +11 -0
- package/src/ConfirmOrder/components/LeaveWord/index.wxss +6 -0
- package/src/ConfirmOrder/components/LimitDiscount/index.js +50 -0
- package/src/ConfirmOrder/components/LimitDiscount/index.json +4 -0
- package/src/ConfirmOrder/components/LimitDiscount/index.wxml +1 -0
- package/src/ConfirmOrder/components/LimitDiscount/index.wxss +1 -0
- package/src/ConfirmOrder/components/ModeSelect/index.js +42 -0
- package/src/ConfirmOrder/components/ModeSelect/index.json +7 -0
- package/src/ConfirmOrder/components/ModeSelect/index.less +33 -0
- package/src/ConfirmOrder/components/ModeSelect/index.wxml +7 -0
- package/src/ConfirmOrder/components/ModeSelect/index.wxss +28 -0
- package/src/ConfirmOrder/components/PayBar/index.js +226 -0
- package/src/ConfirmOrder/components/PayBar/index.json +6 -0
- package/src/ConfirmOrder/components/PayBar/index.less +32 -0
- package/src/ConfirmOrder/components/PayBar/index.wxml +24 -0
- package/src/ConfirmOrder/components/PayBar/index.wxss +27 -0
- package/src/ConfirmOrder/components/PayDetail/filter.wxs +16 -0
- package/src/ConfirmOrder/components/PayDetail/index.js +68 -0
- package/src/ConfirmOrder/components/PayDetail/index.json +4 -0
- package/src/ConfirmOrder/components/PayDetail/index.less +16 -0
- package/src/ConfirmOrder/components/PayDetail/index.wxml +18 -0
- package/src/ConfirmOrder/components/PayDetail/index.wxss +14 -0
- package/src/ConfirmOrder/components/PayGifts/index.js +23 -0
- package/src/ConfirmOrder/components/PayGifts/index.json +4 -0
- package/src/ConfirmOrder/components/PayGifts/index.wxml +2 -0
- package/src/ConfirmOrder/components/PayGifts/index.wxss +1 -0
- package/src/ConfirmOrder/components/PickupSelect/index.js +80 -0
- package/src/ConfirmOrder/components/PickupSelect/index.json +8 -0
- package/src/ConfirmOrder/components/PickupSelect/index.less +9 -0
- package/src/ConfirmOrder/components/PickupSelect/index.wxml +12 -0
- package/src/ConfirmOrder/components/PickupSelect/index.wxss +7 -0
- package/src/ConfirmOrder/components/SelectSite/index.js +147 -0
- package/src/ConfirmOrder/components/SelectSite/index.json +7 -0
- package/src/ConfirmOrder/components/SelectSite/index.less +96 -0
- package/src/ConfirmOrder/components/SelectSite/index.wxml +46 -0
- package/src/ConfirmOrder/components/SelectSite/index.wxss +82 -0
- package/src/ConfirmOrder/components/Shipper/index.js +91 -0
- package/src/ConfirmOrder/components/Shipper/index.json +6 -0
- package/src/ConfirmOrder/components/Shipper/index.less +68 -0
- package/src/ConfirmOrder/components/Shipper/index.wxml +16 -0
- package/src/ConfirmOrder/components/Shipper/index.wxss +60 -0
- package/src/ConfirmOrder/components/ShipperEdit/index.js +216 -0
- package/src/ConfirmOrder/components/ShipperEdit/index.json +8 -0
- package/src/ConfirmOrder/components/ShipperEdit/index.less +75 -0
- package/src/ConfirmOrder/components/ShipperEdit/index.wxml +20 -0
- package/src/ConfirmOrder/components/ShipperEdit/index.wxss +62 -0
- package/src/ConfirmOrder/components/WechatAddress/index.js +78 -0
- package/src/ConfirmOrder/components/WechatAddress/index.json +4 -0
- package/src/ConfirmOrder/components/WechatAddress/index.less +25 -0
- package/src/ConfirmOrder/components/WechatAddress/index.wxml +8 -0
- package/src/ConfirmOrder/components/WechatAddress/index.wxss +22 -0
- package/src/ConfirmOrder/index.js +41 -0
- package/src/ConfirmOrder/index.json +8 -0
- package/src/ConfirmOrder/index.less +5 -0
- package/src/ConfirmOrder/index.wxml +13 -0
- package/src/ConfirmOrder/index.wxss +5 -0
- package/src/CouponList/README.md +2 -0
- package/src/CouponList/components/CouponItem/index.js +237 -0
- package/src/CouponList/components/CouponItem/index.json +6 -0
- package/src/CouponList/components/CouponItem/index.less +281 -0
- package/src/CouponList/components/CouponItem/index.wxml +196 -0
- package/src/CouponList/components/CouponItem/index.wxss +268 -0
- package/src/CouponList/couponColumn/index.js +54 -0
- package/src/CouponList/couponColumn/index.json +6 -0
- package/src/CouponList/couponColumn/index.less +32 -0
- package/src/CouponList/couponColumn/index.wxml +20 -0
- package/src/CouponList/couponColumn/index.wxss +31 -0
- package/src/CouponList/couponMsg/index.js +27 -0
- package/src/CouponList/couponMsg/index.json +6 -0
- package/src/CouponList/couponMsg/index.less +3 -0
- package/src/CouponList/couponMsg/index.wxml +10 -0
- package/src/CouponList/couponMsg/index.wxss +3 -0
- package/src/CurrentPay/index.js +56 -0
- package/src/CurrentPay/index.json +9 -0
- package/src/CurrentPay/index.wxml +11 -0
- package/src/CurrentPay/index.wxss +1 -0
- package/src/CurrentPayModule/index.js +256 -0
- package/src/CurrentPayModule/index.json +9 -0
- package/src/CurrentPayModule/index.less +13 -0
- package/src/CurrentPayModule/index.wxml +4 -0
- package/src/CurrentPayModule/index.wxss +13 -0
- package/src/LiveGoodsList/GoodsItem/index.js +439 -0
- package/src/LiveGoodsList/GoodsItem/index.json +6 -0
- package/src/LiveGoodsList/GoodsItem/index.less +221 -0
- package/src/LiveGoodsList/GoodsItem/index.wxml +79 -0
- package/src/LiveGoodsList/GoodsItem/index.wxss +219 -0
- package/src/LiveGoodsList/Header/index.js +36 -0
- package/src/LiveGoodsList/Header/index.json +6 -0
- package/src/LiveGoodsList/Header/index.less +45 -0
- package/src/LiveGoodsList/Header/index.wxml +28 -0
- package/src/LiveGoodsList/Header/index.wxss +44 -0
- package/src/LiveGoodsList/README.md +10 -0
- package/src/LiveGoodsList/index.js +350 -0
- package/src/LiveGoodsList/index.json +10 -0
- package/src/LiveGoodsList/index.less +47 -0
- package/src/LiveGoodsList/index.wxml +68 -0
- package/src/LiveGoodsList/index.wxss +42 -0
- package/src/Lottery/ContactMerchant/index.js +40 -0
- package/src/Lottery/ContactMerchant/index.json +7 -0
- package/src/Lottery/ContactMerchant/index.less +61 -0
- package/src/Lottery/ContactMerchant/index.wxml +19 -0
- package/src/Lottery/ContactMerchant/index.wxss +61 -0
- package/src/Lottery/Countdown.js +73 -0
- package/src/Lottery/LotteryFAB/index.js +94 -0
- package/src/Lottery/LotteryFAB/index.json +5 -0
- package/src/Lottery/LotteryFAB/index.less +35 -0
- package/src/Lottery/LotteryFAB/index.wxml +14 -0
- package/src/Lottery/LotteryFAB/index.wxss +35 -0
- package/src/Lottery/LotteryInfo/LotteryCountdown/index.js +49 -0
- package/src/Lottery/LotteryInfo/LotteryCountdown/index.json +5 -0
- package/src/Lottery/LotteryInfo/LotteryCountdown/index.less +16 -0
- package/src/Lottery/LotteryInfo/LotteryCountdown/index.wxml +9 -0
- package/src/Lottery/LotteryInfo/LotteryCountdown/index.wxss +16 -0
- package/src/Lottery/LotteryInfo/index.js +179 -0
- package/src/Lottery/LotteryInfo/index.json +9 -0
- package/src/Lottery/LotteryInfo/index.less +75 -0
- package/src/Lottery/LotteryInfo/index.wxml +31 -0
- package/src/Lottery/LotteryInfo/index.wxss +75 -0
- package/src/Lottery/LotteryPopup/index.js +46 -0
- package/src/Lottery/LotteryPopup/index.json +9 -0
- package/src/Lottery/LotteryPopup/index.less +50 -0
- package/src/Lottery/LotteryPopup/index.wxml +15 -0
- package/src/Lottery/LotteryPopup/index.wxss +48 -0
- package/src/Lottery/LotteryResult/LosingLottery/index.js +27 -0
- package/src/Lottery/LotteryResult/LosingLottery/index.json +7 -0
- package/src/Lottery/LotteryResult/LosingLottery/index.less +31 -0
- package/src/Lottery/LotteryResult/LosingLottery/index.wxml +14 -0
- package/src/Lottery/LotteryResult/LosingLottery/index.wxss +31 -0
- package/src/Lottery/LotteryResult/WinLottery/index.js +108 -0
- package/src/Lottery/LotteryResult/WinLottery/index.json +8 -0
- package/src/Lottery/LotteryResult/WinLottery/index.less +49 -0
- package/src/Lottery/LotteryResult/WinLottery/index.wxml +20 -0
- package/src/Lottery/LotteryResult/WinLottery/index.wxss +49 -0
- package/src/Lottery/LotteryResult/index.js +63 -0
- package/src/Lottery/LotteryResult/index.json +11 -0
- package/src/Lottery/LotteryResult/index.less +49 -0
- package/src/Lottery/LotteryResult/index.wxml +14 -0
- package/src/Lottery/LotteryResult/index.wxss +49 -0
- package/src/Lottery/MyRewards/RewardItem/index.js +128 -0
- package/src/Lottery/MyRewards/RewardItem/index.json +6 -0
- package/src/Lottery/MyRewards/RewardItem/index.less +56 -0
- package/src/Lottery/MyRewards/RewardItem/index.wxml +14 -0
- package/src/Lottery/MyRewards/RewardItem/index.wxss +56 -0
- package/src/Lottery/MyRewards/index.js +64 -0
- package/src/Lottery/MyRewards/index.json +9 -0
- package/src/Lottery/MyRewards/index.less +60 -0
- package/src/Lottery/MyRewards/index.wxml +28 -0
- package/src/Lottery/MyRewards/index.wxss +60 -0
- package/src/Lottery/NobodyParticipate/index.js +19 -0
- package/src/Lottery/NobodyParticipate/index.json +6 -0
- package/src/Lottery/NobodyParticipate/index.less +29 -0
- package/src/Lottery/NobodyParticipate/index.wxml +9 -0
- package/src/Lottery/NobodyParticipate/index.wxss +29 -0
- package/src/Lottery/ParticipationRecord/RecordItem/index.js +25 -0
- package/src/Lottery/ParticipationRecord/RecordItem/index.json +6 -0
- package/src/Lottery/ParticipationRecord/RecordItem/index.less +29 -0
- package/src/Lottery/ParticipationRecord/RecordItem/index.wxml +6 -0
- package/src/Lottery/ParticipationRecord/RecordItem/index.wxss +29 -0
- package/src/Lottery/ParticipationRecord/index.js +29 -0
- package/src/Lottery/ParticipationRecord/index.json +7 -0
- package/src/Lottery/ParticipationRecord/index.less +46 -0
- package/src/Lottery/ParticipationRecord/index.wxml +23 -0
- package/src/Lottery/ParticipationRecord/index.wxss +46 -0
- package/src/Lottery/PrizeCard/index.js +19 -0
- package/src/Lottery/PrizeCard/index.json +5 -0
- package/src/Lottery/PrizeCard/index.less +35 -0
- package/src/Lottery/PrizeCard/index.wxml +5 -0
- package/src/Lottery/PrizeCard/index.wxss +35 -0
- package/src/Lottery/RewardPopup/index.js +158 -0
- package/src/Lottery/RewardPopup/index.json +11 -0
- package/src/Lottery/RewardPopup/index.less +0 -0
- package/src/Lottery/RewardPopup/index.wxml +36 -0
- package/src/Lottery/RewardPopup/index.wxss +0 -0
- package/src/Lottery/Winners/WinnerItem/index.js +18 -0
- package/src/Lottery/Winners/WinnerItem/index.json +6 -0
- package/src/Lottery/Winners/WinnerItem/index.less +32 -0
- package/src/Lottery/Winners/WinnerItem/index.wxml +8 -0
- package/src/Lottery/Winners/WinnerItem/index.wxss +32 -0
- package/src/Lottery/Winners/index.js +51 -0
- package/src/Lottery/Winners/index.json +7 -0
- package/src/Lottery/Winners/index.less +55 -0
- package/src/Lottery/Winners/index.wxml +25 -0
- package/src/Lottery/Winners/index.wxss +55 -0
- package/src/Lottery/cls.js +46 -0
- package/src/Lottery/constants.js +69 -0
- package/src/Lottery/index.js +149 -0
- package/src/Lottery/index.json +11 -0
- package/src/Lottery/index.wxml +51 -0
- package/src/Lottery/mock.js +724 -0
- package/src/Lottery/remotePic.js +42 -0
- package/src/PayComplete/Components/CouponItem/index.js +51 -0
- package/src/PayComplete/Components/CouponItem/index.json +4 -0
- package/src/PayComplete/Components/CouponItem/index.less +143 -0
- package/src/PayComplete/Components/CouponItem/index.wxml +47 -0
- package/src/PayComplete/Components/CouponItem/index.wxss +122 -0
- package/src/PayComplete/Components/CouponItem/sub.wxs +73 -0
- package/src/PayComplete/Components/LeadGroup/index.js +95 -0
- package/src/PayComplete/Components/LeadGroup/index.json +7 -0
- package/src/PayComplete/Components/LeadGroup/index.wxml +46 -0
- package/src/PayComplete/Components/LeadGroup/index.wxss +113 -0
- package/src/PayComplete/Components/PayGifts/index.js +114 -0
- package/src/PayComplete/Components/PayGifts/index.json +6 -0
- package/src/PayComplete/Components/PayGifts/index.less +162 -0
- package/src/PayComplete/Components/PayGifts/index.wxml +56 -0
- package/src/PayComplete/Components/PayGifts/index.wxss +143 -0
- package/src/PayComplete/Components/PayState/earnIntegral/index.js +62 -0
- package/src/PayComplete/Components/PayState/earnIntegral/index.json +6 -0
- package/src/PayComplete/Components/PayState/earnIntegral/index.less +26 -0
- package/src/PayComplete/Components/PayState/earnIntegral/index.wxml +4 -0
- package/src/PayComplete/Components/PayState/earnIntegral/index.wxss +23 -0
- package/src/PayComplete/Components/PayState/index.js +38 -0
- package/src/PayComplete/Components/PayState/index.json +7 -0
- package/src/PayComplete/Components/PayState/index.less +31 -0
- package/src/PayComplete/Components/PayState/index.wxml +12 -0
- package/src/PayComplete/Components/PayState/index.wxss +27 -0
- package/src/PayComplete/index.js +142 -0
- package/src/PayComplete/index.json +10 -0
- package/src/PayComplete/index.less +39 -0
- package/src/PayComplete/index.wxml +33 -0
- package/src/PayComplete/index.wxss +35 -0
- package/src/PayModule/README.md +0 -0
- package/src/PayModule/button/index.js +44 -0
- package/src/PayModule/button/index.json +6 -0
- package/src/PayModule/button/index.less +14 -0
- package/src/PayModule/button/index.wxml +8 -0
- package/src/PayModule/button/index.wxss +12 -0
- package/src/PayModule/index/index.js +213 -0
- package/src/PayModule/index/index.json +7 -0
- package/src/PayModule/index/index.less +0 -0
- package/src/PayModule/index/index.wxml +12 -0
- package/src/PayModule/index/index.wxss +1 -0
- package/src/PayModule/wechatLoading/index.js +43 -0
- package/src/PayModule/wechatLoading/index.json +4 -0
- package/src/PayModule/wechatLoading/index.less +66 -0
- package/src/PayModule/wechatLoading/index.wxml +12 -0
- package/src/PayModule/wechatLoading/index.wxss +57 -0
- package/src/Recommend/index.js +63 -0
- package/src/Recommend/index.json +4 -0
- package/src/Recommend/index.less +104 -0
- package/src/Recommend/index.wxml +29 -0
- package/src/Recommend/index.wxss +99 -0
- package/src/SharePoster/PosterDom/index.js +1755 -0
- package/src/SharePoster/PosterDom/index.json +5 -0
- package/src/SharePoster/PosterDom/index.less +57 -0
- package/src/SharePoster/PosterDom/index.wxml +13 -0
- package/src/SharePoster/PosterDom/index.wxss +57 -0
- package/src/SharePoster/README.md +10 -0
- package/src/SharePoster/ShareTextPopup/index.js +62 -0
- package/src/SharePoster/ShareTextPopup/index.json +7 -0
- package/src/SharePoster/ShareTextPopup/index.less +68 -0
- package/src/SharePoster/ShareTextPopup/index.wxml +29 -0
- package/src/SharePoster/ShareTextPopup/index.wxss +68 -0
- package/src/SharePoster/createPoster/index.js +201 -0
- package/src/SharePoster/createPoster/utils/drawImage.js +267 -0
- package/src/SharePoster/createPoster/utils/util.js +40 -0
- package/src/SharePoster/libs/constant.js +57 -0
- package/src/SharePoster/libs/positionMap.js +255 -0
- package/src/SharePoster/mockData/mockData.js +591 -0
- package/src/SharePoster/sharePopup/index.js +267 -0
- package/src/SharePoster/sharePopup/index.json +9 -0
- package/src/SharePoster/sharePopup/index.less +174 -0
- package/src/SharePoster/sharePopup/index.wxml +85 -0
- package/src/SharePoster/sharePopup/index.wxss +174 -0
- package/src/Sku/commSelect/index.js +419 -0
- package/src/Sku/commSelect/index.json +8 -0
- package/src/Sku/commSelect/index.less +48 -0
- package/src/Sku/commSelect/index.wxml +41 -0
- package/src/Sku/commSelect/index.wxss +47 -0
- package/src/Sku/goods-info/index.js +52 -0
- package/src/Sku/goods-info/index.json +4 -0
- package/src/Sku/goods-info/index.less +48 -0
- package/src/Sku/goods-info/index.wxml +19 -0
- package/src/Sku/goods-info/index.wxss +48 -0
- package/src/Sku/index/index.js +279 -0
- package/src/Sku/index/index.json +12 -0
- package/src/Sku/index/index.less +78 -0
- package/src/Sku/index/index.wxml +58 -0
- package/src/Sku/index/index.wxss +50 -0
- package/src/Sku/row-item/index.js +61 -0
- package/src/Sku/row-item/index.json +4 -0
- package/src/Sku/row-item/index.less +48 -0
- package/src/Sku/row-item/index.wxml +10 -0
- package/src/Sku/row-item/index.wxss +42 -0
- package/src/Sku/step/index.js +95 -0
- package/src/Sku/step/index.json +6 -0
- package/src/Sku/step/index.less +7 -0
- package/src/Sku/step/index.wxml +12 -0
- package/src/Sku/step/index.wxss +7 -0
- package/src/common/api/confirmOrder.js +218 -0
- package/src/common/api/coupon.js +19 -0
- package/src/common/api/couponlist.js +106 -0
- package/src/common/api/eLiveInvite.js +46 -0
- package/src/common/api/liveGoodsList.js +52 -0
- package/src/common/api/lottery.js +57 -0
- package/src/common/api/pay.js +42 -0
- package/src/common/api/payComplete.js +22 -0
- package/src/common/api/sharePoster.js +68 -0
- package/src/common/api/sku.js +58 -0
- package/src/common/assets/copy.wxss +3 -0
- package/src/common/assets/icon.png +0 -0
- package/src/common/assets/images/activity.png +0 -0
- package/src/common/assets/images/address.png +0 -0
- package/src/common/assets/images/bg_gift@2x.png +0 -0
- package/src/common/assets/images/close.png +0 -0
- package/src/common/assets/images/coupon/coupon_bg.png +0 -0
- package/src/common/assets/images/coupon/coupon_finish.png +0 -0
- package/src/common/assets/images/coupon/coupon_select.png +0 -0
- package/src/common/assets/images/coupon/coupon_style2.png +0 -0
- package/src/common/assets/images/coupon/coupon_style2.svg +30 -0
- package/src/common/assets/images/coupon/coupons_style2.svg +30 -0
- package/src/common/assets/images/coupon/down.svg +22 -0
- package/src/common/assets/images/coupon/emptypage.svg +50 -0
- package/src/common/assets/images/coupon/expand.png +0 -0
- package/src/common/assets/images/coupon/finished.png +0 -0
- package/src/common/assets/images/coupon/has_receive.png +0 -0
- package/src/common/assets/images/coupon/has_recevie_style2.png +0 -0
- package/src/common/assets/images/coupon/hint.png +0 -0
- package/src/common/assets/images/coupon/icon_arrow.png +0 -0
- package/src/common/assets/images/coupon/retract.png +0 -0
- package/src/common/assets/images/coupon/seal_receivingPage_received.png +0 -0
- package/src/common/assets/images/coupon/superposition_logo.png +0 -0
- package/src/common/assets/images/coupon/up.svg +22 -0
- package/src/common/assets/images/fingerprint.png +0 -0
- package/src/common/assets/images/icon-tip.png +0 -0
- package/src/common/assets/images/img_adrr.png +0 -0
- package/src/common/assets/images/liveGoodsList/empty.png +0 -0
- package/src/common/assets/images/liveGoodsList/explaining.png +0 -0
- package/src/common/assets/images/lottery/close-f-new.png +0 -0
- package/src/common/assets/images/lottery/is_not_winner.svg +19 -0
- package/src/common/assets/images/lottery/lottery_v1_back.svg +19 -0
- package/src/common/assets/images/lottery/lottery_v1_close.svg +19 -0
- package/src/common/assets/images/lottery/reward_list_title.svg +19 -0
- package/src/common/assets/images/lottery/winner_list_smile_icon.svg +56 -0
- package/src/common/assets/images/lottery/winner_list_title.svg +19 -0
- package/src/common/assets/images/package.png +0 -0
- package/src/common/assets/images/pay/loading.svg +3 -0
- package/src/common/assets/images/recommend.svg +6 -0
- package/src/common/assets/images/recommend_with_bg.png +0 -0
- package/src/common/assets/images/refresh.svg +10 -0
- package/src/common/assets/images/refresh_white.svg +3 -0
- package/src/common/assets/images/replenish.png +0 -0
- package/src/common/assets/images/search-bg.png +0 -0
- package/src/common/assets/images/shop.png +0 -0
- package/src/common/assets/images/success.png +0 -0
- package/src/common/assets/images/tips.png +0 -0
- package/src/common/assets/images/update.png +0 -0
- package/src/common/assets/images/wechat.svg +4 -0
- package/src/common/assets/images/wx.png +0 -0
- package/src/common/assets/images/zhixiang.png +0 -0
- package/src/common/css/index.less +2 -0
- package/src/common/css/index.wxss +1 -0
- package/src/common/css/theme.less +20 -0
- package/src/common/css/theme.wxss +16 -0
- package/src/common/libs/dataUp/sensorUp.js +92 -0
- package/src/common/libs/playerHttp.js +58 -0
- package/src/common/libs/playerRequestUrl.js +40 -0
- package/src/common/utils/constants.js +249 -0
- package/src/common/utils/currency.js +52 -0
- package/src/common/utils/helper.js +159 -0
- package/src/common/utils/index.js +56 -0
- package/src/common/utils/tool.js +66 -0
- package/src/common/wxs/filter.wxs +30 -0
- package/src/coupon/README.md +12 -0
- package/src/coupon/components/CouponItem/index.js +176 -0
- package/src/coupon/components/CouponItem/index.json +5 -0
- package/src/coupon/components/CouponItem/index.less +208 -0
- package/src/coupon/components/CouponItem/index.wxml +94 -0
- package/src/coupon/components/CouponItem/index.wxss +195 -0
- package/src/coupon/components/CouponSelect/index.js +319 -0
- package/src/coupon/components/CouponSelect/index.json +9 -0
- package/src/coupon/components/CouponSelect/index.less +236 -0
- package/src/coupon/components/CouponSelect/index.wxml +75 -0
- package/src/coupon/components/CouponSelect/index.wxss +233 -0
- package/src/coupon/index.css +50 -0
- package/src/coupon/index.js +187 -0
- package/src/coupon/index.json +7 -0
- package/src/coupon/index.less +51 -0
- package/src/coupon/index.wxml +24 -0
- package/src/coupon/index.wxss +50 -0
- package/src/index.js +23 -0
- package/src/index.json +6 -0
- package/src/index.wxml +2 -0
- package/src/index.wxss +1 -0
- package/src/lib.ts +5 -0
- package/src/project.config.json +69 -0
- package/src/utils.js +5 -0
- package/tsconfig.json +25 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@keyframes popping {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateY(11.2px);
|
|
4
|
+
opacity: 0.5;
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
transform: translateY(0);
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
.container-friends {
|
|
12
|
+
animation: popping ease 300ms;
|
|
13
|
+
position: fixed;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
width: 750px;
|
|
18
|
+
height: 1120px;
|
|
19
|
+
background-color: #fff !important;
|
|
20
|
+
background: url("https://wechatapppro-1252524126.cos.ap-shanghai.myqcloud.com/appgwaqerxu2025/image/b_u_5b2225aa46488_oGKN7IvA/kpzb2l510aau.png?imageView2/2/w/200/q/60");
|
|
21
|
+
background-size: contain;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
border-radius: 16px 16px 0 0;
|
|
24
|
+
}
|
|
25
|
+
.header {
|
|
26
|
+
height: 146px;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
font-family: PingFangSC-Medium;
|
|
31
|
+
font-size: 36px;
|
|
32
|
+
color: #333333;
|
|
33
|
+
text-align: center;
|
|
34
|
+
}
|
|
35
|
+
.count-style {
|
|
36
|
+
position: absolute;
|
|
37
|
+
left: 65%;
|
|
38
|
+
}
|
|
39
|
+
.icon-left-back {
|
|
40
|
+
position: absolute;
|
|
41
|
+
left: 20px;
|
|
42
|
+
transform: rotate(270deg);
|
|
43
|
+
width: 45px;
|
|
44
|
+
height: 45px;
|
|
45
|
+
}
|
|
46
|
+
.detail {
|
|
47
|
+
padding: 32px;
|
|
48
|
+
}
|
|
49
|
+
.friend-list {
|
|
50
|
+
flex: 1;
|
|
51
|
+
overflow: scroll;
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
flex-direction: row;
|
|
55
|
+
padding: 0 16px;
|
|
56
|
+
}
|
|
57
|
+
.friend-item {
|
|
58
|
+
display: flex;
|
|
59
|
+
text-align: center;
|
|
60
|
+
height: 152px;
|
|
61
|
+
margin: 0 20px 32px 20px;
|
|
62
|
+
align-items: center;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
}
|
|
66
|
+
.img-avatar {
|
|
67
|
+
width: 96px;
|
|
68
|
+
height: 96px;
|
|
69
|
+
border-radius: 100%;
|
|
70
|
+
}
|
|
71
|
+
.name {
|
|
72
|
+
margin-top: 12px;
|
|
73
|
+
width: 96px;
|
|
74
|
+
font-family: PingFangSC-Medium;
|
|
75
|
+
font-size: 24px;
|
|
76
|
+
color: #333333;
|
|
77
|
+
text-align: center;
|
|
78
|
+
/* margin-left: 20px; */
|
|
79
|
+
overflow: hidden;
|
|
80
|
+
text-overflow: ellipsis;
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
}
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
// associate/alive_pusher/components/invite-poster2/invite-poster2.js
|
|
2
|
+
// import { Current } from "@tarojs/taro";
|
|
3
|
+
// let app = Current.app;
|
|
4
|
+
// import EventBus from '../../../libs/alive_pusher/eventBus/EventBus';
|
|
5
|
+
// import untils from '../../../libs/alive_pusher/user_acction';
|
|
6
|
+
// import store from "@/store";
|
|
7
|
+
// import { GET_ALIVE_INVITE_IMAGE, GET_SHORT_SHARE_URL } from "../../../libs/alive_pusher/constant/api/live";
|
|
8
|
+
import { BASE_URL, ENV_NAME } from "../../../../common/libs/playerRequestUrl";
|
|
9
|
+
// import Taro from '@tarojs/taro';
|
|
10
|
+
// import api from '@/api/index';
|
|
11
|
+
import {
|
|
12
|
+
getShareUrl
|
|
13
|
+
} from "../../../../common/api/eLiveInvite";
|
|
14
|
+
Component({
|
|
15
|
+
/**
|
|
16
|
+
* 组件的属性列表
|
|
17
|
+
*/
|
|
18
|
+
properties: {
|
|
19
|
+
alive_id: {
|
|
20
|
+
type: String,
|
|
21
|
+
value: ""
|
|
22
|
+
},
|
|
23
|
+
alive_mode: {
|
|
24
|
+
type: Number,
|
|
25
|
+
value: 0
|
|
26
|
+
},
|
|
27
|
+
userId: {
|
|
28
|
+
type: String
|
|
29
|
+
},
|
|
30
|
+
appId: {
|
|
31
|
+
type: String
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 组件的初始数据
|
|
37
|
+
*/
|
|
38
|
+
data: {
|
|
39
|
+
user_handle: {
|
|
40
|
+
index: 1, //海报选择
|
|
41
|
+
pic_url: '', // 海报图片
|
|
42
|
+
base_pic_url: ''
|
|
43
|
+
},
|
|
44
|
+
poster_list: [
|
|
45
|
+
'/assets/alive_pusher/poster1.png',
|
|
46
|
+
'/assets/alive_pusher/poster2.png',
|
|
47
|
+
'/assets/alive_pusher/poster3.png',
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
error_report_image: '', //数据上报图片url
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 组件生命周期函数,在组件布局完成后执行,此时可以获取节点信息(使用 SelectorQuery )
|
|
54
|
+
*/
|
|
55
|
+
ready() {
|
|
56
|
+
// 海报相关 TODOlist FIXME
|
|
57
|
+
// let picUrl = BASE_URL +
|
|
58
|
+
// '_alive/client/get_alive_invite_image' + '?' +
|
|
59
|
+
// `app_id=${this.properties.appId}&` +
|
|
60
|
+
// `user_id=${this.properties.userId}&` +
|
|
61
|
+
// `alive_id=${this.properties.alive_id}&` +
|
|
62
|
+
// `wx_nickname=${store.state.GlobalModule.userInfo.nickname}&` +
|
|
63
|
+
// `wx_avatar=${store.state.GlobalModule.userInfo.headimgurl}&` +
|
|
64
|
+
// `token=${store.state.GlobalModule.baseInfo.token}&` +
|
|
65
|
+
// 'type='
|
|
66
|
+
// this.setData({
|
|
67
|
+
// ['user_handle.base_pic_url']: picUrl,
|
|
68
|
+
// ['user_handle.pic_url']: picUrl + '1'
|
|
69
|
+
// });
|
|
70
|
+
//TODO 上报数据
|
|
71
|
+
// this.reportData('click_inviteinalive');
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* 组件的方法列表
|
|
75
|
+
*/
|
|
76
|
+
methods: {
|
|
77
|
+
// 图片加载完成
|
|
78
|
+
picShow() {
|
|
79
|
+
wx.hideLoading();
|
|
80
|
+
this.setData({
|
|
81
|
+
hasClick: false
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
// 图片加载失败
|
|
85
|
+
picError() {
|
|
86
|
+
wx.hideLoading();
|
|
87
|
+
},
|
|
88
|
+
//关闭直播邀请海报
|
|
89
|
+
closeInvite() {
|
|
90
|
+
this.setData({
|
|
91
|
+
error_report_image: '', //数据上报图片url: ''
|
|
92
|
+
}),
|
|
93
|
+
console.log('close====mo-0000-----')
|
|
94
|
+
this.triggerEvent("changeShowInvite", { showInvite: false });
|
|
95
|
+
},
|
|
96
|
+
//切换海报样式
|
|
97
|
+
switchIndex(e) {
|
|
98
|
+
if (Number(e.currentTarget.dataset['index']) + 1 == this.data.user_handle.index) {
|
|
99
|
+
return
|
|
100
|
+
} else {
|
|
101
|
+
this.setData({
|
|
102
|
+
hasClick: false
|
|
103
|
+
})
|
|
104
|
+
}
|
|
105
|
+
if (this.data.hasClick) return;
|
|
106
|
+
this.setData({
|
|
107
|
+
hasClick: true
|
|
108
|
+
});
|
|
109
|
+
wx.showLoading({
|
|
110
|
+
title: '加载中', //提示的内容,
|
|
111
|
+
mask: true, //显示透明蒙层,防止触摸穿透
|
|
112
|
+
});
|
|
113
|
+
console.warn('base ====>', this.data)
|
|
114
|
+
let url = this.data.user_handle.base_pic_url + `${Number(e.currentTarget.dataset['index']) + 1}`;
|
|
115
|
+
this.setData({
|
|
116
|
+
['user_handle.index']: Number(e.currentTarget.dataset['index']) + 1,
|
|
117
|
+
['user_handle.pic_url']: url
|
|
118
|
+
});
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
// 保存到本地相册 TODO FIXME eventBus 的替代使用
|
|
122
|
+
// keepPic() {
|
|
123
|
+
// let that = this;
|
|
124
|
+
// EventBus.$on('cancelKeep', that, function (res) {
|
|
125
|
+
// if (!res) {
|
|
126
|
+
// wx.showToast({
|
|
127
|
+
// title: '请前往设置页面点击邀请好友开启授权', //提示的内容,
|
|
128
|
+
// icon: 'none', //图标,
|
|
129
|
+
// duration: 2000, //延迟时间
|
|
130
|
+
// });
|
|
131
|
+
// }
|
|
132
|
+
// })
|
|
133
|
+
// untils.keepImg(this.data.user_handle.pic_url);
|
|
134
|
+
// },
|
|
135
|
+
//数据上报 TODO FIXME 找到app的替代
|
|
136
|
+
// reportData(type) {
|
|
137
|
+
// const params = {
|
|
138
|
+
// app_id: app.networkData.SHOP_APP_ID,
|
|
139
|
+
// user_id: app.networkData.B_USER_ID,
|
|
140
|
+
// };
|
|
141
|
+
// // TODO开发暂时屏蔽数据埋点
|
|
142
|
+
// // app.mtj.trackEvent(type, params);
|
|
143
|
+
// },
|
|
144
|
+
// 复制直播间链接
|
|
145
|
+
handleCopyLink() {
|
|
146
|
+
// const LIVE_BASE_URL = `https://${this.properties.appId}.h5${ENV_NAME ? `.${ENV_NAME}` : '' }.xiaoeknow.com/v2/course/alive/`;
|
|
147
|
+
// const shareUrl = `${LIVE_BASE_URL}${this.properties.alive_id}?app_id=${this.properties.appId}&alive_mode=1&pro_id=&type=2&share_user_id=${this.properties.userId}`;
|
|
148
|
+
const LIVE_BASE_URL = `https://appmzd7lhrj6214.h5${ENV_NAME ? `.${ENV_NAME}` : '' }.xiaoeknow.com/v2/course/alive/`;
|
|
149
|
+
const shareUrl = `${LIVE_BASE_URL}l_61935f8260b219ba0025f301?app_id=appmzd7lhrj6214&alive_mode=1&pro_id=&type=2&share_user_id=u_6119db8f279b3_BLLGPeghc5`;
|
|
150
|
+
|
|
151
|
+
this.getClipboardData(shareUrl);
|
|
152
|
+
},
|
|
153
|
+
getClipboardData(shareUrl) {
|
|
154
|
+
const that = this;
|
|
155
|
+
// let params = {
|
|
156
|
+
// alive_id: this.properties.alive_id,
|
|
157
|
+
// alive_mode: 1,
|
|
158
|
+
// app_id: this.properties.appId,
|
|
159
|
+
// query: shareUrl
|
|
160
|
+
// }
|
|
161
|
+
let params = {
|
|
162
|
+
alive_id: "l_61935f8260b219ba0025f301",
|
|
163
|
+
alive_mode: 1,
|
|
164
|
+
app_id: "appmzd7lhrj6214",
|
|
165
|
+
query: shareUrl
|
|
166
|
+
}
|
|
167
|
+
getShareUrl(params).then((res) => {
|
|
168
|
+
console.log("debug 复制分享链接的url", res.data);
|
|
169
|
+
wx.setClipboardData({
|
|
170
|
+
data: decodeURIComponent(res.data.data.url_link),
|
|
171
|
+
success: res => {
|
|
172
|
+
wx.getClipboardData({
|
|
173
|
+
success(res) {
|
|
174
|
+
console.log("debug share url", res.data);
|
|
175
|
+
wx.showToast({
|
|
176
|
+
title: "复制链接成功",
|
|
177
|
+
icon: "success",
|
|
178
|
+
duration: 2000,
|
|
179
|
+
});
|
|
180
|
+
that.closeInvite();
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
},
|
|
184
|
+
fail: () => {
|
|
185
|
+
wx.showToast({
|
|
186
|
+
title: '复制失败',
|
|
187
|
+
icon: 'none'
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
}, reason => {
|
|
192
|
+
wx.showToast({
|
|
193
|
+
title: '复制失败',
|
|
194
|
+
icon: 'none'
|
|
195
|
+
})
|
|
196
|
+
console.error(reason); // 出错了!
|
|
197
|
+
})
|
|
198
|
+
|
|
199
|
+
},
|
|
200
|
+
handleLoadImage() {
|
|
201
|
+
wx.hideLoading()
|
|
202
|
+
},
|
|
203
|
+
toShare() {
|
|
204
|
+
const LIVE_BASE_URL = `https://${this.properties.appId}.h5${ENV_NAME ? `.${ENV_NAME}` : '' }.xiaoeknow.com/v2/course/alive/`;
|
|
205
|
+
let shareUrl = `${LIVE_BASE_URL}${this.properties.alive_id}?app_id=${this.properties.appId}&alive_mode=1&pro_id=&type=2`
|
|
206
|
+
let that = this;
|
|
207
|
+
let webViewUrl = "/pages/webView/webView";
|
|
208
|
+
//TODO FIX ME TARO改为原生的分享
|
|
209
|
+
// Taro.Current.page.onShareAppMessage = function (res) {
|
|
210
|
+
// // 跳转
|
|
211
|
+
// let params = {
|
|
212
|
+
// pageUrl: shareUrl,
|
|
213
|
+
// alive_id: that.properties.alive_id,
|
|
214
|
+
// };
|
|
215
|
+
// let totalParams = encodeURIComponent(JSON.stringify(params));
|
|
216
|
+
// return {
|
|
217
|
+
// title: 'Custom Title',
|
|
218
|
+
// path: `${webViewUrl}?params=${totalParams}`,
|
|
219
|
+
// // imageUrl: that.detailMsg.img_url,
|
|
220
|
+
// };
|
|
221
|
+
// };
|
|
222
|
+
},
|
|
223
|
+
|
|
224
|
+
}
|
|
225
|
+
})
|
|
226
|
+
|
|
227
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<!--associate/alive_pusher/components/invite-poster2/invite-poster2.wxml-->
|
|
2
|
+
<view class="poster">
|
|
3
|
+
<view class="mask-layer" bindtap="closeInvite"></view>
|
|
4
|
+
<view class="poster-wrap">
|
|
5
|
+
<view class="poster-header">
|
|
6
|
+
<view class="header-text">分享给</view>
|
|
7
|
+
<view bindtap="closeInvite" class="close-icon-view">
|
|
8
|
+
<image src="../../../images/liveClose.png" class="poster-header_icon" catchtap="closeInvite"/>
|
|
9
|
+
</view>
|
|
10
|
+
</view>
|
|
11
|
+
<!-- <view class="poster-content" hidden="{{true}}">
|
|
12
|
+
<image src="{{user_handle.pic_url}}" class="poster-content_image" bindload="handleLoadImage" binderror="picError"/>
|
|
13
|
+
</view>
|
|
14
|
+
<view class="poster-list" hidden="{{true}}">
|
|
15
|
+
<scroll-view scroll-x="{{true}}" bindscroll="scroll" class="scroll-view">
|
|
16
|
+
<image class="poster-item {{user_handle.index===index+1?'active-poster':''}}" wx:for="{{poster_list}}" src="{{item}}" catchtap="switchIndex" data-index="{{index}}"/>
|
|
17
|
+
</scroll-view>
|
|
18
|
+
<view class="poster-list_mask"></view>
|
|
19
|
+
</view> -->
|
|
20
|
+
<view class="poster-bottom" >
|
|
21
|
+
<view class="bottom-item">
|
|
22
|
+
<button open-type="share" class="share-btn">
|
|
23
|
+
<image src="../../../images/wechat.png" class="bottom-item_img"/>
|
|
24
|
+
</button>
|
|
25
|
+
<view class="bottom-item-text">分享给好友</view>
|
|
26
|
+
</view>
|
|
27
|
+
<view class="bottom-item" catchtap="handleCopyLink">
|
|
28
|
+
<image src="../../../images/copylink.png" class="bottom-item_img"/>
|
|
29
|
+
<view class="bottom-item-text" catchtap="handleCopyLink">复制链接</view>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
32
|
+
<!-- <view class="cancel-btn" catchtap="closeInvite">取消</view>
|
|
33
|
+
<view class="blank-view"></view> -->
|
|
34
|
+
</view>
|
|
35
|
+
<!-- <view class="poster-top">
|
|
36
|
+
<view class="poster-pic">
|
|
37
|
+
<image class="poster_image" src="{{user_handle.pic_url}}" bindload="picShow" binderror="picError"></image>
|
|
38
|
+
</view>
|
|
39
|
+
<view class="poster-pic_icon" catchtap="closeInvite">
|
|
40
|
+
<image class="poster-pic_image" src="/assets/alive_pusher/close.png"></image>
|
|
41
|
+
</view>
|
|
42
|
+
</view>
|
|
43
|
+
<view class="poster-bottom">
|
|
44
|
+
<view class="poster_tips">保存邀请海报发送给好友</view>
|
|
45
|
+
<view class="poster-container">
|
|
46
|
+
<view class="poster_keep" catchtap="keepPic">
|
|
47
|
+
<image class="poster_keep-image" src="/assets/alive_pusher/download.png"></image>
|
|
48
|
+
<view class="poster_keep-text">保存到相册</view>
|
|
49
|
+
</view>
|
|
50
|
+
<view class="poster-list">
|
|
51
|
+
<view class="poster-item {{user_handle.index==1?'indexset':''}}" catchtap="switchIndex" data-index="1">
|
|
52
|
+
<image class="poster_image" src="/assets/alive_pusher/poster1.png"></image>
|
|
53
|
+
</view>
|
|
54
|
+
<view class="poster-item {{user_handle.index==2?'indexset':''}}" catchtap="switchIndex" data-index="2">
|
|
55
|
+
<image class="poster_image" src="/assets/alive_pusher/poster2.png"></image>
|
|
56
|
+
</view>
|
|
57
|
+
<view class="poster-item {{user_handle.index==3?'indexset':''}}" catchtap="switchIndex" data-index="3">
|
|
58
|
+
<image class="poster_image" src="/assets/alive_pusher/poster3.png"></image>
|
|
59
|
+
</view>
|
|
60
|
+
</view>
|
|
61
|
+
</view>
|
|
62
|
+
</view> -->
|
|
63
|
+
</view>
|
|
64
|
+
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* associate/alive_pusher/components/invite-poster2/invite-poster2.wxss */
|
|
2
|
+
.poster {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100vh;
|
|
5
|
+
z-index: 2;
|
|
6
|
+
position: fixed;
|
|
7
|
+
top: 0;
|
|
8
|
+
left: 0;
|
|
9
|
+
/* background-color: rgba(0, 0, 0, 0.6); */
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.poster-wrap{
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 384rpx;
|
|
15
|
+
position: absolute;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
background: rgba(0, 0, 0, 0.7);
|
|
19
|
+
border-radius: 16rpx 16rpx 0 0;
|
|
20
|
+
backdrop-filter: blur(16px);
|
|
21
|
+
animation: popping ease 300ms;
|
|
22
|
+
}
|
|
23
|
+
@keyframes popping {
|
|
24
|
+
from {
|
|
25
|
+
opacity: 0.5;
|
|
26
|
+
}
|
|
27
|
+
to {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.poster-header{
|
|
32
|
+
height: 176rpx;
|
|
33
|
+
color: #333;
|
|
34
|
+
font-family: PingFangSC-Medium;
|
|
35
|
+
font-size: 32rpx;
|
|
36
|
+
color: #FFFFFF;
|
|
37
|
+
position: relative;
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
}
|
|
42
|
+
.close-icon-view{
|
|
43
|
+
width: 60rpx;
|
|
44
|
+
height: 60rpx;
|
|
45
|
+
position: absolute;
|
|
46
|
+
top: 64rpx;
|
|
47
|
+
right: 30rpx;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
.mask-layer {
|
|
53
|
+
position: fixed;
|
|
54
|
+
left: 0;
|
|
55
|
+
right: 0;
|
|
56
|
+
bottom: 0;
|
|
57
|
+
top: 0;
|
|
58
|
+
background-color:#ffffff;
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
61
|
+
.poster-header_icon{
|
|
62
|
+
width: 48rpx;
|
|
63
|
+
height: 48rpx;
|
|
64
|
+
}
|
|
65
|
+
.header-text {
|
|
66
|
+
font-size: 36rpx;
|
|
67
|
+
height: 40rpx;
|
|
68
|
+
line-height: 40rpx;
|
|
69
|
+
color: #FFFFFF;
|
|
70
|
+
}
|
|
71
|
+
.poster-content{
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
margin-bottom: 16rpx;
|
|
76
|
+
}
|
|
77
|
+
.poster-content_image{
|
|
78
|
+
width: 420rpx;
|
|
79
|
+
height: 736rpx;
|
|
80
|
+
border-radius: 16rpx;
|
|
81
|
+
background-color: #D1E3FF;
|
|
82
|
+
}
|
|
83
|
+
.poster-list{
|
|
84
|
+
padding: 8rpx 68rpx 8rpx 0;
|
|
85
|
+
position: relative;
|
|
86
|
+
}
|
|
87
|
+
.scroll-view{
|
|
88
|
+
width: 100%;
|
|
89
|
+
position: relative;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
}
|
|
92
|
+
.poster-item{
|
|
93
|
+
width: 68rpx;
|
|
94
|
+
height: 120rpx;
|
|
95
|
+
border-radius: 12rpx;
|
|
96
|
+
margin-left: 32rpx;
|
|
97
|
+
background-color: #D1E3FF;
|
|
98
|
+
display: inline-block;
|
|
99
|
+
}
|
|
100
|
+
.poster-list_mask{
|
|
101
|
+
width: 64rpx;
|
|
102
|
+
height: 152rpx;
|
|
103
|
+
position: absolute;
|
|
104
|
+
top: 0;
|
|
105
|
+
right: 0;
|
|
106
|
+
background: #FFFFFF;
|
|
107
|
+
box-shadow: -8px 0px 8px -8px rgba(0, 0, 0, 0.3);
|
|
108
|
+
}
|
|
109
|
+
.poster-bottom{
|
|
110
|
+
display: flex;
|
|
111
|
+
padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
|
|
112
|
+
padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
|
|
113
|
+
}
|
|
114
|
+
.bottom-item{
|
|
115
|
+
flex: 1;
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
align-items: center;
|
|
120
|
+
color: #FFFFFF;
|
|
121
|
+
font-size: 28rpx;
|
|
122
|
+
}
|
|
123
|
+
.bottom-item .view{
|
|
124
|
+
height: 36rpx;
|
|
125
|
+
margin-top: 16rpx;
|
|
126
|
+
background-color: #FFFFFF;
|
|
127
|
+
font-size: 24rpx;
|
|
128
|
+
}
|
|
129
|
+
.bottom-item-text {
|
|
130
|
+
height: 36rpx;
|
|
131
|
+
margin-top: 16rpx;
|
|
132
|
+
font-size: 24rpx;
|
|
133
|
+
}
|
|
134
|
+
.bottom-item_img{
|
|
135
|
+
width: 100rpx;
|
|
136
|
+
height: 100rpx;
|
|
137
|
+
border-radius: 50%;
|
|
138
|
+
}
|
|
139
|
+
.share-btn {
|
|
140
|
+
width: 100rpx;
|
|
141
|
+
height: 100rpx;
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
.active-poster{
|
|
146
|
+
border: 2px solid #1472FF;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.cancel-btn {
|
|
150
|
+
width: 100%;
|
|
151
|
+
height: 96rpx;
|
|
152
|
+
background: #FFFFFF;
|
|
153
|
+
color: #000000;
|
|
154
|
+
font-size: 28rpx;
|
|
155
|
+
display: flex;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
align-items: center;
|
|
158
|
+
position: absolute;
|
|
159
|
+
bottom: 68rpx;
|
|
160
|
+
}
|
|
161
|
+
.blank-view {
|
|
162
|
+
position: absolute;
|
|
163
|
+
bottom: 0;
|
|
164
|
+
height: 68rpx;
|
|
165
|
+
width: 100%;
|
|
166
|
+
background: #FFFFFF;
|
|
167
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// import room from '@/api/room';
|
|
2
|
+
import {
|
|
3
|
+
getActivityRules
|
|
4
|
+
} from "../../../../common/api/eLiveInvite";
|
|
5
|
+
Component({
|
|
6
|
+
properties: {
|
|
7
|
+
inActivity: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
value: false
|
|
10
|
+
},
|
|
11
|
+
roomInfo: {
|
|
12
|
+
type: Object,
|
|
13
|
+
value: {}
|
|
14
|
+
},
|
|
15
|
+
appId: {
|
|
16
|
+
type: String,
|
|
17
|
+
value: ""
|
|
18
|
+
},
|
|
19
|
+
userId: {
|
|
20
|
+
type: String,
|
|
21
|
+
value: ""
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
data: {
|
|
25
|
+
rewardList: [],
|
|
26
|
+
// 折叠后展示的奖品
|
|
27
|
+
displayRewardList: [
|
|
28
|
+
{
|
|
29
|
+
prize: '一个钻石',
|
|
30
|
+
min: 1,
|
|
31
|
+
max: 1
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
prize: '一个项链',
|
|
35
|
+
min: 2,
|
|
36
|
+
max: 5
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
prize: '一个戒指戒指戒指戒指戒指戒指戒指戒指',
|
|
40
|
+
min: 6,
|
|
41
|
+
max: 10
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
prize: '一个石头石头石头石头石头石头石头石头石头石头',
|
|
45
|
+
min: 11,
|
|
46
|
+
max: 20
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
isShowRules: false,
|
|
50
|
+
isShowReward: true,
|
|
51
|
+
isFold: true // 折叠奖品
|
|
52
|
+
},
|
|
53
|
+
ready() {
|
|
54
|
+
this.getRewardsList();
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
getRewardsList() {
|
|
58
|
+
// let params = {
|
|
59
|
+
// bizData: {
|
|
60
|
+
// resource_id: this.properties.roomInfo.alive_id,
|
|
61
|
+
// resource_type: 4
|
|
62
|
+
// },
|
|
63
|
+
// user_id: this.properties.userId,
|
|
64
|
+
// app_id: this.properties.appId
|
|
65
|
+
|
|
66
|
+
// }
|
|
67
|
+
let params = {
|
|
68
|
+
bizData: {
|
|
69
|
+
resource_id: "l_61935f8260b219ba0025f301",
|
|
70
|
+
resource_type: 4
|
|
71
|
+
},
|
|
72
|
+
user_id: "u_6119db8f279b3_BLLGPeghc5",
|
|
73
|
+
app_id: "appmzd7lhrj6214"
|
|
74
|
+
|
|
75
|
+
}
|
|
76
|
+
getActivityRules(params).then(res => {
|
|
77
|
+
let DATA = res.data;
|
|
78
|
+
if (DATA.code === 0) {
|
|
79
|
+
this.setData({
|
|
80
|
+
rewardList: DATA.data.prize_rules,
|
|
81
|
+
isShowRules: !!DATA.data.is_show_remark
|
|
82
|
+
})
|
|
83
|
+
this.computedDisplayReward(this.data.isFold, this.data.rewardList)
|
|
84
|
+
} else {
|
|
85
|
+
wx.showToast({
|
|
86
|
+
title: DATA.msg,
|
|
87
|
+
icon: 'error'
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
}).catch(err => {
|
|
91
|
+
wx.showToast({
|
|
92
|
+
title: err.data.msg,
|
|
93
|
+
icon: 'error'
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
},
|
|
97
|
+
// 重新计算展示奖品数目
|
|
98
|
+
computedDisplayReward(ISFOLD, REWARD) {
|
|
99
|
+
let displayRewardList = ISFOLD ? REWARD.slice(0, 1) : REWARD;
|
|
100
|
+
this.setData({
|
|
101
|
+
displayRewardList: displayRewardList
|
|
102
|
+
})
|
|
103
|
+
},
|
|
104
|
+
// 切换折叠效果
|
|
105
|
+
switchFold() {
|
|
106
|
+
this.setData({
|
|
107
|
+
isFold: !this.data.isFold
|
|
108
|
+
})
|
|
109
|
+
this.computedDisplayReward(this.data.isFold, this.data.rewardList);
|
|
110
|
+
},
|
|
111
|
+
// 向父组件发送事件:打开规则详情弹窗
|
|
112
|
+
openRuleDetail() {
|
|
113
|
+
this.triggerEvent('openRuleDetail')
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
})
|