mine.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  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" v-if="msg.name">{{msg.name?msg.name:''}}</text>
  9. <text class="number" v-if="msg.account">账号 {{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 v-if="msg.contactsMobile">{{msg.contactsMobile}}</text>
  18. <text v-if="msg.mobile">{{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. <view style="padding-bottom: 220rpx;"></view>
  82. <tabar checked="my"></tabar>
  83. </view>
  84. </template>
  85. <script>
  86. let that
  87. import tabar from "@/componet/tabbar/tabbar.vue"
  88. export default {
  89. components: {
  90. tabar
  91. },
  92. data() {
  93. return {
  94. keywords: '',
  95. wagesheight: '',
  96. state: '',
  97. msg:''
  98. }
  99. },
  100. onLoad() {
  101. this.state = this.$store.state.admin
  102. that = this
  103. uni.getSystemInfo({
  104. success: function(res) {
  105. console.log(res.safeArea.bottom); // print 610
  106. let bottom = res.safeArea.bottom
  107. let height = res.safeArea.height
  108. let cacl = bottom - height
  109. that.wagesheight = cacl
  110. console.log(that.wagesheight); // print 292
  111. }
  112. })
  113. this.init()
  114. },
  115. onshow(){
  116. this.init()
  117. },
  118. methods: {
  119. init(){
  120. uni.showLoading()
  121. if(this.state==0){
  122. uni.$u.http.get('/api/Account',{
  123. custom: {
  124. auth: true
  125. }
  126. }).then((res) => {
  127. uni.hideLoading()
  128. this.msg=res
  129. }).catch((err) => {
  130. uni.hideLoading()
  131. console.log(err)
  132. })
  133. }else if(this.state==1){
  134. uni.$u.http.get('/api/Supplier',{
  135. custom: {
  136. auth: true
  137. }
  138. }).then((res) => {
  139. uni.hideLoading()
  140. this.msg=res
  141. }).catch((err) => {
  142. uni.hideLoading()
  143. console.log(err)
  144. })
  145. }
  146. },
  147. checkIdentifyPic(){
  148. uni.navigateTo({
  149. url:"/pages/alldeatil/identifypic?pic="+JSON.stringify(this.msg.identifyPicList)
  150. })
  151. },
  152. checkProxy(){
  153. uni.navigateTo({
  154. url:"/pages/alldeatil/proxypic?pic="+JSON.stringify(this.msg.proxyFileList)
  155. })
  156. },
  157. loginOut() {
  158. uni.showModal({
  159. title: '是否确认退出?',
  160. success: function(res) {
  161. if (res.confirm) {
  162. uni.setStorageSync('token', '')
  163. uni.reLaunch({
  164. url: "/pages/login/login"
  165. })
  166. } else if (res.cancel) {
  167. }
  168. }
  169. })
  170. },
  171. checkPwd() {
  172. uni.navigateTo({
  173. url: "/pages/bsinessadmin/setpassword?account="+this.msg.account
  174. })
  175. }
  176. }
  177. }
  178. </script>
  179. <style lang="scss">
  180. page {
  181. background-color: #F6F6F6 !important;
  182. }
  183. .minehead {
  184. width: 100%;
  185. height: 367rpx;
  186. position: relative;
  187. background-color: #FAECD3;
  188. // background-image: url("@/static/img/minebg.png");
  189. .minemsg {
  190. position: absolute;
  191. left: 0;
  192. right: 0;
  193. bottom: 0;
  194. margin: 0 auto;
  195. background-color: #fff;
  196. bottom: -176rpx;
  197. width: 690rpx;
  198. height: 370rpx;
  199. border-radius: 20rpx;
  200. .logbox {
  201. width: 174rpx;
  202. height: 123rpx;
  203. image {
  204. width: 100%;
  205. height: 100%;
  206. }
  207. }
  208. .minename {
  209. padding: 0 45rpx;
  210. padding-top: 74rpx;
  211. }
  212. .nametit {
  213. font-size: 48rpx;
  214. font-weight: 600;
  215. }
  216. .number {
  217. font-size: 30rpx;
  218. color: #68625B;
  219. padding-top: 30rpx;
  220. }
  221. .callphone {
  222. width: 622rpx;
  223. height: 80rpx;
  224. background: url("@/static/img/mynumbg.png") no-repeat;
  225. background-size: 100%;
  226. text-align: center;
  227. line-height: 80rpx;
  228. font-size: 30rpx;
  229. margin: 0 auto;
  230. margin-top: 50rpx;
  231. padding: 0 30rpx;
  232. box-sizing: border-box;
  233. display: flex;
  234. justify-content: space-between;
  235. }
  236. }
  237. }
  238. .choosebox {
  239. margin: 0 auto;
  240. margin-top: 215rpx;
  241. .chooselist {
  242. margin: 0 auto;
  243. margin-bottom: 20rpx;
  244. width: 690rpx;
  245. height: 100rpx;
  246. background-color: #fff;
  247. border-radius: 20rpx;
  248. display: flex;
  249. justify-content: space-between;
  250. align-items: center;
  251. padding: 0 30rpx;
  252. box-sizing: border-box;
  253. .iconbox {
  254. width: 42rpx;
  255. height: 42rpx;
  256. image {
  257. width: 100%;
  258. height: 100%;
  259. }
  260. }
  261. }
  262. }
  263. .logininbtn {
  264. margin: 0 auto;
  265. // position: fixed;
  266. // left: 0;
  267. // right: 0;
  268. // bottom: 180rpx;
  269. margin-top:100rpx;
  270. // : 220rpx;
  271. width: 690rpx;
  272. border-radius: 20rpx;
  273. background: linear-gradient(to right,#FFCC80,#CC984A);
  274. box-shadow: 0 10rpx 20rpx 1rpx rgba(179, 116, 5, 0.2);
  275. height: 100rpx;
  276. text-align: center;
  277. color:#fff;
  278. line-height: 100rpx;
  279. }
  280. </style>