index.wxml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <xr-demo-viewer
  2. style="width: 701rpx; height: 844rpx; " disable-scroll>
  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;"
  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. </xr-classic-video>
  27. <!--<videw wx:if="{{!loaded}}"-->
  28. <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;">
  29. <text style="color: white;font-size: 18px;">{{progressInfo}}</text>
  30. <text style=" position: absolute; top: 780rpx; color: white;font-size: 18px;">加载中,请稍候</text>
  31. </view>
  32. <!-- wx:if="{{loaded&&!loadedSaoMiao}}"
  33. <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">
  34. <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>
  35. </view>-->
  36. <view wx:if="{{loaded}}" class="zhaohuan">
  37. <view wx:if="{{uiMainView}}" >
  38. <view wx:if="{{!isStartluxiang}}">
  39. <button class="tapbtn" plain="true" bindtap="clickZhaoHuan" style="position: fixed; right: 30rpx; top: 450rpx; width:180rpx; height: 160rpx" >
  40. <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>
  41. <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>
  42. </button>
  43. <button class="tapbtn" plain="true" bindtap="clickPaiZhao" style="position: fixed; right: 30rpx; top: 650rpx; width:180rpx; height: 160rpx">
  44. <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>
  45. <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>
  46. </button>
  47. <button class="tapbtn" plain="true" bindtap="clickLuXiang" style="position: fixed; right: 30rpx; top: 850rpx; width:180rpx; height: 160rpx">
  48. <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>
  49. <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>
  50. </button>
  51. </view>
  52. <view wx:if="{{zhaohuanstate}}" class="zhaohuanView">
  53. <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">
  54. </image>
  55. <button class="tapbtn" plain="false" bindtap="ClickzhaohuanSS" style="position: fixed; left:230rpx; top: 1190rpx; ">
  56. <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>
  57. </button>
  58. </view>
  59. <view wx:if="{{paizhaostate}}" class="paizhaoView">
  60. <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>
  61. <button class="tapbtn" plain="true" bindtap="Clickpaizhaoss" style="position: fixed; left:230rpx; top: 1190rpx;">
  62. <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>
  63. </button>
  64. </view>
  65. <view wx:if="{{luxiangstate}}" class="luxiangView">
  66. <view wx:if="{{isStartluxiang}}" class="startluxiang">
  67. <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>
  68. <button class="tapbtn" plain="true" bindtap="Clickcloseluxiang" style="position: fixed; right: 30rpx; top: 1190rpx; ">
  69. <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>
  70. </button>
  71. </view>
  72. <view wx:if="{{!isStartluxiang}}" class="closeluxiang">
  73. <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>
  74. <button class="tapbtn" plain="true" bindtap="Clickstartluxiang" style="position: fixed; left:230rpx; top: 1190rpx;">
  75. <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>
  76. </button>
  77. </view>
  78. </view>
  79. </view>
  80. <view wx:if="{{uiShowModelView}}" class="ZhaoHuanShowModel">
  81. <view class ="uiShowModel">
  82. <button class="tapbtn" plain="true" bindtap="clickShowLeft" style="position: fixed; left: 20rpx; top: 600rpx; width:100rpx; height: 100rpx" >
  83. <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>
  84. </button>
  85. <!-- <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;">
  86. </image>
  87. <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;">
  88. </image>
  89. <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;">
  90. </image>
  91. <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;">
  92. </image>-->
  93. <button class="tapbtn" plain="true" bindtap="clickShowRight" style="position: fixed; right: 20rpx; top: 600rpx; width:100rpx; height: 100rpx" >
  94. <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>
  95. </button>
  96. <button class="tapbtn" plain="true" bindtap="clickShowRight" style="position: fixed; left: 170rpx; top: 100rpx; width: 400rpx; height:80rpx;" >
  97. <image class="tapimg2" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/1221708399762_.pic.jpg' style="position: absolute; left: 0rpx; top:-15rpx; width: 400rpx; height:80rpx;" ></image>
  98. </button>
  99. </view>
  100. <view wx:if="{{ UiShowModel_Bottom }}" class="UiShowModel_Bottom">
  101. <!-- <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>
  102. <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>
  103. -->
  104. <swiper class="swiper-container" current="{{current}}" style="position: fixed; top: 0rpx; width: 100%; height: 100%; left: 0rpx; display: flex; box-sizing: border-box" bindchange="changeMoel">
  105. <swiper-item wx:for="{{products}}" >
  106. <image class="bg_main1" src='https://wx-model-1317557471.cos.ap-shanghai.myqcloud.com/WXImage/ui-bg.png' style="position: absolute; bottom: 0rpx; display: flex ;justify-content: end;align-items: center; left: 10%;width: 80%;">
  107. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:50rpx; font-size:38rpx; font-weight: bold;">{{item.name}}</view>
  108. <view style="color: rgb(106, 172, 186); position: absolute; right: 150rpx; top:50rpx; font-size:38rpx; font-weight: bold;">¥{{item.price}}</view>
  109. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:125rpx; font-size:25rpx; font-weight: bold; width:395rpx; ">{{item.attach}}</view>
  110. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:170rpx; font-size:25rpx; width:395rpx; ">{{item.desc}}</view>
  111. <button class="tapbtn" plain="true" bindtap="clickCloseUIShow" style="position: absolute; right: 20rpx; top: 20rpx; width:52rpx; height: 52rpx" >
  112. <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>
  113. </button>
  114. <button wx:if="{{!item.activate}}" class="tapbtn" plain="true" bindtap="clickJiSuoModel" style="position: absolute; right: 80rpx; top: 255rpx; height: 120rpx; width:360rpx; ">
  115. <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>
  116. </button>
  117. <button wx:if="{{item.activate}}" class="tapbtn" plain="true" style="position: absolute; right: 80rpx; top: 255rpx; height: 120rpx; width:360rpx; ">
  118. <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>
  119. </button>
  120. </image>
  121. <image wx:if="{{!item.activate}}" class="modelImg" src="{{item.modelImg}}" style="position: absolute; top:300rpx; left: 80rpx; width: 600rpx; height: 600rpx; ">
  122. </image>
  123. <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;bottom: 500rpx; left: 170rpx; width: 400rpx; height: 80rpx; "/>
  124. </swiper-item>
  125. </swiper>
  126. <!--<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;" >
  127. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:50rpx; font-size:38rpx; font-weight: bold;">{{showModelName}}</view>
  128. <view style="color: rgb(26, 26, 26); position: absolute; left: 180rpx; top:50rpx; font-size:38rpx; font-weight: bold;">{{showModelPrice}}</view>
  129. <view style="color: rgb(26, 26, 26); position: absolute; left: 70rpx; top:120rpx; font-size:25rpx; width:395rpx; ">{{showModelIntroduce
  130. }}</view>
  131. <button class="tapbtn2" plain="true" bindtap="clickCloseUIShow" style="position: fixed; right: 130rpx; top: 1230rpx; width:60rpx; height: 60rpx" >
  132. <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>
  133. </button>
  134. </image>-->
  135. </view>
  136. </view>
  137. </view>
  138. </xr-demo-viewer>