lm.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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('popupvip')"></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. <uni-popup ref="popupvip" type="center">
  52. <view class="popup-box1 popup-box2">
  53. <view class="tit">
  54. 开通VIP
  55. </view>
  56. <image src="../../static/user/lm/huanguan.png" mode="" class="hg"></image>
  57. <view class="tit" style="letter-spacing: 0;">
  58. 会员VIP
  59. </view>
  60. <view class="gg">
  61. 购买VIP免除广告30天
  62. </view>
  63. <view class="yue">
  64. <image src="../../static/index/index/icon01.png" mode=""></image>
  65. <view class="">
  66. 拥有矿石 <text>10000</text> 个,开通需 <text>10000</text> 个
  67. </view>
  68. </view>
  69. <view class="btn">
  70. 确认开通
  71. </view>
  72. <image src="../../static/user/close.png" mode="" class="close" @click="closeTc('popupvip')"></image>
  73. </view>
  74. </uni-popup>
  75. </view>
  76. </template>
  77. <script>
  78. export default {
  79. data() {
  80. return {
  81. lmList: [
  82. {
  83. level: '领主',
  84. dec: '(质押 10 万矿石 获得转赠手续费 5%)',
  85. id: 1,
  86. checked: false
  87. },
  88. {
  89. level: '一级城主',
  90. dec: '(质押 3 万矿石 获得转赠手续费 3% , 获得 2 级城主转赠收费 10%)',
  91. id: 1,
  92. checked: false
  93. },
  94. {
  95. level: '二级城主',
  96. dec: '(质押 1万矿石 获得转赠手续费 2%, 由 1 级城主推荐获得 3 级城主转赠手续费收益)',
  97. id: 1,
  98. checked: false
  99. },
  100. {
  101. level: '三级城主',
  102. dec: '(质押 5000矿石 获得转赠手续费 2% , 由 2 级城主推荐)',
  103. id: 1,
  104. checked: false
  105. }
  106. ],
  107. }
  108. },
  109. onLoad() {
  110. },
  111. onShow() {
  112. },
  113. onReachBottom() {
  114. },
  115. onReady() {
  116. },
  117. methods: {
  118. openTc(name) {
  119. this.$refs[name].open()
  120. },
  121. closeTc(name) {
  122. this.$refs[name].close()
  123. }
  124. }
  125. }
  126. </script>
  127. <style lang="scss" scoped>
  128. .lm-bg {
  129. width: 100%;
  130. vertical-align: middle;
  131. }
  132. .item {
  133. width: 718rpx;
  134. height: 151rpx;
  135. background: #FFFFFF;
  136. border-radius: 10rpx;
  137. margin:0 auto 22rpx;
  138. padding: 0 52rpx 0 28rpx;
  139. font-weight: bold;
  140. font-size: 29rpx;
  141. color: #222222;
  142. .logo {
  143. width: 95rpx;
  144. height: 95rpx;
  145. border-radius: 10rpx;
  146. background-color: #f9f9f9;
  147. flex-shrink: 0;
  148. }
  149. .name {
  150. flex-grow: 1;
  151. padding-left: 22rpx;
  152. }
  153. .val {
  154. font-size: 25rpx;
  155. color: #222222;
  156. flex-shrink: 0;
  157. }
  158. }
  159. .lm-btn {
  160. padding: 28rpx;
  161. background-color: #fff;
  162. .btn-1 {
  163. width: 336rpx;
  164. height: 162rpx;
  165. border-radius: 20rpx;
  166. }
  167. }
  168. .title {
  169. font-weight: 800;
  170. font-size: 29rpx;
  171. color: #222222;
  172. padding: 10rpx 0 20rpx 35rpx;
  173. background-color: #fff;
  174. margin-bottom: 20rpx;
  175. }
  176. .popup-box1 {
  177. width: 633rpx;
  178. height: 1076rpx;
  179. background-image: url('../../static/user/b-tc.png');
  180. background-size: 100% 100%;
  181. position: relative;
  182. .tit {
  183. font-weight: bold;
  184. font-size: 44rpx;
  185. color: #222222;
  186. text-align: center;
  187. padding-top: 10rpx;
  188. letter-spacing: 10rpx;
  189. }
  190. .jj {
  191. padding: 70rpx 60rpx 30rpx 65rpx;
  192. font-weight: bold;
  193. font-size: 22rpx;
  194. color: #000000;
  195. line-height: 31rpx;
  196. text-align: center;
  197. letter-spacing: 5rpx;
  198. }
  199. .item {
  200. width: 536rpx;
  201. height: 114rpx;
  202. background: #FFFFFF;
  203. border-radius: 20rpx;
  204. margin:20rpx auto;
  205. padding: 0 18rpx 0 24rpx;
  206. .logo {
  207. width: 70rpx;
  208. height: 68rpx;
  209. flex-shrink: 0;
  210. }
  211. .dec {
  212. flex-shrink: 0;
  213. width: 335rpx;
  214. text {
  215. font-weight: 800;
  216. font-size: 27rpx;
  217. color: #000000;
  218. }
  219. font-size: 20rpx;
  220. color: #969696;
  221. }
  222. .check {
  223. flex-shrink: 0;
  224. .schecked {
  225. width: 40rpx;
  226. height: 40rpx;
  227. }
  228. .nocheck {
  229. width: 40rpx;
  230. height: 40rpx;
  231. border-radius: 50%;
  232. border: 2px solid #3C4192;
  233. }
  234. }
  235. }
  236. .close {
  237. width: 80rpx;
  238. height: 80rpx;
  239. position: absolute;
  240. left: 0;
  241. right: 0;
  242. bottom: -110rpx;
  243. margin: auto;
  244. }
  245. }
  246. .btn {
  247. width: 330rpx;
  248. line-height: 77rpx;
  249. background: linear-gradient(268deg, rgba(113,87,185,0.99), #8667C3, #7258B9);
  250. border-radius: 10rpx;
  251. margin:35rpx auto 0;
  252. text-align: center;
  253. font-weight: bold;
  254. font-size: 35rpx;
  255. color: #FFFFFF;
  256. }
  257. .yue {
  258. display: flex;
  259. width: 100%;
  260. justify-content: center;
  261. image {
  262. width: 43rpx;
  263. height: 34rpx;
  264. margin: 0;
  265. }
  266. view {
  267. padding-left: 10rpx;
  268. }
  269. font-weight: bold;
  270. font-size: 25rpx;
  271. color: #222222;
  272. text-align: center;
  273. text {
  274. color: #3C4192;
  275. }
  276. }
  277. .popup-box2 {
  278. width: 633rpx;
  279. height: 823rpx;
  280. background-image: url('../../static/user/lm/tc-vip.png');
  281. .hg {
  282. width: 256rpx;
  283. height: 234rpx;
  284. display: block;
  285. margin:68rpx auto 35rpx;
  286. }
  287. .gg {
  288. font-weight: bold;
  289. font-size: 29rpx;
  290. color: #000000;
  291. text-align: center;
  292. padding-bottom: 58rpx;
  293. }
  294. }
  295. </style>