lm.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <template>
  2. <view class="content">
  3. <image src="../../static/user/lm/lm-bg.png" mode="widthFix" class="lm-bg"></image>
  4. <view class="lm-btn flex">
  5. <image src="../../static/user/lm/join.png" mode="" class="btn-1" @click="openTc('popupcz')"></image>
  6. <image src="../../static/user/lm/vip.png" mode="" class="btn-1" @click="openTc('vipPop')"></image>
  7. </view>
  8. <view class="title">
  9. 联盟列表
  10. </view>
  11. <view class="item flex" v-for="item in 10">
  12. <image src="" mode="" class="logo"></image>
  13. <view class="name clamp">
  14. 上海本地联盟上海本地联盟上海本地联盟上海本地联盟
  15. </view>
  16. <view class="val">
  17. 203人
  18. </view>
  19. </view>
  20. <uni-popup ref="popupcz" type="center">
  21. <view class="popup-box popup-box1">
  22. <view class="tit">
  23. 成为城主
  24. </view>
  25. <view class="jj">
  26. 成为城主后可以随时解除城主身份,取消后<br>7个工作日内若无任何经济纠纷,<br>质押的矿石将退回。
  27. </view>
  28. <view class="item flex" v-for="(item,index) in lmList">
  29. <image :src="'../../static/user/lm' + index + '.png'" mode="" class="logo"></image>
  30. <view class="dec">
  31. <text>{{item.level}}</text>{{item.dec}}
  32. </view>
  33. <view class="check">
  34. <image src="../../static/user/select.png" mode="" class="schecked" v-if="item.checked"></image>
  35. <view class="nocheck" v-else>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="yue">
  40. <image src="../../static/index/index/icon01.png" mode=""></image>
  41. <view class="">
  42. 拥有矿石 <text>10000</text> 个,开通需 <text>10000</text> 个
  43. </view>
  44. </view>
  45. <view class="btn">
  46. 确认开通
  47. </view>
  48. <image src="../../static/user/close.png" mode="" class="close" @click="closeTc('popupcz')"></image>
  49. </view>
  50. </uni-popup>
  51. <vipPop ref="vipPop" ></vipPop>
  52. </view>
  53. </template>
  54. <script>
  55. import vipPop from "@/components/alertPop/vipPop.vue"
  56. export default {
  57. components: {
  58. vipPop
  59. },
  60. data() {
  61. return {
  62. lmList: [
  63. {
  64. level: '领主',
  65. dec: '(质押 10 万矿石 获得转赠手续费 5%)',
  66. id: 1,
  67. checked: false
  68. },
  69. {
  70. level: '一级城主',
  71. dec: '(质押 3 万矿石 获得转赠手续费 3% , 获得 2 级城主转赠收费 10%)',
  72. id: 1,
  73. checked: false
  74. },
  75. {
  76. level: '二级城主',
  77. dec: '(质押 1万矿石 获得转赠手续费 2%, 由 1 级城主推荐获得 3 级城主转赠手续费收益)',
  78. id: 1,
  79. checked: false
  80. },
  81. {
  82. level: '三级城主',
  83. dec: '(质押 5000矿石 获得转赠手续费 2% , 由 2 级城主推荐)',
  84. id: 1,
  85. checked: false
  86. }
  87. ],
  88. }
  89. },
  90. onLoad() {
  91. },
  92. onShow() {
  93. },
  94. onReachBottom() {
  95. },
  96. onReady() {
  97. },
  98. methods: {
  99. openTc(name) {
  100. this.$refs[name].open()
  101. },
  102. closeTc(name) {
  103. this.$refs[name].close()
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .lm-bg {
  110. width: 100%;
  111. vertical-align: middle;
  112. }
  113. .item {
  114. width: 718rpx;
  115. height: 151rpx;
  116. background: #FFFFFF;
  117. border-radius: 10rpx;
  118. margin:0 auto 22rpx;
  119. padding: 0 52rpx 0 28rpx;
  120. font-weight: bold;
  121. font-size: 29rpx;
  122. color: #222222;
  123. .logo {
  124. width: 95rpx;
  125. height: 95rpx;
  126. border-radius: 10rpx;
  127. background-color: #f9f9f9;
  128. flex-shrink: 0;
  129. }
  130. .name {
  131. flex-grow: 1;
  132. padding-left: 22rpx;
  133. }
  134. .val {
  135. font-size: 25rpx;
  136. color: #222222;
  137. flex-shrink: 0;
  138. }
  139. }
  140. .lm-btn {
  141. padding: 28rpx;
  142. background-color: #fff;
  143. .btn-1 {
  144. width: 336rpx;
  145. height: 162rpx;
  146. border-radius: 20rpx;
  147. }
  148. }
  149. .title {
  150. font-weight: 800;
  151. font-size: 29rpx;
  152. color: #222222;
  153. padding: 10rpx 0 20rpx 35rpx;
  154. background-color: #fff;
  155. margin-bottom: 20rpx;
  156. }
  157. .popup-box1 {
  158. width: 633rpx;
  159. height: 1076rpx;
  160. background-image: url('../../static/user/b-tc.png');
  161. background-size: 100% 100%;
  162. position: relative;
  163. .tit {
  164. font-weight: bold;
  165. font-size: 44rpx;
  166. color: #222222;
  167. text-align: center;
  168. padding-top: 10rpx;
  169. letter-spacing: 10rpx;
  170. }
  171. .jj {
  172. padding: 70rpx 60rpx 30rpx 65rpx;
  173. font-weight: bold;
  174. font-size: 22rpx;
  175. color: #000000;
  176. line-height: 31rpx;
  177. text-align: center;
  178. letter-spacing: 5rpx;
  179. }
  180. .item {
  181. width: 536rpx;
  182. height: 114rpx;
  183. background: #FFFFFF;
  184. border-radius: 20rpx;
  185. margin:20rpx auto;
  186. padding: 0 18rpx 0 24rpx;
  187. .logo {
  188. width: 70rpx;
  189. height: 68rpx;
  190. flex-shrink: 0;
  191. }
  192. .dec {
  193. flex-shrink: 0;
  194. width: 335rpx;
  195. text {
  196. font-weight: 800;
  197. font-size: 27rpx;
  198. color: #000000;
  199. }
  200. font-size: 20rpx;
  201. color: #969696;
  202. }
  203. .check {
  204. flex-shrink: 0;
  205. .schecked {
  206. width: 40rpx;
  207. height: 40rpx;
  208. }
  209. .nocheck {
  210. width: 40rpx;
  211. height: 40rpx;
  212. border-radius: 50%;
  213. border: 2px solid #3C4192;
  214. }
  215. }
  216. }
  217. .close {
  218. width: 80rpx;
  219. height: 80rpx;
  220. position: absolute;
  221. left: 0;
  222. right: 0;
  223. bottom: -110rpx;
  224. margin: auto;
  225. }
  226. }
  227. .btn {
  228. width: 330rpx;
  229. line-height: 77rpx;
  230. background: linear-gradient(268deg, rgba(113,87,185,0.99), #8667C3, #7258B9);
  231. border-radius: 10rpx;
  232. margin:35rpx auto 0;
  233. text-align: center;
  234. font-weight: bold;
  235. font-size: 35rpx;
  236. color: #FFFFFF;
  237. }
  238. .yue {
  239. display: flex;
  240. width: 100%;
  241. justify-content: center;
  242. image {
  243. width: 43rpx;
  244. height: 34rpx;
  245. margin: 0;
  246. }
  247. view {
  248. padding-left: 10rpx;
  249. }
  250. font-weight: bold;
  251. font-size: 25rpx;
  252. color: #222222;
  253. text-align: center;
  254. text {
  255. color: #3C4192;
  256. }
  257. }
  258. .popup-box2 {
  259. width: 633rpx;
  260. height: 823rpx;
  261. background-image: url('../../static/user/lm/tc-vip.png');
  262. .hg {
  263. width: 256rpx;
  264. height: 234rpx;
  265. display: block;
  266. margin:68rpx auto 35rpx;
  267. }
  268. .gg {
  269. font-weight: bold;
  270. font-size: 29rpx;
  271. color: #000000;
  272. text-align: center;
  273. padding-bottom: 58rpx;
  274. }
  275. }
  276. </style>