about_we.vue 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  1. <template>
  2. <div class="my_box boxs">
  3. <div class="my_cont" style="background: linear-gradient(180deg, #2C60F1, #228DE0, #747BFF);">
  4. <!-- <img src="@/static/bg_mine.png" alt="" class="my_img"> -->
  5. <div class="my_nr" @click="tx_btn" >
  6. <!-- <div class="icon"> -->
  7. <!-- <open-data type="userAvatarUrl" class="img"></open-data> -->
  8. <!-- <img :src="info_data.avatarUrl" v-if="flag" alt="" class="img"> -->
  9. <!-- v-if="!flag" -->
  10. <!-- <img src="@/static/grzx_txw2x.png" v-if="!flag" alt="" class="img"> -->
  11. <!-- </div> -->
  12. <div class="my_xq">
  13. <!-- <open-data type="userNickName" class="my_name"></open-data> -->
  14. <!-- <div >{{flag?info_data.nickName:'未登录'}}</div> -->
  15. <div class="my_phone">
  16. <img src="@/static/icon_mine_tel.png" alt="" >
  17. {{phone?phone:'点击登录获取手机号'}}
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="my_yj" @click = "scant" >
  23. <!-- <button open-type="contact"></button> -->
  24. <div class="my_yj_left">
  25. <img src="@/static/icon_minne_sm.png" alt="" class="img">
  26. <span>扫码粗查</span>
  27. </div>
  28. <div class="my_yj_rig">
  29. <img src="@/static/you@2x.png" alt="" class="img">
  30. </div>
  31. </div>
  32. <div class="my_yj" @click = "inding" >
  33. <!-- <button open-type="contact"></button> -->
  34. <div class="my_yj_left">
  35. <img src="@/static/icon_minne_clcx.png" alt="" class="img">
  36. <span>粗略查询</span>
  37. </div>
  38. <div class="my_yj_rig">
  39. <img src="@/static/you@2x.png" alt="" class="img">
  40. </div>
  41. </div>
  42. <div class="my_yj" @click="register_btn">
  43. <div class="my_yj_left">
  44. <img src="@/static/icon_mine_sjdj.png" alt="" class="img imgse">
  45. <span>送检登记</span>
  46. </div>
  47. <div class="my_yj_rig">
  48. <img src="@/static/you@2x.png" alt="" class="img imgse">
  49. </div>
  50. </div>
  51. <div class="my_yj" @click = "guanlu">
  52. <div class="my_yj_left">
  53. <img src="@/static/icon_mine_hist.png" alt="" class="img">
  54. <span>历史记录</span>
  55. </div>
  56. <div class="my_yj_rig">
  57. <img src="@/static/you@2x.png" alt="" class="img">
  58. </div>
  59. </div>
  60. <div class="my_yj" @click = "record">
  61. <!-- <button open-type="contact"></button> -->
  62. <div class="my_yj_left">
  63. <img src="@/static/icon_mine_jgjj.png" alt="" class="img">
  64. <span>官网网址</span>
  65. </div>
  66. <div class="my_yj_rig">
  67. <img src="@/static/you@2x.png" alt="" class="img">
  68. </div>
  69. </div>
  70. <!-- <div class="my_yj" @click = "shenfei">
  71. <div class="my_yj_left">
  72. <img src="@/static/icon_mine_xzsf.png" alt="" class="img">
  73. <span>选择身份</span>
  74. </div>
  75. <div class="my_yj_rig">
  76. <img src="@/static/you@2x.png" alt="" class="img">
  77. </div>
  78. </div> -->
  79. </div>
  80. </template>
  81. <script>
  82. export default {
  83. data() {
  84. return {
  85. info_data: {}, // 用户信息
  86. flag: '', // 是否登录
  87. //手机号码
  88. phone:'',
  89. ankdShow:false
  90. }
  91. },
  92. onLoad() {
  93. },
  94. onPullDownRefresh() {
  95. },
  96. onShow() {
  97. let token = uni.getStorageSync('token')
  98. let detp_type = uni.getStorageSync('deptInfo')
  99. // this.info_data = uni.getStorageSync('userInfo')
  100. this.phone = uni.getStorageSync('phone')
  101. console.log(this.info_data)
  102. // if(!token ){
  103. // uni.redirectTo({
  104. // url: '/pages/login/login'
  105. // })
  106. // this.flag = false
  107. // }else{
  108. // this.flag = true
  109. // }
  110. // if(detp_type.deptType == 5){
  111. // //班主任
  112. // this.ankdShow = true
  113. // }else{
  114. // this.ankdShow = false
  115. // }
  116. },
  117. methods: {
  118. tx_btn() {
  119. if(!this.flag){
  120. uni.navigateTo({
  121. url: '/pages/login/login',
  122. })
  123. }
  124. },
  125. shop_btn(index){
  126. const token = uni.getStorageSync('token')
  127. if(!token){
  128. uni.redirectTo({
  129. url: '/pages/login/login',
  130. })
  131. return
  132. }
  133. uni.navigateTo({
  134. url: `/pages/my/order_list?index=${index}`
  135. })
  136. },
  137. share_btn() {
  138. this._GET.clear=true;
  139. const token = uni.getStorageSync('token')
  140. // if(!token){
  141. // uni.redirectTo({
  142. // url: '/pages/login/login',
  143. // })
  144. // return
  145. // }
  146. uni.switchTab({
  147. url:'/pages/tab/fw'
  148. })
  149. },
  150. //人员管理
  151. guanlu(){
  152. wx.navigateTo({
  153. url: '/pages/parents/par_dynamic'
  154. })
  155. },
  156. //通行记录
  157. record(){
  158. wx.navigateTo({
  159. url: '/pages/home/record'
  160. })
  161. },
  162. //选择身份
  163. shenfei(){
  164. wx.navigateTo({
  165. url: '/pages/load/roles'
  166. })
  167. },
  168. //送检登记
  169. register_btn(){
  170. wx.navigateTo({
  171. url: '/pages/home/register'
  172. })
  173. },
  174. //扫码登录
  175. scant(){
  176. wx.navigateTo({
  177. url: '/pages/home/scan'
  178. })
  179. },
  180. //粗略查询
  181. inding(){
  182. wx.navigateTo({
  183. url: '/pages/home/potho'
  184. })
  185. }
  186. }
  187. }
  188. </script>
  189. <style lang="scss" scoped>
  190. .my_box{
  191. background-color: #f0f0f0;
  192. min-height: 100vh;
  193. .my_cont{
  194. height: 160upx;
  195. position: relative;
  196. overflow: hidden;
  197. display: flex;
  198. align-items: center;
  199. padding: 0 46upx;
  200. background-color: #fff;
  201. .my_img{
  202. width: 100%;
  203. position: absolute;
  204. bottom: 0;
  205. left: 0;
  206. }
  207. .my_nr{
  208. position: relative;
  209. z-index: 1;
  210. display: flex;
  211. .icon{
  212. width: 160upx;
  213. height: 160upx;
  214. display: flex;
  215. justify-content: center;
  216. align-items: center;
  217. background: #fff;
  218. border-radius: 50%;
  219. margin-right: 21upx;
  220. overflow: hidden;
  221. .img{
  222. border-radius: 50%;
  223. width: 156upx;
  224. height: 156upx;
  225. vertical-align: 0;
  226. }
  227. }
  228. .my_xq{
  229. color: #fff;
  230. display: flex;
  231. justify-content: center;
  232. flex-direction: column;
  233. .my_name{
  234. font-size: 35upx;
  235. line-height: 1;
  236. margin-bottom: 27upx;
  237. }
  238. .my_phone{
  239. display: flex;
  240. align-items: center;
  241. img{
  242. width: 24upx;
  243. height: 33upx;
  244. margin-right: 30upx;
  245. }
  246. font-size: 31upx;
  247. line-height: 1;
  248. }
  249. }
  250. }
  251. }
  252. .my_gn{
  253. background: #fff;
  254. width: calc(100vw - 40upx);
  255. position: relative;
  256. z-index: 2;
  257. margin: -50upx auto 20upx;
  258. height: 253upx;
  259. box-sizing: border-box;
  260. background: #fff;
  261. border-radius: 6upx;
  262. display: flex;
  263. padding: 0 35upx;
  264. justify-content: space-between;
  265. align-items: center;
  266. .my_gn_item{
  267. .img{
  268. width: 103upx;
  269. height: 103upx;
  270. margin-bottom: 27upx;
  271. }
  272. p{
  273. color: #343434;
  274. font-size: 31upx;
  275. font-weight: 400;
  276. text-align: center;
  277. line-height: 1;
  278. }
  279. }
  280. }
  281. .my_yj{
  282. // width: calc(100vw - 40upx);
  283. box-sizing: border-box;
  284. // margin: 0 auto 20upx;
  285. margin-top: 22upx;
  286. height: 112upx;
  287. display: flex;
  288. align-items: center;
  289. justify-content: space-between;
  290. padding: 0 34upx;
  291. background: #fff;
  292. position: relative;
  293. button{
  294. width: 100%;
  295. height: 100%;
  296. position: absolute;
  297. left: 0;
  298. top: 0;
  299. background: transparent;
  300. &::after{
  301. border: none!important;
  302. }
  303. }
  304. .my_yj_left{
  305. display: flex;
  306. align-items: center;
  307. .img{
  308. width: 55upx;
  309. height: 55upx;
  310. margin-right: 34upx;
  311. }
  312. span{
  313. color: #343434;
  314. font-weight: 400;
  315. font-size: 31upx;
  316. }
  317. }
  318. .my_yj_rig{
  319. width: 46upx;
  320. height: 46upx;
  321. .img{
  322. width: 100%;
  323. height: 100%;
  324. }
  325. }
  326. }
  327. }
  328. .imgse{
  329. width: 56upx !important;
  330. height: 47upx !important;
  331. }
  332. </style>