float-icon.wxml 1.4 KB

123456789101112131415161718192021222324252627
  1. <!--
  2. <movable-area style="height: {{y*2}}rpx;width: {{x*2}}rpx;position:fixed;top:0;left:0;pointer-events:none">
  3. =======
  4. <movable-area style="height: {{y}}px;width: {{x}}px;position:fixed;top:0;left:0;pointer-events:none">
  5. >>>>>>> Stashed changes
  6. <movable-view direction="all" class="float-icon" style='width:100rpx;height:100rpx;pointer-events:all;' x='{{x-60}}' y='{{y-60}}'>
  7. <button open-type="contact" class="float-icon-btn" style='width:100%;height:100%;'>
  8. <image src="/images/icon-service.png" style='width:100%;height:100%;'></image>
  9. </button>
  10. </movable-view>
  11. </movable-area>
  12. -->
  13. <view direction="all" class="float-icon">
  14. <block wx:if='{{store.dial == 1}}'>
  15. <view class='dial' bindtap='to_dial' style="background-image:url('{{store.dial_pic}}'); background-size: 100rpx 100rpx;" />
  16. </block>
  17. <block wx:if='{{store.option.web_service}}'>
  18. <navigator url="/pages/web/web?url={{store.option.web_service_url}}" open-type="navigate" hover-class='none'>
  19. <image class='dial' src="{{store.option.web_service}}"></image>
  20. </navigator>
  21. </block>
  22. <block wx:if="{{store.show_customer_service && store.show_customer_service==1}}">
  23. <button open-type="contact" session-from="{{_user_info.nickname}}|" class="float-icon-btn">
  24. <image src="{{store.service}}"></image>
  25. </button>
  26. </block>
  27. </view>