index.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <xr-demo-viewer
  2. style="width: 701rpx; height: 844rpx; display: inline;">
  3. <xr-classic-video
  4. disable-scroll
  5. id="main-frame"
  6. width="{{renderWidth}}"
  7. height="{{renderHeight}}"
  8. style="width:{{renderWidth}}rpx;height:{{renderHeight}}rpx;display:block;"
  9. markerImg="{{markerImg}}"
  10. bind:arTrackerState="handleARTrackerState"
  11. bind:assetsProgress="handleProgress"
  12. bind:assetsLoaded="handleLoaded"
  13. bind:assetsstr="handlestr"
  14. bind:sceneReady="handleReady"
  15. captureState="{{captureState}}"
  16. recordState="{{recordState}}"
  17. captureType="{{captureType}}"
  18. captureQuality="{{captureQuality}}"
  19. recordFPS="{{recordFPS}}"
  20. recordBPS="{{recordBPS}}"
  21. recordWidth="{{recordWidth}}"
  22. recordHeight="{{recordHeight}}"
  23. uiShowModelView="{{uiShowModelView}}"
  24. uiShowIndex ="{{uiShowIndex}}"
  25. />
  26. <!--<videw wx:if="{{!loaded}}"-->
  27. <view wx:if="{{!loaded}}" style="position: absolute;display: flex; justify-content: center; align-items: center; left: 0;top: 0;width: 100%;height:100%;background-color: rgba(0, 0, 0,1); text-align: center;line-height: 24px;">
  28. <text style="color: white;font-size: 18px;">{{progressInfo}}</text>
  29. <text style=" position: absolute; top: 780rpx; color: white;font-size: 18px;">加载中,请稍候</text>
  30. </view>
  31. <!-- wx:if="{{loaded&&!loadedSaoMiao}}"
  32. <view style="position: absolute; display: flex; justify-content: center; align-items: center; left: 146rpx; top: 261rpx; width: 100%; height: 441rpx; background-color: rgba(0, 0, 0,0); text-align: center; line-height: 24px; box-sizing: content-box">
  33. <image wx:if="{{loaded}}" class="zhaohuan" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/zhaohuan.png' style="position: relative; left: -164rpx; top: 704rpx; width: 554rpx; height: 211rpx; display: flex; box-sizing: border-box"></image>
  34. </view>-->
  35. <view wx:if="{{loaded}}" class="zhaohuan">
  36. <view wx:if="{{uiMainView}}" >
  37. <view wx:if="{{!isStartluxiang}}">
  38. <button class="tapbtn" plain="true" bindtap="clickZhaoHuan" style="position: fixed; right: 30rpx; top: 450rpx; width:180rpx; height: 160rpx" >
  39. <image wx:if="{{!zhaohuanstate}}" class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/rigth_zhaohuan.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 180rpx; width:180rpx;" ></image>
  40. <image wx:if="{{zhaohuanstate}}" class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/zhaohuanBtn2.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 180rpx; width:180rpx;" ></image>
  41. </button>
  42. <button class="tapbtn" plain="true" bindtap="clickPaiZhao" style="position: fixed; right: 30rpx; top: 650rpx; width:180rpx; height: 160rpx">
  43. <image wx:if="{{!paizhaostate}}" class="tapimg3" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/right_paizhao.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 180rpx; width:180rpx;" ></image>
  44. <image wx:if="{{paizhaostate}}" class="tapimg3" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/paizhaoBtn2.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 180rpx; width:180rpx;" ></image>
  45. </button>
  46. <button class="tapbtn" plain="true" bindtap="clickLuXiang" style="position: fixed; right: 30rpx; top: 850rpx; width:180rpx; height: 160rpx">
  47. <image wx:if="{{!luxiangstate}}" class="tapimg4" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/right_luxiang.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 180rpx; width:180rpx;" ></image>
  48. <image wx:if="{{luxiangstate}}" class="tapimg4" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/luzhiBtn2.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 180rpx; width:180rpx;" ></image>
  49. </button>
  50. </view>
  51. <view wx:if="{{zhaohuanstate}}" class="zhaohuanView">
  52. <image class="zhaohuan" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/zhaohuanText.png' style="position: fixed; left: 100rpx; top: 1070rpx; width: 554rpx; height: 80rpx; display: flex; box-sizing: border-box">
  53. </image>
  54. <button class="tapbtn" plain="false" bindtap="ClickzhaohuanSS" style="position: fixed; left:230rpx; top: 1190rpx; ">
  55. <image class="zhaohuan" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/zhaohuanBtn.png' style="position: fixed; left:230rpx; top: 1190rpx; width: 300rpx; height: 100rpx; display: flex; box-sizing: border-box"></image>
  56. </button>
  57. </view>
  58. <view wx:if="{{paizhaostate}}" class="paizhaoView">
  59. <image class="paizhao" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/paizhaoText.png' style="position: fixed; left: 100rpx; top: 1070rpx; width: 554rpx; height: 80rpx; display: flex; box-sizing: border-box"></image>
  60. <button class="tapbtn" plain="true" bindtap="Clickpaizhaoss" style="position: fixed; left:230rpx; top: 1190rpx;">
  61. <image class="paizhao" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/paizhaoBtn.png' style="position: fixed; left:300rpx; top: 1190rpx; width: 160rpx; height: 160rpx; display: flex; box-sizing: border-box"></image>
  62. </button>
  63. </view>
  64. <view wx:if="{{luxiangstate}}" class="luxiangView">
  65. <view wx:if="{{isStartluxiang}}" class="startluxiang">
  66. <image class="luxiang" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/luxiang2Text.png' style="position: fixed; left: 100rpx; top: 1070rpx; width: 554rpx; height: 80rpx; display: flex; box-sizing: border-box"></image>
  67. <button class="tapbtn" plain="true" bindtap="Clickcloseluxiang" style="position: fixed; right: 30rpx; top: 1190rpx; ">
  68. <image class="luxiang" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/luxiang2Btn.png' style="position: fixed; left:300rpx; top: 1190rpx; width: 160rpx; height: 160rpx; display: flex; box-sizing: border-box"></image>
  69. </button>
  70. </view>
  71. <view wx:if="{{!isStartluxiang}}" class="closeluxiang">
  72. <image class="luxiang" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/luxiang1Text.png' style="position: fixed; left: 100rpx; top: 1070rpx; width: 554rpx; height: 80rpx; display: flex; box-sizing: border-box"></image>
  73. <button class="tapbtn" plain="true" bindtap="Clickstartluxiang" style="position: fixed; left:230rpx; top: 1190rpx;">
  74. <image class="luxiang" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/luxiang1Btn.png' style="position: fixed; left:300rpx; top: 1190rpx; width: 160rpx; height: 160rpx; display: flex; box-sizing: border-box"></image>
  75. </button>
  76. </view>
  77. </view>
  78. </view>
  79. <view wx:if="{{uiShowModelView}}" class="ZhaoHuanShowModel">
  80. <view class ="uiShowModel">
  81. <button class="tapbtn" plain="true" bindtap="clickShowLeft" style="position: fixed; left: 20rpx; top: 600rpx; width:100rpx; height: 100rpx" >
  82. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/if-caret-left.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 100rpx; width:100rpx;" ></image>
  83. </button>
  84. <!-- <image wx:if="{{current==0}}" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/%E9%80%89%E6%8B%A9%E7%A5%9E%E5%85%BD-%E9%B8%BE%E9%B8%9F%E9%A2%84%E8%A7%88%E5%9B%BE.png' style="position: absolute; left: 80rpx; top:300rpx; height: 600rpx; width:600rpx;">
  85. </image>
  86. <image wx:if="{{current==1}}" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/%E9%80%89%E6%8B%A9%E7%A5%9E%E5%85%BD-%E5%BA%94%E9%BE%99%E9%A2%84%E8%A7%88%E5%9B%BE.png' style="position: absolute; left: 80rpx; top:300rpx; height: 600rpx; width:600rpx;">
  87. </image>
  88. <image wx:if="{{current==2}}" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/%E9%80%89%E6%8B%A9%E7%A5%9E%E5%85%BD-%E5%A4%AB%E8%AF%B8%E9%A2%84%E8%A7%88%E5%9B%BE.png' style="position: absolute; left: 80rpx; top:300rpx; height: 600rpx; width:600rpx;">
  89. </image>
  90. <image wx:if="{{current==3}}" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/%E9%80%89%E6%8B%A9%E7%A5%9E%E5%85%BD-%E7%8B%BB%E7%8C%8A%E9%A2%84%E8%A7%88%E5%9B%BE.png' style="position: absolute; left: 80rpx; top:300rpx; height: 600rpx; width:600rpx;">
  91. </image>-->
  92. <button class="tapbtn" plain="true" bindtap="clickShowRight" style="position: fixed; right: 20rpx; top: 600rpx; width:100rpx; height: 100rpx" >
  93. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/if-caret-right.png' style="position: absolute; left: 0rpx; top:-15rpx; height: 100rpx; width:100rpx;" ></image>
  94. </button>
  95. </view>
  96. <view wx:if="{{ UiShowModel_Bottom }}" class="UiShowModel_Bottom">
  97. <!-- <image class="bg_left" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ui-bg-left.png' style="position: absolute; left: 0rpx; top:1240rpx; height: 450rpx; width:55rpx;" ></image>
  98. <image class="bg_left" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ui-bg-right.png' style="position: absolute; right: 0rpx; top:1240rpx; height: 450rpx; width:55rpx;" ></image>
  99. -->
  100. <swiper class="swiper-container" current="{{current}}" style="position: fixed; top: 0rpx; width: 100%; height: 2000rpx; left: 0rpx; display: flex; box-sizing: border-box" bindchange="changeMoel">
  101. <swiper-item wx:for="{{products}}" >
  102. <image class="bg_main" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ui-bg.png' style="position: absolute; top: 1030rpx; left: 80rpx; ">
  103. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:50rpx; font-size:38rpx; font-weight: bold;">{{item.name}}</view>
  104. <view style="color: rgb(106, 172, 186); position: absolute; right: 150rpx; top:50rpx; font-size:38rpx; font-weight: bold;">¥{{item.price}}</view>
  105. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:125rpx; font-size:25rpx; font-weight: bold; width:395rpx; ">{{item.attach}}</view>
  106. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:170rpx; font-size:25rpx; width:395rpx; ">{{item.desc}}</view>
  107. <button class="tapbtn" plain="true" bindtap="clickCloseUIShow" style="position: absolute; right: 20rpx; top: 20rpx; width:52rpx; height: 52rpx" >
  108. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ze-cross.png' style="position: absolute; left: 0rpx; top:0rpx; height: 52rpx; width:52rpx;" ></image>
  109. </button>
  110. <button wx:if="{{!item.activate}}" class="tapbtn" plain="true" bindtap="clickJiSuoModel" style="position: absolute; right: 80rpx; top: 255rpx; height: 120rpx; width:360rpx; ">
  111. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/WeiJieSuo.png' style="position: absolute; left: -20rpx; top:0rpx; height: 120rpx; width:325rpx;" ></image>
  112. </button>
  113. <button wx:if="{{item.activate}}" class="tapbtn" plain="true" style="position: absolute; right: 80rpx; top: 255rpx; height: 120rpx; width:360rpx; ">
  114. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/YiJieSuo.png' style="position: absolute; left: 0rpx; top:12rpx; height: 80rpx; width:300rpx;" ></image>
  115. </button>
  116. </image>
  117. <image wx:if="{{!item.activate}}" class="modelImg" src="{{item.modelImg}}" style="position: absolute; top:300rpx; left: 80rpx; width: 600rpx; height: 600rpx; ">
  118. </image>
  119. <image wx:if="{{item.activate}}" class="modelImg" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/%E8%AF%B7%E7%8E%AF%E9%A1%BE%E5%9B%9B%E5%91%A8%E5%AF%BB%E6%89%BE%E7%A5%9E%E5%85%BD.png' style="position: absolute; top:940rpx; left: 170rpx; width: 400rpx; height: 80rpx; "/>
  120. </swiper-item>
  121. </swiper>
  122. <!--<image class="bg_main" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ui-bg.png' style=" position: absolute; right: 120rpx; top:1200rpx; height: 430rpx; width:520rpx;" >
  123. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:50rpx; font-size:38rpx; font-weight: bold;">{{showModelName}}</view>
  124. <view style="color: rgb(26, 26, 26); position: absolute; left: 180rpx; top:50rpx; font-size:38rpx; font-weight: bold;">{{showModelPrice}}</view>
  125. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:120rpx; font-size:25rpx; width:395rpx; ">{{showModelIntroduce
  126. }}</view>
  127. <button class="tapbtn2" plain="true" bindtap="clickCloseUIShow" style="position: fixed; right: 130rpx; top: 1230rpx; width:60rpx; height: 60rpx" >
  128. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ze-cross.png' style="position: absolute; left: 0rpx; top:0rpx; height: 60rpx; width:60rpx;" ></image>
  129. </button>
  130. </image>-->
  131. </view>
  132. </view>
  133. </view>
  134. </xr-demo-viewer>