index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733
  1. <template>
  2. <view>
  3. <form @submit="formSubmit">
  4. <view class='personal-data' :style="colorStyle">
  5. <view class='list'>
  6. <view class="item avatar-area" >
  7. <view class="avater_button_view">
  8. <button class="avater_button" open-type="chooseAvatar" @chooseavatar="chooseavatar">
  9. <u-avatar :src="userInfo.avatar" style="margin: auto;" size="82" />
  10. </button>
  11. </view>
  12. <!-- <u-avatar :src="userInfo.avatar" style="margin: auto;" size="82" @click="albumClick" />-->
  13. <text class="help_info" selectable="false" space="false" decode="false">
  14. 点击修改头像
  15. </text>
  16. </view>
  17. <view class='item acea-row row-between-wrapper'>
  18. <view>昵称</view>
  19. <view class='input'>
  20. <!-- <text>{{ userInfo.realName }}</text> -->
  21. <input type="nickname" name='name' :value='userInfo.name' />
  22. </view>
  23. </view>
  24. <view class='item acea-row row-between-wrapper'>
  25. <view>性别</view>
  26. <view class='input'>
  27. <radio-group style="height: 39rpx;line-height: 39rpx;" name="sex">
  28. <label style="margin-right: 30rpx;">
  29. <radio style="margin-right: 10rpx;" value="1" :checked="sex === '1'" /><text>男</text>
  30. </label>
  31. <label>
  32. <radio style="margin-right: 10rpx;" value="0" :checked="sex === '0'" /><text>女</text>
  33. </label>
  34. </radio-group>
  35. </view>
  36. </view>
  37. <view class='item acea-row row-between-wrapper'>
  38. <view>手机号码</view>
  39. <!-- <navigator url="/pages/users/user_phone/index" hover-class="none" class=" input acea-row row-between-wrapper" v-if="!userInfo.phone">-->
  40. <!-- {{ $t(`点击绑定手机号`) }}<text class=" iconfont icon-xiangyou"></text>-->
  41. <!-- </navigator>-->
  42. <view class='input acea-row row-between-wrapper '>
  43. <input type='text' disabled='true' name='phone' :value='userInfo.phone' class='id ' />
  44. <!-- <text class='iconfont icon-suozi'></text>-->
  45. </view>
  46. </view>
  47. <!-- <view class="item acea-row row-between-wrapper" v-if="userInfo.phone">-->
  48. <!-- <view>{{ $t(`更换手机号码`) }}</view>-->
  49. <!-- <navigator url="/pages/users/user_phone/index?type=1" hover-class="none" class="input acea-row row-between-wrapper">-->
  50. <!-- {{ $t(`点击更换手机号码`) }}<text class="iconfont icon-xiangyou"></text>-->
  51. <!-- </navigator>-->
  52. <!-- </view>-->
  53. <view class='item acea-row row-between-wrapper' v-if="currentRole == 'leader'">
  54. <view>二维码</view>
  55. <view v-if="userInfo.wxQrcode" class='input acea-row row-between-wrapper'>
  56. <view class="qr-cord-box">
  57. <uni-badge class="uni-badge-left-margin" text="X" absolute="rightTop" size="small" @click="clickBadge">
  58. <image class="image" :src="userInfo.wxQrcode" ></image>
  59. </uni-badge>
  60. </view>
  61. </view>
  62. <view v-else class='input acea-row row-between-wrapper'>
  63. <view class="qr-cord-box flex-col">
  64. <image class="add-file-image " src="../../../static/images/addFile.png" @click="uploadQrCord"></image>
  65. <text>点击上传二维码</text>
  66. </view>
  67. </view>
  68. </view>
  69. <!-- #ifdef APP-PLUS -->
  70. <view class="item acea-row row-between-wrapper" v-if="userInfo.phone">
  71. <view>{{ $t(`密码`) }}</view>
  72. <navigator url="/pages/users/user_pwd_edit/index" hover-class="none" class="input">
  73. {{ $t(`点击修改密码`) }}<text class="iconfont icon-xiangyou"></text>
  74. </navigator>
  75. </view>
  76. <view class="item acea-row row-between-wrapper" @click="initData">
  77. <view>{{ $t(`缓存大小`) }}</view>
  78. <view class="input">
  79. {{ fileSizeString }}<text class="iconfont icon-xiangyou"></text>
  80. </view>
  81. </view>
  82. <view class="item acea-row row-between-wrapper" @click="updateApp">
  83. <view>{{ $t(`当前版本`) }}</view>
  84. <view class="input">
  85. {{ version }}<text class="iconfont icon-xiangyou"></text>
  86. </view>
  87. </view>
  88. <!-- #endif -->
  89. </view>
  90. <button class='modifyBnt' formType="submit">保存</button>
  91. </view>
  92. </form>
  93. <canvas canvas-id="canvas" v-if="canvasStatus"
  94. :style="{ width: canvasWidth + 'px', height: canvasHeight + 'px', position: 'absolute', left: '-100000px', top: '-100000px' }"></canvas>
  95. </view>
  96. </template>
  97. <script>
  98. import {
  99. getUserInfo,
  100. userEdit,
  101. getLogout
  102. } from '@/api/user.js';
  103. import {
  104. switchH5Login
  105. } from '@/api/api.js';
  106. import {
  107. toLogin
  108. } from '@/libs/login.js';
  109. import {
  110. mapState,
  111. mapGetters,
  112. mapMutations
  113. } from "vuex";
  114. import dayjs from "@/plugin/dayjs/dayjs.min.js";
  115. // #ifdef MP
  116. import authorize from '@/components/Authorize';
  117. // #endif
  118. import colors from '@/mixins/color.js';
  119. export default {
  120. components: {
  121. // #ifdef APP-PLUS
  122. appUpdate,
  123. // #endif
  124. // #ifdef MP
  125. authorize
  126. // #endif
  127. },
  128. mixins: [colors],
  129. data () {
  130. return {
  131. currentRole: '',
  132. sex: '1',
  133. userInfo: {},
  134. loginType: 'h5', //app.globalData.loginType
  135. userIndex: 0,
  136. switchUserInfo: [],
  137. isAuto: false, //没有授权的不会自动授权
  138. isShowAuth: false, //是否隐藏授权
  139. canvasWidth: "",
  140. canvasHeight: "",
  141. canvasStatus: false,
  142. fileSizeString: '',
  143. version: '',
  144. array: [{
  145. name: '中文',
  146. value: 'zh_cn'
  147. },
  148. {
  149. name: 'English',
  150. value: 'en_us'
  151. },
  152. {
  153. name: '日本語',
  154. value: 'ja_jp'
  155. },
  156. {
  157. name: 'Français',
  158. value: 'fr_fr'
  159. },
  160. {
  161. name: 'ไทย',
  162. value: 'th_th'
  163. },
  164. {
  165. name: 'Italiano',
  166. value: 'it_it'
  167. },
  168. {
  169. name: 'Монгол',
  170. value: 'mn_mn'
  171. },
  172. {
  173. name: '한국인',
  174. value: 'ko_kr'
  175. },
  176. {
  177. name: 'Tiếng Việt',
  178. value: 'vi_vn'
  179. },
  180. {
  181. name: '中文(繁体)',
  182. value: 'zh_ft'
  183. },
  184. ],
  185. setIndex: 0,
  186. };
  187. },
  188. computed: {
  189. ...mapGetters({
  190. cartNum: 'cartNum',
  191. isLogin: 'isLogin',
  192. newCurrentRole:'newCurrentRole'
  193. })
  194. },
  195. watch: {
  196. isLogin: {
  197. handler: function (newV, oldV) {
  198. if (newV) {
  199. this.getUserInfo();
  200. }
  201. },
  202. deep: true
  203. }
  204. },
  205. onShow: function () {
  206. this.currentRole=this.$store.getters.newCurrentRole;
  207. },
  208. onLoad () {
  209. if (this.isLogin) {
  210. this.getUserInfo();
  211. // #ifdef APP-PLUS
  212. this.formatSize()
  213. // 获取版本号
  214. plus.runtime.getProperty(plus.runtime.appid, (inf) => {
  215. console.log(inf.version)
  216. this.version = inf.version;
  217. });
  218. // #endif
  219. this.setLang();
  220. } else {
  221. toLogin();
  222. }
  223. },
  224. methods: {
  225. chooseavatar(e){
  226. let _this = this;
  227. console.log(e)
  228. this.$util.weixinAvatarUpload(e.detail.avatarUrl,
  229. function (res) {
  230. _this.userInfo.avatar = res.data.link
  231. console.log("头像文件成功+++++++++++++++++++",res)
  232. },
  233. function (err) {
  234. console.log(err)
  235. console.log("头像文件失败+++++++++++++++++++",res)
  236. }
  237. )
  238. },
  239. /**
  240. * 上传微信二维码
  241. */
  242. uploadQrCord(){
  243. let _this = this;
  244. this.$util.uploadImageOne({
  245. name: "file"
  246. }, function(res) {
  247. console.log("上传文件成功+++++++++++++++++++",res.data.link)
  248. _this.userInfo.wxQrcode = res.data.link
  249. });
  250. },
  251. clickBadge(){
  252. this.userInfo.wxQrcode ='';
  253. console.log("点击了XX")
  254. },
  255. // 相册选择图片
  256. albumClick () {
  257. let _this = this;
  258. this.$util.uploadImageOne({
  259. name: "file"
  260. }, function(res) {
  261. console.log("上传文件成功+++++++++++++++++++",res.data.link)
  262. _this.userInfo.avatar = res.data.link
  263. });
  264. },
  265. isNew () {
  266. this.$util.Tips({
  267. title: this.$t(`当前为最新版本`)
  268. });
  269. },
  270. setLang () {
  271. this.array.map((item, i) => {
  272. if (this.$i18n.locale == item.value) {
  273. this.setIndex = i
  274. }
  275. })
  276. },
  277. bindPickerChange (e, item) {
  278. this.setIndex = e.detail.value
  279. this.$i18n.locale = this.array[this.setIndex].value;
  280. uni.setStorageSync('locale', this.array[this.setIndex].value);
  281. },
  282. updateApp () {
  283. this.$refs.appUpdate.update(); //调用子组件 检查更新
  284. },
  285. formatSize () {
  286. let that = this;
  287. plus.cache.calculate(function (size) {
  288. let sizeCache = parseInt(size);
  289. if (sizeCache == 0) {
  290. that.fileSizeString = "0B";
  291. } else if (sizeCache < 1024) {
  292. that.fileSizeString = sizeCache + "B";
  293. } else if (sizeCache < 1048576) {
  294. that.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
  295. } else if (sizeCache < 1073741824) {
  296. that.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
  297. } else {
  298. that.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
  299. }
  300. });
  301. },
  302. initData () {
  303. uni.showModal({
  304. title: this.$t(`清除缓存`),
  305. content: this.$t(`确定清楚本地缓存数据吗`),
  306. success: (res) => {
  307. if (res.confirm) {
  308. this.clearCache()
  309. this.formatSize()
  310. } else if (res.cancel) {
  311. return that.$util.Tips({
  312. title: that.$t(`取消`)
  313. });
  314. }
  315. }
  316. });
  317. },
  318. clearCache () {
  319. let that = this;
  320. let os = plus.os.name;
  321. if (os == 'Android') {
  322. let main = plus.android.runtimeMainActivity();
  323. let sdRoot = main.getCacheDir();
  324. let files = plus.android.invoke(sdRoot, "listFiles");
  325. let len = files.length;
  326. for (let i = 0; i < len; i++) {
  327. let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
  328. plus.io.resolveLocalFileSystemURL(filePath, function (entry) {
  329. if (entry.isDirectory) {
  330. entry.removeRecursively(function (entry) { //递归删除其下的所有文件及子目录
  331. uni.showToast({
  332. title: that.$t(`缓存清理完成`),
  333. duration: 2000
  334. });
  335. that.formatSize(); // 重新计算缓存
  336. }, function (e) {
  337. console.log(e.message)
  338. });
  339. } else {
  340. entry.remove();
  341. }
  342. }, function (e) { });
  343. }
  344. } else { // ios暂时未找到清理缓存的方法,以下是官方提供的方法,但是无效,会报错
  345. plus.cache.clear(function () {
  346. uni.showToast({
  347. title: that.$t(`缓存清理完成`),
  348. duration: 2000
  349. });
  350. that.formatSize();
  351. });
  352. }
  353. },
  354. /**
  355. * 授权回调
  356. */
  357. onLoadFun: function () {
  358. this.getUserInfo();
  359. },
  360. // 授权关闭
  361. authColse: function (e) {
  362. this.isShowAuth = e
  363. },
  364. /**
  365. * 小程序设置
  366. */
  367. Setting: function () {
  368. uni.openSetting({
  369. success: function (res) { }
  370. });
  371. },
  372. switchAccounts: function (index) {
  373. let userInfo = this.switchUserInfo[index],
  374. that = this;
  375. that.userIndex = index;
  376. if (that.switchUserInfo.length <= 1) return true;
  377. if (userInfo === undefined) return that.$util.Tips({
  378. title: that.$t(`切换的账号不存在`)
  379. });
  380. if (userInfo.user_type === 'h5') {
  381. uni.showLoading({
  382. title: that.$t(`正在切换中`)
  383. });
  384. switchH5Login().then(res => {
  385. uni.hideLoading();
  386. that.$store.commit("LOGIN", {
  387. 'token': res.data.token,
  388. 'time': this.$Cache.strTotime(res.data.expires_time) - this.$Cache.time()
  389. });
  390. that.getUserInfo();
  391. }).catch(err => {
  392. uni.hideLoading();
  393. return that.$util.Tips({
  394. title: err
  395. });
  396. })
  397. } else {
  398. that.$store.commit("LOGOUT");
  399. uni.showLoading({
  400. title: that.$t(`正在切换中`)
  401. });
  402. toLogin();
  403. }
  404. },
  405. /**
  406. * 获取用户详情
  407. */
  408. getUserInfo: function () {
  409. let that = this;
  410. getUserInfo().then(res => {
  411. that.$set(that, 'userInfo', res.data);
  412. let switchUserInfo = res.data.switchUserInfo || [];
  413. for (let i = 0; i < switchUserInfo.length; i++) {
  414. if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;
  415. // 切割h5用户;user_type状态:h5、routine(小程序)、wechat(公众号);注:只有h5未注册手机号时,h5才可和小程序或是公众号数据想通;
  416. //#ifdef H5
  417. if (
  418. !that.$wechat.isWeixin() &&
  419. switchUserInfo[i].user_type != "h5" &&
  420. switchUserInfo[i].phone === ""
  421. )
  422. switchUserInfo.splice(i, 1);
  423. //#endif
  424. }
  425. that.$set(that, "switchUserInfo", switchUserInfo);
  426. });
  427. },
  428. /**
  429. * 提交修改
  430. */
  431. formSubmit: function (e) {
  432. let that = this,
  433. value = e.detail.value;
  434. if (!value.name) return that.$util.Tips({
  435. title: that.$t(`请输入昵称`)
  436. });
  437. value.avatar = this.userInfo.avatar;
  438. value.wxQrcode = this.userInfo.wxQrcode;
  439. userEdit(value).then(res => {
  440. return that.$util.Tips({
  441. title: res.msg,
  442. icon: 'success'
  443. }, {
  444. tab: 3,
  445. url: 1
  446. });
  447. }).catch(msg => {
  448. return that.$util.Tips({
  449. title: msg || that.$t(`保存失败`)
  450. }, {
  451. tab: 3,
  452. url: 1
  453. });
  454. });
  455. }
  456. }
  457. }
  458. </script>
  459. <style scoped lang="scss">
  460. .avater_button_view{
  461. display: flex;
  462. flex-direction: row;
  463. justify-content: center;
  464. }
  465. .avater_button{
  466. width: 82px;
  467. height: 82px;
  468. border-radius: 41px;
  469. }
  470. .cartcolor {
  471. color: var(--view-theme);
  472. border: 1px solid var(--view-theme);
  473. }
  474. .personal-data .wrapper {
  475. margin: 10rpx 0;
  476. background-color: #fff;
  477. padding: 36rpx 30rpx 13rpx 30rpx;
  478. }
  479. .personal-data .wrapper .title {
  480. margin-bottom: 30rpx;
  481. font-size: 32rpx;
  482. color: #282828;
  483. }
  484. .personal-data .wrapper .wrapList .item {
  485. width: 690rpx;
  486. height: 160rpx;
  487. background-color: #f8f8f8;
  488. border-radius: 20rpx;
  489. margin-bottom: 22rpx;
  490. padding: 0 30rpx;
  491. position: relative;
  492. border: 2rpx solid #f8f8f8;
  493. box-sizing: border-box;
  494. }
  495. .personal-data .wrapper .wrapList .item.on {
  496. border-color: #e93323;
  497. border-radius: 20rpx;
  498. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAACgCAYAAADw+I85AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcml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vt9EStkAQDGIc/HntO/pKcSsCtlDwAwbufUbHkV9i4MdifwogAAjNfUdyvIJzhYhcHJDtQ9AMA0TGmsIJVYzZfH0B7M9fiRX/R/AQYA1i4UF+HkevkAAAAASUVORK5CYII=");
  499. background-size: 100% 100%;
  500. background-color: #fff9f9;
  501. background-repeat: no-repeat;
  502. }
  503. .personal-data .wrapper .wrapList .item .picTxt {
  504. width: 445rpx;
  505. }
  506. .personal-data .wrapper .wrapList .item .picTxt .pictrue {
  507. width: 96rpx;
  508. height: 96rpx;
  509. position: relative;
  510. }
  511. .personal-data .wrapper .wrapList .item .picTxt .pictrue image {
  512. width: 100%;
  513. height: 100%;
  514. border-radius: 50%;
  515. }
  516. .personal-data .wrapper .wrapList .item .picTxt .pictrue .alter {
  517. width: 30rpx;
  518. height: 30rpx;
  519. border-radius: 50%;
  520. position: absolute;
  521. bottom: 0;
  522. right: 0;
  523. }
  524. .personal-data .wrapper .wrapList .item .picTxt .text {
  525. width: 325rpx;
  526. }
  527. .personal-data .wrapper .wrapList .item .picTxt .text .name {
  528. width: 100%;
  529. font-size: 30rpx;
  530. color: #282828;
  531. }
  532. .personal-data .wrapper .wrapList .item .picTxt .text .phone {
  533. font-size: 24rpx;
  534. color: #999;
  535. margin-top: 10rpx;
  536. }
  537. .personal-data .wrapper .wrapList .item .bnt {
  538. font-size: 24rpx;
  539. background-color: #fff;
  540. border-radius: 27rpx;
  541. width: 140rpx;
  542. height: 54rpx;
  543. border: 2rpx solid #e93323;
  544. }
  545. .personal-data .wrapper .wrapList .item .currentBnt {
  546. position: absolute;
  547. right: 0;
  548. top: 0;
  549. font-size: 26rpx;
  550. background-color: rgba(233, 51, 35, 0.1);
  551. width: 140rpx;
  552. height: 48rpx;
  553. border-radius: 0 20rpx 0 20rpx;
  554. }
  555. .personal-data .list {
  556. margin-top: 15rpx;
  557. background-color: #fff;
  558. }
  559. .personal-data .list .item {
  560. padding: 30rpx 30rpx 30rpx 0;
  561. border-bottom: 1rpx solid #f2f2f2;
  562. margin-left: 30rpx;
  563. font-size: 32rpx;
  564. color: #282828;
  565. }
  566. .personal-data .list .item .phone {
  567. width: 160rpx;
  568. height: 56rpx;
  569. font-size: 24rpx;
  570. color: #fff;
  571. line-height: 56rpx;
  572. border-radius: 32rpx
  573. }
  574. .personal-data .list .item .pictrue {
  575. width: 88rpx;
  576. height: 88rpx;
  577. }
  578. .personal-data .list .item .pictrue image {
  579. width: 100%;
  580. height: 100%;
  581. border-radius: 50%;
  582. }
  583. .personal-data .list .item .input {
  584. width: 480rpx;
  585. text-align: left;
  586. color: #868686;
  587. }
  588. .personal-data .list .item .input .id {
  589. width: 365rpx;
  590. }
  591. .personal-data .list .item .input .iconfont {
  592. font-size: 35rpx;
  593. }
  594. .personal-data .modifyBnt {
  595. width: 85%;
  596. margin: auto;
  597. margin-top: 50rpx;
  598. height: 84rpx;
  599. background: #B42A3E;
  600. border-radius: 8rpx;
  601. font-size: 32rpx;
  602. color: #fff;
  603. text-align: center;
  604. line-height: 84rpx;
  605. }
  606. .personal-data .logOut {
  607. font-size: 32rpx;
  608. text-align: center;
  609. width: 690rpx;
  610. height: 90rpx;
  611. border-radius: 45rpx;
  612. margin: 30rpx auto 0 auto;
  613. }
  614. .avatar-box {
  615. width: 96rpx;
  616. height: 96rpx;
  617. image {
  618. width: 100%;
  619. height: 100%;
  620. border-radius: 50%;
  621. }
  622. }
  623. .avatar-area {
  624. background: rgb(249, 249, 249);
  625. padding: 0;
  626. margin: 0 !important;
  627. width: 100%;
  628. text-align: center;
  629. height: 300rpx;
  630. image {}
  631. /deep/ .u-avatar {
  632. margin: auto !important;
  633. }
  634. .help_info {
  635. display: block;
  636. margin: 20rpx 0;
  637. height: 34rpx;
  638. font-size: 24rpx;
  639. font-weight: 400;
  640. color: #999999;
  641. line-height: 34rpx;
  642. }
  643. }
  644. .bord{
  645. border:1px solid red;
  646. }
  647. .qr-cord-box{
  648. width: 200rpx;
  649. height: 200rpx;
  650. display: flex;
  651. flex-direction: column;
  652. border: 1px solid rgba(238, 238, 238, 1);
  653. .image{
  654. width: 200rpx;
  655. height: 200rpx;
  656. }
  657. .add-file-image{
  658. width: 100rpx;
  659. height: 100rpx;
  660. margin-left: 50rpx;
  661. margin-top: 20rpx;
  662. }
  663. text{
  664. overflow-wrap: break-word;
  665. color: rgba(153, 153, 153, 1);
  666. font-size: 28rpx;
  667. font-weight: NaN;
  668. text-align: center;
  669. white-space: nowrap;
  670. line-height: 40rpx;
  671. margin-top: 20rpx;
  672. }
  673. }
  674. </style>