推广小程序前端代码
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.

304 lines
6.1 KiB

6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <view class="page">
  3. <view class="head-box"></view>
  4. <uv-navbar title="个人中心" :bgColor="bgColor" height="100rpx" :titleStyle="{color:'#fff'}"></uv-navbar>
  5. <view class="content">
  6. <view class="head" @click="toInfo">
  7. <view class="headImage" @click="toInfo">
  8. <image :src="userInfo.headImage" mode="aspectFill"></image>
  9. </view>
  10. <view class="info" @click="toInfo">
  11. <view class="vip">
  12. 但愿人长久
  13. </view>
  14. <view class="tips">
  15. 158123321
  16. </view>
  17. </view>
  18. <view class="setting" @click="jump({url:'/pages_my/user-msg'})">
  19. <uv-icon name="edit-pen" size="50rpx" color="#fff"></uv-icon>
  20. </view>
  21. </view>
  22. <view class="myOrder">
  23. <view>我的活动</view>
  24. </view>
  25. <view class="order">
  26. <view class="box">
  27. <view class="boxs"
  28. @click="$utils.navigateTo('/pages_my/activeList')">
  29. <image src="@/static/image/center/order-1.png" mode="aspectFill" />
  30. <view>待参加</view>
  31. </view>
  32. <view class="boxs"
  33. @click="$utils.navigateTo('/pages_my/activeList')">
  34. <image src="@/static/image/center/order-2.png" mode="aspectFill" />
  35. <view>已完成</view>
  36. </view>
  37. <view class="boxs"
  38. @click="$utils.navigateTo('/pages_my/activeList')">
  39. <image src="@/static/image/center/order-3.png" mode="aspectFill" />
  40. <view>已取消</view>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="myOrder">
  45. <view>我的工具</view>
  46. </view>
  47. <view class="user">
  48. <view class="cell-bottom">
  49. <view class="cell-line" v-for="(item,i) in cellList" :key="i" @click="jump(item)">
  50. <view class="line-l">
  51. <image :src="item.src" mode="widthFix"></image>
  52. <view>{{item.name}}</view>
  53. </view>
  54. <uv-icon size="35" name="arrow-right"></uv-icon>
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <!-- <customerServicePopup ref="customerServicePopup"/> -->
  60. <tabber select="center" />
  61. </view>
  62. </template>
  63. <script>
  64. import tabber from '@/components/base/tabbar.vue'
  65. import { mapState } from 'vuex'
  66. import customerServicePopup from '@/components/config/customerServicePopup.vue'
  67. export default {
  68. components: {
  69. tabber,
  70. customerServicePopup,
  71. },
  72. computed: {
  73. },
  74. data() {
  75. return {
  76. bgColor:'transparent',
  77. cellList:[
  78. {
  79. src:require('@/static/image/center/line-1.png'),
  80. name:'开票记录'
  81. },
  82. {
  83. src:require('@/static/image/center/line-2.png'),
  84. name:'我的收藏',
  85. url:'/pages_my/collection'
  86. },
  87. {
  88. src:require('@/static/image/center/line-3.png'),
  89. name:'关于我们'
  90. },
  91. {
  92. src:require('@/static/image/center/line-4.png'),
  93. name:'用户协议'
  94. },
  95. {
  96. src:require('@/static/image/center/line-5.png'),
  97. name:'隐私协议'
  98. },
  99. {
  100. src:require('@/static/image/center/line-6.png'),
  101. name:'主理人协议'
  102. },
  103. {
  104. src:require('@/static/image/center/line-7.png'),
  105. name:'主理人签到',
  106. url:'/pages_my/zlx-qiandao'
  107. }
  108. ],
  109. vipType : ['普通会员', '黄金会员', '渠道商'],
  110. vipImage : ['vip_vip', 'vip_user', 'vip_shop']
  111. }
  112. },
  113. onShow() {
  114. },
  115. onPageScroll(e) {
  116. if(e.scrollTop > 50) {
  117. this.bgColor = '#49070c'
  118. }else{
  119. this.bgColor = 'transparent'
  120. }
  121. },
  122. methods: {
  123. clickNo(){
  124. uni.showModal({
  125. title: '暂未开放',
  126. })
  127. },
  128. jump(item) {
  129. uni.navigateTo({
  130. url:item.url
  131. })
  132. },
  133. toInfo() {
  134. console.log(123)
  135. uni.navigateTo({
  136. url:'/pages_my/user-info'
  137. })
  138. }
  139. }
  140. }
  141. </script>
  142. <style lang="scss">
  143. page {
  144. background-color: #060504;
  145. }
  146. </style>
  147. <style scoped lang="scss">
  148. .page {
  149. .head-box {
  150. background: url('@/static/image/nav-bg.png') no-repeat;
  151. background-size: 100% 100%;
  152. width: 100%;
  153. height: 534rpx;
  154. position: absolute;
  155. z-index: -1;
  156. }
  157. .content {
  158. padding: 0 30rpx;
  159. padding-top: calc(var(--status-bar-height) + 110rpx);
  160. padding-bottom: 20rpx;
  161. }
  162. }
  163. .head {
  164. display: flex;
  165. align-items: center;
  166. margin-bottom: 40rpx;
  167. .headImage {
  168. width: 113rpx;
  169. height: 113rpx;
  170. background-image: url(/static/image/center/3.png);
  171. background-size: 100% 100%;
  172. overflow: hidden;
  173. border-radius: 50%;
  174. margin-right: 22rpx;
  175. }
  176. .info {
  177. font-size: 28rpx;
  178. display: flex;
  179. flex-direction: column;
  180. gap: 10rpx;
  181. flex: 1;
  182. .vip {
  183. font-weight: 600;
  184. font-size: 32rpx;
  185. color: #E6E6E6;
  186. }
  187. .tips {
  188. font-weight: 400;
  189. font-size: 22rpx;
  190. color: #999999;
  191. }
  192. }
  193. }
  194. .setting {
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. // position: absolute;
  199. // right: 50rpx;
  200. // top: 50rpx;
  201. width: 70rpx;
  202. height: 70rpx;
  203. background: #221D1D;
  204. border-radius: 20rpx;
  205. }
  206. .myOrder {
  207. font-weight: bold;
  208. font-size: 28rpx;
  209. color: #E6E6E6;
  210. }
  211. .order {
  212. display: flex;
  213. align-items: center;
  214. justify-content: center;
  215. height: 200rpx;
  216. background: #1B1713;
  217. border-radius: 20rpx 20rpx 20rpx 20rpx;
  218. opacity: 0.7;
  219. color: #999999;
  220. font-size: 23rpx;
  221. margin-top: 22rpx;
  222. margin-bottom: 33rpx;
  223. .box {
  224. display: flex;
  225. width: 100%;
  226. justify-content: space-around;
  227. .boxs {
  228. width: 33.33%;
  229. display: flex;
  230. flex-direction: column;
  231. align-items: center;
  232. border-right: 1px solid #2F2D2B;
  233. &:last-child {
  234. border: none;
  235. }
  236. image {
  237. width: 55rpx;
  238. height: 47rpx;
  239. margin-bottom: 24rpx;
  240. }
  241. }
  242. }
  243. }
  244. .user {
  245. margin-top: 25rpx;
  246. .grid {
  247. flex-direction: column;
  248. font-size: 26rpx;
  249. padding: 20rpx;
  250. .title {
  251. font-weight: 600;
  252. padding: 10rpx;
  253. border-left: 6rpx solid #A3D250;
  254. }
  255. }
  256. .cell-bottom {
  257. margin-top: 20rpx;
  258. margin-left: 2%;
  259. background-color: #1B1713;
  260. border-radius: 20rpx;
  261. .cell-line {
  262. height: 100rpx;
  263. display: flex;
  264. align-items: center;
  265. justify-content: space-between;
  266. padding: 0 30rpx;
  267. .line-l {
  268. display: flex;
  269. align-items: center;
  270. font-weight: 400;
  271. font-size: 29rpx;
  272. color: #E6E6E6;
  273. image {
  274. width: 45rpx;
  275. margin-right: 18rpx;
  276. }
  277. }
  278. }
  279. }
  280. }
  281. </style>