xiaoe_mp_npm 1.1.21 → 1.1.22-test02
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 +10 -10
- package/.eslintrc.js +102 -102
- package/.gitlab-ci.yml +44 -44
- package/.prettierrc.js +34 -34
- package/.vscode/extensions.json +4 -4
- package/.vscode/settings.json +9 -9
- package/LICENSE +21 -21
- package/README.md +134 -134
- package/gulpfile.js +26 -26
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.js +181 -181
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +25 -25
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.js +253 -253
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.less +255 -255
- package/miniprogram_dist/AliveInvite/LiveRoomVertical/index.wxml +122 -122
- package/miniprogram_dist/CollectionAddress/index.js +288 -288
- package/miniprogram_dist/CollectionAddress/index.json +13 -13
- package/miniprogram_dist/CollectionAddress/index.less +4 -4
- package/miniprogram_dist/CollectionAddress/index.wxml +93 -93
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.json +10 -10
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.less +123 -123
- package/miniprogram_dist/ConfirmOrder/components/AddressEdit/index.wxml +51 -51
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.js +168 -168
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.json +7 -7
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.less +95 -95
- package/miniprogram_dist/ConfirmOrder/components/AddressManage/index.wxml +36 -36
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.js +160 -160
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.json +4 -4
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.less +79 -79
- package/miniprogram_dist/ConfirmOrder/components/AddressSelect/index.wxml +33 -33
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.js +115 -115
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.json +5 -5
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.less +20 -20
- package/miniprogram_dist/ConfirmOrder/components/ChoosePicker/index.wxml +9 -9
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.js +1819 -1819
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.json +27 -27
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
- package/miniprogram_dist/ConfirmOrder/components/ConfirmOrderContent/index.wxml +225 -225
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
- package/miniprogram_dist/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
- package/miniprogram_dist/GoodsItem/index.js +180 -21
- package/miniprogram_dist/GoodsItem/index.scss +822 -627
- package/miniprogram_dist/GoodsItem/index.wxml +145 -108
- package/miniprogram_dist/GoodsItem/index.wxs +40 -40
- package/miniprogram_dist/GoodsItem/index.wxss +1149 -461
- package/miniprogram_dist/LiveGoodsList/Header/index.js +65 -65
- package/miniprogram_dist/LiveGoodsList/Header/index.json +6 -6
- package/miniprogram_dist/LiveGoodsList/Header/index.less +45 -45
- package/miniprogram_dist/LiveGoodsList/Header/index.scss +157 -137
- package/miniprogram_dist/LiveGoodsList/Header/index.wxml +39 -36
- package/miniprogram_dist/LiveGoodsList/Header/index.wxss +88 -12
- package/miniprogram_dist/LiveGoodsList/README.md +9 -9
- package/miniprogram_dist/LiveGoodsList/index.js +29 -10
- package/miniprogram_dist/LiveGoodsList/index.less +53 -53
- package/miniprogram_dist/LiveGoodsList/index.scss +173 -173
- package/miniprogram_dist/LiveGoodsList/index.wxml +9 -1
- package/miniprogram_dist/MatchList/index.js +445 -441
- package/miniprogram_dist/MatchList/index.json +5 -5
- package/miniprogram_dist/MatchList/index.scss +175 -175
- package/miniprogram_dist/MatchList/index.wxml +98 -97
- package/miniprogram_dist/MemberIntegralMultiplierBar/index.js +196 -196
- package/miniprogram_dist/MemberIntegralMultiplierBar/index.json +7 -7
- package/miniprogram_dist/MemberIntegralMultiplierBar/index.scss +67 -67
- package/miniprogram_dist/MemberIntegralMultiplierBar/index.wxml +8 -8
- package/miniprogram_dist/MemberIntegralMultiplierPopup/index.js +54 -54
- package/miniprogram_dist/MemberIntegralMultiplierPopup/index.json +7 -7
- package/miniprogram_dist/MemberIntegralMultiplierPopup/index.scss +86 -86
- package/miniprogram_dist/MemberIntegralMultiplierPopup/index.wxml +48 -48
- package/miniprogram_dist/MemberIntegralMultiplierPopup/popup-service.js +18 -18
- package/miniprogram_dist/MsgBubble/index.js +312 -0
- package/miniprogram_dist/MsgBubble/index.json +7 -0
- package/miniprogram_dist/MsgBubble/index.scss +81 -0
- package/miniprogram_dist/MsgBubble/index.wxml +19 -0
- package/miniprogram_dist/MsgBubble/index.wxss +202 -0
- package/miniprogram_dist/ShoppingCartBubble/index.js +336 -156
- package/miniprogram_dist/ShoppingCartBubble/index.scss +94 -55
- package/miniprogram_dist/ShoppingCartBubble/index.wxml +14 -11
- package/miniprogram_dist/ShoppingCartBubble/index.wxss +196 -40
- package/miniprogram_dist/Task/TaskBubble/index.json +3 -3
- package/miniprogram_dist/Task/TaskBubble/index.scss +125 -125
- package/miniprogram_dist/Task/TaskBubble/index.wxml +22 -22
- package/miniprogram_dist/Task/TaskIcon/index.js +29 -29
- package/miniprogram_dist/Task/TaskIcon/index.json +4 -4
- package/miniprogram_dist/Task/TaskIcon/index.scss +70 -70
- package/miniprogram_dist/Task/TaskIcon/index.wxml +5 -5
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.js +52 -52
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/miniprogram_dist/Task/TaskPopup/component/RewardList/index.wxml +23 -23
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.js +578 -578
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.json +10 -10
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.scss +245 -245
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxml +145 -145
- package/miniprogram_dist/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.js +298 -298
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/miniprogram_dist/Task/TaskPopup/component/TaskList/index.wxml +41 -41
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.js +129 -129
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.json +13 -13
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.scss +90 -90
- package/miniprogram_dist/Task/TaskPopup/component/TaskType/index.wxml +69 -69
- package/miniprogram_dist/Task/TaskPopup/index.js +174 -174
- package/miniprogram_dist/Task/TaskPopup/index.json +7 -7
- package/miniprogram_dist/Task/TaskPopup/index.scss +166 -166
- package/miniprogram_dist/Task/TaskPopup/index.wxml +87 -87
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.js +131 -131
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.json +5 -5
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.scss +191 -191
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxml +64 -64
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizContent/index.wxs +78 -78
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.js +40 -40
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.json +5 -5
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.scss +6 -6
- package/miniprogram_dist/Task/TaskQuizPopup/components/quizRichText/index.wxml +1 -1
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -50
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -623
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -183
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -216
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -3563
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -2364
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -209
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -269
- package/miniprogram_dist/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -1276
- package/miniprogram_dist/Task/TaskQuizPopup/index.js +246 -246
- package/miniprogram_dist/Task/TaskQuizPopup/index.json +7 -7
- package/miniprogram_dist/Task/TaskQuizPopup/index.scss +158 -158
- package/miniprogram_dist/Task/TaskQuizPopup/index.wxml +99 -99
- package/miniprogram_dist/Task/common/task.js +55 -55
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.js +74 -74
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.json +5 -5
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.scss +107 -107
- package/miniprogram_dist/Task/taskQuizRemindPopup/index.wxml +27 -27
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.js +68 -68
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.scss +123 -123
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxml +81 -81
- package/miniprogram_dist/Task/taskReceivePopup/coupon/index.wxs +48 -48
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.js +44 -44
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.json +6 -6
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.scss +106 -106
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxml +38 -38
- package/miniprogram_dist/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- package/miniprogram_dist/Task/taskReceivePopup/index.js +47 -47
- package/miniprogram_dist/Task/taskReceivePopup/index.json +13 -13
- package/miniprogram_dist/Task/taskReceivePopup/index.wxml +32 -32
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.js +106 -106
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.json +7 -7
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.scss +60 -60
- package/miniprogram_dist/Task/taskReceivePopup/integral/index.wxml +23 -23
- package/miniprogram_dist/TeacherGoodsList/index.js +997 -983
- package/miniprogram_dist/TeacherGoodsList/index.json +10 -10
- package/miniprogram_dist/TeacherGoodsList/index.scss +178 -178
- package/miniprogram_dist/TeacherGoodsList/index.wxml +146 -144
- package/miniprogram_dist/common/api/liveGoodsList.js +181 -167
- package/miniprogram_dist/common/assets/images/coupon/emptypage.svg +49 -49
- package/miniprogram_dist/common/assets/images/coupon/failed.svg +5 -5
- package/miniprogram_dist/common/assets/images/coupon/up.svg +21 -21
- package/miniprogram_dist/common/assets/images/pay/loading.svg +3 -3
- package/miniprogram_dist/common/assets/images/recommend.svg +6 -6
- package/miniprogram_dist/common/assets/images/refresh.svg +10 -10
- package/miniprogram_dist/common/assets/images/refresh_white.svg +3 -3
- package/miniprogram_dist/common/assets/images/wechat.svg +4 -4
- package/miniprogram_dist/common/css/index.less +2 -2
- package/miniprogram_dist/common/css/theme.less +19 -19
- package/miniprogram_dist/common/libs/dataUp/sensorUp.js +91 -91
- package/miniprogram_dist/common/libs/playerHttp.js +58 -58
- package/miniprogram_dist/common/libs/playerRequestUrl.js +39 -39
- package/miniprogram_dist/common/transaction/parameter/channel-info.js +36 -36
- package/miniprogram_dist/common/transaction/parameter/delivery-info.js +26 -26
- package/miniprogram_dist/common/transaction/parameter/misc-parameter.js +21 -21
- package/miniprogram_dist/common/utils/currency.js +52 -52
- package/miniprogram_dist/common/utils/getInfoCollectionData.js +59 -59
- package/miniprogram_dist/common/utils/image-cdn-slim/constant.js +8 -8
- package/miniprogram_dist/common/utils/image-cdn-slim/index.js +7 -7
- package/miniprogram_dist/common/utils/image-cdn-slim/utils.js +156 -156
- package/miniprogram_dist/common/utils/index.js +86 -86
- package/miniprogram_dist/common/utils/liveGoods.js +217 -217
- package/miniprogram_dist/common/utils/specialList.js +5 -5
- package/miniprogram_dist/common/utils/tool.js +72 -72
- package/miniprogram_dist/common/wxs/filter.wxs +29 -29
- package/miniprogram_dist/index.js +6 -6
- package/miniprogram_dist/index.js.map +1 -1
- package/miniprogram_dist/lib.js.map +1 -1
- package/package.json +78 -78
- package/project.config.json +79 -79
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.js +181 -181
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxml +25 -25
- package/src/AliveInvite/LiveRoomVertical/components/friends/friends.wxss +97 -97
- package/src/AliveInvite/LiveRoomVertical/index.js +253 -253
- package/src/AliveInvite/LiveRoomVertical/index.less +255 -255
- package/src/AliveInvite/LiveRoomVertical/index.wxml +122 -122
- package/src/AliveInvite/LiveRoomVertical/index.wxss +252 -252
- package/src/CollectionAddress/index.js +288 -288
- package/src/CollectionAddress/index.json +13 -13
- package/src/CollectionAddress/index.less +4 -4
- package/src/CollectionAddress/index.wxml +93 -93
- package/src/CollectionAddress/index.wxss +5 -5
- package/src/ConfirmOrder/components/AddressEdit/index.json +10 -10
- package/src/ConfirmOrder/components/AddressEdit/index.less +123 -123
- package/src/ConfirmOrder/components/AddressEdit/index.wxml +51 -51
- package/src/ConfirmOrder/components/AddressEdit/index.wxss +120 -120
- package/src/ConfirmOrder/components/AddressManage/index.js +168 -168
- package/src/ConfirmOrder/components/AddressManage/index.json +7 -7
- package/src/ConfirmOrder/components/AddressManage/index.less +95 -95
- package/src/ConfirmOrder/components/AddressManage/index.wxml +36 -36
- package/src/ConfirmOrder/components/AddressManage/index.wxss +98 -98
- package/src/ConfirmOrder/components/AddressSelect/index.js +160 -160
- package/src/ConfirmOrder/components/AddressSelect/index.json +4 -4
- package/src/ConfirmOrder/components/AddressSelect/index.less +79 -79
- package/src/ConfirmOrder/components/AddressSelect/index.wxml +33 -33
- package/src/ConfirmOrder/components/AddressSelect/index.wxss +67 -67
- package/src/ConfirmOrder/components/ChoosePicker/index.js +115 -115
- package/src/ConfirmOrder/components/ChoosePicker/index.json +5 -5
- package/src/ConfirmOrder/components/ChoosePicker/index.less +20 -20
- package/src/ConfirmOrder/components/ChoosePicker/index.wxml +9 -9
- package/src/ConfirmOrder/components/ChoosePicker/index.wxss +18 -18
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.js +1819 -1819
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.json +27 -27
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.scss +44 -44
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxml +225 -225
- package/src/ConfirmOrder/components/ConfirmOrderContent/index.wxss +37 -37
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.js +129 -129
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.json +8 -8
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.scss +58 -58
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxml +25 -25
- package/src/ConfirmOrder/components/GoodsInfo/components/CopGoodsList/index.wxss +1 -1
- package/src/ConfirmOrder/components/GoodsInfo/index.wxss +1 -1
- package/src/ConfirmOrder/components/IntegralSelect/index.wxss +218 -218
- package/src/ConfirmOrder/components/Invoice/index.wxss +93 -93
- package/src/ConfirmOrder/components/LeaveWord/index.wxss +1 -1
- package/src/ConfirmOrder/components/OrderBubble/index.wxss +1 -1
- package/src/ConfirmOrder/components/PayBar/index.wxss +1 -1
- package/src/ConfirmOrder/components/PayDetail/index.wxss +78 -78
- package/src/ConfirmOrder/components/SvipSelect/SvipSelect.wxss +266 -266
- package/src/CopGoodsCard/index.wxss +1 -1
- package/src/CouponList/components/CouponItem/index.wxss +1 -1
- package/src/CouponList/components/couponIcon/index.wxss +1 -1
- package/src/CouponList/stuCouponPopup/index.wxss +1 -1
- package/src/CouponReceivePopup/index.wxss +1 -1
- package/src/CustomPopup/index.wxss +37 -37
- package/src/GoodsBubble/index.wxss +1 -1
- package/src/GoodsItem/index.js +180 -21
- package/src/GoodsItem/index.scss +822 -627
- package/src/GoodsItem/index.wxml +145 -108
- package/src/GoodsItem/index.wxs +40 -40
- package/src/GoodsItem/index.wxss +1 -1
- package/src/GoodsRecommend/index.wxss +537 -537
- package/src/LevelMemberBar/index.wxss +1 -1
- package/src/LiveGoodsList/Header/index.js +65 -65
- package/src/LiveGoodsList/Header/index.json +6 -6
- package/src/LiveGoodsList/Header/index.less +45 -45
- package/src/LiveGoodsList/Header/index.scss +157 -137
- package/src/LiveGoodsList/Header/index.wxml +39 -36
- package/src/LiveGoodsList/Header/index.wxss +1 -1
- package/src/LiveGoodsList/README.md +9 -9
- package/src/LiveGoodsList/index.js +29 -10
- package/src/LiveGoodsList/index.less +53 -53
- package/src/LiveGoodsList/index.scss +173 -173
- package/src/LiveGoodsList/index.wxml +9 -1
- package/src/LiveGoodsList/index.wxss +1 -1
- package/src/MatchList/index.js +445 -441
- package/src/MatchList/index.json +5 -5
- package/src/MatchList/index.scss +175 -175
- package/src/MatchList/index.wxml +98 -97
- package/src/MatchList/index.wxss +1 -1
- package/src/MemberIntegralMultiplierBar/index.js +196 -196
- package/src/MemberIntegralMultiplierBar/index.json +7 -7
- package/src/MemberIntegralMultiplierBar/index.scss +67 -67
- package/src/MemberIntegralMultiplierBar/index.wxml +8 -8
- package/src/MemberIntegralMultiplierBar/index.wxss +1 -1
- package/src/MemberIntegralMultiplierPopup/index.js +54 -54
- package/src/MemberIntegralMultiplierPopup/index.json +7 -7
- package/src/MemberIntegralMultiplierPopup/index.scss +86 -86
- package/src/MemberIntegralMultiplierPopup/index.wxml +48 -48
- package/src/MemberIntegralMultiplierPopup/index.wxss +1 -1
- package/src/MemberIntegralMultiplierPopup/popup-service.js +18 -18
- package/src/MsgBubble/index.js +312 -0
- package/src/MsgBubble/index.json +7 -0
- package/src/MsgBubble/index.scss +81 -0
- package/src/MsgBubble/index.wxml +19 -0
- package/src/MsgBubble/index.wxss +1 -0
- package/src/PayModule/button/index.wxss +58 -58
- package/src/ShoppingCartBubble/index.js +336 -156
- package/src/ShoppingCartBubble/index.scss +94 -55
- package/src/ShoppingCartBubble/index.wxml +14 -11
- package/src/ShoppingCartBubble/index.wxss +1 -1
- package/src/Task/TaskBubble/index.json +3 -3
- package/src/Task/TaskBubble/index.scss +125 -125
- package/src/Task/TaskBubble/index.wxml +22 -22
- package/src/Task/TaskBubble/index.wxss +289 -289
- package/src/Task/TaskIcon/index.js +29 -29
- package/src/Task/TaskIcon/index.json +4 -4
- package/src/Task/TaskIcon/index.scss +70 -70
- package/src/Task/TaskIcon/index.wxml +5 -5
- package/src/Task/TaskIcon/index.wxss +130 -130
- package/src/Task/TaskPopup/component/RewardList/index.js +52 -52
- package/src/Task/TaskPopup/component/RewardList/index.json +6 -6
- package/src/Task/TaskPopup/component/RewardList/index.scss +39 -39
- package/src/Task/TaskPopup/component/RewardList/index.wxml +23 -23
- package/src/Task/TaskPopup/component/RewardList/index.wxss +18 -18
- package/src/Task/TaskPopup/component/TaskItem/index.js +578 -578
- package/src/Task/TaskPopup/component/TaskItem/index.json +10 -10
- package/src/Task/TaskPopup/component/TaskItem/index.scss +245 -245
- package/src/Task/TaskPopup/component/TaskItem/index.wxml +145 -145
- package/src/Task/TaskPopup/component/TaskItem/index.wxs +7 -7
- package/src/Task/TaskPopup/component/TaskItem/index.wxss +1 -1
- package/src/Task/TaskPopup/component/TaskList/index.js +298 -298
- package/src/Task/TaskPopup/component/TaskList/index.json +7 -7
- package/src/Task/TaskPopup/component/TaskList/index.scss +66 -66
- package/src/Task/TaskPopup/component/TaskList/index.wxml +41 -41
- package/src/Task/TaskPopup/component/TaskList/index.wxss +118 -118
- package/src/Task/TaskPopup/component/TaskType/index.js +129 -129
- package/src/Task/TaskPopup/component/TaskType/index.json +13 -13
- package/src/Task/TaskPopup/component/TaskType/index.scss +90 -90
- package/src/Task/TaskPopup/component/TaskType/index.wxml +69 -69
- package/src/Task/TaskPopup/component/TaskType/index.wxss +1 -1
- package/src/Task/TaskPopup/index.js +174 -174
- package/src/Task/TaskPopup/index.json +7 -7
- package/src/Task/TaskPopup/index.scss +166 -166
- package/src/Task/TaskPopup/index.wxml +87 -87
- package/src/Task/TaskPopup/index.wxss +490 -490
- package/src/Task/TaskQuizPopup/components/quizContent/index.js +131 -131
- package/src/Task/TaskQuizPopup/components/quizContent/index.json +5 -5
- package/src/Task/TaskQuizPopup/components/quizContent/index.scss +191 -191
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxml +64 -64
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxs +78 -78
- package/src/Task/TaskQuizPopup/components/quizContent/index.wxss +521 -521
- package/src/Task/TaskQuizPopup/components/quizRichText/index.js +40 -40
- package/src/Task/TaskQuizPopup/components/quizRichText/index.json +5 -5
- package/src/Task/TaskQuizPopup/components/quizRichText/index.scss +6 -6
- package/src/Task/TaskQuizPopup/components/quizRichText/index.wxml +1 -1
- package/src/Task/TaskQuizPopup/components/quizRichText/index.wxss +298 -298
- package/src/Task/TaskQuizPopup/components/wxParse/base.wxml +50 -50
- package/src/Task/TaskQuizPopup/components/wxParse/html2json.js +623 -623
- package/src/Task/TaskQuizPopup/components/wxParse/htmlparser.js +183 -183
- package/src/Task/TaskQuizPopup/components/wxParse/iframeParse.js +216 -216
- package/src/Task/TaskQuizPopup/components/wxParse/loop.wxml +3563 -3563
- package/src/Task/TaskQuizPopup/components/wxParse/showdown.js +2364 -2364
- package/src/Task/TaskQuizPopup/components/wxParse/wxDiscode.js +209 -209
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.js +269 -269
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxml +1276 -1276
- package/src/Task/TaskQuizPopup/components/wxParse/wxParse.wxss +316 -316
- package/src/Task/TaskQuizPopup/index.js +246 -246
- package/src/Task/TaskQuizPopup/index.json +7 -7
- package/src/Task/TaskQuizPopup/index.scss +158 -158
- package/src/Task/TaskQuizPopup/index.wxml +99 -99
- package/src/Task/TaskQuizPopup/index.wxss +478 -478
- package/src/Task/common/task.js +55 -55
- package/src/Task/taskQuizRemindPopup/index.js +74 -74
- package/src/Task/taskQuizRemindPopup/index.json +5 -5
- package/src/Task/taskQuizRemindPopup/index.scss +107 -107
- package/src/Task/taskQuizRemindPopup/index.wxml +27 -27
- package/src/Task/taskQuizRemindPopup/index.wxss +286 -286
- package/src/Task/taskReceivePopup/coupon/index.js +68 -68
- package/src/Task/taskReceivePopup/coupon/index.json +6 -6
- package/src/Task/taskReceivePopup/coupon/index.scss +123 -123
- package/src/Task/taskReceivePopup/coupon/index.wxml +81 -81
- package/src/Task/taskReceivePopup/coupon/index.wxs +48 -48
- package/src/Task/taskReceivePopup/coupon/index.wxss +274 -274
- package/src/Task/taskReceivePopup/customPrizes/index.js +44 -44
- package/src/Task/taskReceivePopup/customPrizes/index.json +6 -6
- package/src/Task/taskReceivePopup/customPrizes/index.scss +106 -106
- package/src/Task/taskReceivePopup/customPrizes/index.wxml +38 -38
- package/src/Task/taskReceivePopup/customPrizes/index.wxs +48 -48
- package/src/Task/taskReceivePopup/customPrizes/index.wxss +220 -220
- package/src/Task/taskReceivePopup/index.js +47 -47
- package/src/Task/taskReceivePopup/index.json +13 -13
- package/src/Task/taskReceivePopup/index.wxml +32 -32
- package/src/Task/taskReceivePopup/index.wxss +1 -1
- package/src/Task/taskReceivePopup/integral/index.js +106 -106
- package/src/Task/taskReceivePopup/integral/index.json +7 -7
- package/src/Task/taskReceivePopup/integral/index.scss +60 -60
- package/src/Task/taskReceivePopup/integral/index.wxml +23 -23
- package/src/Task/taskReceivePopup/integral/index.wxss +94 -94
- package/src/TeacherGoodsList/index.js +997 -983
- package/src/TeacherGoodsList/index.json +10 -10
- package/src/TeacherGoodsList/index.scss +178 -178
- package/src/TeacherGoodsList/index.wxml +146 -144
- package/src/TeacherGoodsList/index.wxss +1 -1
- package/src/common/api/liveGoodsList.js +181 -167
- package/src/common/assets/copy.wxss +3 -3
- package/src/common/assets/images/coupon/emptypage.svg +49 -49
- package/src/common/assets/images/coupon/failed.svg +5 -5
- package/src/common/assets/images/coupon/up.svg +21 -21
- package/src/common/assets/images/pay/loading.svg +3 -3
- package/src/common/assets/images/recommend.svg +6 -6
- package/src/common/assets/images/refresh.svg +10 -10
- package/src/common/assets/images/refresh_white.svg +3 -3
- package/src/common/assets/images/wechat.svg +4 -4
- package/src/common/css/index.less +2 -2
- package/src/common/css/theme.less +19 -19
- package/src/common/css/theme.wxss +16 -16
- package/src/common/libs/dataUp/sensorUp.js +91 -91
- package/src/common/libs/playerHttp.js +58 -58
- package/src/common/libs/playerRequestUrl.js +39 -39
- package/src/common/transaction/parameter/channel-info.js +36 -36
- package/src/common/transaction/parameter/delivery-info.js +26 -26
- package/src/common/transaction/parameter/misc-parameter.js +21 -21
- package/src/common/utils/currency.js +52 -52
- package/src/common/utils/getInfoCollectionData.js +59 -59
- package/src/common/utils/image-cdn-slim/constant.js +8 -8
- package/src/common/utils/image-cdn-slim/index.js +7 -7
- package/src/common/utils/image-cdn-slim/utils.js +156 -156
- package/src/common/utils/index.js +86 -86
- package/src/common/utils/liveGoods.js +217 -217
- package/src/common/utils/specialList.js +5 -5
- package/src/common/utils/tool.js +72 -72
- package/src/common/wxs/filter.wxs +29 -29
- package/src/coupon/components/CouponItem/index.wxss +821 -821
- package/src/coupon/components/CouponSelect/index.wxss +1132 -1132
- package/src/coupon/index.wxss +216 -216
- package/src/index.js +23 -23
- package/src/lib.ts +5 -5
- package/src/project.config.json +68 -68
- package/src/utils.js +5 -5
- package/tsconfig.json +25 -25
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
const TYPE_MAP = {
|
|
2
|
+
BUYING: 1,
|
|
3
|
+
BUY_SUCCESS: 2,
|
|
4
|
+
}
|
|
5
|
+
const INTERVAL_TIME = 3000 // 单次动画间隔时间
|
|
6
|
+
const DURATION_TIME = 2500 // 动画总时间
|
|
7
|
+
// const DEFAULT_ANIMATION_TIME = 400 // 动画时间
|
|
8
|
+
const ENTER_ANIMATION_TIME = 1000 // 进入动画时间
|
|
9
|
+
const WAIT_ANIMATION_TIME = 500 // 停留动画时间
|
|
10
|
+
const LEAVE_ANIMATION_TIME = 1000 // 离开动画时间
|
|
11
|
+
|
|
12
|
+
import { getSensitiveState } from '../common/utils/index'
|
|
13
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
14
|
+
// 消息类型 Map
|
|
15
|
+
const MSG_TYPE_MAP = {
|
|
16
|
+
BUY_SUCCESS: 2, // 购买成功
|
|
17
|
+
GO_BUY: 1, // 去购买
|
|
18
|
+
SHARE_LIVE: 21, // 分享直播间
|
|
19
|
+
SOMEONE_COME: 22, // 进入直播间
|
|
20
|
+
SALES_BUBBLE: 23// 中控台气泡氛围
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
Component({
|
|
24
|
+
behaviors: [computedBehavior],
|
|
25
|
+
properties: {
|
|
26
|
+
aliveInfo: {
|
|
27
|
+
type: Object,
|
|
28
|
+
value: {}
|
|
29
|
+
},
|
|
30
|
+
aliveConf: {
|
|
31
|
+
type: Object,
|
|
32
|
+
value: {}
|
|
33
|
+
},
|
|
34
|
+
// 商品配置
|
|
35
|
+
goodsConf: {
|
|
36
|
+
type: Object,
|
|
37
|
+
value: {}
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
data: {
|
|
41
|
+
goodsAnimationData: {},
|
|
42
|
+
bubbleList: [], // 气泡展示数组
|
|
43
|
+
bubbleObj: {
|
|
44
|
+
'1': [], // 正在购买商品数组
|
|
45
|
+
'2': [], // 抢购了商品数组
|
|
46
|
+
'21': [], // 分享
|
|
47
|
+
'22': [], // 来了
|
|
48
|
+
'23': [], // 中控台气泡氛围
|
|
49
|
+
}, // im数据获取气泡数据(含拼接操作
|
|
50
|
+
bubbleInterval: null,
|
|
51
|
+
animationTimer: null,
|
|
52
|
+
isInit: false,
|
|
53
|
+
currMsg: {}, // 当前消息源数据
|
|
54
|
+
bubbleItem: {
|
|
55
|
+
bubble_desc: '', // 描述 正在购买/抢购了
|
|
56
|
+
bubble_sensitive_state: '', // 敏感状态
|
|
57
|
+
msg_content: "",
|
|
58
|
+
goods_type: 0,
|
|
59
|
+
content_type: 1,
|
|
60
|
+
user_type: 0,
|
|
61
|
+
user_id: "",
|
|
62
|
+
wx_nickname: "",
|
|
63
|
+
orders: 1
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
computed: {
|
|
67
|
+
// 只有类目一才有icon
|
|
68
|
+
showIcon(data) {
|
|
69
|
+
return ![MSG_TYPE_MAP.SOMEONE_COME, MSG_TYPE_MAP.SALES_BUBBLE].includes(data.bubbleItem.content_type);
|
|
70
|
+
},
|
|
71
|
+
iconSrc(data) {
|
|
72
|
+
return data.bubbleItem.content_type === MSG_TYPE_MAP.SHARE_LIVE
|
|
73
|
+
? 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/miwm77xe0ogc.svg'
|
|
74
|
+
: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/miwm77xb0eqx.svg';
|
|
75
|
+
},
|
|
76
|
+
isShowNickName(data) {
|
|
77
|
+
if (data.bubbleItem.nums > 1 && data.bubbleItem.content_type !== MSG_TYPE_MAP.SOMEONE_COME) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
if (data.bubbleItem.content_type === MSG_TYPE_MAP.SALES_BUBBLE) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
},
|
|
85
|
+
// 类型定制背景
|
|
86
|
+
elBackground(data) {
|
|
87
|
+
const MSG_BGC_MAP = {
|
|
88
|
+
[MSG_TYPE_MAP.BUY_SUCCESS]:
|
|
89
|
+
"linear-gradient(90deg, rgba(255, 51, 0, 0.80) 0%, rgba(255, 102, 0, 0.80) 100%)", // 已购买
|
|
90
|
+
[MSG_TYPE_MAP.GO_BUY]: "linear-gradient(90deg, rgba(255, 51, 0, 0.80) 0%, rgba(255, 102, 0, 0.80) 100%)", // 去购买
|
|
91
|
+
[MSG_TYPE_MAP.SHARE_LIVE]: "rgba(233, 47, 115, 0.8)", // 分享
|
|
92
|
+
[MSG_TYPE_MAP.SOMEONE_COME]: "rgba(93, 93, 255, 0.8)", // 来了
|
|
93
|
+
[MSG_TYPE_MAP.SALES_BUBBLE]: "rgba(255,120,31,0.9)" // 中控台气泡氛围
|
|
94
|
+
};
|
|
95
|
+
return MSG_BGC_MAP[data.bubbleItem.content_type];
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
lifetimes: {
|
|
99
|
+
attached() {
|
|
100
|
+
try {
|
|
101
|
+
// 初始化动画位置
|
|
102
|
+
const resetAnimation = wx.createAnimation({
|
|
103
|
+
duration: 0,
|
|
104
|
+
timingFunction: 'ease',
|
|
105
|
+
})
|
|
106
|
+
resetAnimation.translateX(-200).opacity(1).step() // 恢复到初始位置
|
|
107
|
+
this.setData({
|
|
108
|
+
goodsAnimationData: resetAnimation.export(),
|
|
109
|
+
}, () => {
|
|
110
|
+
// 初始化监听逻辑
|
|
111
|
+
this.initEventListener();
|
|
112
|
+
})
|
|
113
|
+
} catch (error) {
|
|
114
|
+
this.initEventListener();
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
detached() {
|
|
118
|
+
this.resetOptions()
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
methods: {
|
|
122
|
+
// 初始化事件监听
|
|
123
|
+
initEventListener() {
|
|
124
|
+
// 购买消息气泡
|
|
125
|
+
getApp().globalData.$im.on('BUY_BUBBLE_EVENT', (res) => {
|
|
126
|
+
res.content_type = res.goods_type;
|
|
127
|
+
this.initHandler(res);
|
|
128
|
+
})
|
|
129
|
+
// 消息气泡
|
|
130
|
+
getApp().globalData.$im.on('BUBBLE_EVENT', (res) => {
|
|
131
|
+
this.initHandler(res);
|
|
132
|
+
})
|
|
133
|
+
// 假消息
|
|
134
|
+
getApp().globalData.$im.on('GET_FAKE_MSG', (res) => {
|
|
135
|
+
this.initHandler(res);
|
|
136
|
+
})
|
|
137
|
+
},
|
|
138
|
+
// 处理气泡数据(主要聚合除了购买消息气泡外的其他消息气泡)
|
|
139
|
+
bubbleDataHandlder() {
|
|
140
|
+
const { bubbleObj } = this.data;
|
|
141
|
+
for (const key in bubbleObj) {
|
|
142
|
+
const data = bubbleObj[key];
|
|
143
|
+
if ([MSG_TYPE_MAP.SALES_BUBBLE, MSG_TYPE_MAP.SHARE_LIVE, MSG_TYPE_MAP.SOMEONE_COME].includes(+key) && data.length > 0) {
|
|
144
|
+
const userMsg = data[data.length - 1]; // 返回最后一次进栈的用户的消息
|
|
145
|
+
|
|
146
|
+
let bubble = userMsg;
|
|
147
|
+
|
|
148
|
+
bubble.orders = [...new Set(data.map((item) => item.user_id))].length;// 过滤同一个人触发的次数,获得真实人次
|
|
149
|
+
bubble.wx_nickname = userMsg.wx_nickname || userMsg.msg_content.user_name;
|
|
150
|
+
bubble.user_id = userMsg.user_id;
|
|
151
|
+
bubble.user_type = userMsg.user_type;
|
|
152
|
+
bubble.msg_content = userMsg.msg_content;
|
|
153
|
+
// 最后更改当前消息内容
|
|
154
|
+
bubbleObj[key] = [bubble];
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
// 处理气泡队列数组
|
|
159
|
+
initHandler(msg) {
|
|
160
|
+
msg.uuid = `uuid_${msg.user_id}_${new Date().getTime()}`; // 用于后面清楚数据的唯一标识
|
|
161
|
+
const normalMsgTypes = [MSG_TYPE_MAP.SHARE_LIVE, MSG_TYPE_MAP.SOMEONE_COME, MSG_TYPE_MAP.SALES_BUBBLE];
|
|
162
|
+
const buyMsgTypes = [MSG_TYPE_MAP.GO_BUY, MSG_TYPE_MAP.BUY_SUCCESS];
|
|
163
|
+
// 普通消息气泡开关
|
|
164
|
+
const isNormalBubbleOn =
|
|
165
|
+
this.data.aliveConf?.is_open_msg_bubble === 1 && normalMsgTypes.includes(msg.content_type);
|
|
166
|
+
// 走带货气泡的开关
|
|
167
|
+
const isBuyBubbleOn = this.data.goodsConf.is_open_msg_bubble && buyMsgTypes.includes(msg.content_type);
|
|
168
|
+
// 普通消息气泡开关 && 带货消息气泡开关
|
|
169
|
+
if (!isNormalBubbleOn && !isBuyBubbleOn) return;
|
|
170
|
+
// 如果数据超过1000条,不入队列
|
|
171
|
+
if (this.data.bubbleList.length > 1000) return;
|
|
172
|
+
// 优先展示自己来了
|
|
173
|
+
if (msg.content_type === MSG_TYPE_MAP.SOMEONE_COME && this.data.aliveConf?.user_id === msg.user_id) {
|
|
174
|
+
this.data.bubbleList.unshift(msg);
|
|
175
|
+
} else {
|
|
176
|
+
this.data.bubbleObj[msg.content_type].push(msg);
|
|
177
|
+
this.bubbleDataHandlder();
|
|
178
|
+
// 根据优先级别展示消息 购买成功 > 去购买 > 分享 > 中控台气泡氛围 > 来了
|
|
179
|
+
this.data.bubbleList = [...this.data.bubbleObj['2'] || [], ...this.data.bubbleObj['1'] || [], ...this.data.bubbleObj['21'] || [], ...this.data.bubbleObj['23'] || [], ...this.data.bubbleObj['22'] || []];
|
|
180
|
+
}
|
|
181
|
+
// 启动气泡轮播
|
|
182
|
+
const needStart = !this.data.bubbleInterval && !this.data.animationTimer
|
|
183
|
+
if (this.data.bubbleList.length > 0 && needStart) {
|
|
184
|
+
this.startBubbleRotation()
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
/**
|
|
188
|
+
* 启动一个定时器定期更新气泡
|
|
189
|
+
*
|
|
190
|
+
* @method startBubbleRotation
|
|
191
|
+
* @memberof ShoppingCartBubble
|
|
192
|
+
* @instance
|
|
193
|
+
*/
|
|
194
|
+
startBubbleRotation() {
|
|
195
|
+
// 获取第一个气泡数据
|
|
196
|
+
const getCurrentBubbleItem = () => {
|
|
197
|
+
const currentBubble = this.data.bubbleList[0]
|
|
198
|
+
if (currentBubble?.content_type) {
|
|
199
|
+
this.data.bubbleList?.shift() // 清除列表中的数据
|
|
200
|
+
// 清除bubbleObj中的数据
|
|
201
|
+
this.data.bubbleObj[currentBubble.content_type] = this.data.bubbleObj[currentBubble.content_type]?.filter((item) => item.uuid !== currentBubble.uuid) || []
|
|
202
|
+
}
|
|
203
|
+
return currentBubble
|
|
204
|
+
}
|
|
205
|
+
this.displayBubble(getCurrentBubbleItem())
|
|
206
|
+
// 轮询出现气泡弹幕
|
|
207
|
+
this.data.bubbleInterval = setInterval(() => {
|
|
208
|
+
this.displayBubble(getCurrentBubbleItem())
|
|
209
|
+
}, INTERVAL_TIME)
|
|
210
|
+
},
|
|
211
|
+
displayBubble(bubble) {
|
|
212
|
+
// 如果已经没有数据了,重置定时器
|
|
213
|
+
if (!bubble) {
|
|
214
|
+
this.resetOptions()
|
|
215
|
+
return
|
|
216
|
+
}
|
|
217
|
+
const typeText = {
|
|
218
|
+
[MSG_TYPE_MAP.SOMEONE_COME]: '加入了直播间',
|
|
219
|
+
[MSG_TYPE_MAP.SHARE_LIVE]: '分享了直播间',
|
|
220
|
+
[MSG_TYPE_MAP.GO_BUY]: '正在去购买',
|
|
221
|
+
[MSG_TYPE_MAP.BUY_SUCCESS]: '已购买'
|
|
222
|
+
}
|
|
223
|
+
const bubbleItem = {
|
|
224
|
+
bubble_desc: typeText[bubble.content_type] || bubble.msg_content, // 描述
|
|
225
|
+
bubble_sensitive_state: this.handleSensitiveState(bubble.user_id), // 敏感状态
|
|
226
|
+
...bubble
|
|
227
|
+
}
|
|
228
|
+
this.setData({ bubbleItem, currMsg: bubble }, () => {
|
|
229
|
+
this.handleInitAnimation()
|
|
230
|
+
})
|
|
231
|
+
},
|
|
232
|
+
handleInitAnimation() {
|
|
233
|
+
const animationFunc = () => {
|
|
234
|
+
// 1s进入动画
|
|
235
|
+
const animation = wx.createAnimation({
|
|
236
|
+
duration: ENTER_ANIMATION_TIME,
|
|
237
|
+
timingFunction: 'ease',
|
|
238
|
+
})
|
|
239
|
+
animation.translateX(0).opacity(1).step();
|
|
240
|
+
this.setData({
|
|
241
|
+
goodsAnimationData: animation.export(),
|
|
242
|
+
}, () => {
|
|
243
|
+
// 1.5s等待时间(1s进入动画+0.5s停留时间)
|
|
244
|
+
let animationTimer = setTimeout(() => {
|
|
245
|
+
// 1s离开动画
|
|
246
|
+
const slideOutAnimation = wx.createAnimation({
|
|
247
|
+
duration: LEAVE_ANIMATION_TIME,
|
|
248
|
+
timingFunction: 'ease',
|
|
249
|
+
})
|
|
250
|
+
slideOutAnimation.translateX(0).opacity(0).step();
|
|
251
|
+
this.setData({
|
|
252
|
+
goodsAnimationData: slideOutAnimation.export(),
|
|
253
|
+
}, () => {
|
|
254
|
+
// 离开完成后,重置位置
|
|
255
|
+
setTimeout(() => {
|
|
256
|
+
const resetAnimation = wx.createAnimation({
|
|
257
|
+
duration: 0,
|
|
258
|
+
timingFunction: 'ease',
|
|
259
|
+
})
|
|
260
|
+
resetAnimation.translateX(-200).opacity(1).step() // 恢复到初始位置
|
|
261
|
+
this.setData({
|
|
262
|
+
isInit: false,
|
|
263
|
+
goodsAnimationData: resetAnimation.export(),
|
|
264
|
+
})
|
|
265
|
+
}, LEAVE_ANIMATION_TIME + 20)
|
|
266
|
+
});
|
|
267
|
+
}, WAIT_ANIMATION_TIME + ENTER_ANIMATION_TIME);
|
|
268
|
+
this.setData({
|
|
269
|
+
animationTimer
|
|
270
|
+
})
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
if (!this.data.isInit) {
|
|
274
|
+
this.setData({
|
|
275
|
+
isInit: true,
|
|
276
|
+
}, () => {
|
|
277
|
+
animationFunc();
|
|
278
|
+
})
|
|
279
|
+
} else {
|
|
280
|
+
animationFunc();
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
resetOptions() {
|
|
284
|
+
this.setData({
|
|
285
|
+
isInit: false,
|
|
286
|
+
currMsg: {},
|
|
287
|
+
bubbleItem: {
|
|
288
|
+
bubble_desc: '', // 描述 正在购买/抢购了
|
|
289
|
+
bubble_sensitive_state: '', // 敏感状态
|
|
290
|
+
msg_content: "",
|
|
291
|
+
goods_type: 0,
|
|
292
|
+
content_type: 1,
|
|
293
|
+
user_type: 0,
|
|
294
|
+
user_id: "",
|
|
295
|
+
wx_nickname: "",
|
|
296
|
+
orders: 1
|
|
297
|
+
}
|
|
298
|
+
})
|
|
299
|
+
clearInterval(this.data.bubbleInterval)
|
|
300
|
+
clearTimeout(this.data.animationTimer)
|
|
301
|
+
this.data.bubbleInterval = null
|
|
302
|
+
this.data.animationTimer = null
|
|
303
|
+
},
|
|
304
|
+
// 昵称脱敏处理
|
|
305
|
+
handleSensitiveState(id) {
|
|
306
|
+
const userType = this.properties.aliveInfo?.user_type
|
|
307
|
+
const isMeOrTeacher = this.properties.aliveInfo?.user_id === id || userType
|
|
308
|
+
const isNeedPrivacy = !isMeOrTeacher && getSensitiveState(userType, this.properties.aliveInfo?.alive_conf || {})
|
|
309
|
+
return isNeedPrivacy ? getSensitiveState(userType, this.properties.aliveInfo?.alive_conf || {}) : 0
|
|
310
|
+
},
|
|
311
|
+
},
|
|
312
|
+
})
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
@function vmin($rpx) {
|
|
3
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin msg-bubble {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
border-radius: vmin(22);
|
|
10
|
+
margin-top: vmin(8);
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
height: vmin(44);
|
|
13
|
+
opacity: 1;
|
|
14
|
+
padding: vmin(4) vmin(16);
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
z-index: 20;
|
|
17
|
+
.msg-bubble-info {
|
|
18
|
+
height: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
align-items: center;
|
|
22
|
+
font-size: vmin(26);
|
|
23
|
+
color: #fff;
|
|
24
|
+
font-weight: 500;
|
|
25
|
+
font-family: "PingFang SC";
|
|
26
|
+
.icon {
|
|
27
|
+
object-fit: cover;
|
|
28
|
+
margin-right: vmin(8);
|
|
29
|
+
width: vmin(28);
|
|
30
|
+
height: vmin(28);
|
|
31
|
+
}
|
|
32
|
+
.membership-icon {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
flex-shrink: 0;
|
|
36
|
+
}
|
|
37
|
+
.nickname {
|
|
38
|
+
flex: 1;
|
|
39
|
+
display: flex;
|
|
40
|
+
margin-right: vmin(8);
|
|
41
|
+
view {
|
|
42
|
+
display: -webkit-box;
|
|
43
|
+
-webkit-box-orient: vertical;
|
|
44
|
+
-webkit-line-clamp: 1;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.content, .more {
|
|
49
|
+
white-space: nowrap;
|
|
50
|
+
margin: 0 vmin(8);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.msg-bubble {
|
|
56
|
+
@include msg-bubble
|
|
57
|
+
}
|
|
58
|
+
// 竖屏pad
|
|
59
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
60
|
+
$deviceWidth: 1536 !global;
|
|
61
|
+
|
|
62
|
+
.msg-bubble {
|
|
63
|
+
@include msg-bubble
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
// PC 放大适配
|
|
67
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
68
|
+
$deviceWidth: 1260 !global;
|
|
69
|
+
|
|
70
|
+
.msg-bubble {
|
|
71
|
+
@include msg-bubble;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
// 横屏pad
|
|
75
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
76
|
+
$deviceWidth: 1536 !global;
|
|
77
|
+
|
|
78
|
+
.msg-bubble {
|
|
79
|
+
@include msg-bubble;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<view
|
|
2
|
+
wx:if="{{ isInit }}"
|
|
3
|
+
class="msg-bubble"
|
|
4
|
+
style="background: {{ elBackground }};"
|
|
5
|
+
animation="{{goodsAnimationData}}"
|
|
6
|
+
>
|
|
7
|
+
<view class="msg-bubble-info">
|
|
8
|
+
<image wx:if="{{showIcon}}" class="icon" src="{{iconSrc}}"></image>
|
|
9
|
+
<!-- 用户名称 -->
|
|
10
|
+
<block wx:if="{{ isShowNickName }}">
|
|
11
|
+
<membership-icon class="membership-icon" msg="{{currMsg}}" />
|
|
12
|
+
<nickname class="nickname" nickname="{{ bubbleItem.wx_nickname }}" sensitiveState="{{ bubbleItem.bubble_sensitive_state }}" />
|
|
13
|
+
</block>
|
|
14
|
+
<!-- 多个用户 -->
|
|
15
|
+
<text wx:if="{{bubbleItem.orders > 1}}" class="more">等{{bubbleItem.orders}}人</text>
|
|
16
|
+
<!-- 气泡内容 -->
|
|
17
|
+
<text class="content">{{ bubbleItem.bubble_desc }}</text>
|
|
18
|
+
</view>
|
|
19
|
+
</view>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.msg-bubble{display:inline-flex;align-items:center;border-radius:2.93333vmin;margin-top:1.06667vmin;max-width:100%;height:5.86667vmin;opacity:1;padding:.53333vmin 2.13333vmin;box-sizing:border-box;z-index:20}.msg-bubble .msg-bubble-info{height:100%;display:flex;justify-content:center;align-items:center;font-size:3.46667vmin;color:#fff;font-weight:500;font-family:"PingFang SC"}.msg-bubble .msg-bubble-info .icon{object-fit:cover;margin-right:1.06667vmin;width:3.73333vmin;height:3.73333vmin}.msg-bubble .msg-bubble-info .membership-icon{display:flex;align-items:center;flex-shrink:0}.msg-bubble .msg-bubble-info .nickname{flex:1;display:flex;margin-right:1.06667vmin}.msg-bubble .msg-bubble-info .nickname view{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.msg-bubble .msg-bubble-info .content,.msg-bubble .msg-bubble-info .more{white-space:nowrap;margin:0 1.06667vmin}@media screen and (min-width: 768px) and (orientation: portrait){.msg-bubble{display:inline-flex;align-items:center;border-radius:1.43229vmin;margin-top:.52083vmin;max-width:100%;height:2.86458vmin;opacity:1;padding:.26042vmin 1.04167vmin;box-sizing:border-box;z-index:20}.msg-bubble .msg-bubble-info{height:100%;display:flex;justify-content:center;align-items:center;font-size:1.69271vmin;color:#fff;font-weight:500;font-family:"PingFang SC"}.msg-bubble .msg-bubble-info .icon{object-fit:cover;margin-right:.52083vmin;width:1.82292vmin;height:1.82292vmin}.msg-bubble .msg-bubble-info .membership-icon{display:flex;align-items:center;flex-shrink:0}.msg-bubble .msg-bubble-info .nickname{flex:1;display:flex;margin-right:.52083vmin}.msg-bubble .msg-bubble-info .nickname view{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.msg-bubble .msg-bubble-info .content,.msg-bubble .msg-bubble-info .more{white-space:nowrap;margin:0 .52083vmin}}@media screen and (min-height: 630px) and (orientation: landscape){.msg-bubble{display:inline-flex;align-items:center;border-radius:1.74603vmin;margin-top:.63492vmin;max-width:100%;height:3.49206vmin;opacity:1;padding:.31746vmin 1.26984vmin;box-sizing:border-box;z-index:20}.msg-bubble .msg-bubble-info{height:100%;display:flex;justify-content:center;align-items:center;font-size:2.06349vmin;color:#fff;font-weight:500;font-family:"PingFang SC"}.msg-bubble .msg-bubble-info .icon{object-fit:cover;margin-right:.63492vmin;width:2.22222vmin;height:2.22222vmin}.msg-bubble .msg-bubble-info .membership-icon{display:flex;align-items:center;flex-shrink:0}.msg-bubble .msg-bubble-info .nickname{flex:1;display:flex;margin-right:.63492vmin}.msg-bubble .msg-bubble-info .nickname view{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.msg-bubble .msg-bubble-info .content,.msg-bubble .msg-bubble-info .more{white-space:nowrap;margin:0 .63492vmin}}@media screen and (min-height: 768px) and (orientation: landscape){.msg-bubble{display:inline-flex;align-items:center;border-radius:1.43229vmin;margin-top:.52083vmin;max-width:100%;height:2.86458vmin;opacity:1;padding:.26042vmin 1.04167vmin;box-sizing:border-box;z-index:20}.msg-bubble .msg-bubble-info{height:100%;display:flex;justify-content:center;align-items:center;font-size:1.69271vmin;color:#fff;font-weight:500;font-family:"PingFang SC"}.msg-bubble .msg-bubble-info .icon{object-fit:cover;margin-right:.52083vmin;width:1.82292vmin;height:1.82292vmin}.msg-bubble .msg-bubble-info .membership-icon{display:flex;align-items:center;flex-shrink:0}.msg-bubble .msg-bubble-info .nickname{flex:1;display:flex;margin-right:.52083vmin}.msg-bubble .msg-bubble-info .nickname view{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}.msg-bubble .msg-bubble-info .content,.msg-bubble .msg-bubble-info .more{white-space:nowrap;margin:0 .52083vmin}}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.pay-btn .btn-default {
|
|
2
|
-
width: 32vmin;
|
|
3
|
-
height: 10.66667vmin;
|
|
4
|
-
line-height: 10.66667vmin;
|
|
5
|
-
font-size: 4.26667vmin;
|
|
6
|
-
border-radius: 5.33333vmin;
|
|
7
|
-
background: #ff5429;
|
|
8
|
-
color: #ffffff;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.pay-btn .invalidBtn {
|
|
12
|
-
opacity: 0.2;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
16
|
-
.pay-btn .btn-default {
|
|
17
|
-
width: 15.625vmin;
|
|
18
|
-
height: 5.20833vmin;
|
|
19
|
-
line-height: 5.20833vmin;
|
|
20
|
-
font-size: 2.08333vmin;
|
|
21
|
-
border-radius: 2.60417vmin;
|
|
22
|
-
background: #ff5429;
|
|
23
|
-
color: #ffffff;
|
|
24
|
-
}
|
|
25
|
-
.pay-btn .invalidBtn {
|
|
26
|
-
opacity: 0.2;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
31
|
-
.pay-btn .btn-default {
|
|
32
|
-
width: 19.04762vmin;
|
|
33
|
-
height: 6.34921vmin;
|
|
34
|
-
line-height: 6.34921vmin;
|
|
35
|
-
font-size: 2.53968vmin;
|
|
36
|
-
border-radius: 3.1746vmin;
|
|
37
|
-
background: #ff5429;
|
|
38
|
-
color: #ffffff;
|
|
39
|
-
}
|
|
40
|
-
.pay-btn .invalidBtn {
|
|
41
|
-
opacity: 0.2;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
46
|
-
.pay-btn .btn-default {
|
|
47
|
-
width: 15.625vmin;
|
|
48
|
-
height: 5.20833vmin;
|
|
49
|
-
line-height: 5.20833vmin;
|
|
50
|
-
font-size: 2.08333vmin;
|
|
51
|
-
border-radius: 2.60417vmin;
|
|
52
|
-
background: #ff5429;
|
|
53
|
-
color: #ffffff;
|
|
54
|
-
}
|
|
55
|
-
.pay-btn .invalidBtn {
|
|
56
|
-
opacity: 0.2;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
.pay-btn .btn-default {
|
|
2
|
+
width: 32vmin;
|
|
3
|
+
height: 10.66667vmin;
|
|
4
|
+
line-height: 10.66667vmin;
|
|
5
|
+
font-size: 4.26667vmin;
|
|
6
|
+
border-radius: 5.33333vmin;
|
|
7
|
+
background: #ff5429;
|
|
8
|
+
color: #ffffff;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.pay-btn .invalidBtn {
|
|
12
|
+
opacity: 0.2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
16
|
+
.pay-btn .btn-default {
|
|
17
|
+
width: 15.625vmin;
|
|
18
|
+
height: 5.20833vmin;
|
|
19
|
+
line-height: 5.20833vmin;
|
|
20
|
+
font-size: 2.08333vmin;
|
|
21
|
+
border-radius: 2.60417vmin;
|
|
22
|
+
background: #ff5429;
|
|
23
|
+
color: #ffffff;
|
|
24
|
+
}
|
|
25
|
+
.pay-btn .invalidBtn {
|
|
26
|
+
opacity: 0.2;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
31
|
+
.pay-btn .btn-default {
|
|
32
|
+
width: 19.04762vmin;
|
|
33
|
+
height: 6.34921vmin;
|
|
34
|
+
line-height: 6.34921vmin;
|
|
35
|
+
font-size: 2.53968vmin;
|
|
36
|
+
border-radius: 3.1746vmin;
|
|
37
|
+
background: #ff5429;
|
|
38
|
+
color: #ffffff;
|
|
39
|
+
}
|
|
40
|
+
.pay-btn .invalidBtn {
|
|
41
|
+
opacity: 0.2;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
46
|
+
.pay-btn .btn-default {
|
|
47
|
+
width: 15.625vmin;
|
|
48
|
+
height: 5.20833vmin;
|
|
49
|
+
line-height: 5.20833vmin;
|
|
50
|
+
font-size: 2.08333vmin;
|
|
51
|
+
border-radius: 2.60417vmin;
|
|
52
|
+
background: #ff5429;
|
|
53
|
+
color: #ffffff;
|
|
54
|
+
}
|
|
55
|
+
.pay-btn .invalidBtn {
|
|
56
|
+
opacity: 0.2;
|
|
57
|
+
}
|
|
58
|
+
}
|