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
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
$deviceWidth: 750;
|
|
2
|
-
|
|
3
|
-
@function vmin($rpx) {
|
|
4
|
-
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@mixin task-quiz-popup {
|
|
8
|
-
height: 100%;
|
|
9
|
-
.quiz-popup {
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: column;
|
|
12
|
-
align-items: center;
|
|
13
|
-
background-color: #f5f5f5;
|
|
14
|
-
border-radius: vmin(24) vmin(24) 0 0;
|
|
15
|
-
z-index: 500;
|
|
16
|
-
.content-header {
|
|
17
|
-
width: 100%;
|
|
18
|
-
height: vmin(96);
|
|
19
|
-
font-size: vmin(32);
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
display: flex;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
position: relative;
|
|
25
|
-
.popup-close-icon {
|
|
26
|
-
width: vmin(32);
|
|
27
|
-
height: vmin(32);
|
|
28
|
-
position: absolute;
|
|
29
|
-
top: vmin(32);
|
|
30
|
-
right: vmin(32);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.popup-content{
|
|
35
|
-
flex: 1;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
overflow-y: overlay;
|
|
38
|
-
padding: 0 vmin(32);
|
|
39
|
-
width: 100%;
|
|
40
|
-
|
|
41
|
-
.reward-show-box {
|
|
42
|
-
display: flex;
|
|
43
|
-
padding: vmin(32) vmin(24);
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
align-items: flex-start;
|
|
46
|
-
border-radius: vmin(16);
|
|
47
|
-
background: #fff;
|
|
48
|
-
color: #333333;
|
|
49
|
-
font-family: "PingFang SC";
|
|
50
|
-
font-size: vmin(28);
|
|
51
|
-
font-style: normal;
|
|
52
|
-
font-weight: 400;
|
|
53
|
-
margin-bottom: vmin(32);
|
|
54
|
-
line-height: vmin(40);
|
|
55
|
-
.reward-condition {
|
|
56
|
-
font-weight: 500;
|
|
57
|
-
.orange-color {
|
|
58
|
-
color: #ff5429;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.reward-result {
|
|
62
|
-
display: flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
margin-top: vmin(8);
|
|
65
|
-
.reward-result-show {
|
|
66
|
-
margin-left: vmin(16);
|
|
67
|
-
color: #ff5429;
|
|
68
|
-
font-size: vmin(24);
|
|
69
|
-
display: inline-flex;
|
|
70
|
-
align-items: center;
|
|
71
|
-
|
|
72
|
-
.reward-img {
|
|
73
|
-
width: vmin(24);
|
|
74
|
-
height: vmin(24);
|
|
75
|
-
padding: vmin(4) 0;
|
|
76
|
-
vertical-align: top;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.analysis-tip {
|
|
82
|
-
font-size: vmin(32);
|
|
83
|
-
color: #333333;
|
|
84
|
-
font-family: "PingFang SC";
|
|
85
|
-
font-style: normal;
|
|
86
|
-
font-weight: 500;
|
|
87
|
-
line-height: vmin(48);
|
|
88
|
-
margin-bottom: vmin(32);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.content-footer {
|
|
93
|
-
width: 100%;
|
|
94
|
-
height: vmin(112);
|
|
95
|
-
font-size: vmin(32);
|
|
96
|
-
font-weight: 400;
|
|
97
|
-
color: #999;
|
|
98
|
-
line-height: vmin(40);
|
|
99
|
-
display: flex;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
align-items: center;
|
|
102
|
-
padding: 0 vmin(32);
|
|
103
|
-
box-sizing: border-box;
|
|
104
|
-
view {
|
|
105
|
-
flex: 1;
|
|
106
|
-
height: vmin(80);
|
|
107
|
-
font-weight: 500;
|
|
108
|
-
line-height: vmin(80);
|
|
109
|
-
font-size: vmin(28);
|
|
110
|
-
text-align: center;
|
|
111
|
-
border-radius: vmin(40);
|
|
112
|
-
box-sizing: border-box;
|
|
113
|
-
}
|
|
114
|
-
.last-step {
|
|
115
|
-
margin-right: vmin(30);
|
|
116
|
-
}
|
|
117
|
-
.last-step,
|
|
118
|
-
.next-step {
|
|
119
|
-
color: #1472ff;
|
|
120
|
-
border: vmin(2) solid #1472ff;
|
|
121
|
-
}
|
|
122
|
-
.submit-step {
|
|
123
|
-
color: #fff;
|
|
124
|
-
background: #1472ff;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.task-quiz-popup {
|
|
131
|
-
@include task-quiz-popup;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// 竖屏pad
|
|
135
|
-
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
136
|
-
$deviceWidth: 1536 !global;
|
|
137
|
-
|
|
138
|
-
.task-quiz-popup {
|
|
139
|
-
@include task-quiz-popup;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// PC 放大适配
|
|
144
|
-
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
145
|
-
$deviceWidth: 1260 !global;
|
|
146
|
-
|
|
147
|
-
.task-quiz-popup {
|
|
148
|
-
@include task-quiz-popup;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
// 横屏pad
|
|
153
|
-
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
154
|
-
$deviceWidth: 1536 !global;
|
|
155
|
-
|
|
156
|
-
.task-quiz-popup {
|
|
157
|
-
@include task-quiz-popup;
|
|
158
|
-
}
|
|
1
|
+
$deviceWidth: 750;
|
|
2
|
+
|
|
3
|
+
@function vmin($rpx) {
|
|
4
|
+
@return #{$rpx * 100 / $deviceWidth}vmin;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin task-quiz-popup {
|
|
8
|
+
height: 100%;
|
|
9
|
+
.quiz-popup {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
align-items: center;
|
|
13
|
+
background-color: #f5f5f5;
|
|
14
|
+
border-radius: vmin(24) vmin(24) 0 0;
|
|
15
|
+
z-index: 500;
|
|
16
|
+
.content-header {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: vmin(96);
|
|
19
|
+
font-size: vmin(32);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: center;
|
|
24
|
+
position: relative;
|
|
25
|
+
.popup-close-icon {
|
|
26
|
+
width: vmin(32);
|
|
27
|
+
height: vmin(32);
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: vmin(32);
|
|
30
|
+
right: vmin(32);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.popup-content{
|
|
35
|
+
flex: 1;
|
|
36
|
+
box-sizing: border-box;
|
|
37
|
+
overflow-y: overlay;
|
|
38
|
+
padding: 0 vmin(32);
|
|
39
|
+
width: 100%;
|
|
40
|
+
|
|
41
|
+
.reward-show-box {
|
|
42
|
+
display: flex;
|
|
43
|
+
padding: vmin(32) vmin(24);
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: flex-start;
|
|
46
|
+
border-radius: vmin(16);
|
|
47
|
+
background: #fff;
|
|
48
|
+
color: #333333;
|
|
49
|
+
font-family: "PingFang SC";
|
|
50
|
+
font-size: vmin(28);
|
|
51
|
+
font-style: normal;
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
margin-bottom: vmin(32);
|
|
54
|
+
line-height: vmin(40);
|
|
55
|
+
.reward-condition {
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
.orange-color {
|
|
58
|
+
color: #ff5429;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.reward-result {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
margin-top: vmin(8);
|
|
65
|
+
.reward-result-show {
|
|
66
|
+
margin-left: vmin(16);
|
|
67
|
+
color: #ff5429;
|
|
68
|
+
font-size: vmin(24);
|
|
69
|
+
display: inline-flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
|
|
72
|
+
.reward-img {
|
|
73
|
+
width: vmin(24);
|
|
74
|
+
height: vmin(24);
|
|
75
|
+
padding: vmin(4) 0;
|
|
76
|
+
vertical-align: top;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.analysis-tip {
|
|
82
|
+
font-size: vmin(32);
|
|
83
|
+
color: #333333;
|
|
84
|
+
font-family: "PingFang SC";
|
|
85
|
+
font-style: normal;
|
|
86
|
+
font-weight: 500;
|
|
87
|
+
line-height: vmin(48);
|
|
88
|
+
margin-bottom: vmin(32);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.content-footer {
|
|
93
|
+
width: 100%;
|
|
94
|
+
height: vmin(112);
|
|
95
|
+
font-size: vmin(32);
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
color: #999;
|
|
98
|
+
line-height: vmin(40);
|
|
99
|
+
display: flex;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
align-items: center;
|
|
102
|
+
padding: 0 vmin(32);
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
view {
|
|
105
|
+
flex: 1;
|
|
106
|
+
height: vmin(80);
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
line-height: vmin(80);
|
|
109
|
+
font-size: vmin(28);
|
|
110
|
+
text-align: center;
|
|
111
|
+
border-radius: vmin(40);
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
}
|
|
114
|
+
.last-step {
|
|
115
|
+
margin-right: vmin(30);
|
|
116
|
+
}
|
|
117
|
+
.last-step,
|
|
118
|
+
.next-step {
|
|
119
|
+
color: #1472ff;
|
|
120
|
+
border: vmin(2) solid #1472ff;
|
|
121
|
+
}
|
|
122
|
+
.submit-step {
|
|
123
|
+
color: #fff;
|
|
124
|
+
background: #1472ff;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.task-quiz-popup {
|
|
131
|
+
@include task-quiz-popup;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// 竖屏pad
|
|
135
|
+
@media screen and (min-width: 768px) and (orientation: portrait) {
|
|
136
|
+
$deviceWidth: 1536 !global;
|
|
137
|
+
|
|
138
|
+
.task-quiz-popup {
|
|
139
|
+
@include task-quiz-popup;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// PC 放大适配
|
|
144
|
+
@media screen and (min-height: 630px) and (orientation: landscape) {
|
|
145
|
+
$deviceWidth: 1260 !global;
|
|
146
|
+
|
|
147
|
+
.task-quiz-popup {
|
|
148
|
+
@include task-quiz-popup;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// 横屏pad
|
|
153
|
+
@media screen and (min-height: 768px) and (orientation: landscape) {
|
|
154
|
+
$deviceWidth: 1536 !global;
|
|
155
|
+
|
|
156
|
+
.task-quiz-popup {
|
|
157
|
+
@include task-quiz-popup;
|
|
158
|
+
}
|
|
159
159
|
}
|
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
<view class="task-quiz-popup" catchtap>
|
|
2
|
-
<van-popup
|
|
3
|
-
show="{{showPopup}}"
|
|
4
|
-
position="{{ popPosition }}"
|
|
5
|
-
custom-style="{{ customStyle }}"
|
|
6
|
-
z-index="{{500}}"
|
|
7
|
-
custom-class="quiz-popup"
|
|
8
|
-
safe-area-inset-bottom="{{ !showAnalysis }}"
|
|
9
|
-
overlay-style="{{ 'background-color: rgba(0, 0, 0, 0.8)' }}"
|
|
10
|
-
catch:close="closePop"
|
|
11
|
-
catch:click-overlay="closePop"
|
|
12
|
-
>
|
|
13
|
-
<!-- 标题 -->
|
|
14
|
-
<view class="content-header">
|
|
15
|
-
{{ showAnalysis ? '直播答题结果' : '直播答题' }}
|
|
16
|
-
<image
|
|
17
|
-
wx:if="{{!isFull}}"
|
|
18
|
-
class="popup-close-icon"
|
|
19
|
-
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lz0vxpq80hw7.svg"
|
|
20
|
-
catchtap="closePop"
|
|
21
|
-
/>
|
|
22
|
-
</view>
|
|
23
|
-
<!-- 内容 -->
|
|
24
|
-
<view class="popup-content">
|
|
25
|
-
<!-- 结果解析 -->
|
|
26
|
-
<block wx:if="{{ showAnalysis }}">
|
|
27
|
-
<!-- 获奖结果区 -->
|
|
28
|
-
<view class="reward-show-box">
|
|
29
|
-
<view class="reward-condition">
|
|
30
|
-
<text>本次直播答题</text>
|
|
31
|
-
<text class="orange-color">{{join_result.qs_is_pass || quiz_task_item.qs_is_pass ? '达到' : '未达到'}}</text>
|
|
32
|
-
<text>获奖条件:答对 {{quiz_task_item.reward_frequency}} 道题</text>
|
|
33
|
-
</view>
|
|
34
|
-
<view class="reward-result">
|
|
35
|
-
<block wx:if="{{ ShowRewardTxt }}">
|
|
36
|
-
{{
|
|
37
|
-
join_result.qs_is_pass || quiz_task_item.qs_is_pass
|
|
38
|
-
? '获得奖励'
|
|
39
|
-
: '未获得奖励'
|
|
40
|
-
}}
|
|
41
|
-
</block>
|
|
42
|
-
<view
|
|
43
|
-
wx:if="{{ ShowReward }}"
|
|
44
|
-
class="reward-result-show"
|
|
45
|
-
>
|
|
46
|
-
<image class="reward-img" src="{{ rewardIcon }}" />{{ rewardText }}
|
|
47
|
-
</view>
|
|
48
|
-
</view>
|
|
49
|
-
</view>
|
|
50
|
-
<!-- 解析区 -->
|
|
51
|
-
<view class="analysis-tip">解析</view>
|
|
52
|
-
<quizContent
|
|
53
|
-
wx:for="{{quizList}}"
|
|
54
|
-
questionContent="{{item}}"
|
|
55
|
-
quizIndex="{{index + 1}}"
|
|
56
|
-
showAnalysis="{{true}}"
|
|
57
|
-
wx:key="{{item.qs_id}}"
|
|
58
|
-
/>
|
|
59
|
-
</block>
|
|
60
|
-
<!-- 答题内容 -->
|
|
61
|
-
<block wx:else>
|
|
62
|
-
<quizContent
|
|
63
|
-
wx:if="{{quizList.length > 0}}"
|
|
64
|
-
questionContent="{{quizList[currentIndex]}}"
|
|
65
|
-
quizIndex="{{currentIndex + 1}}"
|
|
66
|
-
catch:clickOption="clickOption"
|
|
67
|
-
/>
|
|
68
|
-
</block>
|
|
69
|
-
</view>
|
|
70
|
-
<!-- 底部按钮 -->
|
|
71
|
-
<view wx:if="{{ !showAnalysis }}" class="content-footer">
|
|
72
|
-
<view
|
|
73
|
-
hidden="{{!(currentIndex !== 0 && total > 1)}}"
|
|
74
|
-
data-type="prev"
|
|
75
|
-
class="last-step"
|
|
76
|
-
catchtap="handleQuizOrder"
|
|
77
|
-
>
|
|
78
|
-
上一题
|
|
79
|
-
</view>
|
|
80
|
-
<view
|
|
81
|
-
hidden="{{!(currentIndex !== total - 1 && total > 1)}}"
|
|
82
|
-
data-type="next"
|
|
83
|
-
class="next-step"
|
|
84
|
-
catchtap="handleQuizOrder"
|
|
85
|
-
>
|
|
86
|
-
下一题
|
|
87
|
-
</view>
|
|
88
|
-
<view
|
|
89
|
-
hidden="{{!(total === 1 || currentIndex === total - 1)}}"
|
|
90
|
-
data-type="submit"
|
|
91
|
-
class="submit-step"
|
|
92
|
-
catchtap="handleQuizOrder"
|
|
93
|
-
>
|
|
94
|
-
提交
|
|
95
|
-
</view>
|
|
96
|
-
</view>
|
|
97
|
-
</van-popup>
|
|
98
|
-
<van-dialog id="van-dialog" />
|
|
99
|
-
</view>
|
|
1
|
+
<view class="task-quiz-popup" catchtap>
|
|
2
|
+
<van-popup
|
|
3
|
+
show="{{showPopup}}"
|
|
4
|
+
position="{{ popPosition }}"
|
|
5
|
+
custom-style="{{ customStyle }}"
|
|
6
|
+
z-index="{{500}}"
|
|
7
|
+
custom-class="quiz-popup"
|
|
8
|
+
safe-area-inset-bottom="{{ !showAnalysis }}"
|
|
9
|
+
overlay-style="{{ 'background-color: rgba(0, 0, 0, 0.8)' }}"
|
|
10
|
+
catch:close="closePop"
|
|
11
|
+
catch:click-overlay="closePop"
|
|
12
|
+
>
|
|
13
|
+
<!-- 标题 -->
|
|
14
|
+
<view class="content-header">
|
|
15
|
+
{{ showAnalysis ? '直播答题结果' : '直播答题' }}
|
|
16
|
+
<image
|
|
17
|
+
wx:if="{{!isFull}}"
|
|
18
|
+
class="popup-close-icon"
|
|
19
|
+
src="https://commonresource-1252524126.cdn.xiaoeknow.com/image/lz0vxpq80hw7.svg"
|
|
20
|
+
catchtap="closePop"
|
|
21
|
+
/>
|
|
22
|
+
</view>
|
|
23
|
+
<!-- 内容 -->
|
|
24
|
+
<view class="popup-content">
|
|
25
|
+
<!-- 结果解析 -->
|
|
26
|
+
<block wx:if="{{ showAnalysis }}">
|
|
27
|
+
<!-- 获奖结果区 -->
|
|
28
|
+
<view class="reward-show-box">
|
|
29
|
+
<view class="reward-condition">
|
|
30
|
+
<text>本次直播答题</text>
|
|
31
|
+
<text class="orange-color">{{join_result.qs_is_pass || quiz_task_item.qs_is_pass ? '达到' : '未达到'}}</text>
|
|
32
|
+
<text>获奖条件:答对 {{quiz_task_item.reward_frequency}} 道题</text>
|
|
33
|
+
</view>
|
|
34
|
+
<view class="reward-result">
|
|
35
|
+
<block wx:if="{{ ShowRewardTxt }}">
|
|
36
|
+
{{
|
|
37
|
+
join_result.qs_is_pass || quiz_task_item.qs_is_pass
|
|
38
|
+
? '获得奖励'
|
|
39
|
+
: '未获得奖励'
|
|
40
|
+
}}
|
|
41
|
+
</block>
|
|
42
|
+
<view
|
|
43
|
+
wx:if="{{ ShowReward }}"
|
|
44
|
+
class="reward-result-show"
|
|
45
|
+
>
|
|
46
|
+
<image class="reward-img" src="{{ rewardIcon }}" />{{ rewardText }}
|
|
47
|
+
</view>
|
|
48
|
+
</view>
|
|
49
|
+
</view>
|
|
50
|
+
<!-- 解析区 -->
|
|
51
|
+
<view class="analysis-tip">解析</view>
|
|
52
|
+
<quizContent
|
|
53
|
+
wx:for="{{quizList}}"
|
|
54
|
+
questionContent="{{item}}"
|
|
55
|
+
quizIndex="{{index + 1}}"
|
|
56
|
+
showAnalysis="{{true}}"
|
|
57
|
+
wx:key="{{item.qs_id}}"
|
|
58
|
+
/>
|
|
59
|
+
</block>
|
|
60
|
+
<!-- 答题内容 -->
|
|
61
|
+
<block wx:else>
|
|
62
|
+
<quizContent
|
|
63
|
+
wx:if="{{quizList.length > 0}}"
|
|
64
|
+
questionContent="{{quizList[currentIndex]}}"
|
|
65
|
+
quizIndex="{{currentIndex + 1}}"
|
|
66
|
+
catch:clickOption="clickOption"
|
|
67
|
+
/>
|
|
68
|
+
</block>
|
|
69
|
+
</view>
|
|
70
|
+
<!-- 底部按钮 -->
|
|
71
|
+
<view wx:if="{{ !showAnalysis }}" class="content-footer">
|
|
72
|
+
<view
|
|
73
|
+
hidden="{{!(currentIndex !== 0 && total > 1)}}"
|
|
74
|
+
data-type="prev"
|
|
75
|
+
class="last-step"
|
|
76
|
+
catchtap="handleQuizOrder"
|
|
77
|
+
>
|
|
78
|
+
上一题
|
|
79
|
+
</view>
|
|
80
|
+
<view
|
|
81
|
+
hidden="{{!(currentIndex !== total - 1 && total > 1)}}"
|
|
82
|
+
data-type="next"
|
|
83
|
+
class="next-step"
|
|
84
|
+
catchtap="handleQuizOrder"
|
|
85
|
+
>
|
|
86
|
+
下一题
|
|
87
|
+
</view>
|
|
88
|
+
<view
|
|
89
|
+
hidden="{{!(total === 1 || currentIndex === total - 1)}}"
|
|
90
|
+
data-type="submit"
|
|
91
|
+
class="submit-step"
|
|
92
|
+
catchtap="handleQuizOrder"
|
|
93
|
+
>
|
|
94
|
+
提交
|
|
95
|
+
</view>
|
|
96
|
+
</view>
|
|
97
|
+
</van-popup>
|
|
98
|
+
<van-dialog id="van-dialog" />
|
|
99
|
+
</view>
|
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
const computedBehavior = require('miniprogram-computed').behavior
|
|
2
|
-
// 奖励icon配置
|
|
3
|
-
const reward_config = {
|
|
4
|
-
1: {
|
|
5
|
-
label: '积分',
|
|
6
|
-
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5y1064s.png',
|
|
7
|
-
},
|
|
8
|
-
2: {
|
|
9
|
-
label: '优惠券',
|
|
10
|
-
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5y00wfn.png',
|
|
11
|
-
},
|
|
12
|
-
3: {
|
|
13
|
-
label: '红包',
|
|
14
|
-
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5xy0i8g.png',
|
|
15
|
-
},
|
|
16
|
-
4: {
|
|
17
|
-
label: '课程',
|
|
18
|
-
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5xu04is.png',
|
|
19
|
-
},
|
|
20
|
-
5: {
|
|
21
|
-
label: '奖品',
|
|
22
|
-
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5xz08pf.png',
|
|
23
|
-
},
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export default Behavior({
|
|
27
|
-
behaviors: [computedBehavior],
|
|
28
|
-
data: {},
|
|
29
|
-
computed: {
|
|
30
|
-
// 奖励图标
|
|
31
|
-
rewardIcon(data) {
|
|
32
|
-
const { reward_type } = data.taskItem
|
|
33
|
-
return reward_config[reward_type]?.icon
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
// 奖励内容
|
|
37
|
-
rewardText(data) {
|
|
38
|
-
const { reward_type, reward_value, reward_pay_type, team_pay_config } = data.taskItem
|
|
39
|
-
const onlyOneType = [2, 4, 5]
|
|
40
|
-
if (onlyOneType.includes(reward_type)) {
|
|
41
|
-
return `+1 ${reward_config[reward_type]?.label}`
|
|
42
|
-
} else if (reward_type === 3) {
|
|
43
|
-
if (reward_pay_type === 0) {
|
|
44
|
-
return `+${(reward_value.money / 100).toFixed(2)} ${reward_config[reward_type]?.label}`
|
|
45
|
-
} else if (reward_pay_type === 10 && team_pay_config) {
|
|
46
|
-
const storeList = JSON.parse(team_pay_config)
|
|
47
|
-
const storeItem = storeList.find((item) => item.team_id === data.teamId)
|
|
48
|
-
if (storeItem) return `+${(storeItem.money / 100).toFixed(2)} ${reward_config[reward_type]?.label}`
|
|
49
|
-
}
|
|
50
|
-
} else {
|
|
51
|
-
return `+${reward_value} ${reward_config[reward_type]?.label}`
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
})
|
|
1
|
+
const computedBehavior = require('miniprogram-computed').behavior
|
|
2
|
+
// 奖励icon配置
|
|
3
|
+
const reward_config = {
|
|
4
|
+
1: {
|
|
5
|
+
label: '积分',
|
|
6
|
+
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5y1064s.png',
|
|
7
|
+
},
|
|
8
|
+
2: {
|
|
9
|
+
label: '优惠券',
|
|
10
|
+
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5y00wfn.png',
|
|
11
|
+
},
|
|
12
|
+
3: {
|
|
13
|
+
label: '红包',
|
|
14
|
+
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5xy0i8g.png',
|
|
15
|
+
},
|
|
16
|
+
4: {
|
|
17
|
+
label: '课程',
|
|
18
|
+
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5xu04is.png',
|
|
19
|
+
},
|
|
20
|
+
5: {
|
|
21
|
+
label: '奖品',
|
|
22
|
+
icon: 'https://commonresource-1252524126.cdn.xiaoeknow.com/image/ltrgz5xz08pf.png',
|
|
23
|
+
},
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default Behavior({
|
|
27
|
+
behaviors: [computedBehavior],
|
|
28
|
+
data: {},
|
|
29
|
+
computed: {
|
|
30
|
+
// 奖励图标
|
|
31
|
+
rewardIcon(data) {
|
|
32
|
+
const { reward_type } = data.taskItem
|
|
33
|
+
return reward_config[reward_type]?.icon
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
// 奖励内容
|
|
37
|
+
rewardText(data) {
|
|
38
|
+
const { reward_type, reward_value, reward_pay_type, team_pay_config } = data.taskItem
|
|
39
|
+
const onlyOneType = [2, 4, 5]
|
|
40
|
+
if (onlyOneType.includes(reward_type)) {
|
|
41
|
+
return `+1 ${reward_config[reward_type]?.label}`
|
|
42
|
+
} else if (reward_type === 3) {
|
|
43
|
+
if (reward_pay_type === 0) {
|
|
44
|
+
return `+${(reward_value.money / 100).toFixed(2)} ${reward_config[reward_type]?.label}`
|
|
45
|
+
} else if (reward_pay_type === 10 && team_pay_config) {
|
|
46
|
+
const storeList = JSON.parse(team_pay_config)
|
|
47
|
+
const storeItem = storeList.find((item) => item.team_id === data.teamId)
|
|
48
|
+
if (storeItem) return `+${(storeItem.money / 100).toFixed(2)} ${reward_config[reward_type]?.label}`
|
|
49
|
+
}
|
|
50
|
+
} else {
|
|
51
|
+
return `+${reward_value} ${reward_config[reward_type]?.label}`
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
})
|