酷炫小程序

chan.wxml 1.4KB

12345678910111213141516171819202122232425262728293031323334
  1. <view class="container">
  2. <view class="top">
  3. <canvas class="cir" style="width:212px; height:106px;" canvas-id="canvasArc"></canvas>
  4. <view class="cc text-box">{{mark}}</view>
  5. </view>
  6. <!-- 游戏结束,分享游戏继续玩儿 -->
  7. <view class="continue" wx:if="{{showContinue}}">
  8. <view class="continueMask">
  9. <view class="continueHeadUrl">
  10. <image src="{{headUrl}}">
  11. </image>
  12. </view>
  13. <view class="continueScore">
  14. <text>{{mark}}</text>
  15. </view>
  16. <view class="continueRound">
  17. <text>{{continueMsg}}</text>
  18. </view>
  19. <view class="continueOptions">
  20. <button class="continueButton" bindtap='giveUp'>放弃</button>
  21. <button class="shareButton" open-type="share" data-name="share">复活</button>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="row" wx:for="{{rows}}" wx:for-item="row" wx:for-index="rowIndex" wx:key="{{index}}">
  26. <view class="col" wx:for="{{[1,2,3,4]}}" wx:for-item="n" wx:for-index="colIndex" wx:key="{{n}}">
  27. <view class="black" wx:if="{{row.blackIndex === n}}" data-row-index="{{rowIndex}}" data-col-index="{{colIndex}}" bindtouchstart="next"></view>
  28. <view class="{{redMark == 1 && rowIndex == overRowIndex && colIndex == overColIndex ? 'red' : 'white'}}" wx:if="{{row.blackIndex !== n}}" data-row-index="{{rowIndex}}" data-col-index="{{colIndex}}" bindtouchstart="over"></view>
  29. </view>
  30. </view>
  31. </view>