mine.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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. onshow(){
  115. this.init()
  116. },
  117. methods: {
  118. init(){
  119. uni.showLoading()
  120. if(this.state==0){
  121. uni.$u.http.get('/api/Account',{
  122. custom: {
  123. auth: true
  124. }
  125. }).then((res) => {
  126. uni.hideLoading()
  127. this.msg=res
  128. }).catch((err) => {
  129. uni.hideLoading()
  130. console.log(err)
  131. })
  132. }else if(this.state==1){
  133. uni.$u.http.get('/api/Supplier',{
  134. custom: {
  135. auth: true
  136. }
  137. }).then((res) => {
  138. uni.hideLoading()
  139. this.msg=res
  140. }).catch((err) => {
  141. uni.hideLoading()
  142. console.log(err)
  143. })
  144. }
  145. },
  146. checkIdentifyPic(){
  147. uni.navigateTo({
  148. url:"/pages/alldeatil/identifypic?pic="+JSON.stringify(this.msg.identifyPicList)
  149. })
  150. },
  151. checkProxy(){
  152. uni.navigateTo({
  153. url:"/pages/alldeatil/proxypic?pic="+JSON.stringify(this.msg.proxyFileList)
  154. })
  155. },
  156. loginOut() {
  157. uni.showModal({
  158. title: '是否确认退出?',
  159. success: function(res) {
  160. if (res.confirm) {
  161. uni.setStorageSync('token', '')
  162. uni.navigateTo({
  163. url: "/pages/login/login"
  164. })
  165. } else if (res.cancel) {
  166. }
  167. }
  168. })
  169. },
  170. checkPwd() {
  171. uni.navigateTo({
  172. url: "/pages/bsinessadmin/setpassword"
  173. })
  174. }
  175. }
  176. }
  177. </script>
  178. <style lang="scss">
  179. page {
  180. background-color: #F6F6F6 !important;
  181. }
  182. .minehead {
  183. width: 100%;
  184. height: 367rpx;
  185. position: relative;
  186. background-color: #FAECD3;
  187. // background-image: url("@/static/img/minebg.png");
  188. .minemsg {
  189. position: absolute;
  190. left: 0;
  191. right: 0;
  192. bottom: 0;
  193. margin: 0 auto;
  194. background-color: #fff;
  195. bottom: -176rpx;
  196. width: 690rpx;
  197. height: 370rpx;
  198. border-radius: 20rpx;
  199. .logbox {
  200. width: 174rpx;
  201. height: 123rpx;
  202. image {
  203. width: 100%;
  204. height: 100%;
  205. }
  206. }
  207. .minename {
  208. padding: 0 45rpx;
  209. padding-top: 74rpx;
  210. }
  211. .nametit {
  212. font-size: 48rpx;
  213. font-weight: 600;
  214. }
  215. .number {
  216. font-size: 30rpx;
  217. color: #68625B;
  218. padding-top: 30rpx;
  219. }
  220. .callphone {
  221. width: 622rpx;
  222. height: 80rpx;
  223. background: url("@/static/img/mynumbg.png") no-repeat;
  224. background-size: 100%;
  225. text-align: center;
  226. line-height: 80rpx;
  227. font-size: 30rpx;
  228. margin: 0 auto;
  229. margin-top: 50rpx;
  230. padding: 0 30rpx;
  231. box-sizing: border-box;
  232. display: flex;
  233. justify-content: space-between;
  234. }
  235. }
  236. }
  237. .choosebox {
  238. margin: 0 auto;
  239. margin-top: 215rpx;
  240. .chooselist {
  241. margin: 0 auto;
  242. margin-bottom: 20rpx;
  243. width: 690rpx;
  244. height: 100rpx;
  245. background-color: #fff;
  246. border-radius: 20rpx;
  247. display: flex;
  248. justify-content: space-between;
  249. align-items: center;
  250. padding: 0 30rpx;
  251. box-sizing: border-box;
  252. .iconbox {
  253. width: 42rpx;
  254. height: 42rpx;
  255. image {
  256. width: 100%;
  257. height: 100%;
  258. }
  259. }
  260. }
  261. }
  262. .logininbtn {
  263. margin: 0 auto;
  264. position: fixed;
  265. left: 0;
  266. right: 0;
  267. bottom: 180rpx;
  268. // margin-top: 550rpx;
  269. width: 690rpx;
  270. border-radius: 20rpx;
  271. border: 1rpx solid #BEBDBB;
  272. height: 100rpx;
  273. text-align: center;
  274. color: #BEBDBB;
  275. line-height: 100rpx;
  276. }
  277. </style>