@shijiu/jsview-vue-samples 2.3.0 → 2.3.728-alpha.0
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/ABImageAlt/App.vue +114 -0
- package/ABImageAlt/Item.vue +133 -0
- package/{MetroWidgetDemos/SkeletonDiagram/assets/imageList.json → ABImageAlt/assets/imageList.js} +9 -1
- package/ABImageAlt/data.js +17 -0
- package/AI_Check_Rules.txt +5 -0
- package/AnimPicture/App.vue +20 -10
- package/ApicSwitch/App.vue +90 -0
- package/ApicSwitch/TabItem.vue +65 -0
- package/ApicSwitch/WebpShow.vue +24 -0
- package/ApicSwitch/data.js +50 -0
- package/Basic/AI_skills_update.md +1 -0
- package/Basic/components/div/ColorFormatTest.vue +93 -0
- package/Basic/components/div/DivRadius.vue +97 -15
- package/Basic/components/div/DivTag3Group.vue +30 -0
- package/Basic/components/img/ImageType.vue +65 -0
- package/Basic/components/panel/Panel2.vue +13 -1
- package/Basic/components/text/TextAlign.vue +7 -1
- package/BlobLoadTest/App.vue +201 -0
- package/BreakLinesApi/App.vue +82 -0
- package/CanvasDrawChart/App.vue +11 -0
- package/CanvasDrawChart/Graph1.vue +104 -0
- package/CanvasDrawChart/Graph2.vue +115 -0
- package/DashPath/App.vue +17 -16
- package/DashPath/AppForOperator.vue +2 -4
- package/DemoForOperator/AnimPic/AnimPic.vue +24 -2
- package/DemoForOperator/Banger/Banger/Banger.vue +73 -9
- package/DemoForOperator/Blur/Blur.vue +146 -0
- package/DemoForOperator/Blur/BlurInOut/BlurInOut.vue +184 -0
- package/DemoForOperator/Blur/BlurInOut/StaticBgSlide.vue +162 -0
- package/DemoForOperator/Blur/BlurPopup/BlurPopup.vue +249 -0
- package/DemoForOperator/BookFlip/App.vue +115 -0
- package/DemoForOperator/BookFlip/BookPage.vue +82 -0
- package/DemoForOperator/Bounce/Bounce.vue +33 -1
- package/DemoForOperator/Bounce/FreeMoveBuilder.js +1 -1
- package/DemoForOperator/ChunLian/Couplets.vue +44 -1
- package/DemoForOperator/ClickSpriteAnim/App.vue +130 -0
- package/DemoForOperator/ClickSpriteAnim/Item.vue +74 -0
- package/DemoForOperator/DominantColor/App.vue +187 -0
- package/DemoForOperator/EpisodeList/EpisodeList/Controller.vue +0 -3
- package/DemoForOperator/EpisodeList/EpisodeList/EpisodeList.vue +76 -2
- package/DemoForOperator/Firework1/App.vue +13 -2
- package/DemoForOperator/Firework1/Fireworks.vue +68 -11
- package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +30 -1
- package/DemoForOperator/Focus/Alpha/AlphaFocusBox.vue +27 -2
- package/DemoForOperator/Focus/Alpha/Item.vue +1 -0
- package/DemoForOperator/Focus/Light/Item.vue +1 -0
- package/DemoForOperator/Focus/Light/LightFocusBox.vue +42 -1
- package/DemoForOperator/Focus/Normal/Item.vue +1 -0
- package/DemoForOperator/Focus/Normal/NormalFocusBox.vue +12 -0
- package/DemoForOperator/FrameShadow/App.vue +193 -0
- package/DemoForOperator/FrameShadow/FrameShadow.vue +61 -0
- package/DemoForOperator/FullscreenIn/App.vue +1 -1
- package/DemoForOperator/FullscreenIn/FullscreenPoster.vue +18 -3
- package/DemoForOperator/Genie/App.vue +20 -6
- package/DemoForOperator/Genie/App2.vue +61 -0
- package/DemoForOperator/Genie/geniePakcer/GenieImage.vue +298 -0
- package/DemoForOperator/Genie/geniePakcer/GenieSlot.vue +292 -0
- package/DemoForOperator/Genie/geniePakcer/GenieTools.ts +463 -0
- package/DemoForOperator/GrayFilter/GrayFilter.vue +21 -0
- package/DemoForOperator/Jigsaw/JigsawFull.vue +58 -11
- package/DemoForOperator/Jigsaw/JigsawSingle.vue +47 -9
- package/DemoForOperator/LongChatBox/App.vue +36 -0
- package/DemoForOperator/LongChatBox/Bubble.vue +116 -0
- package/DemoForOperator/LongChatBox/LongChat.vue +204 -0
- package/DemoForOperator/LongChatBox/testData.js +14 -0
- package/DemoForOperator/Particle/Drop/DropParticle.vue +33 -1
- package/DemoForOperator/Particle/Explode/ExplodeParticle.vue +23 -2
- package/DemoForOperator/PosterAnim/PosterAnim.js +21 -0
- package/DemoForOperator/PosterOverflow/PosterOverflow.vue +16 -0
- package/DemoForOperator/Resize/App.vue +157 -0
- package/DemoForOperator/Resize/Resize/Item.vue +234 -0
- package/DemoForOperator/Resize/Resize/Resize.vue +96 -0
- package/DemoForOperator/Ripple/Ripple.vue +16 -1
- package/DemoForOperator/ScreenShootScale/App.vue +96 -0
- package/DemoForOperator/ScreenShootScale/Back.vue +86 -0
- package/DemoForOperator/ScreenShootScale/Front.vue +133 -0
- package/DemoForOperator/ScreenShootScale/Item.vue +62 -0
- package/DemoForOperator/ScreenShootScale/ScreenShootScale.vue +109 -0
- package/DemoForOperator/SmoothSwiper/App.vue +50 -0
- package/DemoForOperator/Sound/Bounce/App.vue +56 -0
- package/DemoForOperator/Sound/Bounce/Bounce.vue +87 -0
- package/DemoForOperator/Sound/Bounce/FreeMoveBuilder.js +146 -0
- package/DemoForOperator/Sound/Bounce/bgmusic.mp3 +0 -0
- package/DemoForOperator/Sound/Bounce/coin.mp3 +0 -0
- package/DemoForOperator/Sound/FocusMove/App.vue +134 -0
- package/DemoForOperator/Sound/FocusMove/Item.vue +43 -0
- package/DemoForOperator/Sound/FocusMove/move.mp3 +0 -0
- package/DemoForOperator/Sound/Rain/App.vue +11 -0
- package/DemoForOperator/Sound/Rain/Raining/Rain.vue +69 -0
- package/DemoForOperator/Sound/Rain/Raining/RainScene.vue +118 -0
- package/DemoForOperator/Sound/Sound/Sound.vue +24 -0
- package/DemoForOperator/Sound/Sound/index.js +4 -0
- package/DemoForOperator/Sound/Sound/useSound.js +112 -0
- package/DemoForOperator/Sprite/Sprite.vue +62 -5
- package/DemoForOperator/Stretch/Stretch/Stretch.vue +52 -2
- package/DemoForOperator/Swiper/App.vue +101 -0
- package/DemoForOperator/Swiper/Item.vue +56 -0
- package/DemoForOperator/Swiper/ParallaxSlide.vue +164 -0
- package/DemoForOperator/TabContent/TabContent/TabContent.vue +39 -1
- package/DemoForOperator/TabContentVertical/App.vue +104 -0
- package/DemoForOperator/TabContentVertical/ContentPage.vue +67 -0
- package/DemoForOperator/TabContentVertical/Item.vue +94 -0
- package/DemoForOperator/TabContentVertical/PageItem.vue +40 -0
- package/DemoForOperator/TabContentVertical/TabContent/CreepFocus.vue +160 -0
- package/DemoForOperator/TabContentVertical/TabContent/Item.vue +63 -0
- package/DemoForOperator/TabContentVertical/TabContent/TabContent.vue +184 -0
- package/DemoForOperator/TabContentVertical/TabContent/TabItem.vue +368 -0
- package/DemoForOperator/TabContentVertical/TabContent/TabWidget.vue +259 -0
- package/DemoForOperator/TabContentVertical/TabContent/Util.js +3 -0
- package/DemoForOperator/TabContentVertical/TabContent/ViewSwiper.vue +110 -0
- package/DemoForOperator/TabContentVertical/assets/children_science.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/documentary.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/free.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/game.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/home_selected.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/movie_ticket.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/my_account.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/opera.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/sports.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/tv_drama.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/variety_show.png +0 -0
- package/DemoForOperator/TabContentVertical/assets/vip.png +0 -0
- package/DemoForOperator/TabContentVertical/testData.js +76 -0
- package/DemoForOperator/Vortex/Vortex/Vortex.vue +26 -0
- package/DemoForOperator/routeList.js +125 -2
- package/DemoHomepage/App.vue +74 -1
- package/DemoHomepage/components/BodyFrame.vue +5 -0
- package/DemoHomepage/components/Item.vue +11 -0
- package/DemoHomepage/components/TabFrame.vue +1 -1
- package/DemoHomepage/router.js +798 -140
- package/DemoHomepage/views/Homepage.vue +60 -2
- package/DemoHomepage/watchTest.vue +50 -0
- package/DomRenderer/App.vue +133 -0
- package/FilterDemo/AnimatePic.vue +63 -17
- package/FilterDemo/App.vue +3 -3
- package/FlexCellDemo/AI_skills_update.md +4 -0
- package/FlexCellDemo/TestFrame1.vue +12 -2
- package/FlexCellDemo/TestFrame2.vue +10 -1
- package/FlexCellDemo/TestFrame3.vue +114 -59
- package/FpsLimit/App.vue +102 -0
- package/FreeMove/App.vue +24 -279
- package/FreeMove/TestScene1.vue +260 -0
- package/FreeMove/TestScene3.vue +431 -0
- package/FreeMoveChildAttract/App.vue +18 -8
- package/FreeMoveLink/App.vue +51 -22
- package/GiftRain/components/SpriteTranslate.vue +68 -48
- package/HashHistory/App.vue +2 -2
- package/HashHistory/router.js +1 -1
- package/Hover/App.vue +144 -0
- package/HttpRequestSSE/SSEReader.js +200 -0
- package/ImpactStop/App.vue +2 -2
- package/Input/FullKeyboard.vue +3 -3
- package/Input/InputPanel.vue +63 -3
- package/JsvLine/App.vue +53 -38
- package/LatexDemo/App.vue +3 -1
- package/LatexFormula/App.vue +196 -0
- package/LongImage/App.vue +1 -1
- package/LongImage/LongImageScroll.vue +111 -46
- package/LongImage/Scroll.vue +28 -9
- package/LongText/LongTextScroll.vue +14 -1
- package/Markdown/App.vue +36 -0
- package/Markdown/Bubble.vue +109 -0
- package/Markdown/LongChat.vue +216 -0
- package/Markdown/data.js +633 -0
- package/MetroWidgetDemos/AI_skills_update.md +2 -0
- package/MetroWidgetDemos/EpgFlowListType/App.vue +206 -0
- package/MetroWidgetDemos/EpgFlowListType/components/ContentCard.vue +105 -0
- package/MetroWidgetDemos/EpgFlowListType/components/FloorSection.vue +131 -0
- package/MetroWidgetDemos/EpgFlowListType/components/LeftTabItem.vue +41 -0
- package/MetroWidgetDemos/EpgFlowListType/data.js +78 -0
- package/MetroWidgetDemos/ListExpand/ChildItem.vue +130 -0
- package/MetroWidgetDemos/ListExpand/ExpandItem.vue +375 -0
- package/MetroWidgetDemos/ListExpand/ExpandItem1.vue +403 -0
- package/MetroWidgetDemos/ListExpand/assets/arrow-down.png +0 -0
- package/MetroWidgetDemos/ListExpand/assets/up-arrow.png +0 -0
- package/MetroWidgetDemos/ListExpand/components/WidgetListHandler.vue +150 -0
- package/MetroWidgetDemos/ListExpand/index.vue +88 -0
- package/MetroWidgetDemos/ListExpand/list.js +2421 -0
- package/MetroWidgetDemos/RefreshDemo/App.vue +14 -1
- package/MetroWidgetDemos/RenderAccelerate/App.vue +142 -0
- package/MetroWidgetDemos/RenderAccelerate/AppPage.vue +78 -0
- package/MetroWidgetDemos/RenderAccelerate/AppTab.vue +62 -0
- package/MetroWidgetDemos/RenderAccelerate/ContentItem.vue +409 -0
- package/MetroWidgetDemos/{TripleWidget → RenderAccelerate}/Item.vue +6 -3
- package/MetroWidgetDemos/RenderAccelerate/TabItem.vue +100 -0
- package/MetroWidgetDemos/RenderAccelerate/ViewSwiper.vue +215 -0
- package/MetroWidgetDemos/RenderAccelerate/WidgetItem.vue +107 -0
- package/MetroWidgetDemos/SkeletonDiagram/App.vue +35 -8
- package/MetroWidgetDemos/SkeletonDiagram/Item.vue +11 -2
- package/MetroWidgetDemos/SkeletonDiagram/assets/imageList.js +245 -0
- package/MetroWidgetDemos/SkeletonDiagram/data.js +3 -3
- package/MetroWidgetDemos/SpatialNav/App.vue +177 -0
- package/MetroWidgetDemos/SpatialNav/Buttons.vue +83 -0
- package/MetroWidgetDemos/SpatialNav/CustomFocus.vue +57 -0
- package/MetroWidgetDemos/SpatialNav/Item.vue +71 -0
- package/MetroWidgetDemos/SpatialNav/SimpleFloor.vue +86 -0
- package/MetroWidgetDemos/SpatialNav/StepMw.vue +113 -0
- package/MetroWidgetDemos/SpatialNav/TabContent/TabContent.vue +185 -0
- package/MetroWidgetDemos/SpatialNav/TripleSection/TripleSection.vue +69 -0
- package/MetroWidgetDemos/SpatialNav/TripleSection/WidgetItem.vue +100 -0
- package/MetroWidgetDemos/SpatialNav/TvSection/List.vue +75 -0
- package/MetroWidgetDemos/SpatialNav/TvSection/TvSection.vue +91 -0
- package/MetroWidgetDemos/basic2/App.vue +407 -0
- package/MetroWidgetDemos/basic2/Item.vue +68 -0
- package/MetroWidgetDemos/direction/App.vue +22 -0
- package/MetroWidgetDemos/gazeFocusDiff/App.vue +126 -0
- package/MetroWidgetDemos/gazeFocusDiff/Item.vue +87 -0
- package/MetroWidgetDemos/minimalUsage/App.vue +66 -0
- package/MetroWidgetDemos/minimalUsage/Item.vue +54 -0
- package/MetroWidgetDemos/ninePatchFocusPage/App.vue +23 -7
- package/MetroWidgetDemos/ninePatchFocusPage/Item.vue +7 -5
- package/MetroWidgetDemos/ninePatchFocusPage/focusConstants.js +2 -0
- package/MetroWidgetDemos/routeList.js +229 -8
- package/MetroWidgetDemos/slideSetting/App.vue +288 -99
- package/MetroWidgetDemos/zIndex/App.vue +117 -0
- package/MetroWidgetDemos/zIndex/Item.vue +61 -0
- package/NinePatchTester/App.vue +24 -31
- package/PosterPacker/App.vue +2 -2
- package/PreDecode/App.vue +140 -0
- package/ReactiveTest/App.vue +115 -0
- package/ReactiveTest/Item.vue +92 -0
- package/ReactiveTest/assets/imageList.js +245 -0
- package/ReactiveTest/component/TestSmartDiv.vue +50 -0
- package/ReactiveTest/component/TestSmartDivSrcList.vue +74 -0
- package/ReactiveTest/component/TestSmartImage.vue +46 -0
- package/ReactiveTest/component/TestSmartImageSrcList.vue +90 -0
- package/ReactiveTest/component/TestSmartImageStyle.vue +41 -0
- package/ReactiveTest/data.js +49 -0
- package/ScreenToBlob/App.vue +250 -0
- package/ScrollBoxTest/App.vue +52 -28
- package/ScrollBoxTest/ClipBar.vue +64 -2
- package/ScrollBoxTest/NinePatchBar.vue +64 -2
- package/ScrollBoxTest/SizeDivBar.vue +64 -2
- package/SecTorTest/App.vue +9 -3
- package/SpringFestival/SpringFestivalScene/FreeMoveBuilder.js +3 -3
- package/SyncDecode/App.vue +137 -0
- package/TextSizeLimit/App.vue +211 -0
- package/TextureAnimation/App3.vue +11 -1
- package/TouchWidget/App.vue +90 -5
- package/TouchWidget/WidgetItem.vue +1 -0
- package/TransitPage/App.vue +2 -0
- package/ViewOpacity/App.vue +19 -0
- package/assets/logo.png +0 -0
- package/package.json +1 -1
- package/DashPath/DashPath.vue +0 -118
- package/DemoForOperator/Genie/geniePakcer/Genie.vue +0 -699
- package/DemoForOperator/ScalePoster/App.vue +0 -4
- package/DemoForOperator/ScalePoster/ScalePoster.vue +0 -0
- package/DivMetroPerformance/App.vue +0 -157
- package/DivMetroPerformance/Item.vue +0 -58
- package/DivMetroPerformance/assets/bg.jpg +0 -0
- package/DivMetroPerformance/assets/coupon_content.png +0 -0
- package/DivMetroPerformance/assets/coupon_left.png +0 -0
- package/DivMetroPerformance/assets/coupon_mid.png +0 -0
- package/DivMetroPerformance/assets/coupon_right.png +0 -0
- package/DivMetroPerformance/assets/focus_border.png +0 -0
- package/DivMetroPerformance/assets/holder_logo.png +0 -0
- package/DivMetroPerformance/assets/jrbm.png +0 -0
- package/DivMetroPerformance/assets/line_left.png +0 -0
- package/DivMetroPerformance/assets/line_mid.png +0 -0
- package/DivMetroPerformance/assets/line_right.png +0 -0
- package/DivMetroPerformance/assets/loading.png +0 -0
- package/DivMetroPerformance/assets/logo.png +0 -0
- package/DivMetroPerformance/assets/mcjx.png +0 -0
- package/DivMetroPerformance/assets/tao.png +0 -0
- package/DivMetroPerformance/assets/tmall.png +0 -0
- package/DivMetroPerformance/border.png +0 -0
- package/DivMetroPerformance/components/ContentItem.vue +0 -384
- package/DivMetroPerformance/components/MyTab.vue +0 -129
- package/DivMetroPerformance/data.js +0 -124
- package/DivMetroPerformance/utils/GridItem.vue +0 -28
- package/DivMetroPerformance/utils/GridPlate.vue +0 -85
- package/MediaDemo/App.vue +0 -127
- package/MediaDemo/assets/audio-poster.png +0 -0
- package/MediaDemo/components/Button.vue +0 -69
- package/MediaDemo/components/Controllor.vue +0 -286
- package/MediaDemo/components/StatusBar.vue +0 -100
- package/MediaDemo/components/frames/AudioFrame.vue +0 -39
- package/MediaDemo/components/frames/AudioPoster.vue +0 -48
- package/MediaDemo/components/frames/MediaFrame.vue +0 -153
- package/MediaDemo/components/frames/VideoFrame.vue +0 -39
- package/MetroWidgetDemos/TripleWidget/App.vue +0 -81
- package/MetroWidgetDemos/TripleWidget/SWidgetItem.vue +0 -93
- package/MetroWidgetDemos/TripleWidget/WidgetItem.vue +0 -111
- package/Parkour/App.vue +0 -13
- package/Parkour/Common/Context.js +0 -21
- package/Parkour/Common/MatchmanInfo.js +0 -62
- package/Parkour/Common/Random.js +0 -61
- package/Parkour/Common/Sound.js +0 -50
- package/Parkour/appConfig/HOW_TO_CONFIG.md +0 -20
- package/Parkour/appConfig/app.config.mjs +0 -5
- package/Parkour/appConfig/app_sign_private_key_sample.crt +0 -28
- package/Parkour/appConfig/app_sign_public_key_sample.pem +0 -9
- package/Parkour/appConfig/jsview.config.mjs +0 -39
- package/Parkour/assets/Bgimages/bg1.png +0 -0
- package/Parkour/assets/Bgimages/bg2.png +0 -0
- package/Parkour/assets/Bgimages/bg3.png +0 -0
- package/Parkour/assets/Bgimages/bg4.png +0 -0
- package/Parkour/assets/Bgimages/bg5.png +0 -0
- package/Parkour/assets/audio/jump.mp3 +0 -0
- package/Parkour/assets/audio/lose.mp3 +0 -0
- package/Parkour/assets/role_skin1/fail.json +0 -44
- package/Parkour/assets/role_skin1/fail.png +0 -0
- package/Parkour/assets/role_skin1/jump_down.json +0 -20
- package/Parkour/assets/role_skin1/jump_down.png +0 -0
- package/Parkour/assets/role_skin1/jump_up.json +0 -44
- package/Parkour/assets/role_skin1/jump_up.png +0 -0
- package/Parkour/assets/role_skin1/roll.json +0 -44
- package/Parkour/assets/role_skin1/roll.png +0 -0
- package/Parkour/assets/role_skin1/run.json +0 -52
- package/Parkour/assets/role_skin1/run.png +0 -0
- package/Parkour/components/Backdrop.vue +0 -61
- package/Parkour/components/GameSence.vue +0 -602
- package/Parkour/components/Matchman.vue +0 -85
- package/TextureAnimation/utils/FrameCanvasStore.ts +0 -68
- package/TextureAnimation/utils/RotateFrame.vue +0 -146
- package/TextureAnimation/utils/circleHaloMask.png +0 -0
- package/ThrowMoveDemo/AccelerateDemo.vue +0 -85
- package/ThrowMoveDemo/App.vue +0 -104
- package/ThrowMoveDemo/LRParabolicDemo.vue +0 -101
- package/ThrowMoveDemo/TargetDemo.vue +0 -87
- package/ThrowMoveDemo/UDParabolicDemo.vue +0 -92
- /package/{AnimPicture/assets → assets}/animated_webp.webp +0 -0
- /package/{AnimPicture/assets → assets}/ball_3.webp +0 -0
- /package/{AnimPicture/assets → assets}/girl_run.gif +0 -0
- /package/{AnimPicture/assets → assets}/quan.webp +0 -0
|
@@ -135,6 +135,19 @@ const controlList = [
|
|
|
135
135
|
widgetRef.value.refreshData();
|
|
136
136
|
},
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
name: "删除",
|
|
140
|
+
callback: () => {
|
|
141
|
+
if (curData.length - 1 >= 0) {
|
|
142
|
+
// const data = [];
|
|
143
|
+
// prepareData(data, 200, 200, 0, curData.length - 1);
|
|
144
|
+
// curData = data;
|
|
145
|
+
curData.splice(3, 1);
|
|
146
|
+
widgetRef.value.tmpDisableRenderBreak();
|
|
147
|
+
widgetRef.value.refreshData();
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
},
|
|
138
151
|
];
|
|
139
152
|
const controlWidgetMeasure = (data) => {
|
|
140
153
|
return {
|
|
@@ -172,8 +185,8 @@ const controlOnEdge = (edgeInfo) => {
|
|
|
172
185
|
:provideData="provideData"
|
|
173
186
|
:measures="measures"
|
|
174
187
|
:padding="{ left: 50, right: 50, top: 50, bottom: 50 }"
|
|
175
|
-
:enableItemRenderBreak="true"
|
|
176
188
|
:onEdge="onEdge"
|
|
189
|
+
:enableItemRenderBreak="true"
|
|
177
190
|
:placeHolderSetting="{
|
|
178
191
|
backgroundColor: 'rgba(78,105,127, 0.8)',
|
|
179
192
|
focusBackgroundColor: '#770088aa',
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2021-12-21 15:36:29
|
|
4
|
+
* @LastEditors: ZhengYi
|
|
5
|
+
* @LastEditTime: 2023-05-04
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script setup>
|
|
9
|
+
import ViewSwiper from "./ViewSwiper.vue";
|
|
10
|
+
import AppTab from "./AppTab.vue";
|
|
11
|
+
import { reactive, provide, shallowRef } from "vue";
|
|
12
|
+
import { EdgeDirection, useFocusHub } from "jsview";
|
|
13
|
+
import { useRouter } from "vue-router";
|
|
14
|
+
const router = useRouter();
|
|
15
|
+
const pageList = [];
|
|
16
|
+
const tabData = [];
|
|
17
|
+
|
|
18
|
+
const focusHub = useFocusHub();
|
|
19
|
+
|
|
20
|
+
const rRenderAcc = shallowRef(true);
|
|
21
|
+
const rRenderAccChangeCnt = shallowRef(0);
|
|
22
|
+
|
|
23
|
+
provide("rRenderAccConfig", rRenderAcc);
|
|
24
|
+
|
|
25
|
+
const randomColor = () => {
|
|
26
|
+
let randomColor = Math.round(Math.random() * 2 ** 24).toString(16);
|
|
27
|
+
return (
|
|
28
|
+
"#" + new Array(6 - randomColor.length).fill("0").join("") + randomColor
|
|
29
|
+
);
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
for (let i = 0; i < 10; ++i) {
|
|
33
|
+
tabData.push({
|
|
34
|
+
width: 150,
|
|
35
|
+
height: 50,
|
|
36
|
+
marginRight: 10,
|
|
37
|
+
content: i == 0 ? "首屏不动" : "Tab_" + i,
|
|
38
|
+
color: randomColor(),
|
|
39
|
+
});
|
|
40
|
+
const pageData = [];
|
|
41
|
+
for (let j = 0; j < 10; ++j) {
|
|
42
|
+
pageData.push({
|
|
43
|
+
width: 900,
|
|
44
|
+
height: 130,
|
|
45
|
+
name: "testPage_" + i + "-" + "widget_" + j,
|
|
46
|
+
marginBottom: 10,
|
|
47
|
+
index: j,
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
pageList.push({
|
|
51
|
+
width: 1000,
|
|
52
|
+
height: 600,
|
|
53
|
+
data: pageData,
|
|
54
|
+
name: "testPage-" + i,
|
|
55
|
+
tabIndex: i,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
let globalInfo = reactive({
|
|
59
|
+
tabId: 0,
|
|
60
|
+
});
|
|
61
|
+
let focusNode = shallowRef(null)
|
|
62
|
+
const appPageName = "/page";
|
|
63
|
+
const appTabName = "/tab";
|
|
64
|
+
const curFocusName = shallowRef("/tab");
|
|
65
|
+
provide("globalInfo", globalInfo)
|
|
66
|
+
|
|
67
|
+
const $_app_onFocus = () => {
|
|
68
|
+
console.log("App onFocus");
|
|
69
|
+
focusHub.setFocus(curFocusName.value);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const onDispatchKeyDown = (ev) => {
|
|
73
|
+
if (ev.keyCode == 13) {
|
|
74
|
+
rRenderAccChangeCnt.value++;
|
|
75
|
+
rRenderAcc.value = !rRenderAcc.value;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const onKeyDown = (ev) => {
|
|
82
|
+
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
83
|
+
router?.go(-1);
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const $_app_pageOnEdge = (info) => {
|
|
89
|
+
console.log("App page on edge ", info);
|
|
90
|
+
if (info.direction === EdgeDirection.top) {
|
|
91
|
+
curFocusName.value = "/tab";
|
|
92
|
+
focusHub.setFocus(appTabName);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const $_app_tabOnEdge = (info) => {
|
|
97
|
+
console.log("App tab on edge ", info);
|
|
98
|
+
if (info.direction === EdgeDirection.bottom) {
|
|
99
|
+
curFocusName.value = "/page";
|
|
100
|
+
focusHub.setFocus(appPageName);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<template>
|
|
106
|
+
<jsv-focus-block ref="focusNode" name="/main" autoFocus :onAction="{
|
|
107
|
+
onKeyDown: onKeyDown,
|
|
108
|
+
onDispatchKeyDown: onDispatchKeyDown,
|
|
109
|
+
onFocus: $_app_onFocus,
|
|
110
|
+
}"
|
|
111
|
+
:key="rRenderAccChangeCnt /* 切换加速模式时,重新渲染 */"
|
|
112
|
+
|
|
113
|
+
:style="{
|
|
114
|
+
width: 1280,
|
|
115
|
+
height: 720,
|
|
116
|
+
backgroundColor: '#007788',
|
|
117
|
+
}">
|
|
118
|
+
<div :style="{
|
|
119
|
+
top: 3,
|
|
120
|
+
left: 200,
|
|
121
|
+
fontSize: 20,
|
|
122
|
+
color: '#FFFFFF',
|
|
123
|
+
}">
|
|
124
|
+
{{ `按OK键切换加速模式:${rRenderAcc ? '开启' : '关闭'}` }}
|
|
125
|
+
</div>
|
|
126
|
+
<div :style="{
|
|
127
|
+
top: 0,
|
|
128
|
+
left: 100,
|
|
129
|
+
}">
|
|
130
|
+
<app-tab :data="tabData" :name="appTabName" :layout="{ width: 600, height: 100 }" :onEdge="$_app_tabOnEdge" :style="{
|
|
131
|
+
top: 15,
|
|
132
|
+
}"></app-tab>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
<div :style="{ top: 100, left: 200 }">
|
|
136
|
+
<view-swiper :name="appPageName" :pageData="pageList" :onEdge="$_app_pageOnEdge" :layout="{
|
|
137
|
+
width: 1100,
|
|
138
|
+
height: 600,
|
|
139
|
+
}"></view-swiper>
|
|
140
|
+
</div>
|
|
141
|
+
</jsv-focus-block>
|
|
142
|
+
</template>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2022-07-12 10:45:38
|
|
4
|
+
* @LastEditors: ZhengYi
|
|
5
|
+
* @LastEditTime: 2023-05-04
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script setup>
|
|
9
|
+
import {
|
|
10
|
+
VERTICAL,
|
|
11
|
+
MetroWidget,
|
|
12
|
+
METRO_WIDGET_CONST,
|
|
13
|
+
SeamlessSlide,
|
|
14
|
+
} from "jsview";
|
|
15
|
+
import WidgetItem from "./WidgetItem.vue";
|
|
16
|
+
import { shallowRef, watch, onBeforeUnmount } from "vue";
|
|
17
|
+
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
data: {
|
|
20
|
+
type: Object,
|
|
21
|
+
require: true,
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
type: String,
|
|
25
|
+
require: true,
|
|
26
|
+
},
|
|
27
|
+
onEdge: {
|
|
28
|
+
type: Function,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const widgetRef = shallowRef(null);
|
|
33
|
+
|
|
34
|
+
const provideData = () => {
|
|
35
|
+
return props.data.data;
|
|
36
|
+
};
|
|
37
|
+
const measures = (item) => {
|
|
38
|
+
return {
|
|
39
|
+
width: item.width,
|
|
40
|
+
height: item.height,
|
|
41
|
+
itemSlide: METRO_WIDGET_CONST.ITEM_SLIDE.ACT_FOCUS_RECT_EVENT,
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const watcher = watch(
|
|
46
|
+
() => props.data,
|
|
47
|
+
(newValue, oldValue) => {
|
|
48
|
+
widgetRef.value?.refreshData();
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
onBeforeUnmount(() => {
|
|
53
|
+
watcher();
|
|
54
|
+
});
|
|
55
|
+
</script>
|
|
56
|
+
|
|
57
|
+
<template>
|
|
58
|
+
<metro-widget
|
|
59
|
+
ref="widgetRef"
|
|
60
|
+
:name="name"
|
|
61
|
+
:width="data.width"
|
|
62
|
+
:height="data.height"
|
|
63
|
+
:provideData="provideData"
|
|
64
|
+
:direction="VERTICAL"
|
|
65
|
+
:measures="measures"
|
|
66
|
+
:onEdge="onEdge"
|
|
67
|
+
:keepTraceRange="0.3"
|
|
68
|
+
>
|
|
69
|
+
<template #renderItem="{ data, query, onItemEdge, onAction }">
|
|
70
|
+
<widget-item
|
|
71
|
+
:data="data"
|
|
72
|
+
:query="query"
|
|
73
|
+
:onItemEdge="onItemEdge"
|
|
74
|
+
:onAction="onAction"
|
|
75
|
+
></widget-item>
|
|
76
|
+
</template>
|
|
77
|
+
</metro-widget>
|
|
78
|
+
</template>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2022-07-12 10:45:19
|
|
4
|
+
* @LastEditors: ChenChanghua
|
|
5
|
+
* @LastEditTime: 2022-09-01 16:19:51
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script setup>
|
|
9
|
+
import { HORIZONTAL, MetroWidget } from "jsview";
|
|
10
|
+
import TabItem from "./TabItem.vue";
|
|
11
|
+
|
|
12
|
+
const props = defineProps({
|
|
13
|
+
data: {
|
|
14
|
+
type: Object,
|
|
15
|
+
require: true,
|
|
16
|
+
},
|
|
17
|
+
name: {
|
|
18
|
+
type: String,
|
|
19
|
+
require: true,
|
|
20
|
+
},
|
|
21
|
+
layout: {
|
|
22
|
+
type: Object,
|
|
23
|
+
},
|
|
24
|
+
onEdge: {
|
|
25
|
+
type: Function,
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
const measures = (item) => {
|
|
30
|
+
return {
|
|
31
|
+
width: item.width,
|
|
32
|
+
height: item.height,
|
|
33
|
+
marginRight: item.marginRight,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
const provideData = () => {
|
|
37
|
+
return props.data;
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
40
|
+
|
|
41
|
+
<template>
|
|
42
|
+
<jsv-focus-block>
|
|
43
|
+
<metro-widget
|
|
44
|
+
:name="name"
|
|
45
|
+
:width="layout.width"
|
|
46
|
+
:height="layout.height"
|
|
47
|
+
:provideData="provideData"
|
|
48
|
+
:direction="HORIZONTAL"
|
|
49
|
+
:measures="measures"
|
|
50
|
+
:onEdge="onEdge"
|
|
51
|
+
:padding="{
|
|
52
|
+
top: 30,
|
|
53
|
+
left: 60,
|
|
54
|
+
right: 60,
|
|
55
|
+
}"
|
|
56
|
+
>
|
|
57
|
+
<template #renderItem="{ data, query, onAction }">
|
|
58
|
+
<tab-item :data="data" :query="query" :onAction="onAction"></tab-item>
|
|
59
|
+
</template>
|
|
60
|
+
</metro-widget>
|
|
61
|
+
</jsv-focus-block>
|
|
62
|
+
</template>
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2021-06-10 14:17:17
|
|
4
|
+
* @LastEditors: ChenChanghua
|
|
5
|
+
* @LastEditTime: 2022-07-11 18:20:58
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script setup>
|
|
9
|
+
import posterHolder from "../PerformanceTest/assets/holder_logo.png";
|
|
10
|
+
import couponLeft from "../PerformanceTest/assets/coupon_left.png";
|
|
11
|
+
import couponRight from "../PerformanceTest/assets/coupon_right.png";
|
|
12
|
+
import couponMid from "../PerformanceTest/assets/coupon_mid.png";
|
|
13
|
+
import borderLeft from "../PerformanceTest/assets/line_left.png";
|
|
14
|
+
import borderMid from "../PerformanceTest/assets/line_mid.png";
|
|
15
|
+
import borderRight from "../PerformanceTest/assets/line_right.png";
|
|
16
|
+
import { ref, computed } from "vue";
|
|
17
|
+
import RotateFrame from "../../TextureAnimation/utils/RotateFrame.vue";
|
|
18
|
+
import img from "../../TextureAnimation/assets/blackWhiteTurntable.png";
|
|
19
|
+
|
|
20
|
+
const props = defineProps({
|
|
21
|
+
data: Object,
|
|
22
|
+
query: Object,
|
|
23
|
+
onEdge: Function,
|
|
24
|
+
onAction: Object,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const focused = ref(false);
|
|
28
|
+
const onFocus = () => {
|
|
29
|
+
focused.value = true;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const onBlur = () => {
|
|
33
|
+
focused.value = false;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
props.onAction.register("onFocus", onFocus);
|
|
37
|
+
props.onAction.register("onBlur", onBlur);
|
|
38
|
+
|
|
39
|
+
const focusTransform = computed(() => {
|
|
40
|
+
return focused.value ? "scale3d(1.2, 1.2, 1)" : null;
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const savePrizeWidth = computed(() => {
|
|
44
|
+
return 10 * props.data.savePrize.length + 26;
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const soldTotalWidth = computed(() => {
|
|
48
|
+
let width = 44 + 22; //base width;
|
|
49
|
+
if (props.data.soldTotal >= 10000) {
|
|
50
|
+
let text = parseInt(props.data.soldTotal / 10000) + "";
|
|
51
|
+
width += text.length * 12 + 22;
|
|
52
|
+
} else {
|
|
53
|
+
width += (props.data.soldTotal + "").length * 12;
|
|
54
|
+
}
|
|
55
|
+
return width;
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
const soldTotalText = computed(() => {
|
|
59
|
+
let text = "";
|
|
60
|
+
if (props.data.soldTotal >= 10000) {
|
|
61
|
+
text = parseInt(props.data.soldTotal / 10000) + "万";
|
|
62
|
+
} else {
|
|
63
|
+
text = props.data.soldTotal;
|
|
64
|
+
}
|
|
65
|
+
return text;
|
|
66
|
+
});
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<div
|
|
71
|
+
class="frame-background"
|
|
72
|
+
:style="{
|
|
73
|
+
transform: focusTransform,
|
|
74
|
+
}"
|
|
75
|
+
>
|
|
76
|
+
<div class="poster-holder">
|
|
77
|
+
<div
|
|
78
|
+
:style="{
|
|
79
|
+
width: 100,
|
|
80
|
+
height: 23,
|
|
81
|
+
left: 0,
|
|
82
|
+
top: 40,
|
|
83
|
+
backgroundImage: posterHolder,
|
|
84
|
+
}"
|
|
85
|
+
/>
|
|
86
|
+
</div>
|
|
87
|
+
<div
|
|
88
|
+
:style="{
|
|
89
|
+
width: 100,
|
|
90
|
+
height: 100,
|
|
91
|
+
overflow: 'hidden',
|
|
92
|
+
backgroundImage: `url(${data.pictUrl})`,
|
|
93
|
+
}"
|
|
94
|
+
>
|
|
95
|
+
<rotate-frame
|
|
96
|
+
v-if="focused"
|
|
97
|
+
:imageUrl="img"
|
|
98
|
+
:left="5"
|
|
99
|
+
:top="5"
|
|
100
|
+
:width="90"
|
|
101
|
+
:height="90"
|
|
102
|
+
:maxViewSize="{
|
|
103
|
+
width: 90,
|
|
104
|
+
height: 90,
|
|
105
|
+
}"
|
|
106
|
+
:borderRadius="5"
|
|
107
|
+
:lineWidth="3"
|
|
108
|
+
:withHalo="true"
|
|
109
|
+
/>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="title-font title-layout">
|
|
112
|
+
{{ data.index + data.name }}
|
|
113
|
+
</div>
|
|
114
|
+
<div
|
|
115
|
+
:style="{
|
|
116
|
+
top: 10,
|
|
117
|
+
}"
|
|
118
|
+
>
|
|
119
|
+
<div
|
|
120
|
+
:style="{
|
|
121
|
+
height: 24,
|
|
122
|
+
left: 13,
|
|
123
|
+
top: 256 - 256,
|
|
124
|
+
width: savePrizeWidth,
|
|
125
|
+
}"
|
|
126
|
+
>
|
|
127
|
+
<div :style="{ width: 5, height: 24, backgroundImage: couponLeft }" />
|
|
128
|
+
<div
|
|
129
|
+
:style="{
|
|
130
|
+
left: 5,
|
|
131
|
+
width: savePrizeWidth - 11,
|
|
132
|
+
height: 24,
|
|
133
|
+
backgroundImage: couponMid,
|
|
134
|
+
}"
|
|
135
|
+
/>
|
|
136
|
+
<div
|
|
137
|
+
:style="{
|
|
138
|
+
left: savePrizeWidth - 6,
|
|
139
|
+
width: 5,
|
|
140
|
+
height: 24,
|
|
141
|
+
backgroundImage: couponRight,
|
|
142
|
+
}"
|
|
143
|
+
/>
|
|
144
|
+
<div
|
|
145
|
+
class="ticket-text"
|
|
146
|
+
:style="{
|
|
147
|
+
width: savePrizeWidth,
|
|
148
|
+
}"
|
|
149
|
+
>
|
|
150
|
+
{{ `${data.savePrize}元券` }}
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
|
|
154
|
+
<div
|
|
155
|
+
:style="{
|
|
156
|
+
top: 256 - 256,
|
|
157
|
+
left: 27 + savePrizeWidth,
|
|
158
|
+
}"
|
|
159
|
+
>
|
|
160
|
+
<div :style="{ width: 7, height: 25, backgroundImage: borderLeft }" />
|
|
161
|
+
<div
|
|
162
|
+
:style="{
|
|
163
|
+
left: 7,
|
|
164
|
+
width: soldTotalWidth - 13,
|
|
165
|
+
height: 25,
|
|
166
|
+
backgroundImage: borderMid,
|
|
167
|
+
}"
|
|
168
|
+
/>
|
|
169
|
+
<div
|
|
170
|
+
:style="{
|
|
171
|
+
left: soldTotalWidth - 7,
|
|
172
|
+
width: 7,
|
|
173
|
+
height: 25,
|
|
174
|
+
backgroundImage: borderRight,
|
|
175
|
+
}"
|
|
176
|
+
/>
|
|
177
|
+
<div
|
|
178
|
+
class="sold-text"
|
|
179
|
+
:style="{
|
|
180
|
+
width: soldTotalWidth,
|
|
181
|
+
}"
|
|
182
|
+
>
|
|
183
|
+
{{ `已售${soldTotalText}件` }}
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
|
|
187
|
+
<div
|
|
188
|
+
:style="{
|
|
189
|
+
height: 24,
|
|
190
|
+
left: 13,
|
|
191
|
+
top: 270 - 256,
|
|
192
|
+
width: savePrizeWidth,
|
|
193
|
+
}"
|
|
194
|
+
>
|
|
195
|
+
<div :style="{ width: 5, height: 24, backgroundImage: couponLeft }" />
|
|
196
|
+
<div
|
|
197
|
+
:style="{
|
|
198
|
+
left: 5,
|
|
199
|
+
width: savePrizeWidth - 11,
|
|
200
|
+
height: 24,
|
|
201
|
+
backgroundImage: couponMid,
|
|
202
|
+
}"
|
|
203
|
+
/>
|
|
204
|
+
<div
|
|
205
|
+
:style="{
|
|
206
|
+
left: savePrizeWidth - 6,
|
|
207
|
+
width: 5,
|
|
208
|
+
height: 24,
|
|
209
|
+
backgroundImage: couponRight,
|
|
210
|
+
}"
|
|
211
|
+
/>
|
|
212
|
+
<div
|
|
213
|
+
class="ticket-text"
|
|
214
|
+
:style="{
|
|
215
|
+
width: savePrizeWidth,
|
|
216
|
+
}"
|
|
217
|
+
>
|
|
218
|
+
{{ `${data.savePrize}元券` }}
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
<div
|
|
222
|
+
:style="{
|
|
223
|
+
top: 270 - 256,
|
|
224
|
+
left: 27 + savePrizeWidth,
|
|
225
|
+
}"
|
|
226
|
+
>
|
|
227
|
+
<div :style="{ width: 7, height: 25, backgroundImage: borderLeft }" />
|
|
228
|
+
<div
|
|
229
|
+
:style="{
|
|
230
|
+
left: 7,
|
|
231
|
+
width: soldTotalWidth - 13,
|
|
232
|
+
height: 25,
|
|
233
|
+
backgroundImage: borderMid,
|
|
234
|
+
}"
|
|
235
|
+
/>
|
|
236
|
+
<div
|
|
237
|
+
:style="{
|
|
238
|
+
left: soldTotalWidth - 7,
|
|
239
|
+
width: 7,
|
|
240
|
+
height: 25,
|
|
241
|
+
backgroundImage: borderRight,
|
|
242
|
+
}"
|
|
243
|
+
/>
|
|
244
|
+
<div
|
|
245
|
+
class="sold-text"
|
|
246
|
+
:style="{
|
|
247
|
+
width: soldTotalWidth,
|
|
248
|
+
}"
|
|
249
|
+
>
|
|
250
|
+
{{ `已售${soldTotalText}件` }}
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
|
|
254
|
+
<div
|
|
255
|
+
:style="{
|
|
256
|
+
height: 24,
|
|
257
|
+
left: 13,
|
|
258
|
+
top: 280 - 256,
|
|
259
|
+
width: savePrizeWidth,
|
|
260
|
+
}"
|
|
261
|
+
>
|
|
262
|
+
<div :style="{ width: 5, height: 24, backgroundImage: couponLeft }" />
|
|
263
|
+
<div
|
|
264
|
+
:style="{
|
|
265
|
+
left: 5,
|
|
266
|
+
width: savePrizeWidth - 11,
|
|
267
|
+
height: 24,
|
|
268
|
+
backgroundImage: couponMid,
|
|
269
|
+
}"
|
|
270
|
+
/>
|
|
271
|
+
<div
|
|
272
|
+
:style="{
|
|
273
|
+
left: savePrizeWidth - 6,
|
|
274
|
+
width: 5,
|
|
275
|
+
height: 24,
|
|
276
|
+
backgroundImage: couponRight,
|
|
277
|
+
}"
|
|
278
|
+
/>
|
|
279
|
+
<div
|
|
280
|
+
class="ticket-text"
|
|
281
|
+
:style="{
|
|
282
|
+
width: savePrizeWidth,
|
|
283
|
+
}"
|
|
284
|
+
>
|
|
285
|
+
{{ `${data.savePrize}元券` }}
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
<div
|
|
289
|
+
:style="{
|
|
290
|
+
top: 280 - 256,
|
|
291
|
+
left: 27 + savePrizeWidth,
|
|
292
|
+
}"
|
|
293
|
+
>
|
|
294
|
+
<div :style="{ width: 7, height: 25, backgroundImage: borderLeft }" />
|
|
295
|
+
<div
|
|
296
|
+
:style="{
|
|
297
|
+
left: 7,
|
|
298
|
+
width: soldTotalWidth - 13,
|
|
299
|
+
height: 25,
|
|
300
|
+
backgroundImage: borderMid,
|
|
301
|
+
}"
|
|
302
|
+
/>
|
|
303
|
+
<div
|
|
304
|
+
:style="{
|
|
305
|
+
left: soldTotalWidth - 7,
|
|
306
|
+
width: 7,
|
|
307
|
+
height: 25,
|
|
308
|
+
backgroundImage: borderRight,
|
|
309
|
+
}"
|
|
310
|
+
/>
|
|
311
|
+
<div
|
|
312
|
+
class="sold-text"
|
|
313
|
+
:style="{
|
|
314
|
+
width: soldTotalWidth,
|
|
315
|
+
}"
|
|
316
|
+
>
|
|
317
|
+
{{ `已售${soldTotalText}件` }}
|
|
318
|
+
</div>
|
|
319
|
+
</div>
|
|
320
|
+
|
|
321
|
+
<div
|
|
322
|
+
:style="{
|
|
323
|
+
top: 296 - 256,
|
|
324
|
+
}"
|
|
325
|
+
class="prize-title-font prize-title-layout"
|
|
326
|
+
>
|
|
327
|
+
券后
|
|
328
|
+
</div>
|
|
329
|
+
<div
|
|
330
|
+
:style="{
|
|
331
|
+
top: 289 - 256,
|
|
332
|
+
}"
|
|
333
|
+
class="prize-font"
|
|
334
|
+
>
|
|
335
|
+
{{ `¥${data.prize - data.savePrize}` }}
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
</div>
|
|
339
|
+
</template>
|
|
340
|
+
|
|
341
|
+
<style scoped>
|
|
342
|
+
.frame-background {
|
|
343
|
+
width: 100;
|
|
344
|
+
height: 100;
|
|
345
|
+
border-radius: 10;
|
|
346
|
+
background-color: #f7f7f4;
|
|
347
|
+
transition: transform 0.2s linear;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.poster-holder {
|
|
351
|
+
width: 100;
|
|
352
|
+
height: 100;
|
|
353
|
+
border-radius: 10 10 0 0;
|
|
354
|
+
background-color: #cfcac6;
|
|
355
|
+
}
|
|
356
|
+
.poster {
|
|
357
|
+
width: 100;
|
|
358
|
+
height: 100;
|
|
359
|
+
border-radius: 7 7 0 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.title-font {
|
|
363
|
+
font-size: 21;
|
|
364
|
+
color: #73665c;
|
|
365
|
+
line-height: 29;
|
|
366
|
+
white-space: nowrap;
|
|
367
|
+
text-overflow: ellipsis;
|
|
368
|
+
text-align: center;
|
|
369
|
+
}
|
|
370
|
+
.title-layout {
|
|
371
|
+
top: 80;
|
|
372
|
+
left: 13;
|
|
373
|
+
width: 100;
|
|
374
|
+
height: 29;
|
|
375
|
+
}
|
|
376
|
+
.ticket-text {
|
|
377
|
+
height: 24;
|
|
378
|
+
color: #ffffff;
|
|
379
|
+
font-size: 16;
|
|
380
|
+
text-align: center;
|
|
381
|
+
line-height: 24;
|
|
382
|
+
}
|
|
383
|
+
.sold-text {
|
|
384
|
+
height: 25;
|
|
385
|
+
color: #ff7a00;
|
|
386
|
+
font-size: 20;
|
|
387
|
+
text-align: center;
|
|
388
|
+
line-height: 25;
|
|
389
|
+
}
|
|
390
|
+
.prize-title-layout {
|
|
391
|
+
width: 35;
|
|
392
|
+
height: 24;
|
|
393
|
+
left: 13;
|
|
394
|
+
}
|
|
395
|
+
.prize-title-font {
|
|
396
|
+
color: #de2825;
|
|
397
|
+
text-align: center;
|
|
398
|
+
font-size: 17;
|
|
399
|
+
line-height: 24;
|
|
400
|
+
}
|
|
401
|
+
.prize-font {
|
|
402
|
+
left: 53;
|
|
403
|
+
width: 158; /*213 - 55*/
|
|
404
|
+
height: 37;
|
|
405
|
+
line-height: 37;
|
|
406
|
+
font-size: 28;
|
|
407
|
+
color: #de2825;
|
|
408
|
+
}
|
|
409
|
+
</style>
|