index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727
  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. },
  234. /**
  235. * 上传微信二维码
  236. */
  237. uploadQrCord(){
  238. let _this = this;
  239. this.$util.uploadImageOne({
  240. name: "file"
  241. }, function(res) {
  242. console.log("上传文件成功+++++++++++++++++++",res.data.link)
  243. _this.userInfo.wxQrcode = res.data.link
  244. });
  245. },
  246. clickBadge(){
  247. this.userInfo.wxQrcode ='';
  248. console.log("点击了XX")
  249. },
  250. // 相册选择图片
  251. albumClick () {
  252. let _this = this;
  253. this.$util.uploadImageOne({
  254. name: "file"
  255. }, function(res) {
  256. console.log("上传文件成功+++++++++++++++++++",res.data.link)
  257. _this.userInfo.avatar = res.data.link
  258. });
  259. },
  260. isNew () {
  261. this.$util.Tips({
  262. title: this.$t(`当前为最新版本`)
  263. });
  264. },
  265. setLang () {
  266. this.array.map((item, i) => {
  267. if (this.$i18n.locale == item.value) {
  268. this.setIndex = i
  269. }
  270. })
  271. },
  272. bindPickerChange (e, item) {
  273. this.setIndex = e.detail.value
  274. this.$i18n.locale = this.array[this.setIndex].value;
  275. uni.setStorageSync('locale', this.array[this.setIndex].value);
  276. },
  277. updateApp () {
  278. this.$refs.appUpdate.update(); //调用子组件 检查更新
  279. },
  280. formatSize () {
  281. let that = this;
  282. plus.cache.calculate(function (size) {
  283. let sizeCache = parseInt(size);
  284. if (sizeCache == 0) {
  285. that.fileSizeString = "0B";
  286. } else if (sizeCache < 1024) {
  287. that.fileSizeString = sizeCache + "B";
  288. } else if (sizeCache < 1048576) {
  289. that.fileSizeString = (sizeCache / 1024).toFixed(2) + "KB";
  290. } else if (sizeCache < 1073741824) {
  291. that.fileSizeString = (sizeCache / 1048576).toFixed(2) + "MB";
  292. } else {
  293. that.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "GB";
  294. }
  295. });
  296. },
  297. initData () {
  298. uni.showModal({
  299. title: this.$t(`清除缓存`),
  300. content: this.$t(`确定清楚本地缓存数据吗`),
  301. success: (res) => {
  302. if (res.confirm) {
  303. this.clearCache()
  304. this.formatSize()
  305. } else if (res.cancel) {
  306. return that.$util.Tips({
  307. title: that.$t(`取消`)
  308. });
  309. }
  310. }
  311. });
  312. },
  313. clearCache () {
  314. let that = this;
  315. let os = plus.os.name;
  316. if (os == 'Android') {
  317. let main = plus.android.runtimeMainActivity();
  318. let sdRoot = main.getCacheDir();
  319. let files = plus.android.invoke(sdRoot, "listFiles");
  320. let len = files.length;
  321. for (let i = 0; i < len; i++) {
  322. let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
  323. plus.io.resolveLocalFileSystemURL(filePath, function (entry) {
  324. if (entry.isDirectory) {
  325. entry.removeRecursively(function (entry) { //递归删除其下的所有文件及子目录
  326. uni.showToast({
  327. title: that.$t(`缓存清理完成`),
  328. duration: 2000
  329. });
  330. that.formatSize(); // 重新计算缓存
  331. }, function (e) {
  332. console.log(e.message)
  333. });
  334. } else {
  335. entry.remove();
  336. }
  337. }, function (e) { });
  338. }
  339. } else { // ios暂时未找到清理缓存的方法,以下是官方提供的方法,但是无效,会报错
  340. plus.cache.clear(function () {
  341. uni.showToast({
  342. title: that.$t(`缓存清理完成`),
  343. duration: 2000
  344. });
  345. that.formatSize();
  346. });
  347. }
  348. },
  349. /**
  350. * 授权回调
  351. */
  352. onLoadFun: function () {
  353. this.getUserInfo();
  354. },
  355. // 授权关闭
  356. authColse: function (e) {
  357. this.isShowAuth = e
  358. },
  359. /**
  360. * 小程序设置
  361. */
  362. Setting: function () {
  363. uni.openSetting({
  364. success: function (res) { }
  365. });
  366. },
  367. switchAccounts: function (index) {
  368. let userInfo = this.switchUserInfo[index],
  369. that = this;
  370. that.userIndex = index;
  371. if (that.switchUserInfo.length <= 1) return true;
  372. if (userInfo === undefined) return that.$util.Tips({
  373. title: that.$t(`切换的账号不存在`)
  374. });
  375. if (userInfo.user_type === 'h5') {
  376. uni.showLoading({
  377. title: that.$t(`正在切换中`)
  378. });
  379. switchH5Login().then(res => {
  380. uni.hideLoading();
  381. that.$store.commit("LOGIN", {
  382. 'token': res.data.token,
  383. 'time': this.$Cache.strTotime(res.data.expires_time) - this.$Cache.time()
  384. });
  385. that.getUserInfo();
  386. }).catch(err => {
  387. uni.hideLoading();
  388. return that.$util.Tips({
  389. title: err
  390. });
  391. })
  392. } else {
  393. that.$store.commit("LOGOUT");
  394. uni.showLoading({
  395. title: that.$t(`正在切换中`)
  396. });
  397. toLogin();
  398. }
  399. },
  400. /**
  401. * 获取用户详情
  402. */
  403. getUserInfo: function () {
  404. let that = this;
  405. getUserInfo().then(res => {
  406. that.$set(that, 'userInfo', res.data);
  407. let switchUserInfo = res.data.switchUserInfo || [];
  408. for (let i = 0; i < switchUserInfo.length; i++) {
  409. if (switchUserInfo[i].uid == that.userInfo.uid) that.userIndex = i;
  410. // 切割h5用户;user_type状态:h5、routine(小程序)、wechat(公众号);注:只有h5未注册手机号时,h5才可和小程序或是公众号数据想通;
  411. //#ifdef H5
  412. if (
  413. !that.$wechat.isWeixin() &&
  414. switchUserInfo[i].user_type != "h5" &&
  415. switchUserInfo[i].phone === ""
  416. )
  417. switchUserInfo.splice(i, 1);
  418. //#endif
  419. }
  420. that.$set(that, "switchUserInfo", switchUserInfo);
  421. });
  422. },
  423. /**
  424. * 提交修改
  425. */
  426. formSubmit: function (e) {
  427. let that = this,
  428. value = e.detail.value;
  429. if (!value.name) return that.$util.Tips({
  430. title: that.$t(`请输入昵称`)
  431. });
  432. value.avatar = this.userInfo.avatar;
  433. value.wxQrcode = this.userInfo.wxQrcode;
  434. userEdit(value).then(res => {
  435. return that.$util.Tips({
  436. title: res.msg,
  437. icon: 'success'
  438. }, {
  439. tab: 3,
  440. url: 1
  441. });
  442. }).catch(msg => {
  443. return that.$util.Tips({
  444. title: msg || that.$t(`保存失败`)
  445. }, {
  446. tab: 3,
  447. url: 1
  448. });
  449. });
  450. }
  451. }
  452. }
  453. </script>
  454. <style scoped lang="scss">
  455. .avater_button_view{
  456. display: flex;
  457. flex-direction: row;
  458. justify-content: center;
  459. }
  460. .avater_button{
  461. width: 82px;
  462. height: 82px;
  463. border-radius: 41px;
  464. }
  465. .cartcolor {
  466. color: var(--view-theme);
  467. border: 1px solid var(--view-theme);
  468. }
  469. .personal-data .wrapper {
  470. margin: 10rpx 0;
  471. background-color: #fff;
  472. padding: 36rpx 30rpx 13rpx 30rpx;
  473. }
  474. .personal-data .wrapper .title {
  475. margin-bottom: 30rpx;
  476. font-size: 32rpx;
  477. color: #282828;
  478. }
  479. .personal-data .wrapper .wrapList .item {
  480. width: 690rpx;
  481. height: 160rpx;
  482. background-color: #f8f8f8;
  483. border-radius: 20rpx;
  484. margin-bottom: 22rpx;
  485. padding: 0 30rpx;
  486. position: relative;
  487. border: 2rpx solid #f8f8f8;
  488. box-sizing: border-box;
  489. }
  490. .personal-data .wrapper .wrapList .item.on {
  491. border-color: #e93323;
  492. border-radius: 20rpx;
  493. background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArIAAACgCAYAAADw+I85AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29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DtQ9AMA0TGmsIJVYzZfH0B7M9fiRX/R/AQYA1i4UF+HkevkAAAAASUVORK5CYII=");
  494. background-size: 100% 100%;
  495. background-color: #fff9f9;
  496. background-repeat: no-repeat;
  497. }
  498. .personal-data .wrapper .wrapList .item .picTxt {
  499. width: 445rpx;
  500. }
  501. .personal-data .wrapper .wrapList .item .picTxt .pictrue {
  502. width: 96rpx;
  503. height: 96rpx;
  504. position: relative;
  505. }
  506. .personal-data .wrapper .wrapList .item .picTxt .pictrue image {
  507. width: 100%;
  508. height: 100%;
  509. border-radius: 50%;
  510. }
  511. .personal-data .wrapper .wrapList .item .picTxt .pictrue .alter {
  512. width: 30rpx;
  513. height: 30rpx;
  514. border-radius: 50%;
  515. position: absolute;
  516. bottom: 0;
  517. right: 0;
  518. }
  519. .personal-data .wrapper .wrapList .item .picTxt .text {
  520. width: 325rpx;
  521. }
  522. .personal-data .wrapper .wrapList .item .picTxt .text .name {
  523. width: 100%;
  524. font-size: 30rpx;
  525. color: #282828;
  526. }
  527. .personal-data .wrapper .wrapList .item .picTxt .text .phone {
  528. font-size: 24rpx;
  529. color: #999;
  530. margin-top: 10rpx;
  531. }
  532. .personal-data .wrapper .wrapList .item .bnt {
  533. font-size: 24rpx;
  534. background-color: #fff;
  535. border-radius: 27rpx;
  536. width: 140rpx;
  537. height: 54rpx;
  538. border: 2rpx solid #e93323;
  539. }
  540. .personal-data .wrapper .wrapList .item .currentBnt {
  541. position: absolute;
  542. right: 0;
  543. top: 0;
  544. font-size: 26rpx;
  545. background-color: rgba(233, 51, 35, 0.1);
  546. width: 140rpx;
  547. height: 48rpx;
  548. border-radius: 0 20rpx 0 20rpx;
  549. }
  550. .personal-data .list {
  551. margin-top: 15rpx;
  552. background-color: #fff;
  553. }
  554. .personal-data .list .item {
  555. padding: 30rpx 30rpx 30rpx 0;
  556. border-bottom: 1rpx solid #f2f2f2;
  557. margin-left: 30rpx;
  558. font-size: 32rpx;
  559. color: #282828;
  560. }
  561. .personal-data .list .item .phone {
  562. width: 160rpx;
  563. height: 56rpx;
  564. font-size: 24rpx;
  565. color: #fff;
  566. line-height: 56rpx;
  567. border-radius: 32rpx
  568. }
  569. .personal-data .list .item .pictrue {
  570. width: 88rpx;
  571. height: 88rpx;
  572. }
  573. .personal-data .list .item .pictrue image {
  574. width: 100%;
  575. height: 100%;
  576. border-radius: 50%;
  577. }
  578. .personal-data .list .item .input {
  579. width: 480rpx;
  580. text-align: left;
  581. color: #868686;
  582. }
  583. .personal-data .list .item .input .id {
  584. width: 365rpx;
  585. }
  586. .personal-data .list .item .input .iconfont {
  587. font-size: 35rpx;
  588. }
  589. .personal-data .modifyBnt {
  590. width: 85%;
  591. margin: auto;
  592. margin-top: 50rpx;
  593. height: 84rpx;
  594. background: #B42A3E;
  595. border-radius: 8rpx;
  596. font-size: 32rpx;
  597. color: #fff;
  598. text-align: center;
  599. line-height: 84rpx;
  600. }
  601. .personal-data .logOut {
  602. font-size: 32rpx;
  603. text-align: center;
  604. width: 690rpx;
  605. height: 90rpx;
  606. border-radius: 45rpx;
  607. margin: 30rpx auto 0 auto;
  608. }
  609. .avatar-box {
  610. width: 96rpx;
  611. height: 96rpx;
  612. image {
  613. width: 100%;
  614. height: 100%;
  615. border-radius: 50%;
  616. }
  617. }
  618. .avatar-area {
  619. background: rgb(249, 249, 249);
  620. padding: 0;
  621. margin: 0 !important;
  622. width: 100%;
  623. text-align: center;
  624. height: 300rpx;
  625. image {}
  626. /deep/ .u-avatar {
  627. margin: auto !important;
  628. }
  629. .help_info {
  630. display: block;
  631. margin: 20rpx 0;
  632. height: 34rpx;
  633. font-size: 24rpx;
  634. font-weight: 400;
  635. color: #999999;
  636. line-height: 34rpx;
  637. }
  638. }
  639. .bord{
  640. border:1px solid red;
  641. }
  642. .qr-cord-box{
  643. width: 200rpx;
  644. height: 200rpx;
  645. display: flex;
  646. flex-direction: column;
  647. border: 1px solid rgba(238, 238, 238, 1);
  648. .image{
  649. width: 200rpx;
  650. height: 200rpx;
  651. }
  652. .add-file-image{
  653. width: 100rpx;
  654. height: 100rpx;
  655. margin-left: 50rpx;
  656. margin-top: 20rpx;
  657. }
  658. text{
  659. overflow-wrap: break-word;
  660. color: rgba(153, 153, 153, 1);
  661. font-size: 28rpx;
  662. font-weight: NaN;
  663. text-align: center;
  664. white-space: nowrap;
  665. line-height: 40rpx;
  666. margin-top: 20rpx;
  667. }
  668. }
  669. </style>