用工小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

214 lines
6.4 KiB

7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
7 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
  1. <template>
  2. <view class="u-page">
  3. <view class="se-pt-50 se-pb-120 se-px-40 se-bgc-orange se-c-white se-pos">
  4. <view class="se-flex">
  5. <image :src="headImage" class="se-br-p-50 se-bgc-f5 se-w-100 se-h-100" mode=""></image>
  6. <view class="se-ml-20 se-flex se-flex-v-sa se-flex-ai-fs">
  7. <view class="se-flex">
  8. <text class="se-fw-6 se-fs-30">{{nickName}}</text>
  9. <view class="se-flex se-flex-ai-c se-ml-20" @click="editInfo">
  10. <image class="se-a-25 se-mr-10" src="@/static/image/pencil.png" mode=""></image>
  11. <text class="se-fs-22">修改资料</text>
  12. </view>
  13. </view>
  14. <view class="se-fs-24 se-display-ib">
  15. <text>手机号:</text>
  16. <text class="se-ml-20">{{phone}}</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="se-pos-cb se-flex se-flex-h-sb se-w-vw-82 se-br-10 se-bgc-white se-py-30 se-px-30"
  21. style="bottom: -80rpx;">
  22. <view class="se-flex se-flex-h-fs se-b-r se-flex-1">
  23. <view class="se-pos se-w-130">
  24. <image src="@/static/image/wall.png" class="se-w-120 se-h-120" mode=""></image>
  25. <view @click="onNavigateTo()"
  26. class="se-w-80 se-ta-c se-b-orange se-br-30 se-bgc-orange se-py-5 se-px-22 se-c-white se-fs-20 se-pos-cb">
  27. 钱包
  28. </view>
  29. </view>
  30. <view class="se-flex se-flex-v-sa se-flex-ai-fs">
  31. <view class="se-flex se-fs-28 se-c-black">
  32. 我的余额
  33. </view>
  34. <view class="se-fs-30 se-display-ib se-pt-20" style="color: #DC2828;">
  35. {{myMoney}}
  36. </view>
  37. </view>
  38. </view>
  39. <view class="se-flex se-flex-h-fe se-flex-1 se-pr-20">
  40. <image src="@/static/image/piao.png" class="se-w-120 se-h-120" mode=""></image>
  41. <view class="se-flex se-flex-v-sa se-flex-ai-fs ">
  42. <view class="se-flex se-fs-28 se-c-black">
  43. 金额记录
  44. </view>
  45. <view class="se-fs-30 se-display-ib se-pt-20" @click="onRecord()">
  46. <view class="se-b-orange se-fs-22 se-c-orange se-br-30 se-py-5 se-px-20">
  47. 去查看
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <view class="se-px-40 se-py-30 se-mt-80">
  55. <u-swiper height="200rpx" style="background-color: #f5f5f5;height: 200rpx;" :indicator="true"
  56. :list="swiperList" keyName="image" @change="change" @click="click"></u-swiper>
  57. <!-- <u-swiper :height="100" :list="list" @click="swiperClick"></u-swiper> -->
  58. <!-- <image class="se-h-200 se-w-p-100" src="@/static/image/59.png" mode=""></image> -->
  59. </view>
  60. <view class="se-p-20 se-mx-40 se-mt-20 se-br-20 se-bgc-white">
  61. <view class="se-flex se-flex-ai-c se-pb-20">
  62. <view class="line-orange se-ml-10"></view>
  63. <view class="se-ml-10 se-fs-32 se-c-black se-fw-5">
  64. 我的服务
  65. </view>
  66. </view>
  67. <view class="se-grid">
  68. <view class="se-flex-v-c se-mb-20 se-mt-20 se-cursor-p" @click="onCustomerService()">
  69. <view class="se-w-80 se-h-80 se-flex se-flex-v-c">
  70. <image class="se-a-50" src="@/static/image/setting.png" mode=""></image>
  71. </view>
  72. <text class="se-h-60 se-lh-60 se-c-33 se-fs-26 se-ta-c se-mt-10 se-toe-2">联系客服</text>
  73. </view>
  74. <view class="se-flex-v-c se-mb-20 se-mt-20 se-cursor-p" @click="onSystem()">
  75. <view class="se-w-80 se-h-80 se-flex se-flex-v-c">
  76. <image class="se-a-50" src="@/static/image/setting.png" mode=""></image>
  77. </view>
  78. <text class="se-h-60 se-lh-60 se-c-33 se-fs-26 se-ta-c se-mt-10 se-toe-2">系统设置</text>
  79. </view>
  80. <view class="se-flex-v-c se-mb-20 se-mt-20 se-cursor-p" @click="onFeedback()">
  81. <view class="se-w-80 se-h-80 se-flex se-flex-v-c">
  82. <image class="se-a-50" src="@/static/image/setting.png" mode=""></image>
  83. </view>
  84. <text class="se-h-60 se-lh-60 se-c-33 se-fs-26 se-ta-c se-mt-10 se-toe-2">帮助与反馈</text>
  85. </view>
  86. <view class="se-flex-v-c se-mb-20 se-mt-20 se-cursor-p" @click="onVersion()">
  87. <view class="se-w-80 se-h-80 se-flex se-flex-v-c">
  88. <image class="se-a-50" src="@/static/image/setting.png" mode=""></image>
  89. </view>
  90. <text class="se-h-60 se-lh-60 se-c-33 se-fs-26 se-ta-c se-mt-10 se-toe-2">关于本程序</text>
  91. </view>
  92. </view>
  93. </view>
  94. </view>
  95. </template>
  96. <script>
  97. import {
  98. userInfo,
  99. bannerList
  100. } from "@/common/api.js"
  101. export default {
  102. data() {
  103. return {
  104. swiperList: [],
  105. list: [
  106. '@/static/image/59.png'
  107. ],
  108. id: "",
  109. headImage: "",
  110. myMoney: 0,
  111. nickName: "",
  112. phone: "",
  113. worker: {},
  114. boss: {},
  115. company: {},
  116. }
  117. },
  118. mounted() {
  119. },
  120. onShow() {
  121. this.onUserInfo()
  122. this.onBannerList()
  123. },
  124. methods: {
  125. // 编辑信息
  126. editInfo() {
  127. uni.navigateTo({
  128. url: "/pages/login/index"
  129. })
  130. },
  131. onBannerList() {
  132. bannerList({}).then(response => {
  133. console.info("banner", response)
  134. this.swiperList = response.result[1]
  135. }).catch(error => {
  136. })
  137. },
  138. onUserInfo() {
  139. let params = {}
  140. userInfo(params).then(response => {
  141. console.info("userInfo", response)
  142. this.id = response.result.id
  143. this.headImage = response.result.headImage
  144. this.myMoney = response.result.myMoney ? response.result.myMoney : 0
  145. this.nickName = response.result.nickName ? response.result.nickName : "微信昵称"
  146. this.phone = response.result.phone ? response.result.phone : ""
  147. this.worker = response.result.worker ? response.result.worker : ""
  148. this.boss = response.result.boss ? response.result.boss : ""
  149. this.company = response.result.company ? response.result.company : ""
  150. }).catch(error => {
  151. })
  152. },
  153. swiperClick(event) {
  154. console.info(event);
  155. },
  156. onNavigateTo() {
  157. uni.navigateTo({
  158. url: "/pages_subpack/wallet/index"
  159. })
  160. },
  161. onRecord() {
  162. uni.navigateTo({
  163. url: "/pages_subpack/record/index"
  164. })
  165. },
  166. onSystem() {
  167. uni.navigateTo({
  168. url: "/pages_subpack/system/index"
  169. })
  170. },
  171. onFeedback() {
  172. uni.navigateTo({
  173. url: "/pages_subpack/feedback/index"
  174. })
  175. },
  176. onVersion() {
  177. uni.navigateTo({
  178. url: "/pages_subpack/version/index"
  179. })
  180. },
  181. onCustomerService() {
  182. uni.showModal({
  183. title: '联系客服',
  184. content: '确定拨打客服电话?',
  185. success: function(res) {
  186. if (res.confirm) {
  187. console.log('用户点击确定');
  188. } else if (res.cancel) {
  189. console.log('用户点击取消');
  190. }
  191. }
  192. });
  193. }
  194. }
  195. }
  196. </script>
  197. <style>
  198. page {
  199. background-color: #f5f5f5 !important;
  200. }
  201. .se-grid {
  202. display: grid;
  203. grid-template-columns: 1fr 1fr 1fr 1fr;
  204. gap: 10rpx;
  205. padding-bottom: 4rpx;
  206. }
  207. </style>