mine.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <template>
  2. <view class="content">
  3. <view class="minehead">
  4. <view class="minemsg">
  5. <view class="flex2 minename">
  6. <view class="flex5 ">
  7. <text class="nametit">{{msg.realName?msg.realName:''}}</text>
  8. <text class="nametit">{{msg.name?msg.name:''}}</text>
  9. <text class="number">账号 {{msg.account?msg.account:''}}</text>
  10. </view>
  11. <view class="logbox">
  12. <image src="/static/logo.png" mode="aspectFill"></image>
  13. </view>
  14. </view>
  15. <view class="callphone">
  16. <text style="color: #68625B;">联系电话</text>
  17. <text>{{msg.contactsMobile}}</text>
  18. <text>{{msg.mobile}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="choosebox">
  23. <view class="chooselist" v-if="state==1">
  24. <view class="flex1">
  25. <view class="iconbox">
  26. <image src="../../static/icon/contract.png" mode="aspectFill"></image>
  27. </view>
  28. <text style="padding-left: 30rpx;">联系人</text>
  29. </view>
  30. <text>{{msg.contacts}}</text>
  31. </view>
  32. <view class="chooselist" v-if="state==1">
  33. <view class="flex1">
  34. <view class="iconbox">
  35. <image src="../../static/icon/mobile.png" mode="aspectFill"></image>
  36. </view>
  37. <text style="padding-left: 30rpx;">联系电话</text>
  38. </view>
  39. <text>{{msg.contactsMobile}}</text>
  40. </view>
  41. <view class="chooselist" v-if="state==1">
  42. <view class="flex1">
  43. <view class="iconbox">
  44. <image src="../../static/icon/account.png" mode="aspectFill"></image>
  45. </view>
  46. <text style="padding-left: 30rpx;">账号</text>
  47. </view>
  48. <text>{{msg.account}}</text>
  49. </view>
  50. <view class="chooselist" @click="checkPwd">
  51. <view class="flex1">
  52. <view class="iconbox">
  53. <image src="../../static/icon/pwd.png" mode="aspectFill"></image>
  54. </view>
  55. <text style="padding-left: 30rpx;">密码</text>
  56. </view>
  57. <u-icon name="arrow-right" color="rgba(187,188,190)" bold="true"></u-icon>
  58. </view>
  59. <view class="chooselist" v-if="state==1" @click="checkIdentifyPic">
  60. <view class="flex1">
  61. <view class="iconbox">
  62. <image src="../../static/icon/renzheng.png" mode="aspectFill"></image>
  63. </view>
  64. <text style="padding-left: 30rpx;">认证照片</text>
  65. </view>
  66. <u-icon name="arrow-right" color="rgba(187,188,190)" bold="true"></u-icon>
  67. </view>
  68. <view class="chooselist" v-if="state==1" @click="checkProxy">
  69. <view class="flex1">
  70. <view class="iconbox">
  71. <image src="../../static/icon/shouquan.png" mode="aspectFill"></image>
  72. </view>
  73. <text style="padding-left: 30rpx;">授权委托书</text>
  74. </view>
  75. <u-icon name="arrow-right" color="rgba(187,188,190)" bold="true"></u-icon>
  76. </view>
  77. </view>
  78. <view class="logininbtn" @click="loginOut">
  79. <text>退出登录</text>
  80. </view>
  81. <tabar checked="my"></tabar>
  82. </view>
  83. </template>
  84. <script>
  85. let that
  86. import tabar from "@/componet/tabbar/tabbar.vue"
  87. export default {
  88. components: {
  89. tabar
  90. },
  91. data() {
  92. return {
  93. keywords: '',
  94. wagesheight: '',
  95. state: '',
  96. msg:''
  97. }
  98. },
  99. onLoad() {
  100. this.state = this.$store.state.admin
  101. that = this
  102. uni.getSystemInfo({
  103. success: function(res) {
  104. console.log(res.safeArea.bottom); // print 610
  105. let bottom = res.safeArea.bottom
  106. let height = res.safeArea.height
  107. let cacl = bottom - height
  108. that.wagesheight = cacl
  109. console.log(that.wagesheight); // print 292
  110. }
  111. })
  112. this.init()
  113. },
  114. methods: {
  115. init(){
  116. uni.showLoading()
  117. if(this.state==0){
  118. uni.$u.http.get('/api/Account',{
  119. custom: {
  120. auth: true
  121. }
  122. }).then((res) => {
  123. uni.hideLoading()
  124. this.msg=res
  125. }).catch((err) => {
  126. uni.hideLoading()
  127. console.log(err)
  128. })
  129. }else if(this.state==1){
  130. uni.$u.http.get('/api/Supplier',{
  131. custom: {
  132. auth: true
  133. }
  134. }).then((res) => {
  135. uni.hideLoading()
  136. this.msg=res
  137. }).catch((err) => {
  138. uni.hideLoading()
  139. console.log(err)
  140. })
  141. }
  142. },
  143. checkIdentifyPic(){
  144. uni.navigateTo({
  145. url:"/pages/alldeatil/identifypic?pic="+JSON.stringify(this.msg.identifyPicList)
  146. })
  147. },
  148. checkProxy(){
  149. uni.navigateTo({
  150. url:"/pages/alldeatil/proxypic?pic="+JSON.stringify(this.msg.proxyFileList)
  151. })
  152. },
  153. loginOut() {
  154. uni.showModal({
  155. title: '是否确认退出?',
  156. success: function(res) {
  157. if (res.confirm) {
  158. uni.setStorageSync('token', '')
  159. uni.navigateTo({
  160. url: "/pages/login/login"
  161. })
  162. } else if (res.cancel) {
  163. }
  164. }
  165. })
  166. },
  167. checkPwd() {
  168. uni.navigateTo({
  169. url: "/pages/bsinessadmin/setpassword"
  170. })
  171. }
  172. }
  173. }
  174. </script>
  175. <style lang="scss">
  176. page {
  177. background-color: #F6F6F6 !important;
  178. }
  179. .minehead {
  180. width: 100%;
  181. height: 367rpx;
  182. position: relative;
  183. background-color: #FAECD3;
  184. // background-image: url("@/static/img/minebg.png");
  185. .minemsg {
  186. position: absolute;
  187. left: 0;
  188. right: 0;
  189. bottom: 0;
  190. margin: 0 auto;
  191. background-color: #fff;
  192. bottom: -176rpx;
  193. width: 690rpx;
  194. height: 370rpx;
  195. border-radius: 20rpx;
  196. .logbox {
  197. width: 174rpx;
  198. height: 123rpx;
  199. image {
  200. width: 100%;
  201. height: 100%;
  202. }
  203. }
  204. .minename {
  205. padding: 0 45rpx;
  206. padding-top: 74rpx;
  207. }
  208. .nametit {
  209. font-size: 48rpx;
  210. font-weight: 600;
  211. }
  212. .number {
  213. font-size: 30rpx;
  214. color: #68625B;
  215. padding-top: 30rpx;
  216. }
  217. .callphone {
  218. width: 622rpx;
  219. height: 80rpx;
  220. background: url("@/static/img/mynumbg.png") no-repeat;
  221. background-size: 100%;
  222. text-align: center;
  223. line-height: 80rpx;
  224. font-size: 30rpx;
  225. margin: 0 auto;
  226. margin-top: 50rpx;
  227. padding: 0 30rpx;
  228. box-sizing: border-box;
  229. display: flex;
  230. justify-content: space-between;
  231. }
  232. }
  233. }
  234. .choosebox {
  235. margin: 0 auto;
  236. margin-top: 215rpx;
  237. .chooselist {
  238. margin: 0 auto;
  239. margin-bottom: 20rpx;
  240. width: 690rpx;
  241. height: 100rpx;
  242. background-color: #fff;
  243. border-radius: 20rpx;
  244. display: flex;
  245. justify-content: space-between;
  246. align-items: center;
  247. padding: 0 30rpx;
  248. box-sizing: border-box;
  249. .iconbox {
  250. width: 42rpx;
  251. height: 42rpx;
  252. image {
  253. width: 100%;
  254. height: 100%;
  255. }
  256. }
  257. }
  258. }
  259. .logininbtn {
  260. margin: 0 auto;
  261. position: fixed;
  262. left: 0;
  263. right: 0;
  264. bottom: 180rpx;
  265. // margin-top: 550rpx;
  266. width: 690rpx;
  267. border-radius: 20rpx;
  268. border: 1rpx solid #BEBDBB;
  269. height: 100rpx;
  270. text-align: center;
  271. color: #BEBDBB;
  272. line-height: 100rpx;
  273. }
  274. </style>