roam.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="content">
  3. <view class="home-img">
  4. <!-- <web-view class="relative z-0" :src="weburl" ></web-view> -->
  5. </view>
  6. <u-popup :show="show" mode="center" round="10" @close="close" @open="open">
  7. <view class="mySharepopup">
  8. <div class="close" @click="close">
  9. <u--image width="42px" height="42px" src="/static/img/icon_cancel@2x.png"></u--image>
  10. </div>
  11. <view class="text">
  12. <u--image width="295px" height="450px" src="/static/img/img_cover@2x.jpg"></u--image>
  13. <div class="flex justify-between shareImg">
  14. <div class="code">
  15. <u--image width="66px" height="66px" src="/static/img/icon_scan_active@2x.png"></u--image>
  16. </div>
  17. <div class="zz">
  18. <u--image width="122px" height="113px" src="/static/img/insignia@2x.png"></u--image>
  19. </div>
  20. </div>
  21. </view>
  22. <view class="bottom">
  23. <view class="text" style="width: 100%">
  24. <view mt-10>第<text >5462</text>位游客完成打卡</view>
  25. </view>
  26. </view>
  27. <view class="butList flex justify-around my-10">
  28. <!-- <div class="share">
  29. <u-button :customStyle="{opacity: 0,width: '50px', height: '50px',}" type="primary" icon="share" plain text=" " open-type="share"></u-button>
  30. <u-icon name="share" color="#2979ff" size="28"></u-icon>
  31. </div> -->
  32. <u-icon name="download" color="#2979ff" size="28"></u-icon>
  33. </view>
  34. </view>
  35. </u-popup>
  36. </view>
  37. </template>
  38. <script>
  39. // import uButton from "uview-ui/components/u-button/u-button.vue";
  40. export default {
  41. components: {
  42. // uButton
  43. },
  44. data() {
  45. return {
  46. title: "Hello",
  47. show: true,
  48. weburl: "https://test.4dkankan.com/spg.html?m=KK-t-fs8TbMny2Zb&lang=zh"
  49. };
  50. },
  51. onLoad() {},
  52. methods: {
  53. handleHome() {
  54. console.log("开启云上观灯", uni);
  55. uni.$u.route("/pages/home/home");
  56. },
  57. close() {
  58. this.show = false
  59. // console.log('close');
  60. },
  61. open() {
  62. },
  63. handleShare() {
  64. uni.share({
  65. provider: "weixin",
  66. scene: "WXSceneTimeline",
  67. type: 1,
  68. summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
  69. success: function (res) {
  70. console.log("success:" + JSON.stringify(res));
  71. },
  72. fail: function (err) {
  73. console.log("fail:" + JSON.stringify(err));
  74. }
  75. });
  76. }
  77. },
  78. };
  79. </script>
  80. <style lang="scss">
  81. .mySharepopup{
  82. // width: 330px;
  83. // height: 537px;
  84. padding: 19px 17px 0px 17px;
  85. .close{
  86. position: absolute;
  87. right: -20px;
  88. top: -20px;
  89. width: 42px;
  90. height: 42px;
  91. }
  92. .butList{
  93. position: absolute;
  94. bottom: -80px;
  95. left: calc(50% - 14px);
  96. .share{
  97. position: relative;
  98. .u-icon{
  99. position: absolute;
  100. left: calc(50% - 14px);
  101. top: calc(50% - 14px);
  102. }
  103. }
  104. }
  105. .text{
  106. position: relative;
  107. .shareImg{
  108. width: 100%;
  109. position: absolute;
  110. bottom: -30px;
  111. }
  112. }
  113. .bottom{
  114. font-weight: 400;
  115. height: 50px;
  116. font-size: 16px;
  117. color: #000000;
  118. line-height: 19px;
  119. text-align: center;
  120. font-style: normal;
  121. text-transform: none;
  122. position: relative;
  123. bottom: -30px;
  124. text {
  125. font-size: 20px;
  126. color: #B1967B;
  127. }
  128. }
  129. }
  130. .content {
  131. display: flex;
  132. flex-direction: column;
  133. align-items: center;
  134. justify-content: center;
  135. min-height: 100vh;
  136. width: 100%;
  137. .urlContent{
  138. position: absolute;
  139. left: 0;
  140. right: 0;
  141. top: 0;
  142. bottom: 0;
  143. }
  144. .right{
  145. position: fixed;
  146. left: 20px;
  147. top: 20px;
  148. }
  149. }
  150. .logo {
  151. height: 200rpx;
  152. width: 200rpx;
  153. margin-top: 200rpx;
  154. margin-left: auto;
  155. margin-right: auto;
  156. margin-bottom: 50rpx;
  157. }
  158. .text-area {
  159. display: flex;
  160. justify-content: center;
  161. padding-bottom: 50%;
  162. }
  163. .title {
  164. font-size: 36rpx;
  165. color: #8f8f94;
  166. }
  167. .home-img{
  168. width: 100%;
  169. height: 100%;
  170. position: absolute;
  171. left: 0;
  172. right: 0;
  173. top: 0;
  174. bottom: 0;
  175. .share{
  176. position: absolute;
  177. top: 50%;
  178. left: 50%;
  179. width: 30px;
  180. height: 30px;
  181. border-radius: 50%;
  182. text-align: center;
  183. line-height: 30px;
  184. border: 1px solid #2979ff;
  185. }
  186. }
  187. .u-popup__content__close{
  188. right: calc(50% - 4.5px) !important;
  189. bottom: -40px !important;
  190. z-index: 10;
  191. border: 1px solid #fff;
  192. border-radius: 20px;
  193. padding: 5px;
  194. color: #fff;
  195. .u-icon__icon {
  196. color: #fff !important;
  197. }
  198. }
  199. </style>