index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <template>
  2. <view class="content">
  3. <view class="head">
  4. <view class="head_image">
  5. <!-- #ifdef MP-WEIXIN -->
  6. <button open-type="chooseAvatar" v-if="token" @chooseavatar="onChooseAvatar">
  7. <image style="width: 90rpx;height: 90rpx;border-radius: 50%"
  8. :src="avatar?avatar:'../../static/logo.png'"></image>
  9. </button>
  10. <image v-if="!token" @click="bindlogin" style="width: 90rpx;height: 90rpx;border-radius: 50%"
  11. src="../../static/logo.png"></image>
  12. <!-- #endif -->
  13. <!-- #ifndef MP-WEIXIN -->
  14. <image @click="avatar?goLogin():''" style="width: 90rpx;height: 90rpx;border-radius: 50%"
  15. :src="avatar?avatar:'../../static/logo.png'"></image>
  16. <!-- #endif -->
  17. <view class="lovip" v-if="isVip">
  18. <image src="../../static/images/my/vip.png" style="width: 88rpx;height: 32rpx;top: -30rpx;"></image>
  19. </view>
  20. </view>
  21. <view class="head_name">
  22. <view class="name" v-if="token" @click="goShop('/pages/my/updateNickName')">{{ userName }}</view>
  23. <view class="name" v-if="!token" @click="bindlogin">登录</view>
  24. </view>
  25. </view>
  26. <view class="margin-lr padding-lr-sm padding-tb radius flex justify-between" v-if="XCXIsSelect=='是'">
  27. <view class="text-center text-black" @click="goShop('/my/coupon/index')">
  28. <view class="text-lg text-bold">{{msgData.countCoupon}}</view>
  29. <view>外卖优惠券</view>
  30. </view>
  31. <view class="text-center text-black" @click="goShop('/my/wallet/index')">
  32. <view class="text-lg text-bold">{{msgData.userMoney}}</view>
  33. <view>我的余额</view>
  34. </view>
  35. <view class="text-center text-black" @click="goShop('/my/task/index')">
  36. <view class="text-lg text-bold">{{msgData.userIntegral}}</view>
  37. <view>我的积分</view>
  38. </view>
  39. </view>
  40. <view class="margin-bottom padding-lr" style="position: relative;" v-if="XCXIsSelect=='是'">
  41. <image src="../../static/images/my/bg.png" style="width: 100%;height: 110rpx;" mode=""></image>
  42. <view class="flex justify-between margin-lr padding-tb-sm radius"
  43. style="position: absolute;top: 0;width: 640rpx;">
  44. <image src="../../static/images/my/huiyuan.png" style="width: 70rpx;height: 70rpx;"></image>
  45. <view class="flex-sub margin-left text-lg text-bold" style="line-height: 74rpx;color: #604320;">
  46. 超级会员享特权
  47. </view>
  48. <view v-if="!isVip" class="btn-bg" style="color: #604320;" @click="goNav({url:'/my/vip/index'})">去开通
  49. </view>
  50. <view v-if="isVip" class="btn-bg" style="color: #604320;" @click="goNav({url:'/my/vip/index'})">已开通
  51. </view>
  52. </view>
  53. </view>
  54. <view class="center flex justify-between bg-white margin-top padding-lr padding-tb-lg radius">
  55. <view class="flex justify-between flex-sub padding-right" style="border-right: 2rpx solid #CCCCCC;"
  56. @click="goShop('/my/task/index')">
  57. <view class="">
  58. <view class="text-black text-xl text-bold">每日任务</view>
  59. <view class="text-sm margin-top-xs">每日签到领积分</view>
  60. </view>
  61. <image src="../../static/images/my/renwu.png" mode="" style="width: 88rpx;height: 88rpx;"></image>
  62. </view>
  63. <view class="flex justify-between flex-sub padding-left" @click="goShop('/my/integral/index')">
  64. <view class="">
  65. <view class="text-black text-xl text-bold">积分商城</view>
  66. <view class="text-sm margin-top-xs flex align-center">积分兑换优惠券</view>
  67. </view>
  68. <image src="../../static/images/my/jifen.png" mode="" style="width: 88rpx;height: 88rpx;"></image>
  69. </view>
  70. </view>
  71. <view class="margin padding-lr-sm padding-tb bg-white radius">
  72. <view class="flex justify-between align-center">
  73. <view class="text-lg text-bold text-black">推荐工具</view>
  74. </view>
  75. <view class="flex flex-wrap">
  76. <!-- #ifdef MP-WEIXIN -->
  77. <view class="text-center margin-tb-sm" style="width: 25%;" v-if="XCXIsSelect=='是'">
  78. <button class="btn" open-type="share">
  79. <image src="../../static/images/my/4.png" style="width: 50rpx;height: 48rpx;" mode=""></image>
  80. <view>分享好友</view>
  81. </button>
  82. </view>
  83. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goApplet(shopAppId)"
  84. v-if="shopStatus == 1&&XCXIsSelect=='是'">
  85. <image src="../../static/images/my/1.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  86. </image>
  87. <view class="text-sm">商家入驻</view>
  88. </view>
  89. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/apply/index'})"
  90. v-if="shopStatus != 1&&XCXIsSelect=='是'">
  91. <image src="../../static/images/my/1.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  92. </image>
  93. <view class="text-sm">商家入驻</view>
  94. </view>
  95. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goApplet(qishouAppId)"
  96. v-if="XCXIsSelect=='是'">
  97. <image src="../../static/images/my/11.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  98. </image>
  99. <view class="text-sm">骑手入驻</view>
  100. </view>
  101. <!-- #endif -->
  102. <!-- #ifndef MP-WEIXIN -->
  103. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/apply/index'})"
  104. v-if="shopStatus != 1">
  105. <image src="../../static/images/my/1.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  106. </image>
  107. <view class="text-sm">商家入驻</view>
  108. </view>
  109. <!-- #ifdef APP -->
  110. <view class="text-center margin-tb-sm" style="width: 25%;" @click="shopRuzhu" v-else>
  111. <image src="../../static/images/my/1.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  112. </image>
  113. <view class="text-sm">商家入驻</view>
  114. </view>
  115. <!-- #endif -->
  116. <!-- #endif -->
  117. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/tousu/index'})"
  118. v-if="XCXIsSelect=='是'">
  119. <image src="../../static/images/order/tousu.png" style="width: 55rpx;height: 55rpx;"
  120. mode="scaleToFill"></image>
  121. <view class="text-sm">我的投诉</view>
  122. </view>
  123. <view class="text-center margin-tb-sm" style="width: 25%;"
  124. @click="goNav({url:'/my/myPingJia/myPingJia'})" v-if="XCXIsSelect=='是'">
  125. <image src="../../static/images/order/pingjia.png" style="width: 55rpx;height: 55rpx;"
  126. mode="scaleToFill"></image>
  127. <view class="text-sm">我的评价</view>
  128. </view>
  129. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/helpList/index'})">
  130. <image src="../../static/images/my/12.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  131. </image>
  132. <view class="text-sm">帮助中心</view>
  133. </view>
  134. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/msg/index'})"
  135. v-if="XCXIsSelect=='是'">
  136. <image src="../../static/images/my/3.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  137. </image>
  138. <view class="text-sm">消息中心</view>
  139. </view>
  140. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/running/index/index'})"
  141. v-if="XCXIsSelect=='是'">
  142. <image src="../../static/images/my/5.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  143. </image>
  144. <view class="text-sm">同城跑腿</view>
  145. </view>
  146. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/setting/chat'})"
  147. v-if="XCXIsSelect=='是'">
  148. <image src="../../static/images/my/6.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  149. </image>
  150. <view class="text-sm">联系客服</view>
  151. </view>
  152. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/address/index'})">
  153. <image src="../../static/images/my/7.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  154. </image>
  155. <view class="text-sm">地址管理</view>
  156. </view>
  157. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/hongbao/hongbao'})"
  158. v-if="XCXIsSelect=='是'">
  159. <image src="../../static/images/my/9.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  160. </image>
  161. <view class="text-sm">跑腿红包</view>
  162. </view>
  163. <view class="text-center margin-tb-sm" style="width: 25%;position: relative;"
  164. @click="goNav({url:'/my/chat/index'})" v-if="XCXIsSelect=='是'">
  165. <image src="../../static/images/order/kefu.png" style="width: 55rpx;height: 55rpx;"
  166. mode="scaleToFill">
  167. </image>
  168. <view class="text-sm">聊天室</view>
  169. <view v-if="messageCount>0"
  170. style="height: 32rpx;width: 32rpx;border-radius: 100rpx;background-color: red;color: #FFF;text-align: center;position: absolute;top:-10rpx;right: 24rpx;">
  171. {{messageCount}}
  172. </view>
  173. </view>
  174. <view class="text-center margin-tb-sm" style="width: 25%;" @click="goNav({url:'/my/setting/index'})">
  175. <image src="../../static/images/my/8.png" style="width: 55rpx;height: 55rpx;" mode="scaleToFill">
  176. </image>
  177. <view class="text-sm">系统设置</view>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. </template>
  183. <script>
  184. import config from '../../common/config.js'
  185. export default {
  186. data() {
  187. return {
  188. messageCount: 0,
  189. avatar: '',
  190. userName: '',
  191. checkCertification: -1,
  192. arr: [],
  193. showModal: true,
  194. msgData: {
  195. userIntegral: 0,
  196. countCoupon: 0,
  197. userMoney: 0
  198. },
  199. tuiguang: '',
  200. tuiguangImg: '',
  201. token: '',
  202. XCXIsSelect: '否',
  203. shopStatus: '',
  204. isVip: false,
  205. messageCount: 0,
  206. time: '',
  207. qishouAppId: '', //骑手APPID
  208. shopAppId: '', //商户appid
  209. }
  210. },
  211. onLoad() {
  212. let that = this
  213. that.token = that.$queue.getData("token")
  214. that.$Request.get('/app/common/type/248').then(res => { //跑腿师傅端微信小程序APPID 248
  215. if (res.code == 0) {
  216. that.qishouAppId = res.data.value
  217. }
  218. });
  219. that.$Request.get('/app/common/type/305').then(res => { //商户端微信小程序APPID 305
  220. if (res.code == 0) {
  221. that.shopAppId = res.data.value
  222. }
  223. });
  224. that.XCXIsSelect = that.$queue.getData('XCXIsSelect') ? that.$queue.getData('XCXIsSelect') : '是'
  225. that.time = setInterval(function() {
  226. that.messageCount = uni.getStorageSync('messageCount')
  227. if (that.messageCount) {
  228. that.messageCount = that.messageCount
  229. } else {
  230. that.messageCount = 0
  231. }
  232. }, 3000)
  233. that.getZiZhi()
  234. console.log("that.XCXIsSelect___:" + that.XCXIsSelect)
  235. },
  236. onHide() {
  237. clearInterval(this.time)
  238. },
  239. onShow() {
  240. let that = this
  241. // this.avatar = this.$queue.getData('avatar') || '';
  242. // this.userName = this.$queue.getData('userName') || '';
  243. that.token = that.$queue.getData("token")
  244. if (that.token) {
  245. that.getUserInfo();
  246. that.getMsgData()
  247. that.messageCount = uni.getStorageSync('messageCount')
  248. if (that.messageCount) {
  249. that.messageCount = that.messageCount
  250. } else {
  251. that.messageCount = 0
  252. }
  253. } else {
  254. that.token = '';
  255. that.isVip = false
  256. that.userName = ''
  257. that.avatar = ''
  258. that.msgData.userIntegral = 0
  259. that.msgData.countCoupon = 0
  260. that.msgData.userMoney = 0
  261. }
  262. },
  263. onShareAppMessage(res) { //发送给朋友
  264. return {
  265. title: this.tuiguang,
  266. path: '/pages/index/index',
  267. imageUrl: this.tuiguangImg,
  268. }
  269. },
  270. onShareTimeline(res) { //分享到朋友圈
  271. return {
  272. title: this.tuiguang,
  273. path: '/pages/index/index',
  274. imageUrl: this.tuiguangImg,
  275. }
  276. },
  277. methods: {
  278. //微信填写能力获取头像
  279. onChooseAvatar(e) {
  280. console.log(e.detail.avatarUrl)
  281. let that = this;
  282. let token = uni.getStorageSync('token');
  283. uni.showLoading({
  284. title: '上传中...'
  285. });
  286. uni.uploadFile({
  287. // url: config.APIHOST1 + '/alioss/upload', //仅为示例,非真实的接口地址
  288. url: 'https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
  289. filePath: e.detail.avatarUrl,
  290. header: {
  291. token: token
  292. },
  293. name: 'file',
  294. success: uploadFileRes => {
  295. let url = JSON.parse(uploadFileRes.data).data;
  296. that.$Request.postJson(
  297. '/app/user/updateUserImageUrl?avatar=' + url).then(
  298. res => {
  299. uni.hideLoading();
  300. if (res.code === 0) {
  301. that.$queue.showToast(
  302. "更新成功");
  303. that.getUserInfo();
  304. }
  305. });
  306. }
  307. });
  308. },
  309. goLogin() {
  310. let that = this;
  311. var url = null;
  312. let userId = this.$queue.getData('userId');
  313. if (!userId) {
  314. this.bindlogin();
  315. return;
  316. }
  317. uni.showActionSheet({
  318. // itemList按钮的文字接受的是数组
  319. itemList: ["查看头像", "从相册选择图片"],
  320. success(e) {
  321. var index = e.tapIndex
  322. if (index === 0) {
  323. // 用户点击了预览当前图片
  324. // 可以自己实现当前头像链接的读取
  325. let url = that.avatar;
  326. let arr = []
  327. arr.push(url)
  328. uni.previewImage({
  329. // 预览功能图片也必须是数组的
  330. urls: arr
  331. })
  332. } else if (index === 1) {
  333. uni.chooseImage({
  334. count: 1, //默认9
  335. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  336. sourceType: ['album'], //从相册选择
  337. success: function(res) {
  338. uni.showLoading({
  339. title: '上传中...'
  340. });
  341. let token = uni.getStorageSync('token');
  342. uni.uploadFile({
  343. // url: config.APIHOST1 + '/alioss/upload', //仅为示例,非真实的接口地址
  344. url: 'https://mxys.chuanghai-tech.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
  345. filePath: res.tempFilePaths[0],
  346. header: {
  347. token: token
  348. },
  349. name: 'file',
  350. success: uploadFileRes => {
  351. url = JSON.parse(uploadFileRes.data).data;
  352. that.$Request.postJson(
  353. '/app/user/updateUserImageUrl?avatar=' +
  354. url).then(
  355. res => {
  356. uni.hideLoading();
  357. if (res.code === 0) {
  358. that.$queue.showToast(
  359. "更新成功");
  360. that.getUserInfo();
  361. }
  362. });
  363. }
  364. });
  365. }
  366. });
  367. }
  368. }
  369. })
  370. },
  371. shopRuzhu() {
  372. uni.showToast({
  373. title: '请先下载同城外卖商户端APP',
  374. icon: 'none'
  375. })
  376. },
  377. getMsgData() {
  378. this.$Request.get("/app/userintegral/findUserMessage").then(res => {
  379. if (res.code == 0) {
  380. this.msgData = res.data
  381. }
  382. });
  383. },
  384. // 分享文案和图片
  385. getZiZhi() {
  386. this.$Request.getT('/app/common/type/239').then(res => {
  387. if (res.code === 0) {
  388. this.tuiguang = res.data.value;
  389. }
  390. });
  391. this.$Request.getT('/app/common/type/238').then(res => {
  392. if (res.code === 0) {
  393. this.tuiguangImg = res.data.value;
  394. }
  395. });
  396. },
  397. goSwt(e) {
  398. uni.setStorageSync('current', e)
  399. setTimeout(function() {
  400. uni.switchTab({
  401. url: '/pages/order/index',
  402. })
  403. }, 10)
  404. },
  405. goApplet(e) {
  406. uni.navigateToMiniProgram({
  407. appId: e,
  408. path: 'pages/index/index',
  409. success(res) {
  410. // 打开成功
  411. }
  412. })
  413. },
  414. goNav(e) {
  415. if (this.token) {
  416. if (e.name == '注册骑手') {
  417. uni.navigateToMiniProgram({
  418. appId: 'wxa59b58efa950ba1f',
  419. path: '/pages/login/login',
  420. extraData: {
  421. 'data1': 'test'
  422. },
  423. success(res) {
  424. // 打开成功
  425. console.log("打开成功")
  426. }
  427. })
  428. } else if (e.name == '分享好友') {
  429. uni.share({
  430. provider: "weixin",
  431. scene: "WXSceneSession",
  432. type: 1,
  433. summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
  434. success: function(res) {
  435. console.log("success:" + JSON.stringify(res));
  436. },
  437. fail: function(err) {
  438. console.log("fail:" + JSON.stringify(err));
  439. }
  440. });
  441. } else {
  442. uni.navigateTo({
  443. url: e.url
  444. })
  445. }
  446. } else {
  447. this.bindlogin();
  448. }
  449. },
  450. goShop(url) {
  451. if (this.token) {
  452. uni.navigateTo({
  453. url
  454. })
  455. } else {
  456. this.bindlogin();
  457. }
  458. },
  459. getUserInfo() {
  460. this.$Request.getT('/app/user/selectUserMessage').then(res => {
  461. console.log(res)
  462. if (res.code == 0) {
  463. if (parseInt(res.data.checkCertification)) {
  464. this.checkCertification = parseInt(res.data.checkCertification)
  465. } else {
  466. this.checkCertification = -1;
  467. }
  468. this.isVip = res.data.isVip
  469. this.shopStatus = res.data.shopStatus
  470. this.$queue.setData("avatar", res.data.avatar ? res.data.avatar :
  471. '../../static/logo.png');
  472. this.$queue.setData("userId", res.data.userId);
  473. this.$queue.setData("phone", res.data.phone);
  474. this.$queue.setData("status", res.data.status);
  475. this.$queue.setData("userName", res.data.userName ? res.data.userName : res
  476. .data.nickName);
  477. this.avatar = res.data.avatar ? res.data.avatar : '../../static/logo.png';
  478. this.userName = res.data.userName ? res.data.userName : res.data.nickName
  479. }
  480. });
  481. },
  482. bindlogin() {
  483. if (!this.token) {
  484. uni.navigateTo({
  485. url: '/pages/public/login'
  486. })
  487. }
  488. },
  489. bindTo(name) {
  490. console.log(name)
  491. if (this.token) {
  492. if (name == '我的红包') {
  493. uni.navigateTo({
  494. url: '/pages/my/hongbao/hongbao'
  495. })
  496. } else if (name == '注册骑手') {
  497. uni.navigateToMiniProgram({
  498. appId: 'wx5ed22ce813e47796',
  499. path: '/pages/index/index',
  500. extraData: {
  501. 'data1': 'test'
  502. },
  503. success(res) {
  504. // 打开成功
  505. console.log("打开成功")
  506. }
  507. })
  508. } else if (name == '意见反馈') {
  509. uni.navigateTo({
  510. url: '/pageA/feedback/feedback'
  511. })
  512. } else if (name == '联系客服') {
  513. uni.navigateTo({
  514. url: '/pageA/kefu/kefu'
  515. })
  516. } else if (name == '系统设置') {
  517. uni.navigateTo({
  518. url: '/pages/my/set/set'
  519. })
  520. } else if (name == '地址管理') {
  521. uni.navigateTo({
  522. url: '/pageA/address/address'
  523. })
  524. }
  525. } else {
  526. this.bindlogin();
  527. }
  528. },
  529. bindapprove() {
  530. if (this.token) {
  531. uni.navigateTo({
  532. url: '/pages/my/approve/approve'
  533. })
  534. } else {
  535. this.bindlogin();
  536. }
  537. },
  538. binduser() {
  539. if (this.token) {
  540. // uni.navigateTo({
  541. // url: '/pages/my/userphone/userphone'
  542. // })
  543. } else {
  544. this.bindlogin();
  545. }
  546. }
  547. }
  548. }
  549. </script>
  550. <style>
  551. button::after {
  552. border: none;
  553. background-color: none;
  554. }
  555. button {
  556. position: relative;
  557. display: block;
  558. margin-left: auto;
  559. margin-right: auto;
  560. padding-left: 0px;
  561. padding-right: 0px;
  562. box-sizing: border-box;
  563. text-decoration: none;
  564. line-height: 1.35;
  565. overflow: hidden;
  566. color: #666666;
  567. /* background-color: #fff; */
  568. background-color: rgba(255, 255, 255, 0) !important;
  569. width: 100%;
  570. height: 100%;
  571. }
  572. .btn-bg {
  573. width: 64px;
  574. height: 28px;
  575. background: linear-gradient(90deg, #CDA26E 0%, #DCB78A 100%);
  576. border-radius: 28px;
  577. text-align: center;
  578. line-height: 28px;
  579. margin-top: 10upx;
  580. color: '#604320'
  581. }
  582. body {
  583. background: #F5F5F5;
  584. }
  585. /* #ifndef MP-WEIXIN */
  586. page {
  587. background: #F2EDED;
  588. }
  589. /* #endif */
  590. .content {
  591. width: 100%;
  592. }
  593. .btn {
  594. font-size: 24upx;
  595. /* width: 95%; */
  596. text-align: center;
  597. background: #FFFFFF;
  598. margin-top: 6rpx;
  599. }
  600. .head {
  601. /* width: 100%; */
  602. /* height: 200rpx; */
  603. display: flex;
  604. align-items: center;
  605. padding: 30rpx;
  606. border-radius: 16rpx;
  607. background-image: linear-gradient(#FEFBDA, #F7F7F7);
  608. }
  609. .head_image {}
  610. .head_image>image {
  611. width: 90rpx;
  612. height: 90rpx;
  613. border-radius: 50%
  614. }
  615. .head_name {
  616. margin-left: 10rpx;
  617. }
  618. .name {
  619. font-size: 38rpx;
  620. font-weight: bold;
  621. }
  622. .approve {
  623. position: absolute;
  624. top: 100rpx;
  625. font-size: 24rpx;
  626. color: #999999;
  627. }
  628. /* 列表 */
  629. .use_list {
  630. width: 100%;
  631. background: #ffffff;
  632. margin-top: 20rpx;
  633. }
  634. .list_box {
  635. width: 90%;
  636. margin: 0 auto;
  637. display: flex;
  638. height: 110rpx;
  639. }
  640. .box_left {
  641. flex: 1;
  642. display: flex;
  643. justify-content: left;
  644. align-items: center;
  645. }
  646. .box_right {
  647. flex: 1;
  648. display: flex;
  649. justify-content: flex-end;
  650. align-items: center;
  651. color: #808080;
  652. }
  653. .use_name {
  654. margin-left: 30rpx;
  655. font-size: 32rpx;
  656. }
  657. .use_image image {
  658. width: 50rpx;
  659. height: 50rpx;
  660. }
  661. .center {
  662. width: 94%;
  663. /* line-height: 1.5; */
  664. background-color: #FFFFFF;
  665. border-radius: 18rpx;
  666. margin: 0 auto 0;
  667. display: flex;
  668. justify-content: space-between;
  669. }
  670. .header_text2 {
  671. font-size: 24rpx;
  672. font-weight: 500;
  673. color: #999999;
  674. margin-top: 10rpx;
  675. }
  676. .header_text4 {
  677. font-size: 32rpx;
  678. font-weight: bold;
  679. color: #333333;
  680. }
  681. </style>