my_info.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <template>
  2. <view class="info">
  3. <view class="name_wrap" @click="to_name">
  4. <view class="star">
  5. *
  6. </view>
  7. <view class="left">
  8. <view class="top">
  9. <text>基础信息</text>
  10. <image src="../../static/images/edit.png" mode=""></image>
  11. </view>
  12. <view class="bootom">
  13. <text class="empty" v-if="vuex_user.name==''">您还未填写~</text>
  14. <text>{{vuex_user.name}} · {{vuex_user.class}}</text>
  15. </view>
  16. </view>
  17. <view class="img">
  18. <image :src="vuex_user.headimg" mode=""></image>
  19. </view>
  20. </view>
  21. <view class="other" @click="to_study">
  22. <view class="other_top">
  23. <text>学籍信息</text>
  24. <image src="../../static/images/edit.png" mode=""></image>
  25. </view>
  26. <view class="other_bootom">
  27. <!-- <text class="empty" v-if="vuex_user.major == ''">您还未填写~</text> -->
  28. <text>{{vuex_user.major == ''?'您还未填写~':vuex_user.major}}</text>
  29. </view>
  30. </view>
  31. <view class="other" @click="to_honour">
  32. <view class="other_top">
  33. <text>您的个人研究方向</text>
  34. <image src="../../static/images/edit.png" mode=""></image>
  35. </view>
  36. <view class="other_bootom">
  37. <!-- <text class="empty" v-if="vuex_user.study == ''">您还未填写~</text> -->
  38. <text>{{vuex_user.study == ''?'您还未填写~':vuex_user.study}}</text>
  39. </view>
  40. </view>
  41. <view class="other" @click="to_job">
  42. <view class="other_top">
  43. <text>{{vuex_user.work_units||vuex_user.work_units==null?'目前所在单位及职位':vuex_user.work_units}}</text>
  44. <image src="../../static/images/edit.png" mode=""></image>
  45. </view>
  46. <view class="other_bootom">
  47. <!-- <text class="empty" v-if="vuex_user.work_units == ''">您还未填写~</text> -->
  48. <text>{{vuex_user.work_units||vuex_user.work_units==null?'您还未填写~':vuex_user.work_units == ''?'':vuex_user.work_position}}</text>
  49. </view>
  50. </view>
  51. <!-- <view class="is_tel">
  52. <text>是否公开联系方式</text>
  53. <u-switch v-model="checked"></u-switch>
  54. </view> -->
  55. <!-- <VueEditor /> -->
  56. <!-- <view class="read">
  57. <u-radio-group v-model="agree">
  58. <u-radio shape="square" name="agree">
  59. 阅读并同意
  60. <text>《校友信息互联公约》</text>
  61. </u-radio>
  62. </u-radio-group>
  63. </view>
  64. <button type="default">确认</button> -->
  65. </view>
  66. </template>
  67. <script>
  68. // import { VueEditor, Quill } from "vue2-editor";
  69. export default {
  70. // components:{
  71. // VueEditor
  72. // },
  73. data() {
  74. return {
  75. checked: false,
  76. agree: ''
  77. }
  78. },
  79. onLoad() {
  80. console.log(this.vuex_user.work_units == null,'vuex_user.work_units')
  81. },
  82. methods: {
  83. //switch变化时触发
  84. change(status) {
  85. // console.log(status);
  86. },
  87. to_name() {
  88. uni.navigateTo({
  89. url: 'name_edit'
  90. })
  91. },
  92. to_job() {
  93. uni.navigateTo({
  94. url: 'job_edit'
  95. })
  96. },
  97. to_class() {
  98. uni.navigateTo({
  99. url: 'class_edit'
  100. })
  101. },
  102. to_honour() {
  103. uni.navigateTo({
  104. url: 'honour_edit'
  105. })
  106. },
  107. to_study() {
  108. uni.navigateTo({
  109. url: 'my_study'
  110. })
  111. }
  112. }
  113. }
  114. </script>
  115. <style lang="scss" scoped>
  116. .info {
  117. padding: 0 16px;
  118. .name_wrap {
  119. display: flex;
  120. justify-content: space-between;
  121. align-items: center;
  122. margin-top: 30px;
  123. position: relative;
  124. padding-left: 10px;
  125. .star {
  126. position: absolute;
  127. top: 0px;
  128. left: 0;
  129. color: red;
  130. }
  131. .left {
  132. width: 80%;
  133. .top {
  134. text {
  135. font-size: 16px;
  136. font-family: PingFang SC;
  137. font-weight: bold;
  138. line-height: 20px;
  139. color: #282828;
  140. }
  141. image {
  142. width: 12px;
  143. height: 12px;
  144. margin-left: 25px;
  145. }
  146. }
  147. .bootom {
  148. margin-top: 6px;
  149. font-size: 13px;
  150. font-family: PingFang HK;
  151. font-weight: 400;
  152. line-height: 20px;
  153. color: #696969;
  154. opacity: 0.63;
  155. text{
  156. width: 100%;
  157. display: block;
  158. overflow: hidden;
  159. white-space: nowrap;
  160. text-overflow: ellipsis;
  161. }
  162. }
  163. }
  164. .img {
  165. flex-shrink: 0;
  166. width: 43px;
  167. height: 43px;
  168. border-radius: 50%;
  169. overflow: hidden;
  170. margin-right: 8px;
  171. image {
  172. width: 43px;
  173. height: 43px;
  174. }
  175. }
  176. }
  177. .other {
  178. margin-top: 30px;
  179. .other_top {
  180. display: flex;
  181. align-items: center;
  182. justify-content: space-between;
  183. margin-bottom: 6px;
  184. font-size: 16px;
  185. font-family: PingFang SC;
  186. font-weight: bold;
  187. line-height: 20px;
  188. color: #282828;
  189. image {
  190. width: 12px;
  191. height: 12px;
  192. margin-right: 8px;
  193. }
  194. }
  195. .other_bootom {
  196. margin-top: 6px;
  197. font-size: 13px;
  198. font-family: PingFang HK;
  199. font-weight: 400;
  200. line-height: 20px;
  201. color: #696969;
  202. opacity: 0.63;
  203. margin-left: 10px;
  204. text{
  205. width: 100%;
  206. display: block;
  207. overflow: hidden;
  208. white-space: nowrap;
  209. text-overflow: ellipsis;
  210. }
  211. }
  212. }
  213. .is_tel {
  214. display: flex;
  215. align-items: center;
  216. justify-content: space-between;
  217. font-size: 16px;
  218. font-family: PingFang SC;
  219. font-weight: bold;
  220. line-height: 20px;
  221. color: #282828;
  222. margin-top: 80px;
  223. }
  224. .read {
  225. margin-top: 90px;
  226. font-size: 14px;
  227. font-family: PingFang HK;
  228. color: #282828;
  229. text {
  230. font-weight: 400;
  231. line-height: 20px;
  232. color: #674023;
  233. }
  234. }
  235. button {
  236. margin-top: 10px;
  237. height: 55px;
  238. line-height: 55px;
  239. background: #D5D8DB;
  240. opacity: 1;
  241. border-radius: 12px;
  242. &::after {
  243. border: none;
  244. }
  245. }
  246. }
  247. </style>