index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item label="订单号">
  5. <el-input
  6. v-model="queryParams.id"
  7. placeholder="请输入订单号"
  8. clearable
  9. style="width: 240px;"
  10. @keyup.enter.native="handleQuery"
  11. />
  12. </el-form-item>
  13. <el-form-item label="团队名称" label-width="100px">
  14. <el-input
  15. v-model="queryParams.teamName"
  16. placeholder="请输入团队名称"
  17. clearable
  18. style="width: 240px;"
  19. @keyup.enter.native="handleQuery"
  20. />
  21. </el-form-item>
  22. <el-form-item label="团队类型">
  23. <el-select
  24. v-model="queryParams.teamTypeId"
  25. placeholder="团队类型"
  26. clearable
  27. style="width: 240px"
  28. >
  29. <el-option
  30. v-for="dict in dict.type.team_type"
  31. :key="dict.value"
  32. :label="dict.label"
  33. :value="dict.value"
  34. />
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="订单状态">
  38. <el-select
  39. v-model="queryParams.status"
  40. placeholder="订单状态"
  41. clearable
  42. style="width: 100%"
  43. >
  44. <el-option
  45. v-for="dict in statusMapList"
  46. :key="dict.value"
  47. :label="dict.name"
  48. :value="dict.value"
  49. />
  50. </el-select>
  51. </el-form-item>
  52. <el-form-item label="支付时间">
  53. <el-date-picker
  54. v-model="queryParams.time"
  55. type="daterange"
  56. value-format="yyyy-MM-dd"
  57. range-separator="至"
  58. start-placeholder="开始日期"
  59. end-placeholder="结束日期">
  60. </el-date-picker>
  61. </el-form-item>
  62. <el-form-item label="场次时间">
  63. <el-date-picker
  64. style="width: 230px;"
  65. v-model="queryParams.performDate"
  66. @change="pagePerformTimeListFun"
  67. type="date"
  68. value-format="yyyy-MM-dd"
  69. placeholder="选择日期">
  70. </el-date-picker>
  71. </el-form-item>
  72. <el-form-item label="场次">
  73. <el-select
  74. v-model="queryParams.performTimeId"
  75. placeholder="场次"
  76. clearable
  77. style="width: 100%"
  78. >
  79. <el-option
  80. v-for="dict in pagePerformTimeList"
  81. :key="dict.id"
  82. :label="dict.timeSnapshot+'('+dict.performTimeStart+'-'+dict.performTimeEnd+')'"
  83. :value="dict.id"
  84. />
  85. </el-select>
  86. </el-form-item>
  87. <el-form-item>
  88. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  89. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  90. </el-form-item>
  91. </el-form>
  92. <el-row :gutter="10" class="mb8">
  93. <el-button
  94. type="primary"
  95. size="mini"
  96. icon="el-icon-download"
  97. v-hasPermi="['groupBuyingMr:groupBuyingMr:excel']"
  98. @click="handleExport"
  99. v-loading.fullscreen.lock="handleExportLoading"
  100. element-loading-text="正在拼命生成数据中..."
  101. element-loading-spinner="el-icon-loading"
  102. element-loading-background="rgba(0, 0, 0, 0.5)"
  103. >导出excel</el-button>
  104. <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
  105. </el-row>
  106. <el-table ref="tables" v-loading="loading" :data="dataList" border>
  107. <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
  108. <el-table-column label="订单号" align="center" prop="id" />
  109. <el-table-column label="团队名称" align="center" prop="teamName" />
  110. <el-table-column label="团队类型" align="center" prop="type">
  111. <template slot-scope="scope">
  112. <dict-tag :options="dict.type.team_type" :value="scope.row.teamType"/>
  113. </template>
  114. </el-table-column>
  115. <el-table-column label="联系电话" align="center" prop="teamMobile" />
  116. <el-table-column label="负责人" align="center" prop="teamContact" />
  117. <el-table-column label="剧目名称" align="center" prop="performName" />
  118. <el-table-column label="票务名称" align="center" prop="goodsName" />
  119. <el-table-column label="座位类型" align="center" prop="seatTypeName" />
  120. <el-table-column label="场次时间" align="center" prop="performDate" />
  121. <el-table-column label="场次" width="120" align="center" prop="timeSnapshot">
  122. <template slot-scope="scope">
  123. <span>{{ scope.row.timeSnapshot }} <br /> ({{ scope.row.performTimeStart + '-' + scope.row.performTimeEnd }})</span>
  124. </template>
  125. </el-table-column>
  126. <el-table-column label="团购数量" align="center" prop="quantity" />
  127. <!-- <el-table-column label="支付总额" align="center" prop="orderPrice">
  128. <template slot-scope="scope">
  129. <span>¥{{ scope.row.orderPrice }}</span>
  130. </template>
  131. </el-table-column> -->
  132. <el-table-column label="应付金额" align="center" prop="orderPrice">
  133. <template slot-scope="scope">
  134. <span>¥{{ scope.row.orderPrice }}</span>
  135. </template>
  136. </el-table-column>
  137. <el-table-column label="实付金额" align="center" prop="realPrice">
  138. <template slot-scope="scope">
  139. <span>¥{{ scope.row.realPrice }}</span>
  140. </template>
  141. </el-table-column>
  142. <el-table-column label="支付方式" align="center" prop="type">
  143. <template slot-scope="scope">
  144. <!-- <el-tooltip placement="top">
  145. <div slot="content">
  146. <span>{{ payWayList[scope.row.payWay] }}</span>
  147. </div>
  148. <span>{{ payWayList[scope.row.payWay] }}</span>
  149. </el-tooltip> -->
  150. <span>{{ payWayList[scope.row.payWay] }}</span>
  151. </template>
  152. </el-table-column>
  153. <el-table-column label="支付时间" align="center" prop="payTime" width="160" >
  154. <template slot-scope="scope">
  155. <span>{{ parseTime(scope.row.payTime) }}</span>
  156. </template>
  157. </el-table-column>
  158. <el-table-column label="订单状态" align="center" prop="type">
  159. <template slot-scope="scope">
  160. <span>{{statusList[scope.row.status]}}</span>
  161. </template>
  162. </el-table-column>
  163. <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width">
  164. <template slot-scope="scope">
  165. <el-button
  166. size="mini"
  167. type="text"
  168. @click="openDetails(scope.row)"
  169. v-hasPermi="['groupBuyingMr:groupBuyingMr:details']"
  170. >详情</el-button>
  171. <el-button
  172. v-if="scope.row.status===0"
  173. size="mini"
  174. type="text"
  175. @click="handleCorporatePay(scope.row)"
  176. v-hasPermi="['groupBuyingMr:groupBuyingMr:details']"
  177. >对公转账</el-button>
  178. <el-button
  179. v-if="scope.row.status == 3 || scope.row.status == 7"
  180. size="mini"
  181. type="text"
  182. @click="handleOpen([scope.row])"
  183. v-hasPermi="['groupBuyingMr:groupBuyingMr:print']"
  184. >打印小票</el-button>
  185. </template>
  186. </el-table-column>
  187. </el-table>
  188. <pagination
  189. v-show="total>0"
  190. :total="total"
  191. :page.sync="queryParams.pageNum"
  192. :limit.sync="queryParams.pageSize"
  193. @pagination="getList"
  194. />
  195. <!-- 详情 -->
  196. <details-dia ref="detailsDia" :dict="dict" @getList="getList"></details-dia>
  197. <el-dialog
  198. title="选择小票机"
  199. :visible.sync="dialogVisible"
  200. width="30%"
  201. :before-close="handleClose">
  202. <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  203. <el-form-item label="小票机" prop="region">
  204. <el-select v-model="ruleForm.region" placeholder="选择小票机">
  205. <el-option :label="item.deviceName" :key="item.id" :value="item.id" v-for="(item,index) in printList"></el-option>
  206. </el-select>
  207. </el-form-item>
  208. </el-form>
  209. <span slot="footer" class="dialog-footer">
  210. <el-button @click="dialogVisible = false">取 消</el-button>
  211. <el-button type="primary" :loading="dialogVisibleLoading" @click="print(viewerList)">{{ dialogVisibleLoading?'打印中...':'打印' }}</el-button>
  212. </span>
  213. </el-dialog>
  214. <el-dialog
  215. title="对公信息凭证"
  216. :visible.sync="showCorporatePay"
  217. width="50%"
  218. @close="handleCorporatePayClose"
  219. :before-close="handleCorporatePayClose">
  220. <el-form :model="ruleForm" :rules="corporatePayRules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
  221. <el-form-item label="凭证上传" prop="photoList" required>
  222. <el-upload
  223. ref="upload"
  224. :action="uploadObj.url"
  225. :headers="uploadObj.headers"
  226. accept=".jpg,.png"
  227. :on-success="handlePhotoListSuccess"
  228. :before-upload="beforeAvatarUpload"
  229. list-type="picture-card"
  230. :file-list="form.photoList"
  231. :on-remove="handleRemove"
  232. :limit="2"
  233. >
  234. <i class="el-icon-plus"></i>
  235. </el-upload>
  236. </el-form-item>
  237. <el-form-item label="备注">
  238. <el-input placeholder="请备注" type="textarea" maxlength="300" show-word-limit v-model="form.corporate.remark"></el-input>
  239. </el-form-item>
  240. </el-form>
  241. <span slot="footer" class="dialog-footer">
  242. <el-button @click="showCorporatePay = false">取 消</el-button>
  243. <el-button type="primary" :loading="corporatePayLoading" @click="corporatePay">{{ dialogVisibleLoading?'操作中...':'确定' }}</el-button>
  244. </span>
  245. </el-dialog>
  246. </div>
  247. </template>
  248. <script>
  249. import { getToken } from "@/utils/auth";
  250. import { pageList,gotoCorporatePay, downOrderListXls } from '@/api/order/groupBuyingMr'
  251. import detailsDia from "./dialog/details.vue";
  252. import { printApi } from '@/api/order/orderMr'
  253. import { pageList as getPrintListApi } from "@/api/device/pda";
  254. import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
  255. import { exportExcel } from '@/utils/exportexcel'
  256. const https = require('https');
  257. const axios = require('axios');
  258. export default {
  259. name: "agreement",
  260. dicts: ['agreement_type', 'team_type'],
  261. components: { detailsDia },
  262. data() {
  263. return {
  264. // 遮罩层
  265. loading: true,
  266. // 选中数组
  267. ids: [],
  268. // 非单个禁用
  269. single: true,
  270. // 非多个禁用
  271. multiple: true,
  272. // 显示搜索条件
  273. showSearch: true,
  274. // 总条数
  275. total: 0,
  276. // 用户表格数据
  277. dataList: null,
  278. // 弹出层标题
  279. title: "",
  280. // 是否显示弹出层
  281. open: false,
  282. // 日期范围
  283. dateRange: [],
  284. // 查询参数
  285. queryParams: {
  286. pageNum: 1,
  287. pageSize: 10,
  288. },
  289. statusList: {
  290. 0: '待支付',
  291. 2: '超时取消',
  292. 3: '待使用',
  293. 4: '退款中',
  294. 5: '己退款',
  295. 6: '退款失败',
  296. 7: '己使用',
  297. 8: '己超期',
  298. 9: '关闭',
  299. },
  300. statusMapList: [
  301. {id: 1, name: '待支付', value: 0},
  302. {id: 2, name: '超时取消', value: 2},
  303. {id: 3, name: '待使用', value: 3},
  304. {id: 4, name: '退款中', value: 4},
  305. {id: 5, name: '己退款', value: 5},
  306. {id: 6, name: '退款失败', value: 6},
  307. {id: 7, name: '己使用', value: 7},
  308. {id: 8, name: '己超期', value: 8},
  309. {id: 9, name: '关闭', value: 9},
  310. ],
  311. payList: {
  312. 0: '未支付',
  313. 1: '已支付',
  314. 2: '支付中',
  315. 3: '支付失败',
  316. 4: '支付退款',
  317. },
  318. payWayList: {
  319. 'cahsh': '现金',
  320. 'wecaht.applet': '微信小程序支付',
  321. 'alipay': '支付宝OTA',
  322. 'wecaht.h5': '微信公众号支付',
  323. 'meituan': '美团支付',
  324. 'corporate': '对公支付',
  325. },
  326. sourceList: {
  327. 1: '小程序',
  328. 2: '公众号',
  329. 3: '美团',
  330. 4: '携程',
  331. 5: '团购',
  332. },
  333. sourceMapList: [
  334. {id: 1, name: '小程序', value: 1},
  335. {id: 2, name: '公众号', value: 2},
  336. {id: 3, name: '美团', value: 3},
  337. {id: 4, name: '携程', value: 4},
  338. {id: 5, name: '团购', value: 5},
  339. ],
  340. visibleStatus: false,
  341. newObj: {},
  342. visibleType: '',
  343. viewerList: [],
  344. printList: [],
  345. dialogVisible: false,
  346. ruleForm: {},
  347. rules: {
  348. region: [
  349. { required: true, message: '请选择打印机', trigger: ['change','blur' ]}
  350. ],
  351. },
  352. dialogVisibleLoading: false,
  353. showCorporatePay:false,
  354. form:{
  355. orderId:'',
  356. photoList:[],
  357. corporate:{
  358. voucherUrl:'',
  359. remark:'',
  360. }
  361. },
  362. corporatePayRules: {
  363. photoList: [{ required: true, message: "请上传凭证", trigger: ["change","blur"] }],
  364. },
  365. uploadObj: {
  366. url: process.env.VUE_APP_UPLOAD_FILE_API + "/upload/single/minio",
  367. Headers: { Authorization: "Bearer " + getToken() },
  368. },
  369. corporatePayLoading:false,
  370. handleExportLoading: false,
  371. pagePerformTimeList: [], // 场次列表
  372. };
  373. },
  374. created() {
  375. this.getList();
  376. },
  377. methods: {
  378. /** 查询列表 */
  379. getList() {
  380. this.loading = true;
  381. pageList(this.queryParams)
  382. .then(response => {
  383. this.dataList = response.data.rows;
  384. this.total = response.data.total;
  385. this.loading = false;
  386. });
  387. },
  388. // 取消按钮
  389. cancel() {
  390. this.open = false;
  391. },
  392. /** 搜索按钮操作 */
  393. handleQuery() {
  394. this.queryParams.pageNum = 1;
  395. if(this.queryParams.time){
  396. this.queryParams.beginTime = this.queryParams.time[0];
  397. this.queryParams.endTime = this.queryParams.time[1];
  398. }else{
  399. this.queryParams.beginTime = null
  400. this.queryParams.endTime = null
  401. }
  402. this.getList();
  403. },
  404. /** 重置按钮操作 */
  405. resetQuery() {
  406. this.dateRange = [];
  407. this.$set(this.queryParams, 'id', '');
  408. this.$set(this.queryParams, 'status', '');
  409. this.$set(this.queryParams, 'teamTypeId', '');
  410. this.$set(this.queryParams, 'teamName', '');
  411. this.$set(this.queryParams, 'performName', '');
  412. this.$set(this.queryParams, 'beginTime', '');
  413. this.$set(this.queryParams, 'endTime', '');
  414. this.$set(this.queryParams, 'time', '');
  415. this.$set(this.queryParams, 'performDate', '');
  416. this.$set(this.queryParams, 'performTimeId', '');
  417. this.queryParams.pageNum = 1;
  418. this.handleQuery();
  419. },
  420. /** 详情按钮操作 */
  421. openDetails(row, type) {
  422. this.$refs["detailsDia"].openDialog("详情", row, type);
  423. },
  424. handleOpen(list=[]){
  425. if(!list||list.length==0) return
  426. let idList = []
  427. list.forEach((item,index)=>{
  428. idList.push(item.id)
  429. })
  430. this.viewerList = idList
  431. this.getPrintListApi()
  432. this.$set(this.ruleForm, 'region', '');
  433. this.$nextTick(()=>{
  434. this.$refs.ruleForm.clearValidate('region')
  435. })
  436. this.dialogVisible = true
  437. },
  438. handleClose(){
  439. this.dialogVisible = false
  440. },
  441. /** 查询打印机列表 */
  442. getPrintListApi() {
  443. getPrintListApi({deviceType:5,pageNum: 1,
  444. pageSize: 999,})
  445. .then(response => {
  446. this.printList = response.data.rows;
  447. }
  448. );
  449. },
  450. /** 选择打印机 */
  451. selectPrint(){
  452. },
  453. // 打印
  454. async print(list = []){
  455. this.$refs.ruleForm.validate(async (valid) => {
  456. if (valid) {
  457. this.dialogVisibleLoading = true
  458. try {
  459. let res = await printApi({
  460. //viewerList:list,
  461. orderId: list[0],
  462. source: 2,
  463. deviceId: this.ruleForm.region
  464. })
  465. if(res.code == 200) {
  466. let url = res.data.linkIp
  467. let printInfo = res.data.printInfo
  468. this.connectPrint(url,printInfo)
  469. }else {
  470. throw new Error(res)
  471. }
  472. } catch (error) {
  473. this.dialogVisible = false
  474. this.dialogVisibleLoading = false
  475. console.error("error=====",error)
  476. }
  477. } else {
  478. console.log('error submit!!');
  479. return false;
  480. }
  481. });
  482. },
  483. /** 连接打印机 */
  484. connectPrint(url,data){
  485. // let xhr = new XMLHttpRequest();
  486. // xhr.onreadystatechange = ()=>{
  487. // if(xhr.readyState == 4){ // 监听请求完成
  488. // if((xhr.status >=200 && xhr.status <300) || xhr.status == 304){
  489. // console.log(xhr.responseText)
  490. // this.dialogVisible = false
  491. // this.dialogVisibleLoading = false
  492. // }else{
  493. // console.log('请求失败')
  494. // this.dialogVisible = false
  495. // this.dialogVisibleLoading = false
  496. // }
  497. // }
  498. // }
  499. // xhr.open("post", url, true); // 异步请求
  500. // xhr.send(JSON.stringify(data));
  501. const ignoreSSL = axios.create({
  502. httpsAgent: new https.Agent({
  503. rejectUnauthorized: false
  504. }),
  505. withCredentials: true, // 跨域请求时发送Cookie
  506. timeout: 60000, // 请求超时
  507. headers: {
  508. "Content-Type": "application/json; charset=UTF-8;"
  509. }
  510. });
  511. ignoreSSL.post(url,
  512. { ...data }
  513. ).then(()=>{
  514. this.dialogVisible = false
  515. this.dialogVisibleLoading = false
  516. }).catch(()=>{
  517. this.dialogVisible = false
  518. this.dialogVisibleLoading = false
  519. })
  520. },
  521. handleCorporatePay(row){
  522. console.log('corporatePay',row);
  523. this.form.orderId = row.id;
  524. this.showCorporatePay = true;
  525. },
  526. handleCorporatePayClose(){
  527. console.log('1111');
  528. this.corporatePayLoading = false;
  529. this.showCorporatePay = false;
  530. },
  531. corporatePay(){
  532. console.log('form',this.form);
  533. if(this.form.photoList.length<1){
  534. this.$message.error('请上传凭证');
  535. return
  536. }
  537. this.corporatePayLoading = true;
  538. const voucherUrl = this.form.photoList.map(item => item.url).join(",");
  539. this.form.corporate.voucherUrl = voucherUrl;
  540. gotoCorporatePay(this.form).then((res)=>{
  541. this.$message.success(res.msg);
  542. this.corporatePayLoading = false;
  543. this.handleCorporatePayClose();
  544. }).catch((err)=>{
  545. this.corporatePayLoading = false;
  546. this.$message.error(err.msg);
  547. console.log('corporatePay err',err);
  548. })
  549. },
  550. /**
  551. * 剧目海报上传成功
  552. * @date 2023-11-22
  553. * @param {any} res
  554. * @returns {any}
  555. */
  556. handlePhotoListSuccess(res) {
  557. if (res.code === 200) {
  558. let photo = {
  559. imageUrl: res?.data?.url,
  560. url: res?.data?.url,
  561. photoType: '2'
  562. }
  563. if(!this.form.photoList){
  564. this.form.photoList = []
  565. }
  566. // this.form.photoList.push(photo);
  567. this.$set(this.form.photoList, this.form.photoList.length, photo);
  568. }
  569. },
  570. handleRemove(file, fileList) {
  571. this.form.photoList.forEach((item, index) => {
  572. if(item.uid == file.uid){
  573. this.form.photoList.splice(index, 1)
  574. }
  575. })
  576. },
  577. /**
  578. * 上传文件之前之前
  579. * @date 2023-11-22
  580. * @param {any} file
  581. * @returns {any}
  582. */
  583. beforeAvatarUpload(file) {
  584. const isJPG = file.type === "image/jpeg" || "image/png";
  585. if (!isJPG) {
  586. this.$message.error("上传头像图片只能是jpg或png格式!");
  587. }
  588. return isJPG;
  589. },
  590. /**
  591. * 导出报表
  592. * @date 2022-10-24
  593. * @returns {any}
  594. */
  595. handleExport() {
  596. this.$confirm('您确定要导出当前查询的数据吗?', '提示', {
  597. confirmButtonText: '确定 ',
  598. cancelButtonText: '取消 ',
  599. type: 'warning'
  600. })
  601. .then(() => {
  602. this.handleExportLoading = true;
  603. // const { pageNum, pageSize} = this.params;
  604. let postMap = {}
  605. for (let key in this.queryParams) {
  606. if(key != 'pageNum' && key != 'pageSize'){
  607. postMap[key] = this.queryParams[key]
  608. }
  609. }
  610. downOrderListXls(postMap)
  611. .then((res) => {
  612. exportExcel(res, '团购订单', '.xlsx');
  613. this.handleExportLoading = false;
  614. })
  615. .catch((error) => {
  616. console.log("error===",error)
  617. this.handleExportLoading = false;
  618. });
  619. })
  620. .catch(() => {
  621. this.$message.info('您已取消导出!');
  622. });
  623. },
  624. async pagePerformTimeListFun(value) {
  625. try {
  626. this.pagePerformTimeList = []
  627. this.$set(this.queryParams,'performTimeId',null)
  628. if(!value){
  629. return
  630. }
  631. let { data,code } = await pagePerformTimeList({
  632. performDate: value,
  633. pageNum: 1,
  634. pageSize: 999
  635. })
  636. this.pagePerformTimeList = [].concat(data.rows)
  637. } catch (error) {
  638. }
  639. },
  640. }
  641. };
  642. </script>
  643. <style lang="scss">
  644. .upload-btn {
  645. width: 100px;
  646. height: 100px;
  647. background-color: #fbfdff;
  648. border: dashed 1px #c0ccda;
  649. border-radius: 5px;
  650. i {
  651. font-size: 30px;
  652. margin-top: 20px;
  653. }
  654. &-text {
  655. margin-top: -10px;
  656. }
  657. }
  658. .avatar {
  659. cursor: pointer;
  660. }
  661. </style>