index.wpy 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <style lang='less'>
  2. page {
  3. height: 100%;
  4. background: #ebf5fa;
  5. }
  6. .percsonal-center {
  7. width: 100%;
  8. height: 100%;
  9. overflow: hidden;
  10. box-sizing: border-box;
  11. position: relative;
  12. .imgst {
  13. width: 100%;
  14. height: 784rpx;
  15. background-color: #ebf5fa;
  16. position: absolute;
  17. top: 0;
  18. left: 0;
  19. z-index: 0;
  20. }
  21. .contain {
  22. padding-top: 240rpx;
  23. position: relative;
  24. z-index: 1;
  25. .head {
  26. display: flex;
  27. align-items: center;
  28. .imgHead {
  29. margin-left: 56rpx;
  30. margin-right: 20rpx;
  31. width: 128rpx;
  32. height: 128rpx;
  33. }
  34. .p-name {
  35. margin-right: 8rpx;
  36. font-family: PingFang SC;
  37. font-size: 44rpx;
  38. font-weight: 600;
  39. line-height: 64rpx;
  40. color: #1b2129;
  41. }
  42. .p-comp {
  43. padding-top: 8rpx;
  44. font-family: PingFang SC;
  45. font-size: 28rpx;
  46. font-weight: 400;
  47. line-height: 44rpx;
  48. color: #626c78;
  49. }
  50. }
  51. .content {
  52. padding: 40rpx;
  53. padding-top: 64rpx;
  54. .card-box {
  55. display: flex;
  56. justify-content: space-between;
  57. padding-bottom: 20rpx;
  58. .little-card {
  59. text-align: center;
  60. width: 326rpx;
  61. height: 200rpx;
  62. padding-top: 36rpx;
  63. border-radius: 40rpx;
  64. box-sizing: border-box;
  65. background: #ffffff;
  66. .little-imgst {
  67. width: 64rpx;
  68. height: 64rpx;
  69. }
  70. .text {
  71. padding-top: 8rpx;
  72. font-family: PingFang SC;
  73. font-size: 32rpx;
  74. font-weight: 400;
  75. line-height: 48rpx;
  76. color: #1b2129;
  77. }
  78. }
  79. .hover-st {
  80. background: #f1f4f6;
  81. }
  82. }
  83. .big-card {
  84. width: 670rpx;
  85. height: 288rpx;
  86. padding: 24rpx 0px 24rpx 0px;
  87. border-radius: 40rpx;
  88. box-sizing: border-box;
  89. background: #ffffff;
  90. .each-row {
  91. width: 100%;
  92. height: 120rpx;
  93. padding-left: 40rpx;
  94. display: flex;
  95. align-items: center;
  96. .each-row-imgst {
  97. width: 48rpx;
  98. height: 48rpx;
  99. margin-right: 24rpx;
  100. }
  101. .each-row-text {
  102. font-family: PingFang SC;
  103. font-size: 32rpx;
  104. font-weight: 400;
  105. line-height: 48rpx;
  106. color: #1b2129;
  107. }
  108. }
  109. .hover-st {
  110. background: #f1f4f6;
  111. }
  112. }
  113. }
  114. }
  115. }
  116. </style>
  117. <!-- 个人中心 -->
  118. <template>
  119. <div class="percsonal-center">
  120. <page-top-bar icon="{{h5Static+'/page-top-bar/return-icon.svg'}}"></page-top-bar>
  121. <image
  122. class="imgst"
  123. src="{{h5StaticPath}}/bg-personal.png"
  124. mode="widthFix"
  125. alt
  126. />
  127. <div class="contain">
  128. <div class="head">
  129. <image
  130. class="imgHead"
  131. src="{{h5StaticPath}}/no-person.png"
  132. />
  133. <div @click="goToPersonalInfo">
  134. <div>
  135. <span class="p-name">纳兰词</span>
  136. <image
  137. style="width: 24rpx;height: 24rpx;"
  138. src="{{h5StaticPath}}/icon-arrow-right.svg"
  139. />
  140. </div>
  141. <div class="p-comp">上格云智能技术有限公司</div>
  142. </div>
  143. </div>
  144. <div class="content">
  145. <div class="card-box">
  146. <div
  147. hover-class="hover-st"
  148. hover-style-time="100"
  149. class="little-card"
  150. >
  151. <image
  152. class="little-imgst"
  153. src="{{h5StaticPath}}/icon-leaf.png"
  154. />
  155. <div class="text">我的习惯</div>
  156. </div>
  157. <div
  158. hover-class="hover-st"
  159. hover-style-time="100"
  160. class="little-card"
  161. @click="handleAdd(true)"
  162. >
  163. <image
  164. class="little-imgst"
  165. src="{{h5StaticPath}}/icon-to-desk.png"
  166. />
  167. <div class="text">添加到桌面</div>
  168. </div>
  169. </div>
  170. <div class="big-card">
  171. <div
  172. hover-class="hover-st"
  173. hover-style-time="100"
  174. v-for="item in arr"
  175. :key="item.icon"
  176. class="each-row"
  177. @click="toPage(item.url)"
  178. >
  179. <image
  180. class="each-row-imgst"
  181. src="{{h5StaticPath}}/{{item.icon}}"
  182. />
  183. <span class="each-row-text">{{item.name}}</span>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. <footer></footer>
  189. <add-miniprogram-to-desk-panel
  190. :show="isShowAddminiProgramToDesk"
  191. @component-add-miniprogram-to-desk-panel-close="handleAdd(false)"
  192. :showBottomButton="false"
  193. ></add-miniprogram-to-desk-panel>
  194. </div>
  195. </template>
  196. <script>
  197. import wepy from '@wepy/core'
  198. import config from '@/config'
  199. wepy.page({
  200. components: {},
  201. props: {},
  202. data: {
  203. h5StaticPath: config.h5StaticPath + '/page-personalCenter',
  204. h5Static: config.h5StaticPath,
  205. isShowAddminiProgramToDesk: false,
  206. arr: [
  207. // { name: '问题反馈', icon: 'icon-message.svg', url: '' },
  208. { name: '操作指引', icon: 'icon-guid.svg', url: '/packagesEnv/pages/personalCenter/operating' },
  209. { name: '关于小飒指控', icon: 'icon-tip.svg', url: '/packagesEnv/pages/personalCenter/xiaosa' }
  210. ]
  211. },
  212. computed: {},
  213. methods: {
  214. handleAdd(val) {
  215. this.isShowAddminiProgramToDesk = val
  216. },
  217. toPage(url) {
  218. wx.navigateTo({
  219. url: url
  220. })
  221. },
  222. goToPersonalInfo() {
  223. wx.navigateTo({
  224. url: '/packagesEnv/pages/personalCenter/personalInfo'
  225. })
  226. }
  227. },
  228. // 生命周期 - 创建完成(可以访问当前this实例)
  229. created() {
  230. },
  231. // 生命周期 - 挂载完成(可以访问DOM元素)
  232. mounted() {
  233. }
  234. })
  235. </script>
  236. <config>
  237. {
  238. 'navigationBarTitleText': '',
  239. navigationStyle:"custom",
  240. backgroundColor: '#EBF5FA',
  241. usingComponents: {
  242. 'page-top-bar': '~@/components/common/page-top-bar',
  243. 'add-miniprogram-to-desk-panel': './component/add-miniprogram-to-desk-panel',
  244. 'footer':'./footer'
  245. },
  246. "componentPlaceholder": {
  247. "add-miniprogram-to-desk-panel": "view",
  248. }
  249. }
  250. </config>