xiaoe_mp_npm 0.2.2-beta1 → 0.2.2-beta2
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/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.js +145 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.json +4 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +23 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +90 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.js +227 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.json +4 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.wxml +64 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/invite-poster/invite-poster.wxss +167 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.js +117 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.json +4 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.wxml +36 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rewards/rewards.wxss +92 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.js +90 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.json +4 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.wxml +16 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/rules/rules.wxss +48 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +232 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.json +10 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +271 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxml +122 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxss +267 -0
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/libs/base64.js +234 -0
- package/miniprogram_dist/AliveInvite/images/copylink.png +0 -0
- package/miniprogram_dist/AliveInvite/images/cup.png +0 -0
- package/miniprogram_dist/AliveInvite/images/icon_arrow_right_white.png +0 -0
- package/miniprogram_dist/AliveInvite/images/icon_arrow_up.png +0 -0
- package/miniprogram_dist/AliveInvite/images/invite_entrance/new_crown_blue_pure.svg +29 -0
- package/miniprogram_dist/AliveInvite/images/invite_entrance/new_crown_pink_pure.svg +29 -0
- package/miniprogram_dist/AliveInvite/images/invite_entrance/new_crown_yellow_pure.svg +27 -0
- package/miniprogram_dist/AliveInvite/images/liveClose.png +0 -0
- package/miniprogram_dist/AliveInvite/images/new_emptypage.svg +59 -0
- package/miniprogram_dist/AliveInvite/images/new_icon_close.png +0 -0
- package/miniprogram_dist/AliveInvite/images/new_invite_title.svg +23 -0
- package/miniprogram_dist/AliveInvite/images/new_share_icon.png +0 -0
- package/miniprogram_dist/AliveInvite/images/rank_first.svg +11 -0
- package/miniprogram_dist/AliveInvite/images/rank_second.svg +11 -0
- package/miniprogram_dist/AliveInvite/images/rank_third.svg +11 -0
- package/miniprogram_dist/AliveInvite/images/u_6182407864819_jXJGQ1pe0d.png +0 -0
- package/miniprogram_dist/AliveInvite/images/wechat.png +0 -0
- package/miniprogram_dist/CollectionAddress/index.js +285 -0
- package/miniprogram_dist/CollectionAddress/index.json +14 -0
- package/miniprogram_dist/CollectionAddress/index.less +5 -0
- package/miniprogram_dist/CollectionAddress/index.wxml +91 -0
- package/miniprogram_dist/CollectionAddress/index.wxss +5 -0
- package/miniprogram_dist/ConfirmOrder/README.md +12 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.js +343 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.json +11 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.less +98 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxml +39 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxss +99 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.js +160 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.json +8 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.less +96 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxml +37 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxss +98 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +160 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.less +80 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxml +34 -0
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxss +67 -0
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.js +110 -0
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.less +21 -0
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxml +10 -0
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxss +18 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +831 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +23 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.less +12 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +172 -0
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxss +10 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.js +72 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.less +45 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxml +18 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityGiftList/index.wxss +39 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/filter.wxs +8 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.js +92 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.less +109 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxml +29 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/components/entityItem/index.wxss +96 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.js +78 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.json +8 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.less +52 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxml +27 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/GoodsCommerce/index.wxss +45 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.js +69 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.less +14 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxml +4 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/ImageData/index.wxss +13 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/filter.wxs +7 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.js +429 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.json +9 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.less +182 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxml +75 -0
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/index.wxss +153 -0
- package/miniprogram_dist/ConfirmOrder/components/Header/index.js +50 -0
- package/miniprogram_dist/ConfirmOrder/components/Header/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/Header/index.less +31 -0
- package/miniprogram_dist/ConfirmOrder/components/Header/index.wxml +10 -0
- package/miniprogram_dist/ConfirmOrder/components/Header/index.wxss +27 -0
- package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.js +108 -0
- package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.less +0 -0
- package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.wxml +13 -0
- package/miniprogram_dist/ConfirmOrder/components/InfoCollect/index.wxss +1 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.js +85 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.less +64 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxml +31 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/componenets/integralTips/index.wxss +57 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/filter.wxs +7 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.js +83 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.json +8 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.less +55 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxml +27 -0
- package/miniprogram_dist/ConfirmOrder/components/IntegralSelect/index.wxss +47 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.js +284 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.json +8 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.less +162 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxml +89 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceSelect/index.wxss +152 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.js +33 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.less +49 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxml +17 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/components/InvoiceTip/index.wxss +58 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.js +155 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.json +7 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.less +29 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxml +24 -0
- package/miniprogram_dist/ConfirmOrder/components/Invoice/index.wxss +23 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.js +61 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.less +6 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxml +11 -0
- package/miniprogram_dist/ConfirmOrder/components/LeaveWord/index.wxss +6 -0
- package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.js +50 -0
- package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.wxml +1 -0
- package/miniprogram_dist/ConfirmOrder/components/LimitDiscount/index.wxss +1 -0
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.js +42 -0
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.json +7 -0
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.less +35 -0
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.wxml +7 -0
- package/miniprogram_dist/ConfirmOrder/components/ModeSelect/index.wxss +44 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.js +233 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.less +32 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxml +26 -0
- package/miniprogram_dist/ConfirmOrder/components/PayBar/index.wxss +27 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/filter.wxs +16 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.js +68 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.less +16 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxml +18 -0
- package/miniprogram_dist/ConfirmOrder/components/PayDetail/index.wxss +14 -0
- package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.js +23 -0
- package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.wxml +2 -0
- package/miniprogram_dist/ConfirmOrder/components/PayGifts/index.wxss +1 -0
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.js +80 -0
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.json +8 -0
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.less +24 -0
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxml +14 -0
- package/miniprogram_dist/ConfirmOrder/components/PickupSelect/index.wxss +22 -0
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.js +147 -0
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.json +7 -0
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.less +96 -0
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.wxml +46 -0
- package/miniprogram_dist/ConfirmOrder/components/SelectSite/index.wxss +82 -0
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.js +100 -0
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.json +6 -0
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.less +70 -0
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.wxml +16 -0
- package/miniprogram_dist/ConfirmOrder/components/Shipper/index.wxss +76 -0
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.js +218 -0
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.json +8 -0
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.less +77 -0
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.wxml +20 -0
- package/miniprogram_dist/ConfirmOrder/components/ShipperEdit/index.wxss +78 -0
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.js +78 -0
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.json +4 -0
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.less +25 -0
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.wxml +9 -0
- package/miniprogram_dist/ConfirmOrder/components/WechatAddress/index.wxss +22 -0
- package/miniprogram_dist/ConfirmOrder/index.js +72 -0
- package/miniprogram_dist/ConfirmOrder/index.json +9 -0
- package/miniprogram_dist/ConfirmOrder/index.less +5 -0
- package/miniprogram_dist/ConfirmOrder/index.wxml +25 -0
- package/miniprogram_dist/ConfirmOrder/index.wxss +5 -0
- package/miniprogram_dist/CouponList/README.md +6 -0
- package/miniprogram_dist/CouponList/components/CouponItem/index.js +239 -0
- package/miniprogram_dist/CouponList/components/CouponItem/index.json +5 -0
- package/miniprogram_dist/CouponList/components/CouponItem/index.less +288 -0
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxml +191 -0
- package/miniprogram_dist/CouponList/components/CouponItem/index.wxss +276 -0
- package/miniprogram_dist/CouponList/couponColumn/index.js +65 -0
- package/miniprogram_dist/CouponList/couponColumn/index.json +6 -0
- package/miniprogram_dist/CouponList/couponColumn/index.less +32 -0
- package/miniprogram_dist/CouponList/couponColumn/index.wxml +23 -0
- package/miniprogram_dist/CouponList/couponColumn/index.wxss +31 -0
- package/miniprogram_dist/CouponList/couponMsg/index.js +27 -0
- package/miniprogram_dist/CouponList/couponMsg/index.json +6 -0
- package/miniprogram_dist/CouponList/couponMsg/index.less +3 -0
- package/miniprogram_dist/CouponList/couponMsg/index.wxml +10 -0
- package/miniprogram_dist/CouponList/couponMsg/index.wxss +3 -0
- package/miniprogram_dist/CurrentPay/index.js +56 -0
- package/miniprogram_dist/CurrentPay/index.json +9 -0
- package/miniprogram_dist/CurrentPay/index.wxml +11 -0
- package/miniprogram_dist/CurrentPay/index.wxss +1 -0
- package/miniprogram_dist/CurrentPayModule/index.js +256 -0
- package/miniprogram_dist/CurrentPayModule/index.json +9 -0
- package/miniprogram_dist/CurrentPayModule/index.less +13 -0
- package/miniprogram_dist/CurrentPayModule/index.wxml +4 -0
- package/miniprogram_dist/CurrentPayModule/index.wxss +13 -0
- package/miniprogram_dist/CustomPopup/index.js +56 -0
- package/miniprogram_dist/CustomPopup/index.json +6 -0
- package/miniprogram_dist/CustomPopup/index.less +15 -0
- package/miniprogram_dist/CustomPopup/index.wxml +18 -0
- package/miniprogram_dist/CustomPopup/index.wxss +15 -0
- package/miniprogram_dist/GoodsItem/index.js +538 -0
- package/miniprogram_dist/GoodsItem/index.json +6 -0
- package/miniprogram_dist/GoodsItem/index.less +249 -0
- package/miniprogram_dist/GoodsItem/index.wxml +90 -0
- package/miniprogram_dist/GoodsItem/index.wxss +261 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.js +36 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.json +6 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.less +45 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.wxml +28 -0
- package/miniprogram_dist/LiveGoodsList/Header/index.wxss +44 -0
- package/miniprogram_dist/LiveGoodsList/README.md +10 -0
- package/miniprogram_dist/LiveGoodsList/index.js +423 -0
- package/miniprogram_dist/LiveGoodsList/index.json +10 -0
- package/miniprogram_dist/LiveGoodsList/index.less +53 -0
- package/miniprogram_dist/LiveGoodsList/index.wxml +74 -0
- package/miniprogram_dist/LiveGoodsList/index.wxss +50 -0
- package/miniprogram_dist/Lottery/components/AddressCollection/index.js +73 -0
- package/miniprogram_dist/Lottery/components/AddressCollection/index.json +7 -0
- package/miniprogram_dist/Lottery/components/AddressCollection/index.less +39 -0
- package/miniprogram_dist/Lottery/components/AddressCollection/index.wxml +16 -0
- package/miniprogram_dist/Lottery/components/AddressCollection/index.wxss +39 -0
- package/miniprogram_dist/Lottery/components/CommonPopup/index.js +57 -0
- package/miniprogram_dist/Lottery/components/CommonPopup/index.json +6 -0
- package/miniprogram_dist/Lottery/components/CommonPopup/index.less +66 -0
- package/miniprogram_dist/Lottery/components/CommonPopup/index.wxml +23 -0
- package/miniprogram_dist/Lottery/components/CommonPopup/index.wxss +61 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.js +34 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.json +6 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.less +36 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.wxml +8 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/RecordItem/index.wxss +36 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/index.js +59 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/index.json +7 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/index.less +40 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/index.wxml +15 -0
- package/miniprogram_dist/Lottery/components/JoinRecords/index.wxss +40 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/animation.js +1 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/index.js +64 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/index.json +4 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/index.less +14 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/index.wxml +4 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/index.wxss +12 -0
- package/miniprogram_dist/Lottery/components/LotteryAnimation/lottie-miniprogram-sdk.js +9 -0
- package/miniprogram_dist/Lottery/components/LotteryFAB/index.js +99 -0
- package/miniprogram_dist/Lottery/components/LotteryFAB/index.json +6 -0
- package/miniprogram_dist/Lottery/components/LotteryFAB/index.less +36 -0
- package/miniprogram_dist/Lottery/components/LotteryFAB/index.wxml +17 -0
- package/miniprogram_dist/Lottery/components/LotteryFAB/index.wxss +36 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.js +34 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.json +5 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.less +17 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.wxml +3 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/Indicator/index.wxss +17 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.js +37 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.json +5 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.less +17 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.wxml +9 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/LotteryCountdown/index.wxss +17 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.js +159 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.json +10 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.less +99 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxml +50 -0
- package/miniprogram_dist/Lottery/components/LotteryInfo/index.wxss +104 -0
- package/miniprogram_dist/Lottery/components/LotteryMsg/index.js +42 -0
- package/miniprogram_dist/Lottery/components/LotteryMsg/index.json +5 -0
- package/miniprogram_dist/Lottery/components/LotteryMsg/index.less +22 -0
- package/miniprogram_dist/Lottery/components/LotteryMsg/index.wxml +11 -0
- package/miniprogram_dist/Lottery/components/LotteryMsg/index.wxss +20 -0
- package/miniprogram_dist/Lottery/components/LotteryPopups/index.js +178 -0
- package/miniprogram_dist/Lottery/components/LotteryPopups/index.json +13 -0
- package/miniprogram_dist/Lottery/components/LotteryPopups/index.wxml +7 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.js +35 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.json +7 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.less +48 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxml +16 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/LosingLottery/index.wxss +48 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.js +144 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.json +7 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.less +68 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxml +23 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/WinLottery/index.wxss +73 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/index.js +56 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/index.json +9 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/index.less +0 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/index.wxml +10 -0
- package/miniprogram_dist/Lottery/components/LotteryResult/index.wxss +0 -0
- package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.js +40 -0
- package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.json +7 -0
- package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.less +61 -0
- package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.wxml +19 -0
- package/miniprogram_dist/Lottery/components/MerchantContactInfo/index.wxss +61 -0
- package/miniprogram_dist/Lottery/components/MyLottery/index.js +52 -0
- package/miniprogram_dist/Lottery/components/MyLottery/index.json +11 -0
- package/miniprogram_dist/Lottery/components/MyLottery/index.wxml +12 -0
- package/miniprogram_dist/Lottery/components/MyLottery/index.wxss +0 -0
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.js +33 -0
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.json +6 -0
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.less +33 -0
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxml +11 -0
- package/miniprogram_dist/Lottery/components/NobodyAttend/index.wxss +33 -0
- package/miniprogram_dist/Lottery/components/PrizeCard/index.js +19 -0
- package/miniprogram_dist/Lottery/components/PrizeCard/index.json +5 -0
- package/miniprogram_dist/Lottery/components/PrizeCard/index.less +42 -0
- package/miniprogram_dist/Lottery/components/PrizeCard/index.wxml +8 -0
- package/miniprogram_dist/Lottery/components/PrizeCard/index.wxss +42 -0
- package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.js +137 -0
- package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.json +6 -0
- package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.less +77 -0
- package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.wxml +14 -0
- package/miniprogram_dist/Lottery/components/RewardList/RewardItem/index.wxss +77 -0
- package/miniprogram_dist/Lottery/components/RewardList/index.js +70 -0
- package/miniprogram_dist/Lottery/components/RewardList/index.json +7 -0
- package/miniprogram_dist/Lottery/components/RewardList/index.less +62 -0
- package/miniprogram_dist/Lottery/components/RewardList/index.wxml +28 -0
- package/miniprogram_dist/Lottery/components/RewardList/index.wxss +62 -0
- package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.js +14 -0
- package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.json +6 -0
- package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.less +41 -0
- package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.wxml +8 -0
- package/miniprogram_dist/Lottery/components/Winners/WinnerItem/index.wxss +50 -0
- package/miniprogram_dist/Lottery/components/Winners/index.js +80 -0
- package/miniprogram_dist/Lottery/components/Winners/index.json +7 -0
- package/miniprogram_dist/Lottery/components/Winners/index.less +49 -0
- package/miniprogram_dist/Lottery/components/Winners/index.wxml +31 -0
- package/miniprogram_dist/Lottery/components/Winners/index.wxss +49 -0
- package/miniprogram_dist/Lottery/constants.js +119 -0
- package/miniprogram_dist/Lottery/countdown.js +88 -0
- package/miniprogram_dist/Lottery/eventBus.js +29 -0
- package/miniprogram_dist/Lottery/remotePic.js +52 -0
- package/miniprogram_dist/Lottery/store/effect.js +204 -0
- package/miniprogram_dist/Lottery/store/index.js +35 -0
- package/miniprogram_dist/Lottery/store/reducer.js +194 -0
- package/miniprogram_dist/Lottery/store/util.js +116 -0
- package/miniprogram_dist/Lottery/utils.js +68 -0
- package/miniprogram_dist/PayComplete/Components/CouponItem/index.js +51 -0
- package/miniprogram_dist/PayComplete/Components/CouponItem/index.json +4 -0
- package/miniprogram_dist/PayComplete/Components/CouponItem/index.less +143 -0
- package/miniprogram_dist/PayComplete/Components/CouponItem/index.wxml +47 -0
- package/miniprogram_dist/PayComplete/Components/CouponItem/index.wxss +122 -0
- package/miniprogram_dist/PayComplete/Components/CouponItem/sub.wxs +73 -0
- package/miniprogram_dist/PayComplete/Components/LeadGroup/index.js +95 -0
- package/miniprogram_dist/PayComplete/Components/LeadGroup/index.json +7 -0
- package/miniprogram_dist/PayComplete/Components/LeadGroup/index.less +38 -0
- package/miniprogram_dist/PayComplete/Components/LeadGroup/index.wxml +6 -0
- package/miniprogram_dist/PayComplete/Components/LeadGroup/index.wxss +33 -0
- package/miniprogram_dist/PayComplete/Components/PayGifts/index.js +130 -0
- package/miniprogram_dist/PayComplete/Components/PayGifts/index.json +6 -0
- package/miniprogram_dist/PayComplete/Components/PayGifts/index.less +178 -0
- package/miniprogram_dist/PayComplete/Components/PayGifts/index.wxml +58 -0
- package/miniprogram_dist/PayComplete/Components/PayGifts/index.wxss +157 -0
- package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.js +62 -0
- package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.json +6 -0
- package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.less +26 -0
- package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.wxml +4 -0
- package/miniprogram_dist/PayComplete/Components/PayState/earnIntegral/index.wxss +23 -0
- package/miniprogram_dist/PayComplete/Components/PayState/index.js +38 -0
- package/miniprogram_dist/PayComplete/Components/PayState/index.json +7 -0
- package/miniprogram_dist/PayComplete/Components/PayState/index.less +23 -0
- package/miniprogram_dist/PayComplete/Components/PayState/index.wxml +11 -0
- package/miniprogram_dist/PayComplete/Components/PayState/index.wxss +20 -0
- package/miniprogram_dist/PayComplete/index.js +143 -0
- package/miniprogram_dist/PayComplete/index.json +11 -0
- package/miniprogram_dist/PayComplete/index.less +16 -0
- package/miniprogram_dist/PayComplete/index.wxml +31 -0
- package/miniprogram_dist/PayComplete/index.wxss +16 -0
- package/miniprogram_dist/PayModule/README.md +0 -0
- package/miniprogram_dist/PayModule/button/index.js +44 -0
- package/miniprogram_dist/PayModule/button/index.json +6 -0
- package/miniprogram_dist/PayModule/button/index.less +16 -0
- package/miniprogram_dist/PayModule/button/index.wxml +8 -0
- package/miniprogram_dist/PayModule/button/index.wxss +28 -0
- package/miniprogram_dist/PayModule/index/index.js +254 -0
- package/miniprogram_dist/PayModule/index/index.json +7 -0
- package/miniprogram_dist/PayModule/index/index.less +0 -0
- package/miniprogram_dist/PayModule/index/index.wxml +12 -0
- package/miniprogram_dist/PayModule/index/index.wxss +1 -0
- package/miniprogram_dist/PayModule/wechatLoading/index.js +43 -0
- package/miniprogram_dist/PayModule/wechatLoading/index.json +4 -0
- package/miniprogram_dist/PayModule/wechatLoading/index.less +66 -0
- package/miniprogram_dist/PayModule/wechatLoading/index.wxml +12 -0
- package/miniprogram_dist/PayModule/wechatLoading/index.wxss +57 -0
- package/miniprogram_dist/Recommend/index.js +58 -0
- package/miniprogram_dist/Recommend/index.json +4 -0
- package/miniprogram_dist/Recommend/index.less +116 -0
- package/miniprogram_dist/Recommend/index.wxml +29 -0
- package/miniprogram_dist/Recommend/index.wxss +110 -0
- package/miniprogram_dist/SharePoster/PosterDom/index.js +1898 -0
- package/miniprogram_dist/SharePoster/PosterDom/index.json +5 -0
- package/miniprogram_dist/SharePoster/PosterDom/index.less +57 -0
- package/miniprogram_dist/SharePoster/PosterDom/index.wxml +13 -0
- package/miniprogram_dist/SharePoster/PosterDom/index.wxss +57 -0
- package/miniprogram_dist/SharePoster/README.md +10 -0
- package/miniprogram_dist/SharePoster/ShareTextPopup/index.js +66 -0
- package/miniprogram_dist/SharePoster/ShareTextPopup/index.json +7 -0
- package/miniprogram_dist/SharePoster/ShareTextPopup/index.less +75 -0
- package/miniprogram_dist/SharePoster/ShareTextPopup/index.wxml +29 -0
- package/miniprogram_dist/SharePoster/ShareTextPopup/index.wxss +75 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.js +40 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.less +0 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.wxml +6 -0
- package/miniprogram_dist/SharePoster/components/saveTip/index.wxss +21 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.js +38 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.less +0 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.wxml +9 -0
- package/miniprogram_dist/SharePoster/components/settingModal/index.wxss +45 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.js +35 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxml +5 -0
- package/miniprogram_dist/SharePoster/components/shareCircleTip/index.wxss +35 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.js +35 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.json +5 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxml +11 -0
- package/miniprogram_dist/SharePoster/components/unauthorizedModal/index.wxss +51 -0
- package/miniprogram_dist/SharePoster/createPoster/index.js +201 -0
- package/miniprogram_dist/SharePoster/createPoster/utils/drawImage.js +267 -0
- package/miniprogram_dist/SharePoster/createPoster/utils/util.js +40 -0
- package/miniprogram_dist/SharePoster/libs/constant.js +57 -0
- package/miniprogram_dist/SharePoster/libs/positionMap.js +255 -0
- package/miniprogram_dist/SharePoster/mockData/mockData.js +591 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.js +658 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.json +13 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.less +181 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.wxml +94 -0
- package/miniprogram_dist/SharePoster/sharePopup/index.wxss +193 -0
- package/miniprogram_dist/Sku/commSelect/index.js +427 -0
- package/miniprogram_dist/Sku/commSelect/index.json +8 -0
- package/miniprogram_dist/Sku/commSelect/index.less +48 -0
- package/miniprogram_dist/Sku/commSelect/index.wxml +41 -0
- package/miniprogram_dist/Sku/commSelect/index.wxss +45 -0
- package/miniprogram_dist/Sku/goods-info/index.js +52 -0
- package/miniprogram_dist/Sku/goods-info/index.json +4 -0
- package/miniprogram_dist/Sku/goods-info/index.less +48 -0
- package/miniprogram_dist/Sku/goods-info/index.wxml +19 -0
- package/miniprogram_dist/Sku/goods-info/index.wxss +48 -0
- package/miniprogram_dist/Sku/index/index.js +280 -0
- package/miniprogram_dist/Sku/index/index.json +12 -0
- package/miniprogram_dist/Sku/index/index.less +78 -0
- package/miniprogram_dist/Sku/index/index.wxml +58 -0
- package/miniprogram_dist/Sku/index/index.wxss +50 -0
- package/miniprogram_dist/Sku/row-item/index.js +61 -0
- package/miniprogram_dist/Sku/row-item/index.json +4 -0
- package/miniprogram_dist/Sku/row-item/index.less +48 -0
- package/miniprogram_dist/Sku/row-item/index.wxml +10 -0
- package/miniprogram_dist/Sku/row-item/index.wxss +42 -0
- package/miniprogram_dist/Sku/step/index.js +95 -0
- package/miniprogram_dist/Sku/step/index.json +6 -0
- package/miniprogram_dist/Sku/step/index.less +11 -0
- package/miniprogram_dist/Sku/step/index.wxml +11 -0
- package/miniprogram_dist/Sku/step/index.wxss +11 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.js +36 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.json +6 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.less +47 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.wxml +27 -0
- package/miniprogram_dist/TeacherGoodsList/Header/index.wxss +45 -0
- package/miniprogram_dist/TeacherGoodsList/README.md +10 -0
- package/miniprogram_dist/TeacherGoodsList/index.js +269 -0
- package/miniprogram_dist/TeacherGoodsList/index.json +8 -0
- package/miniprogram_dist/TeacherGoodsList/index.less +53 -0
- package/miniprogram_dist/TeacherGoodsList/index.wxml +49 -0
- package/miniprogram_dist/TeacherGoodsList/index.wxss +50 -0
- package/miniprogram_dist/common/api/confirmOrder.js +218 -0
- package/miniprogram_dist/common/api/coupon.js +19 -0
- package/miniprogram_dist/common/api/couponlist.js +106 -0
- package/miniprogram_dist/common/api/eLiveInvite.js +46 -0
- package/miniprogram_dist/common/api/liveGoodsList.js +52 -0
- package/miniprogram_dist/common/api/lottery.js +57 -0
- package/miniprogram_dist/common/api/pay.js +42 -0
- package/miniprogram_dist/common/api/payComplete.js +22 -0
- package/miniprogram_dist/common/api/sharePoster.js +68 -0
- package/miniprogram_dist/common/api/sku.js +58 -0
- package/miniprogram_dist/common/assets/copy.wxss +3 -0
- package/miniprogram_dist/common/assets/icon.png +0 -0
- package/miniprogram_dist/common/assets/images/activity.png +0 -0
- package/miniprogram_dist/common/assets/images/address.png +0 -0
- package/miniprogram_dist/common/assets/images/bg_gift@2x.png +0 -0
- package/miniprogram_dist/common/assets/images/close.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/coupon_bg.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/coupon_finish.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/coupon_select.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/coupon_style2.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/coupon_style2.svg +30 -0
- package/miniprogram_dist/common/assets/images/coupon/coupons_style2.svg +30 -0
- package/miniprogram_dist/common/assets/images/coupon/down.svg +22 -0
- package/miniprogram_dist/common/assets/images/coupon/emptypage.svg +50 -0
- package/miniprogram_dist/common/assets/images/coupon/expand.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/failed.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/failed.svg +5 -0
- package/miniprogram_dist/common/assets/images/coupon/finished.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/has_receive.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/has_recevie_style2.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/hint.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/icon_arrow.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/retract.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/seal_receivingPage_received.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/superposition_logo.png +0 -0
- package/miniprogram_dist/common/assets/images/coupon/up.svg +22 -0
- package/miniprogram_dist/common/assets/images/fingerprint.png +0 -0
- package/miniprogram_dist/common/assets/images/icon-tip.png +0 -0
- package/miniprogram_dist/common/assets/images/img_adrr.png +0 -0
- package/miniprogram_dist/common/assets/images/left.png +0 -0
- package/miniprogram_dist/common/assets/images/liveGoodsList/explaining.png +0 -0
- package/miniprogram_dist/common/assets/images/liveGoodsList/no-data.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/arrow-right.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/black-right-arrow.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/close-f-new.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/icon_back_black.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/is_not_winner.svg +19 -0
- package/miniprogram_dist/common/assets/images/lottery/lotteryV2_close.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/lottery_v1_back.svg +19 -0
- package/miniprogram_dist/common/assets/images/lottery/lottery_v1_close.svg +19 -0
- package/miniprogram_dist/common/assets/images/lottery/prize_icon_new_land.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/reward_list_title.svg +19 -0
- package/miniprogram_dist/common/assets/images/lottery/white_right_arrow.png +0 -0
- package/miniprogram_dist/common/assets/images/lottery/winner_list_smile_icon.svg +56 -0
- package/miniprogram_dist/common/assets/images/lottery/winner_list_title.svg +19 -0
- package/miniprogram_dist/common/assets/images/package.png +0 -0
- package/miniprogram_dist/common/assets/images/pay/loading.svg +3 -0
- package/miniprogram_dist/common/assets/images/recommend.svg +6 -0
- package/miniprogram_dist/common/assets/images/recommend_with_bg.png +0 -0
- package/miniprogram_dist/common/assets/images/refresh.svg +10 -0
- package/miniprogram_dist/common/assets/images/refresh_white.svg +3 -0
- package/miniprogram_dist/common/assets/images/replenish.png +0 -0
- package/miniprogram_dist/common/assets/images/search-bg.png +0 -0
- package/miniprogram_dist/common/assets/images/shop.png +0 -0
- package/miniprogram_dist/common/assets/images/success.png +0 -0
- package/miniprogram_dist/common/assets/images/tips.png +0 -0
- package/miniprogram_dist/common/assets/images/update.png +0 -0
- package/miniprogram_dist/common/assets/images/wechat.svg +4 -0
- package/miniprogram_dist/common/assets/images/wx.png +0 -0
- package/miniprogram_dist/common/assets/images/zhixiang.png +0 -0
- package/miniprogram_dist/common/css/index.less +2 -0
- package/miniprogram_dist/common/css/index.wxss +1 -0
- package/miniprogram_dist/common/css/theme.less +20 -0
- package/miniprogram_dist/common/css/theme.wxss +16 -0
- package/miniprogram_dist/common/libs/dataUp/sensorUp.js +92 -0
- package/miniprogram_dist/common/libs/playerHttp.js +58 -0
- package/miniprogram_dist/common/libs/playerRequestUrl.js +40 -0
- package/miniprogram_dist/common/utils/constants.js +256 -0
- package/miniprogram_dist/common/utils/currency.js +52 -0
- package/miniprogram_dist/common/utils/helper.js +160 -0
- package/miniprogram_dist/common/utils/index.js +56 -0
- package/miniprogram_dist/common/utils/postCouponList.js +53 -0
- package/miniprogram_dist/common/utils/tool.js +66 -0
- package/miniprogram_dist/common/wxs/filter.wxs +30 -0
- package/miniprogram_dist/coupon/README.md +12 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.js +176 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.json +6 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.less +208 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.wxml +100 -0
- package/miniprogram_dist/coupon/components/CouponItem/index.wxss +195 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.js +324 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.json +9 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.less +238 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.wxml +75 -0
- package/miniprogram_dist/coupon/components/CouponSelect/index.wxss +249 -0
- package/miniprogram_dist/coupon/index.css +50 -0
- package/miniprogram_dist/coupon/index.js +205 -0
- package/miniprogram_dist/coupon/index.json +8 -0
- package/miniprogram_dist/coupon/index.less +51 -0
- package/miniprogram_dist/coupon/index.wxml +24 -0
- package/miniprogram_dist/coupon/index.wxss +50 -0
- package/miniprogram_dist/index.js +117 -0
- package/miniprogram_dist/index.js.map +1 -0
- package/miniprogram_dist/index.json +5 -0
- package/miniprogram_dist/index.wxml +2 -0
- package/miniprogram_dist/index.wxss +1 -0
- package/miniprogram_dist/lib.js +105 -0
- package/miniprogram_dist/lib.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
// src/ConfirmOrder/components/ConfirmOrderContent/index.js
|
|
2
|
+
import {
|
|
3
|
+
getConfirmOrderDetail,
|
|
4
|
+
getExpressSwitch,
|
|
5
|
+
getPickerInfo,
|
|
6
|
+
getGoodsPackage,
|
|
7
|
+
getSuperVipInfo,
|
|
8
|
+
getBusinessFeature,
|
|
9
|
+
getMarketingInfo,
|
|
10
|
+
getPrePayInfoV3,
|
|
11
|
+
getShopConf
|
|
12
|
+
} from "../../../common/api/confirmOrder"
|
|
13
|
+
import {
|
|
14
|
+
isEmptyObject
|
|
15
|
+
} from "../../../common/utils/index"
|
|
16
|
+
import {
|
|
17
|
+
postCouponList
|
|
18
|
+
} from "../../../common/utils/postCouponList"
|
|
19
|
+
import {
|
|
20
|
+
MEMBER,
|
|
21
|
+
SPECIAL_COLUMN,
|
|
22
|
+
BIG_SPECIAL_COLUMN,
|
|
23
|
+
TRAINING_CAMP,
|
|
24
|
+
} from "../../../common/utils/constants.js";
|
|
25
|
+
import {
|
|
26
|
+
debounce
|
|
27
|
+
} from "../../../common/utils/tool.js"
|
|
28
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
29
|
+
|
|
30
|
+
Component({
|
|
31
|
+
behaviors: [computedBehavior],
|
|
32
|
+
/**
|
|
33
|
+
* 组件的属性列表
|
|
34
|
+
*/
|
|
35
|
+
properties: {
|
|
36
|
+
baseInfoQuery: {
|
|
37
|
+
type: Object,
|
|
38
|
+
value: () => {},
|
|
39
|
+
},
|
|
40
|
+
isCart: {
|
|
41
|
+
type: Number,
|
|
42
|
+
value: 0,
|
|
43
|
+
},
|
|
44
|
+
isTeam: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false,
|
|
47
|
+
},
|
|
48
|
+
aliveInfo:{
|
|
49
|
+
type: Object,
|
|
50
|
+
value:{}
|
|
51
|
+
},
|
|
52
|
+
sensorReportParams:{
|
|
53
|
+
type: Object,
|
|
54
|
+
value:{}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* 组件的初始数据
|
|
61
|
+
*/
|
|
62
|
+
data: {
|
|
63
|
+
activeMode: 0, // 0:快递配送,1:自提
|
|
64
|
+
express_type: 1, // 接口下发配送信息 1-快递配送 2-商品自提
|
|
65
|
+
userCanPick: 1, // 商家是否支持自提 1支持 0不支持
|
|
66
|
+
shopConf: {},
|
|
67
|
+
confirmOrderInfo: {
|
|
68
|
+
// 订单页详细信息(通过查询接口拿到)
|
|
69
|
+
app_info: {},
|
|
70
|
+
goods_info: {},
|
|
71
|
+
},
|
|
72
|
+
distributionMode: 0, // 配送方式 -1全部 1快递配送 2商品自提 (目前只支持实物商品,非实物商品返回0)
|
|
73
|
+
resource_id: "",
|
|
74
|
+
addressInfo: {}, // 地址信息(非自提)
|
|
75
|
+
pickerUserInfo: {}, // 自提人信息
|
|
76
|
+
hasEntityGoods: false, // 商品套餐是否包含实物商品
|
|
77
|
+
superVipInfo: {}, // 超级会员信息
|
|
78
|
+
businessConf: {},
|
|
79
|
+
marketingData: {}, //营销数据
|
|
80
|
+
isShowPoint: false, // 是否显示选择提货点组件
|
|
81
|
+
isShowSelectShipper: false, // 是否显示选择提货人组件
|
|
82
|
+
isShowCreateShipper: false, // 是否显示新增、编辑提货人组件
|
|
83
|
+
isShowAddressManage: false, // 是否显示地址管理组件(非自提)
|
|
84
|
+
isShowEditAddress: false, // 是否显示新建、编辑组件(非自提)
|
|
85
|
+
addressQuery: {}, // 地址相关组件需要的入参
|
|
86
|
+
marketingDataLoaded: false, //营销数据加载
|
|
87
|
+
cartInfoLoaded: false, //购物车数据加载
|
|
88
|
+
addressInfoLoaded: false, //地址信息加载
|
|
89
|
+
backType: 0, // 弹框顶部返回按钮操作
|
|
90
|
+
backPage: 1, // 1:确认订单页面大组件
|
|
91
|
+
shipperType: 1, // 1:新建自提人;2:编辑自提人
|
|
92
|
+
checkList: {}, // 支付前校验信息
|
|
93
|
+
beforePay: {}, // 支付前校验函数
|
|
94
|
+
afterPay: {}, // 支付后的参数
|
|
95
|
+
afterPayCallback: {}, // 支付后回调
|
|
96
|
+
payParams: {},
|
|
97
|
+
prePayParams: {}, //批价信息参数
|
|
98
|
+
getPrePayInfoReset: null, // 批价防抖函数回调
|
|
99
|
+
//错误信息
|
|
100
|
+
errMsg: {
|
|
101
|
+
10309: "该商品已售罄",
|
|
102
|
+
30201: "商家未设置支付方式,请联系商家处理",
|
|
103
|
+
30202: "支付失败,请联系商家处理",
|
|
104
|
+
10029: "已拥有,不可重复购买",
|
|
105
|
+
10067: "该商品已下架,不支持继续购买!",
|
|
106
|
+
10100: "该商品可能已下架或价格变更,请稍后再试。",
|
|
107
|
+
10306: "拼团失败,请刷新重试。",
|
|
108
|
+
10308: "活动即将开始",
|
|
109
|
+
10310: "商家正努力补货中",
|
|
110
|
+
10312: "未预约该活动",
|
|
111
|
+
20012: "购买数量超过活动限制。",
|
|
112
|
+
20020: "该团已满,请重新下单。",
|
|
113
|
+
20021: "该活动已结束。",
|
|
114
|
+
20011: "您已参与本团,不可重复参与。",
|
|
115
|
+
20077: "配送区域已更新,此收货地址超出配送范围,请重新选择",
|
|
116
|
+
20023: "单笔订单最多可购买1000件",
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
options: {
|
|
121
|
+
addGlobalClass: true
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
lifetimes: {
|
|
125
|
+
attached: async function () {
|
|
126
|
+
// 在组件实例进入页面节点树时执行
|
|
127
|
+
// 初始化数据
|
|
128
|
+
this.initData();
|
|
129
|
+
if (this.data.baseInfoQuery?.isCollectCoupons) {
|
|
130
|
+
const {
|
|
131
|
+
resource_id,
|
|
132
|
+
resource_type,
|
|
133
|
+
spu_id
|
|
134
|
+
} = this.data.baseInfoQuery
|
|
135
|
+
await postCouponList(spu_id || resource_id, resource_type).then(() => {
|
|
136
|
+
wx.showToast({
|
|
137
|
+
title: '您已享有最佳优惠,下单更优惠~',
|
|
138
|
+
icon: 'none',
|
|
139
|
+
duration: 2000
|
|
140
|
+
})
|
|
141
|
+
}).catch((err) => {
|
|
142
|
+
console.log("优惠券获取列表报错或者没有可领券", err)
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
computed: {
|
|
148
|
+
isShowMain(data) {
|
|
149
|
+
return (
|
|
150
|
+
!data.isShowPoint &&
|
|
151
|
+
!data.isShowSelectShipper &&
|
|
152
|
+
!data.isShowCreateShipper &&
|
|
153
|
+
!data.isShowAddressManage &&
|
|
154
|
+
!data.isShowEditAddress
|
|
155
|
+
)
|
|
156
|
+
},
|
|
157
|
+
//判断模式选择tab栏的显示和隐藏
|
|
158
|
+
showModeSelect(data) {
|
|
159
|
+
return data.distributionMode === -1 && data.userCanPick === 1;
|
|
160
|
+
},
|
|
161
|
+
// 显示地址栏的情况 商品有两种配送方式,商家关闭自提/购物车
|
|
162
|
+
showAddressSelect(data) {
|
|
163
|
+
return (
|
|
164
|
+
data.activeMode === 0 &&
|
|
165
|
+
(data.distributionMode === -1 || data.distributionMode === 1)
|
|
166
|
+
);
|
|
167
|
+
},
|
|
168
|
+
// 商品信息
|
|
169
|
+
goodsInfo(data) {
|
|
170
|
+
if (isEmptyObject(data.confirmOrderInfo.goods_info)) {
|
|
171
|
+
return data.baseInfoQuery;
|
|
172
|
+
}
|
|
173
|
+
return data.confirmOrderInfo.goods_info;
|
|
174
|
+
},
|
|
175
|
+
//通过商家是否开启自提和自提选择 决定自提组件的显示和隐藏
|
|
176
|
+
showPickSelf(data) {
|
|
177
|
+
return (
|
|
178
|
+
data.userCanPick === 1 &&
|
|
179
|
+
(data.activeMode === 1 || data.distributionMode === 2)
|
|
180
|
+
);
|
|
181
|
+
},
|
|
182
|
+
// 公共批价请求参数
|
|
183
|
+
commonPrePayParams(data) {
|
|
184
|
+
let spuType = data.baseInfoQuery.spu_type;
|
|
185
|
+
let coursePackage = [
|
|
186
|
+
MEMBER,
|
|
187
|
+
SPECIAL_COLUMN,
|
|
188
|
+
BIG_SPECIAL_COLUMN,
|
|
189
|
+
TRAINING_CAMP,
|
|
190
|
+
];
|
|
191
|
+
let paymentType = 2;
|
|
192
|
+
if (coursePackage.includes(spuType)) {
|
|
193
|
+
paymentType = 3;
|
|
194
|
+
}
|
|
195
|
+
return {
|
|
196
|
+
pre_pay_type: data.baseInfoQuery.pre_pay_type || 1,
|
|
197
|
+
resource_id: data.baseInfoQuery.resource_id,
|
|
198
|
+
spu_id: data.baseInfoQuery.id,
|
|
199
|
+
count: data.baseInfoQuery.count,
|
|
200
|
+
// product_id: data.baseInfoQuery.id,
|
|
201
|
+
product_id: '',
|
|
202
|
+
resource_type: data.baseInfoQuery.resource_type,
|
|
203
|
+
spu_type: spuType,
|
|
204
|
+
payment_type: paymentType,
|
|
205
|
+
sku_id: data.baseInfoQuery.sku,
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
// 通过请求获取的批价参数是否都已加载完毕
|
|
209
|
+
prePayParamsInfoLoaded(data) {
|
|
210
|
+
return (
|
|
211
|
+
((data.marketingDataLoaded && !data.isCart) ||
|
|
212
|
+
(data.isCart && data.cartInfoLoaded)) &&
|
|
213
|
+
(data.addressInfoLoaded ||
|
|
214
|
+
Object.keys(data.pickerUserInfo).length > 0 ||
|
|
215
|
+
data.activeMode === 0)
|
|
216
|
+
//加入商品自提后,这里判断是否加载完自提人消息来确定批价参数是否加载完毕
|
|
217
|
+
//每次切换提货模式时也要触发商品批价信息
|
|
218
|
+
);
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
observers: {
|
|
222
|
+
distributionMode(val) {
|
|
223
|
+
if (val === 1) {
|
|
224
|
+
this.setData({
|
|
225
|
+
express_type: val
|
|
226
|
+
})
|
|
227
|
+
} else if (val === 2) {
|
|
228
|
+
this.setData({
|
|
229
|
+
express_type: val
|
|
230
|
+
})
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
marketingData(marketingData) {
|
|
234
|
+
// 这里的逻辑应该是存在拼团的时候那么payment_type就要赋值为13,如果是限时折扣或者是单买的话,payment_type不做赋值默认为2
|
|
235
|
+
if (
|
|
236
|
+
marketingData &&
|
|
237
|
+
marketingData.payment_type &&
|
|
238
|
+
this.data.isTeam === "true"
|
|
239
|
+
) {
|
|
240
|
+
this.payInfoChange({
|
|
241
|
+
name: "marketingData",
|
|
242
|
+
prePayParams: {
|
|
243
|
+
payment_type: marketingData.payment_type,
|
|
244
|
+
},
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
this.setData({
|
|
248
|
+
marketingDataLoaded: true
|
|
249
|
+
})
|
|
250
|
+
},
|
|
251
|
+
isShowCreateShipper(val) {
|
|
252
|
+
if (val) {
|
|
253
|
+
if (this.data.shipperType === 1) {
|
|
254
|
+
this.triggerEvent("changeSheetInfo", {
|
|
255
|
+
title: "新建提货人",
|
|
256
|
+
})
|
|
257
|
+
} else {
|
|
258
|
+
this.triggerEvent("changeSheetInfo", {
|
|
259
|
+
title: "编辑提货人",
|
|
260
|
+
})
|
|
261
|
+
}
|
|
262
|
+
this.triggerEvent("changeSheetInfo", {
|
|
263
|
+
showClose: false,
|
|
264
|
+
showBack: true,
|
|
265
|
+
})
|
|
266
|
+
this.setData({
|
|
267
|
+
backType: 3
|
|
268
|
+
})
|
|
269
|
+
} else {
|
|
270
|
+
this.backClick();
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
showPickSelf(val) {
|
|
274
|
+
if (!val) {
|
|
275
|
+
this.payInfoChange({
|
|
276
|
+
name: "pickerUserInfo",
|
|
277
|
+
errMsg: "",
|
|
278
|
+
});
|
|
279
|
+
this.payInfoChange({
|
|
280
|
+
name: "address",
|
|
281
|
+
errMsg: "",
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
isShowSelectShipper: function (newData) {
|
|
286
|
+
if (newData) {
|
|
287
|
+
this.triggerEvent("changeSheetInfo", {
|
|
288
|
+
title: "选择提货人",
|
|
289
|
+
showClose: false,
|
|
290
|
+
showBack: true,
|
|
291
|
+
})
|
|
292
|
+
this.setData({
|
|
293
|
+
backType: 2
|
|
294
|
+
})
|
|
295
|
+
} else {
|
|
296
|
+
this.backClick();
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
isShowAddressManage(newData) {
|
|
300
|
+
if (newData) {
|
|
301
|
+
this.triggerEvent("changeSheetInfo", {
|
|
302
|
+
title: "选择地址",
|
|
303
|
+
showClose: false,
|
|
304
|
+
showBack: true,
|
|
305
|
+
})
|
|
306
|
+
this.setData({
|
|
307
|
+
backType: 4
|
|
308
|
+
})
|
|
309
|
+
} else {
|
|
310
|
+
if (!this.data.isShowEditAddress) {
|
|
311
|
+
this.backClick()
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
isShowEditAddress(newData) {
|
|
316
|
+
if (newData) {
|
|
317
|
+
this.triggerEvent("changeSheetInfo", {
|
|
318
|
+
title: "地址编辑",
|
|
319
|
+
showClose: false,
|
|
320
|
+
showBack: true,
|
|
321
|
+
})
|
|
322
|
+
this.setData({
|
|
323
|
+
backType: 5
|
|
324
|
+
})
|
|
325
|
+
} else {
|
|
326
|
+
this.backClick()
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
isShowPoint: function (newData) {
|
|
330
|
+
if (newData) {
|
|
331
|
+
this.triggerEvent("changeSheetInfo", {
|
|
332
|
+
title: "提货地址",
|
|
333
|
+
showClose: false,
|
|
334
|
+
showBack: true,
|
|
335
|
+
})
|
|
336
|
+
this.setData({
|
|
337
|
+
backType: 1
|
|
338
|
+
})
|
|
339
|
+
} else {
|
|
340
|
+
this.backClick();
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
prePayParamsInfoLoaded(val) {
|
|
344
|
+
if (val) {
|
|
345
|
+
let obj = {
|
|
346
|
+
...this.data.commonPrePayParams,
|
|
347
|
+
...this.data.prePayParams,
|
|
348
|
+
}
|
|
349
|
+
this.setData({
|
|
350
|
+
getPrePayInfoReset: this.getPrePayInfo(obj)
|
|
351
|
+
})
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* 组件的方法列表
|
|
357
|
+
*/
|
|
358
|
+
methods: {
|
|
359
|
+
// 初始化店铺设置信息
|
|
360
|
+
initShopConf() {
|
|
361
|
+
getShopConf().then(res => {
|
|
362
|
+
if (res.data.code === 0) {
|
|
363
|
+
this.setData({
|
|
364
|
+
shopConf: res.data.data
|
|
365
|
+
})
|
|
366
|
+
}
|
|
367
|
+
})
|
|
368
|
+
},
|
|
369
|
+
// 做防抖处理,避免短时间触发多次批价
|
|
370
|
+
getPrePayInfo: debounce(function (payload) {
|
|
371
|
+
// console.log("val: ", val);
|
|
372
|
+
// let payload = val[0]
|
|
373
|
+
if (!payload["resource_id"]) {
|
|
374
|
+
payload = {
|
|
375
|
+
...payload,
|
|
376
|
+
resource_id: this.data.resource_id,
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
this.setData({
|
|
380
|
+
prePayParams: payload
|
|
381
|
+
})
|
|
382
|
+
wx.showLoading({
|
|
383
|
+
mask: true,
|
|
384
|
+
title: '加载中'
|
|
385
|
+
})
|
|
386
|
+
return getPrePayInfoV3(payload).then(res => {
|
|
387
|
+
wx.hideLoading()
|
|
388
|
+
if (res.data.code === 0) {
|
|
389
|
+
this.setData({
|
|
390
|
+
prePayInfo: res.data.data
|
|
391
|
+
})
|
|
392
|
+
} else {
|
|
393
|
+
this.handlePreErrorCode(res.data);
|
|
394
|
+
}
|
|
395
|
+
if (wx.getStorageSync('toastWarn')) {
|
|
396
|
+
wx.showToast({
|
|
397
|
+
title: "单笔订单最多可购买1000件",
|
|
398
|
+
icon: 'none',
|
|
399
|
+
duration: 2000
|
|
400
|
+
})
|
|
401
|
+
setTimeout(() => {
|
|
402
|
+
wx.removeStorage({
|
|
403
|
+
key: "toastWarn"
|
|
404
|
+
})
|
|
405
|
+
}, 3000)
|
|
406
|
+
}
|
|
407
|
+
if (res.data.code === 10310 || res.data.code === 10309) {
|
|
408
|
+
this.setData({
|
|
409
|
+
["checkList.order"]: "商家努力补货中"
|
|
410
|
+
})
|
|
411
|
+
} else {
|
|
412
|
+
this.setData({
|
|
413
|
+
["checkList.order"]: ""
|
|
414
|
+
})
|
|
415
|
+
}
|
|
416
|
+
}).catch((err) => console.log(err))
|
|
417
|
+
}, 1000),
|
|
418
|
+
handlePreErrorCode(res) {
|
|
419
|
+
if (res.code !== 20077) {
|
|
420
|
+
this.handleErrorCode(res);
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
handleErrorCode(res) {
|
|
424
|
+
// 重复支付错误code特殊逻辑,不做toast处理,弹窗处理
|
|
425
|
+
if (res.code === 20022) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
if (res.code === 10061001) {
|
|
430
|
+
wx.showToast({
|
|
431
|
+
title: "订单信息有变化, 请刷新后重试",
|
|
432
|
+
icon: 'none',
|
|
433
|
+
duration: 2000
|
|
434
|
+
})
|
|
435
|
+
setTimeout(() => {
|
|
436
|
+
this.onLoad()
|
|
437
|
+
}, 1000);
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
wx.showToast({
|
|
441
|
+
title: this.data.errMsg[res.code] || res.msg,
|
|
442
|
+
icon: 'none',
|
|
443
|
+
duration: 2000
|
|
444
|
+
})
|
|
445
|
+
},
|
|
446
|
+
/**
|
|
447
|
+
* @description: 支付参数改变事件,用于约束各业务测支付参数传参
|
|
448
|
+
* @param {string} data.name 业务侧名称,用于区分各业务侧参数
|
|
449
|
+
* @param {string} data.errMsg [同步校验]业务侧参数提示信息,用于支付前判断,目前主要用于判空提示(若为disabled标明只禁止提交,不弹提示。如信息采集,必须等信息采集加载完才能进行提交)
|
|
450
|
+
* @param {promise} data.beforePay [异步校验]业务侧用于进行支付前校验的校验方法, 这里为一个function,并返回一个Promise,resolve返回校验成功true或者校验失败false
|
|
451
|
+
* @param {object} data.prePayParams 业务侧涉及的批价参数,当有此参数时,会触发重新批价
|
|
452
|
+
* @param {object} data.payParams 业务侧涉及的支付参数,用于支付时传参
|
|
453
|
+
* @param {object} data.afterPay 业务侧支付后使用的一些参数 callBack: 支付完成后回调,支付完成后就只执行此回调方法,回调可返回支付完成后的跳转页面;
|
|
454
|
+
* srcUrl:支付失败跳转页面;backUrl: 支付成功跳转页面
|
|
455
|
+
* @param {Boolean} data.triggerPrePay 本次修改是否触发批价
|
|
456
|
+
*/
|
|
457
|
+
payInfoChange(val) {
|
|
458
|
+
let data = {};
|
|
459
|
+
val.detail ? data = val.detail : data = val
|
|
460
|
+
this.setData({
|
|
461
|
+
[`checkList.${data.name}`]: data.errMsg || ""
|
|
462
|
+
})
|
|
463
|
+
if (data.beforePay) {
|
|
464
|
+
this.setData({
|
|
465
|
+
[`beforePay.${data.name}`]: data.beforePay
|
|
466
|
+
})
|
|
467
|
+
}
|
|
468
|
+
if (data.afterPay) {
|
|
469
|
+
let {
|
|
470
|
+
callBack,
|
|
471
|
+
...others
|
|
472
|
+
} = data.afterPay;
|
|
473
|
+
this.setData({
|
|
474
|
+
afterPay: {
|
|
475
|
+
...this.data.afterPay,
|
|
476
|
+
...others,
|
|
477
|
+
}
|
|
478
|
+
})
|
|
479
|
+
if (callBack) {
|
|
480
|
+
this.setData({
|
|
481
|
+
[`afterPayCallback.${data.name}`]: callBack
|
|
482
|
+
})
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
// 支付参数处理
|
|
486
|
+
if (data.payParams) {
|
|
487
|
+
this.setData({
|
|
488
|
+
payParams: {
|
|
489
|
+
...this.data.payParams,
|
|
490
|
+
...data.payParams,
|
|
491
|
+
}
|
|
492
|
+
})
|
|
493
|
+
}
|
|
494
|
+
if (data.prePayParams) {
|
|
495
|
+
// 更新业务批价参数
|
|
496
|
+
this.setData({
|
|
497
|
+
prePayParams: {
|
|
498
|
+
...this.data.prePayParams,
|
|
499
|
+
...data.prePayParams,
|
|
500
|
+
}
|
|
501
|
+
})
|
|
502
|
+
if (this.data.prePayParamsInfoLoaded && data.triggerPrePay !== false) {
|
|
503
|
+
let obj = {
|
|
504
|
+
...this.data.commonPrePayParams,
|
|
505
|
+
...this.data.prePayParams,
|
|
506
|
+
}
|
|
507
|
+
this.setData({
|
|
508
|
+
getPrePayInfoReset: this.getPrePayInfo(obj)
|
|
509
|
+
})
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
// 返回箭头点击事件
|
|
514
|
+
backClick() {
|
|
515
|
+
switch (this.data.backType) {
|
|
516
|
+
case 1:
|
|
517
|
+
this.triggerEvent("changeSheetInfo", {
|
|
518
|
+
title: "确认订单",
|
|
519
|
+
showClose: true,
|
|
520
|
+
showBack: false,
|
|
521
|
+
})
|
|
522
|
+
this.setData({
|
|
523
|
+
isShowPoint: false,
|
|
524
|
+
backType: 0
|
|
525
|
+
})
|
|
526
|
+
break;
|
|
527
|
+
case 2:
|
|
528
|
+
this.triggerEvent("changeSheetInfo", {
|
|
529
|
+
title: "确认订单",
|
|
530
|
+
showClose: true,
|
|
531
|
+
showBack: false,
|
|
532
|
+
})
|
|
533
|
+
this.setData({
|
|
534
|
+
isShowSelectShipper: false,
|
|
535
|
+
backType: 0
|
|
536
|
+
})
|
|
537
|
+
break;
|
|
538
|
+
case 3:
|
|
539
|
+
if (this.data.backPage === 1) {
|
|
540
|
+
this.triggerEvent("changeSheetInfo", {
|
|
541
|
+
title: "确认订单",
|
|
542
|
+
showBack: false,
|
|
543
|
+
});
|
|
544
|
+
} else {
|
|
545
|
+
this.setData({
|
|
546
|
+
isShowSelectShipper: true,
|
|
547
|
+
})
|
|
548
|
+
this.triggerEvent("changeSheetInfo", {
|
|
549
|
+
title: "选择提货人",
|
|
550
|
+
showBack: true,
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
this.triggerEvent("changeSheetInfo", {
|
|
554
|
+
showClose: true,
|
|
555
|
+
});
|
|
556
|
+
this.setData({
|
|
557
|
+
isShowCreateShipper: false,
|
|
558
|
+
backType: 0
|
|
559
|
+
})
|
|
560
|
+
break;
|
|
561
|
+
case 4:
|
|
562
|
+
this.setData({
|
|
563
|
+
isShowAddressManage: false,
|
|
564
|
+
backType: 0
|
|
565
|
+
})
|
|
566
|
+
this.triggerEvent("changeSheetInfo", {
|
|
567
|
+
title: "确认订单",
|
|
568
|
+
showClose: true,
|
|
569
|
+
showBack: false,
|
|
570
|
+
})
|
|
571
|
+
break;
|
|
572
|
+
case 5:
|
|
573
|
+
this.setData({
|
|
574
|
+
isShowEditAddress: false,
|
|
575
|
+
backType: 0
|
|
576
|
+
})
|
|
577
|
+
this.triggerEvent("changeSheetInfo", {
|
|
578
|
+
title: "确认订单",
|
|
579
|
+
showClose: true,
|
|
580
|
+
showBack: false,
|
|
581
|
+
})
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
// 供子组件修改父组件值
|
|
586
|
+
updataData(e) {
|
|
587
|
+
this.setData({
|
|
588
|
+
...e.detail
|
|
589
|
+
})
|
|
590
|
+
},
|
|
591
|
+
async handleInfo() {
|
|
592
|
+
let result = await this.initConfirmOrderInfo();
|
|
593
|
+
this.handleOrderInfo(result);
|
|
594
|
+
wx.hideLoading()
|
|
595
|
+
},
|
|
596
|
+
// 初始化数据,请求相应接口
|
|
597
|
+
async initData() {
|
|
598
|
+
if (!this.data.shopConf || isEmptyObject(this.data.shopConf)) {
|
|
599
|
+
// 页面刷新重新初始化店铺设置信息
|
|
600
|
+
this.initShopConf();
|
|
601
|
+
}
|
|
602
|
+
let result = await this.initConfirmOrderInfo();
|
|
603
|
+
this.handleOrderInfo(result);
|
|
604
|
+
this.initDeliveryState();
|
|
605
|
+
this.initPickerInfo();
|
|
606
|
+
this.initGoodsPackage();
|
|
607
|
+
this.initSuperVipInfo();
|
|
608
|
+
this.initBusinessFeatureConf();
|
|
609
|
+
if (!this.data.isCart) {
|
|
610
|
+
this.initMarketingData();
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
// 获取营销活动信息
|
|
614
|
+
initMarketingData() {
|
|
615
|
+
wx.showLoading({
|
|
616
|
+
mask: true,
|
|
617
|
+
title: '加载中'
|
|
618
|
+
})
|
|
619
|
+
let params = {
|
|
620
|
+
spu_id: this.data.baseInfoQuery.id,
|
|
621
|
+
spu_type: this.data.baseInfoQuery.spu_type,
|
|
622
|
+
resource_type: this.data.baseInfoQuery.resource_type,
|
|
623
|
+
}
|
|
624
|
+
getMarketingInfo(params).then(val => {
|
|
625
|
+
let res = val.data;
|
|
626
|
+
if (res.code === 0) {
|
|
627
|
+
let marketing_info = res.data.marketing_info;
|
|
628
|
+
if (
|
|
629
|
+
marketing_info?.activity_type === 3 &&
|
|
630
|
+
!(
|
|
631
|
+
(marketing_info?.all_stock > 0 &&
|
|
632
|
+
marketing_info?.now_stock > 0) ||
|
|
633
|
+
marketing_info?.all_stock == 0
|
|
634
|
+
) &&
|
|
635
|
+
![21, 29, 41, 42].includes(marketing_info.resource_type)
|
|
636
|
+
) {
|
|
637
|
+
// 这里的逻辑要注意,如果接口返回了营销信息但工程拿不到的话,问题就在这里。
|
|
638
|
+
// 如果是限时折扣,且达到了限量后,就应该不显示限时折扣的信息了,我选择在源头就断了这个数据,但保留了推广员的信息
|
|
639
|
+
// 且这里不能是多规格的商品,因为多规格的商品没有限量的设置,如果你看到的时候已经准备有了,麻烦跟产品说这需求咱不接,咱不受这鸟气
|
|
640
|
+
res.data.marketing_info = null;
|
|
641
|
+
}
|
|
642
|
+
this.setData({
|
|
643
|
+
marketingData: res.data
|
|
644
|
+
})
|
|
645
|
+
} else {
|
|
646
|
+
this.setData({
|
|
647
|
+
marketingDataLoaded: true
|
|
648
|
+
})
|
|
649
|
+
}
|
|
650
|
+
}).catch((err) => console.log(err))
|
|
651
|
+
.finally(() => {
|
|
652
|
+
// // wx.hideLoading()
|
|
653
|
+
})
|
|
654
|
+
},
|
|
655
|
+
// 业务特性信息
|
|
656
|
+
initBusinessFeatureConf() {
|
|
657
|
+
wx.showLoading({
|
|
658
|
+
mask: true,
|
|
659
|
+
title: '加载中'
|
|
660
|
+
})
|
|
661
|
+
let params = {
|
|
662
|
+
spu_id: this.data.baseInfoQuery.id
|
|
663
|
+
}
|
|
664
|
+
getBusinessFeature(params).then(res => {
|
|
665
|
+
if (res.data.code === 0) {
|
|
666
|
+
this.setData({
|
|
667
|
+
businessConf: res.data.data
|
|
668
|
+
})
|
|
669
|
+
}
|
|
670
|
+
}).catch((err) => console.log(err))
|
|
671
|
+
.finally(() => {
|
|
672
|
+
// wx.hideLoading()
|
|
673
|
+
})
|
|
674
|
+
},
|
|
675
|
+
// 获取超级会员相关信息
|
|
676
|
+
initSuperVipInfo() {
|
|
677
|
+
wx.showLoading({
|
|
678
|
+
mask: true,
|
|
679
|
+
title: '加载中'
|
|
680
|
+
})
|
|
681
|
+
let params = {
|
|
682
|
+
resource_id: this.data.baseInfoQuery.resource_id || this.data.resource_id,
|
|
683
|
+
resource_type: this.data.baseInfoQuery.resource_type,
|
|
684
|
+
};
|
|
685
|
+
getSuperVipInfo(params).then(res => {
|
|
686
|
+
if (res.data.code === 0) {
|
|
687
|
+
this.setData({
|
|
688
|
+
superVipInfo: res.data.data
|
|
689
|
+
})
|
|
690
|
+
}
|
|
691
|
+
}).catch((err) => console.log(err))
|
|
692
|
+
.finally(() => {
|
|
693
|
+
// wx.hideLoading()
|
|
694
|
+
})
|
|
695
|
+
},
|
|
696
|
+
// 商品的套餐信息
|
|
697
|
+
initGoodsPackage() {
|
|
698
|
+
wx.showLoading({
|
|
699
|
+
mask: true,
|
|
700
|
+
title: '加载中'
|
|
701
|
+
})
|
|
702
|
+
let params = {
|
|
703
|
+
spu_id: this.data.baseInfoQuery.spu_id,
|
|
704
|
+
}
|
|
705
|
+
getGoodsPackage(params).then(res => {
|
|
706
|
+
let {
|
|
707
|
+
code,
|
|
708
|
+
data: goodsPackage
|
|
709
|
+
} = res.data
|
|
710
|
+
if (code === 0) {
|
|
711
|
+
this.setData({
|
|
712
|
+
hasEntityGoods: goodsPackage.entity_goods_num > 0 ? true : false
|
|
713
|
+
})
|
|
714
|
+
if (this.data.baseInfoQuery.spu_type != "ENT" && goodsPackage.has_package) {
|
|
715
|
+
this.setData({
|
|
716
|
+
distributionMode: goodsPackage.package_delivery
|
|
717
|
+
})
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
}).catch((err) => console.log(err))
|
|
721
|
+
.finally(() => {
|
|
722
|
+
// wx.hideLoading()
|
|
723
|
+
})
|
|
724
|
+
},
|
|
725
|
+
// 进入页面 初始化自提人信息
|
|
726
|
+
initPickerInfo() {
|
|
727
|
+
wx.showLoading({
|
|
728
|
+
mask: true,
|
|
729
|
+
title: '加载中'
|
|
730
|
+
})
|
|
731
|
+
getPickerInfo().then(res => {
|
|
732
|
+
if (res.data.code === 0) {
|
|
733
|
+
this.setData({
|
|
734
|
+
pickerUserInfo: res.data.data || {}
|
|
735
|
+
})
|
|
736
|
+
}
|
|
737
|
+
}).catch((err) => console.log(err))
|
|
738
|
+
.finally(() => {
|
|
739
|
+
// wx.hideLoading()
|
|
740
|
+
})
|
|
741
|
+
},
|
|
742
|
+
// 初始化订单页基本信息
|
|
743
|
+
initConfirmOrderInfo() {
|
|
744
|
+
let {
|
|
745
|
+
id,
|
|
746
|
+
resource_type,
|
|
747
|
+
spu_type,
|
|
748
|
+
sku
|
|
749
|
+
} = this.data.baseInfoQuery
|
|
750
|
+
let params = {
|
|
751
|
+
spu_id: id,
|
|
752
|
+
resource_type,
|
|
753
|
+
spu_type,
|
|
754
|
+
address_id: this.data.addressInfo.id || "",
|
|
755
|
+
sku_id: sku || "",
|
|
756
|
+
}
|
|
757
|
+
wx.showLoading({
|
|
758
|
+
mask: true,
|
|
759
|
+
title: '加载中'
|
|
760
|
+
})
|
|
761
|
+
return getConfirmOrderDetail(params)
|
|
762
|
+
},
|
|
763
|
+
// 处理初始化订单页基本信息
|
|
764
|
+
handleOrderInfo(val) {
|
|
765
|
+
let res = val.data
|
|
766
|
+
if (res.code === 0) {
|
|
767
|
+
this.setData({
|
|
768
|
+
confirmOrderInfo: res.data,
|
|
769
|
+
resource_id: res.data.goods_info.resource_id,
|
|
770
|
+
})
|
|
771
|
+
if (this.data.baseInfoQuery.spu_type === "ENT") {
|
|
772
|
+
this.setData({
|
|
773
|
+
distributionMode: res.data.goods_info.distribution_pattern
|
|
774
|
+
})
|
|
775
|
+
}
|
|
776
|
+
if (!this.data.isCart) {
|
|
777
|
+
let addressInfo = res.data.address_info;
|
|
778
|
+
this.setData({
|
|
779
|
+
addressInfo: Array.isArray(addressInfo) || !addressInfo ? {} : addressInfo
|
|
780
|
+
})
|
|
781
|
+
}
|
|
782
|
+
if (JSON.stringify(this.data.addressInfo) != "{}") {
|
|
783
|
+
this.payInfoChange({
|
|
784
|
+
name: 'address',
|
|
785
|
+
prePayParams: {
|
|
786
|
+
address_id: this.data.addressInfo && this.data.addressInfo.id,
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
// 获取商家自提状态
|
|
793
|
+
initDeliveryState() {
|
|
794
|
+
wx.showLoading({
|
|
795
|
+
mask: true,
|
|
796
|
+
title: '加载中'
|
|
797
|
+
})
|
|
798
|
+
getExpressSwitch().then(res => {
|
|
799
|
+
if (res.data.code === 0) {
|
|
800
|
+
this.setData({
|
|
801
|
+
userCanPick: res.data.data.self_service_switch
|
|
802
|
+
})
|
|
803
|
+
}
|
|
804
|
+
})
|
|
805
|
+
.catch((err) => console.log(err))
|
|
806
|
+
.finally(() => {
|
|
807
|
+
// wx.hideLoading()
|
|
808
|
+
})
|
|
809
|
+
},
|
|
810
|
+
// 切换配送模式
|
|
811
|
+
changeMode(e) {
|
|
812
|
+
let val = e.detail;
|
|
813
|
+
let num = 0;
|
|
814
|
+
val ? num = 2 : num = 1;
|
|
815
|
+
this.setData({
|
|
816
|
+
activeMode: val,
|
|
817
|
+
express_type: num
|
|
818
|
+
})
|
|
819
|
+
},
|
|
820
|
+
// 支付成功
|
|
821
|
+
successCallback(payResult) {
|
|
822
|
+
console.log("支付成功2");
|
|
823
|
+
this.triggerEvent("successCallback", payResult.detail);
|
|
824
|
+
},
|
|
825
|
+
// 支付失败
|
|
826
|
+
failCallback() {
|
|
827
|
+
console.log("支付失败2");
|
|
828
|
+
this.triggerEvent("failCallback");
|
|
829
|
+
},
|
|
830
|
+
}
|
|
831
|
+
})
|