index.vue 21 KB

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