article.wxml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <!-- 正常文章 -->
  2. <view class="{{ThemeCSS}} container FlexColumn" style='min-height:{{Containnerheight}}rpx;' catch:tap="hideWordTranslate">
  3. <view id="panelArticle" style="width: 100%;height: 1rpx;"></view>
  4. <view class="panel1 FlexColumn">
  5. <!-- 完整文章 -->
  6. <view class="textArticle FlexColumn" >
  7. <view wx:for="{{List}}" wx:key="index" class="textArticle">
  8. <text class="textArticle2 {{itemChild.CSS}}" wx:for="{{item.List}}" wx:key="index2" wx:for-item="itemChild" wx:for-index="indexChild"><text class="{{itemChild2.CSS}}" wx:for="{{itemChild.List}}" wx:key="index3" wx:for-item="itemChild2" wx:for-index="indexChild2" bindlongpress="onLongPressApi" catch:tap="selectWord" data-word="{{itemChild2.Word}}" data-original-word="{{itemChild2.Word}}" data-index="{{index}}" data-index2="{{indexChild}}" data-index3="{{indexChild2}}" >{{itemChild2.Word}} </text></text>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="panelPercentage FlexColumn">{{Percentage}}%</view>
  13. <view style="width: 100%;height:700rpx;"></view>
  14. <view style="width: 100%;height:{{TranslateHeight}}rpx;" wx:if="{{IsShowWordTranslate}}"></view>
  15. </view>
  16. <!-- 翻译 -->
  17. <view wx:if="{{IsShowWordTranslate}}" class="panelTranslate FlexColumn" catch:tap="setDataBoolean" data-name="IsShowWordTranslate">
  18. <text class="panelTranslateTest1">{{EnglishSentence}}</text>
  19. <text class="panelTranslateTest2">{{ChineseSentence}}</text>
  20. <view class="panelTranslateCollect FlexRow" wx:if="{{TranslateHeight==100}}">
  21. <view class="panelTranslateCollect1 FlexRow" catch:tap="saveUserCollect" data-word="{{EnglishSentence}}">
  22. <image wx:if="{{!IsCollect}}" src="../images/sysIcon_a35.png" class="sysIcon_a35"></image>
  23. <image wx:if="{{IsCollect}}" src="../images/sysIcon_a36.png" class="sysIcon_a35"></image>
  24. </view>
  25. <view class="panelTranslateCollect1 FlexRow" catch:tap="onLongPressApi" data-original-word="{{EnglishSentence}}">
  26. <image src="../images/sysIcon_a45.png" class="sysIcon_a45"></image>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- 单词细节 -->
  31. <view wx:if="{{IsShowWordDetail}}" class="panelTranslate panelTranslate2 FlexColumn" catch:tap="setDataBoolean" data-name="IsShowWordDetail">
  32. <view class="panelTranslate21 FlexRow">
  33. <text class="panelTranslateTest1 panelTranslateTest10">{{WordJSON.Word}}</text>
  34. <view class="panelTranslateCollect FlexRow" catch:tap="saveUserCollect" data-word="{{WordJSON.Word}}">
  35. <view class="panelTranslateCollect1 FlexRow">
  36. <image wx:if="{{!IsCollect}}" src="../images/sysIcon_a35.png" class="sysIcon_a35"></image>
  37. <image wx:if="{{IsCollect}}" src="../images/sysIcon_a36.png" class="sysIcon_a35"></image>
  38. </view>
  39. <view class="panelTranslateCollect1 FlexRow" catch:tap="setDataBoolean" data-name="IsShowWordDetail">
  40. <image src="../images/sysIcon_a09.png" class="sysIcon_a09"></image>
  41. </view>
  42. </view>
  43. </view>
  44. <scroll-view scroll-y="true" class="panelTranslateScroll FlexColumn">
  45. <block wx:if="{{WordJSON.Soundmark}}">
  46. <view class="panelTranslate22 FlexRow">
  47. <view class="panelTranslate22Text panelTranslate22Text0 FlexRow" catch:tap="playAudio" data-url="{{WordJSON.Soundmark.EngSound}}" wx:if="{{WordJSON.Soundmark.EngSound}}">
  48. 英{{WordJSON.Soundmark.Eng}}
  49. <image src="../images/sysIcon_a44.png" class="sysIcon_a44"></image>
  50. </view>
  51. <view class="panelTranslate22Text FlexRow" catch:tap="playAudio" data-url="{{WordJSON.Soundmark.AmESound}}" wx:if="{{WordJSON.Soundmark.AmESound}}">
  52. 美{{WordJSON.Soundmark.AmE}}
  53. <image src="../images/sysIcon_a44.png" class="sysIcon_a44"></image>
  54. </view>
  55. </view>
  56. </block>
  57. <block wx:if="{{WordJSON.CEFR_Level || WordJSON.WordFrequency || WordJSON.Book.length>0}}">
  58. <view class="panelTranslateLine"></view>
  59. <scroll-view class="panelTranslate23" scroll-x="true">
  60. <view class="panelTranslate231 FlexRow" wx:if="{{WordJSON.CEFR_Level}}">
  61. <view>CEFR {{WordJSON.CEFR_Level}}</view>
  62. </view>
  63. <view class="panelTranslate231 panelTranslate232 FlexRow" wx:if="{{WordJSON.WordFrequency}}">
  64. <view>高频单词{{WordJSON.WordFrequency.Max}}范围</view>
  65. </view>
  66. <view class="panelTranslate231 panelTranslate232 FlexRow" wx:if="{{WordJSON.Book}}" wx:for="{{WordJSON.Book}}" wx:key="*this">
  67. <view>{{item}}</view>
  68. </view>
  69. <view style="width:30rpx;display: inline-block;"></view>
  70. </scroll-view>
  71. </block>
  72. <block wx:if="{{WordJSON.ParaphraseEng}}">
  73. <view class="panelTranslateLine"></view>
  74. <view class="panelTranslate24 FlexColumn" wx:for="{{WordJSON.ParaphraseEng}}" wx:key="*this">
  75. <view class="panelTranslate241" wx:for="{{item.ParaphraseList}}" wx:key="*this" wx:for-item="itemChild">
  76. {{item.PartOfSpeech}} {{itemChild}}
  77. </view>
  78. </view>
  79. <view style="height:30rpx;"></view>
  80. </block>
  81. <block wx:if="{{WordJSON.Paraphrase}}">
  82. <view class="panelTranslateLine" wx:if="{{WordJSON.Paraphrase}}"></view>
  83. <view class="panelTranslate24 FlexColumn" wx:for="{{WordJSON.Paraphrase}}" wx:key="*this">
  84. <view class="panelTranslate241">{{item.PartOfSpeech}}
  85. <block class="panelTranslate242" wx:for="{{item.ParaphraseList}}" wx:key="*this" wx:for-item="itemChild">
  86. {{itemChild}}
  87. </block>
  88. </view>
  89. </view>
  90. <view style="height:30rpx;"></view>
  91. </block>
  92. <block wx:if="{{WordJSON.Paraphrase}}">
  93. <view class="panelTranslateLine"></view>
  94. <view class="panelTranslate24 FlexColumn" wx:for="{{WordJSON.ExamplesSentences}}" wx:key="*this">
  95. <text class="panelTranslate241 panelTranslate242">{{item[0]}}</text>
  96. <view class="panelTranslate241 panelTranslate243">{{item[1]}}</view>
  97. </view>
  98. </block>
  99. <view style="height:50rpx;"></view>
  100. </scroll-view>
  101. </view>
  102. <audio hidden='true' src="{{AudioSrc}}" id="myAudio"></audio>