瑶都万能墙
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

281 lines
4.3 KiB

8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <tabber select="3" />
  4. </view>
  5. </template>
  6. <script>
  7. import tabber from '@/components/base/tabbar.vue'
  8. import {
  9. mapGetters
  10. } from 'vuex'
  11. import userShopCommission from '@/components/userShop/userShopCommission.vue'
  12. export default {
  13. components: {
  14. tabber,
  15. userShopCommission,
  16. },
  17. computed: {
  18. ...mapGetters(['userShop']),
  19. customStyle1() {
  20. return {
  21. height: '60rpx',
  22. background: '#FFF',
  23. color: '#000000',
  24. fontSize: '36rpx',
  25. borderRadius: '40rpx', //圆角
  26. // nvue中必须是下方的写法
  27. 'border-top-right-radius': '40rpx',
  28. 'border-bottom-left-radius': '40rpx',
  29. 'border-bottom-right-radius': '40rpx',
  30. 'width': '150rpx',
  31. }
  32. },
  33. customStyle2() {
  34. return {
  35. height: '60rpx',
  36. background: '#fd5100',
  37. color: '#FFF',
  38. fontSize: '34px',
  39. borderRadius: '40rpx', //圆角
  40. // nvue中必须是下方的写法
  41. 'border-top-right-radius': '40rpx',
  42. 'border-bottom-left-radius': '40rpx',
  43. 'border-bottom-right-radius': '40rpx',
  44. 'width': '150rpx',
  45. }
  46. }
  47. },
  48. data() {
  49. return {
  50. show: false,
  51. }
  52. },
  53. methods: {
  54. headBtn() {
  55. let self = this
  56. uni.showModal({
  57. title: '演示切换角色之后的效果',
  58. success(res) {
  59. if (res.confirm) {
  60. self.$store.state.shop = !self.$store.state.shop
  61. }
  62. }
  63. })
  64. },
  65. // 联系客服按钮回调
  66. contactUs() {
  67. this.show = true
  68. },
  69. confirm() {
  70. this.show = false
  71. },
  72. cancle() {
  73. this.show = false
  74. },
  75. }
  76. }
  77. </script>
  78. <style scoped lang="scss">
  79. .page {
  80. .warp {
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. height: 100%;
  85. }
  86. .rect {
  87. width: 600rpx;
  88. height: 300rpx;
  89. background-color: #fff;
  90. border-radius: 20rpx;
  91. overflow: hidden;
  92. .title {
  93. padding: 10rpx 0 0 15rpx;
  94. background-color: #fd5100;
  95. color: #FFF;
  96. text-align: left;
  97. width: 100%;
  98. height: 18%;
  99. font-size: 36rpx;
  100. }
  101. .center {
  102. height: 40%;
  103. display: flex;
  104. justify-content: center;
  105. align-items: center;
  106. font-size: 36rpx;
  107. }
  108. .bottom {
  109. display: flex;
  110. justify-content: center;
  111. gap: 50rpx;
  112. }
  113. }
  114. }
  115. image {
  116. width: 100%;
  117. height: 100%;
  118. }
  119. .head {
  120. display: flex;
  121. background-color: #fff;
  122. padding: 40rpx 20rpx;
  123. align-items: center;
  124. position: relative;
  125. .headImage {
  126. width: 120rpx;
  127. height: 120rpx;
  128. background-image: url(/static/image/center/3.png);
  129. background-size: 100% 100%;
  130. overflow: hidden;
  131. border-radius: 50%;
  132. margin-right: 40rpx;
  133. }
  134. .info {
  135. font-size: 28rpx;
  136. .vip {
  137. background-color: #FCCC92;
  138. color: #FA6239;
  139. width: 100rpx;
  140. display: flex;
  141. justify-content: center;
  142. align-items: center;
  143. height: 40rpx;
  144. border-radius: 20rpx;
  145. margin-top: 20rpx;
  146. }
  147. .name {
  148. font-size: 32rpx;
  149. }
  150. .tips {
  151. font-size: 26rpx;
  152. color: #ABABAB;
  153. }
  154. }
  155. .headBtn {
  156. margin-left: auto;
  157. padding: 15rpx 20rpx;
  158. background-color: $uni-color;
  159. color: #fff;
  160. border-radius: 20rpx;
  161. margin-top: 50rpx;
  162. }
  163. .setting {
  164. position: absolute;
  165. right: 50rpx;
  166. top: 50rpx;
  167. }
  168. }
  169. .userShop {
  170. .userList {
  171. .title {
  172. font-size: 32rpx;
  173. font-weight: 900;
  174. padding: 20rpx;
  175. }
  176. .list {
  177. display: flex;
  178. flex-wrap: wrap;
  179. .item {
  180. width: 270rpx;
  181. margin: 20rpx;
  182. display: flex;
  183. flex-direction: column;
  184. padding: 40rpx 30rpx;
  185. background-color: #fff;
  186. border-radius: 30rpx;
  187. line-height: 60rpx;
  188. .name {}
  189. .num {
  190. color: $uni-color;
  191. font-weight: 600;
  192. font-size: 28rpx;
  193. }
  194. }
  195. }
  196. }
  197. }
  198. .user {
  199. .line {
  200. display: flex;
  201. background-color: #fff;
  202. margin-top: 20rpx;
  203. padding: 20rpx 0;
  204. .item {
  205. flex: 1;
  206. display: flex;
  207. justify-content: center;
  208. align-items: center;
  209. padding: 20rpx 0;
  210. &:nth-child(1) {
  211. border-right: 1px solid #00000013;
  212. }
  213. .image {
  214. width: 100rpx;
  215. height: 70rpx;
  216. margin-right: 20rpx;
  217. }
  218. }
  219. }
  220. .grid {
  221. flex-direction: column;
  222. font-size: 26rpx;
  223. padding: 20rpx;
  224. .title {
  225. margin-bottom: 30rpx;
  226. font-size: 28rpx;
  227. font-weight: 600;
  228. }
  229. .image {
  230. width: 70rpx;
  231. height: 70rpx;
  232. margin-bottom: 10rpx;
  233. }
  234. text {
  235. text-align: center;
  236. width: 120rpx;
  237. }
  238. }
  239. }
  240. </style>