record.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747
  1. <template>
  2. <view class="content-box">
  3. <form @submit="formSubmit" style="width: 100%">
  4. <view class="info-box" style="flex-direction: row;">
  5. <view class="info-title-box">
  6. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  7. <text>上传图片</text>
  8. </view>
  9. <view class="info-value-box">
  10. <view class="update_button display-flex">
  11. <view class="upload-box" @click="getImage('album')">
  12. <view class="img">
  13. <image src="/static/upload-photo.png" class="photo"></image>
  14. </view>
  15. </view>
  16. <view
  17. class="display-flex upload-box-photo"
  18. v-for="(item, index) in uploadList"
  19. :key="index">
  20. <image :src="item" mode="aspectFit" style="width: 100%; height: 100%" @click="showLarge(item)"/>
  21. <image src="/static/del.png" class="del-icon"mode="aspectFit"
  22. style="width: 30rpx; height: 30rpx" @click="delPhoto(index)"></image>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="info-box">
  28. <view class="info-title-box">
  29. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  30. <text>名称</text>
  31. </view>
  32. <view class="info-value-box">
  33. <input type="text" placeholder="请输入奖项名称" name="awardName" :value="awardName" >
  34. </view>
  35. </view>
  36. <view class="info-box" style="margin-top: -10rpx;margin-bottom: 15rpx;">
  37. <view class="info-title-box" style="margin-bottom: 15rpx;">
  38. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  39. <text>时间</text>
  40. </view>
  41. <view class="info-value-box">
  42. <view class="uni-list title-date-box">
  43. <view class="uni-list-cell">
  44. <view class="uni-list-cell-db display-flex-start">
  45. <picker mode="date" fields="year" @change="bindDateChange" class="picker-class">
  46. <view class="uni-input display-between items-center">{{dateYear}}年<image src="/static/calendar_icon.svg" mode="aspectFit" style="top: 18rpx;"></image></view>
  47. </picker>
  48. <picker :range="arrayMonth" :value="dateMonth" @change="bindDateMonthChange" class="picker-class" style="margin-left: 2%;">
  49. <view class="uni-input display-between items-center" style="color: #707070;">{{dateMonth}}月<image src="/static/calendar_icon.svg" mode="aspectFit" style="top: 18rpx;"></image></view>
  50. </picker>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="info-box">
  57. <view class="info-title-box">
  58. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  59. <text>荣誉级别</text>
  60. </view>
  61. <view class="info-value-box">
  62. <picker @change="bindPickerChange($event,'level')" :range="honorLevel" class="select-box" name="level">
  63. <view class="uni-input">{{levelValue}}</view>
  64. <image src="/static/arrow_down.svg" mode="aspectFill"></image>
  65. </picker>
  66. </view>
  67. </view>
  68. <view class="info-box">
  69. <view class="info-title-box">
  70. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  71. <text>荣誉来源</text>
  72. </view>
  73. <view class="info-value-box">
  74. <picker @change="bindPickerChange($event,'from')" :range="honorFrom" class="select-box" name="from">
  75. <view class="uni-input">{{fromValue}}</view>
  76. <image src="/static/arrow_down.svg" mode="aspectFill"></image>
  77. </picker>
  78. </view>
  79. </view>
  80. <view class="info-box">
  81. <view class="info-title-box">
  82. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  83. <text>所属支部</text>
  84. </view>
  85. <view class="info-value-box">
  86. <picker @change="bindPickerChange($event,'branch')" :range="honorBranch" :range-key="'name'" class="select-box" name="branch">
  87. <view class="uni-input">{{branchValue}}</view>
  88. <image src="/static/arrow_down.svg" mode="aspectFill"></image>
  89. </picker>
  90. </view>
  91. </view>
  92. <view class="info-box">
  93. <view class="info-title-box">
  94. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  95. <text>荣誉类型</text>
  96. </view>
  97. <view class="info-value-box">
  98. <picker @change="bindPickerChange($event,'type')" :range="honorType" class="select-box" name="type">
  99. <view class="uni-input">{{typeValue}}</view>
  100. <image src="/static/arrow_down.svg" mode="aspectFill"></image>
  101. </picker>
  102. </view>
  103. <!-- <view class="info-value-box">
  104. <picker @change="bindPickerChange($event,'education')" :range="honorType2" class="select-box" name="education">
  105. <view class="uni-input">{{typeValue2}}</view>
  106. <image src="/static/arrow_down.svg" mode="aspectFill"></image>
  107. </picker>
  108. </view> -->
  109. </view>
  110. <view class="info-box" v-if="typeValue !== '集体荣誉'">
  111. <view class="info-title-box">
  112. <!-- <image src="/static/require-icon.png" mode="aspectFill"></image> -->
  113. <text>选择成员</text>
  114. </view>
  115. <!-- <view class="info-value-box display-flex-start select-member">
  116. <input type="text" placeholder="请输入手机号" name="selfName">
  117. <button type="primary" class="submit-bth" style="background-color: #169bd5;" @click="addMember()">添加</button>
  118. </view>-->
  119. <view>
  120. <checkbox-group @change="checkboxChange" class="display-wrap">
  121. <label class="display-flex-start" v-for="(item,index) in memberList" :key="item.member_id" style="margin-right:10rpx;transform:scale(.8);">
  122. <view>
  123. <checkbox :value="item.member_id" :checked="item.checked"/>
  124. </view>
  125. <view>{{item.name}}</view>
  126. <!-- <image src="/static/del.png" mode="aspectFit"
  127. style="width: 30rpx; height: 30rpx;margin-left: 10rpx;" @click="delMember(index)"></image> -->
  128. </label>
  129. </checkbox-group>
  130. </view>
  131. </view>
  132. <view style="display: flex;justify-content: space-evenly;">
  133. <!-- <button type="default" class="submit-bth" style="background-color: #aaaaaa;">清空</button> -->
  134. <button type="primary" class="submit-bth" style="background-color: #169bd5;" formType="submit">提交</button>
  135. </view>
  136. </form>
  137. </view>
  138. </template>
  139. <script>
  140. import md5 from "@/common/md5.js";
  141. export default {
  142. components: {
  143. },
  144. data() {
  145. return {
  146. dateYear:new Date().getFullYear(),
  147. dateMonth:new Date().getMonth() + 1,
  148. arrayMonth:["1", "2","3", "4","5", "6","7", "8","9", "10","11", "12"],
  149. awardName:'',
  150. levelValue:'市级',
  151. honorLevel:['中央','省级','市级','区级','单位'],
  152. fromValue:'党内荣誉',
  153. honorFrom:['党内荣誉','社会荣誉','单位荣誉','行业荣誉'],
  154. branchValue:'',
  155. honorBranch:[],
  156. typeValue:'集体荣誉',
  157. honorType:['集体荣誉','个人荣誉','集体个人兼有'],
  158. memberList: [],
  159. uploadList: [],
  160. imgIdList: [],
  161. headImgId:'',
  162. branchId:'',
  163. memberIds:[],
  164. editId:''
  165. }
  166. },
  167. onLoad(option) {
  168. if(option.id){
  169. this.editId = option.id;
  170. this.getBranch(option.id);
  171. }else {
  172. this.editId = '';
  173. this.getBranch();
  174. }
  175. },
  176. onShow() {
  177. },
  178. // onShareAppMessage() {
  179. // return {
  180. // title: '分销小助手',
  181. // path:'/pages/index/index?scene=' + getApp().globalData.user_id
  182. // }
  183. // },
  184. methods: {
  185. bindDateChange(e){
  186. this.dateYear = e.target.value
  187. },
  188. bindDateMonthChange(e){
  189. this.dateMonth = this.arrayMonth[e.target.value]
  190. },
  191. change(e) {
  192. this.single = e;
  193. console.log("-change事件:", e);
  194. },
  195. checkboxChange: function (e) {
  196. // var items = this.memberList,
  197. // values = e.detail.value;
  198. this.memberIds = e.detail.value;
  199. // for (var i = 0, lenI = items.length; i < lenI; ++i) {
  200. // const item = items[i]
  201. // if(values.includes(item.value)){
  202. // this.$set(item,'checked',true)
  203. // }else{
  204. // this.$set(item,'checked',false)
  205. // }
  206. // }
  207. },
  208. // addMember(){
  209. // let items = {value: '6',name: '13630230648'}
  210. // this.memberList.push(items)
  211. // },
  212. // delMember(idx){
  213. // this.memberList.splice(idx, 1);
  214. // },
  215. getImage(type) {
  216. let that = this;
  217. console.log(that.uploadList)
  218. if (that.uploadList.length === 1) {
  219. uni.showToast({
  220. title: "最多上传1张图片",
  221. icon: "none",
  222. duration: 2500,
  223. });
  224. return;
  225. }
  226. uni.chooseImage({
  227. sourceType: [type],
  228. count: 1,
  229. sizeType: ["original", "compressed"], //可以指定是原图还是压缩图,默认二者都有
  230. success: (res) => {
  231. for (let i = 0; i < res.tempFilePaths.length; i++) {
  232. that.uploadList.push(res.tempFilePaths[i]);
  233. that.uploadFileRequest(res.tempFilePaths[i]);
  234. }
  235. },
  236. });
  237. },
  238. uploadFileRequest(fileVal) {
  239. uni.showLoading({
  240. title: "上传中",
  241. mask: true,
  242. });
  243. let that = this;
  244. let md5Sign = md5(
  245. "method=" +"glory_upload" + "&timestamp=" +getApp().globalData.globalTimestamp +"&secret=" + getApp().globalData.secret
  246. );
  247. let url =
  248. getApp().globalData.shareUrl +
  249. "api/api.php" +
  250. "?method=glory_upload&timestamp=" +
  251. getApp().globalData.globalTimestamp +
  252. "&sign=" +
  253. md5Sign;
  254. uni.uploadFile({
  255. url: url, //需要设置为全局
  256. filePath: fileVal,
  257. name: "file",
  258. formData: {
  259. openid: getApp().globalData.open_id,
  260. file: fileVal,
  261. branch_id: this.branchId
  262. },
  263. success: (res) => {
  264. let tmpres = JSON.parse(res.data);
  265. uni.hideLoading();
  266. that.imgIdList.push(tmpres.data.id);
  267. that.headImgId = tmpres.data.id;
  268. },
  269. fail: (res) => {
  270. console.log("上传请求失败");
  271. console.log(res);
  272. },
  273. });
  274. },
  275. delPhoto(idx) {
  276. this.uploadList.splice(idx, 1);
  277. this.imgIdList.splice(idx, 1);
  278. },
  279. showLarge(src) {
  280. uni.previewImage({
  281. urls: [src],
  282. longPressActions: {
  283. itemList: ["发送给朋友", "保存图片"],
  284. success: function (data) {},
  285. fail: function (err) {
  286. console.log(err.errMsg);
  287. },
  288. },
  289. });
  290. },
  291. bindPickerChange(e,type) {
  292. let that = this;
  293. switch (type){
  294. case 'branch':
  295. that.branchValue = that.honorBranch[e.target.value].name;
  296. that.branchId = that.honorBranch[e.target.value].branch_id;
  297. that.getMemberList(that.branchId)
  298. break;
  299. case 'type':
  300. that.typeValue = that.honorType[e.target.value]
  301. break;
  302. case 'level':
  303. that.levelValue = that.honorLevel[e.target.value]
  304. break;
  305. case 'from':
  306. that.fromValue = that.honorFrom[e.target.value]
  307. break;
  308. }
  309. },
  310. filterChecked(list){
  311. let arr = this.memberList, childArr = list;
  312. childArr.forEach((child)=>{
  313. arr.forEach((item)=>{
  314. if(item.member_id == child.member_id){
  315. item.checked = true
  316. }
  317. })
  318. })
  319. },
  320. getHonorInfo(id) {
  321. let levelObj = {
  322. '1':'中央',
  323. '2':'省级',
  324. '3':'市级',
  325. '4':'区级',
  326. '5':'单位'
  327. }
  328. let fromObj = {
  329. '1':'党内荣誉',
  330. '2':'社会荣誉',
  331. '3':'单位荣誉',
  332. '4':'行业荣誉'
  333. }
  334. let typeObj = {
  335. '1':'集体荣誉',
  336. '2':'个人荣誉',
  337. '3':'集体个人兼有',
  338. }
  339. let md5Sign = md5(
  340. "method=" +"glory" + "&timestamp=" + getApp().globalData.globalTimestamp +
  341. "&secret=" + getApp().globalData.secret
  342. );
  343. let url = getApp().globalData.shareUrl +"api/api.php" +
  344. "?method=glory&action=info_by_id&timestamp=" +
  345. getApp().globalData.globalTimestamp +
  346. "&sign=" +
  347. md5Sign;
  348. uni.request({
  349. url: url,
  350. method: "POST",
  351. header: {
  352. "content-type": "application/x-www-form-urlencoded",
  353. },
  354. data: {
  355. openid: getApp().globalData.open_id,
  356. id:id
  357. },
  358. success: (res) => {
  359. if (res.data.code === 200) {
  360. let infoObj = res.data.data;
  361. this.branchId = infoObj.branch_id;
  362. this.awardName = infoObj.name;
  363. this.headImgId = infoObj.photo_attach_id;
  364. this.dateYear = infoObj.year;
  365. this.dateMonth = infoObj.month;
  366. this.uploadList.push(getApp().globalData.shareUrl + infoObj.pic_url);
  367. this.typeValue = typeObj[infoObj.for];
  368. this.fromValue = fromObj[infoObj.from];
  369. this.levelValue = levelObj[infoObj.level];
  370. this.filterChecked(infoObj.member_list);
  371. this.branchValue = (this.honorBranch.find((item)=>{return item.branch_id == infoObj.branch_id})).name;
  372. }
  373. },
  374. fail: () => {
  375. console.log("连接失败");
  376. },
  377. });
  378. },
  379. getBranch(optionId) {
  380. let md5Sign = md5(
  381. "method=" +"glory" + "&timestamp=" + getApp().globalData.globalTimestamp +
  382. "&secret=" + getApp().globalData.secret
  383. );
  384. let url = getApp().globalData.shareUrl +"api/api.php" +
  385. "?method=glory&action=glory_branch&timestamp=" +
  386. getApp().globalData.globalTimestamp +
  387. "&sign=" +
  388. md5Sign;
  389. uni.request({
  390. url: url,
  391. method: "POST",
  392. header: {
  393. "content-type": "application/x-www-form-urlencoded",
  394. },
  395. data: {
  396. openid: getApp().globalData.open_id,
  397. },
  398. success: (res) => {
  399. if (res.data.code === 200) {
  400. this.honorBranch = res.data.data;
  401. this.branchValue = res.data.data[0].name;
  402. this.branchId = res.data.data[0].branch_id;
  403. this.getMemberList(this.branchId,optionId);
  404. }
  405. },
  406. fail: () => {
  407. console.log("连接失败");
  408. },
  409. });
  410. },
  411. getMemberList(bId,optionId) {
  412. let md5Sign = md5(
  413. "method=" + "glory" + "&timestamp=" + getApp().globalData.globalTimestamp +
  414. "&secret=" + getApp().globalData.secret
  415. );
  416. let url = getApp().globalData.shareUrl +"api/api.php" +
  417. "?method=glory&action=member_by_branch&timestamp=" +
  418. getApp().globalData.globalTimestamp +
  419. "&sign=" +
  420. md5Sign;
  421. uni.request({
  422. url: url,
  423. method: "POST",
  424. header: {
  425. "content-type": "application/x-www-form-urlencoded",
  426. },
  427. data: {
  428. openid:getApp().globalData.open_id,
  429. branch_id:bId
  430. },
  431. success: (res) => {
  432. if (res.data.code === 200) {
  433. this.memberList = res.data.data;
  434. if(optionId){
  435. this.getHonorInfo(optionId)
  436. }
  437. }
  438. },
  439. fail: () => {
  440. console.log("连接失败");
  441. },
  442. });
  443. },
  444. formSubmit(e) {
  445. let formData = e.detail.value;
  446. this.submitRequest(formData)
  447. },
  448. submitRequest(params){
  449. let levelObj = {
  450. '中央':'1',
  451. '省级':'2',
  452. '市级':'3',
  453. '区级':'4',
  454. '单位':'5'
  455. }
  456. let fromObj = {
  457. '党内荣誉':'1',
  458. '社会荣誉':'2',
  459. '单位荣誉':'3',
  460. '行业荣誉':'4'
  461. }
  462. let typeObj = {
  463. '集体荣誉':'1',
  464. '个人荣誉':'2',
  465. '集体个人兼有':'3',
  466. }
  467. let md5Sign = md5("method=" + "glory" + "&timestamp=" + getApp().globalData.globalTimestamp +"&secret=" + getApp().globalData.secret)
  468. , url;
  469. let dataParams = {
  470. openid:getApp().globalData.open_id,
  471. name:params.awardName,
  472. level:levelObj[this.levelValue],
  473. from:fromObj[this.fromValue],
  474. for:typeObj[this.typeValue],
  475. year:this.dateYear,
  476. month:this.dateMonth,
  477. branch_id:this.branchId,
  478. member_ids:this.memberIds.join(),
  479. photo_attach_id:this.headImgId,
  480. remark:''
  481. };
  482. if(this.editId){
  483. url = getApp().globalData.shareUrl +"api/api.php" + "?method=glory&action=update&timestamp="
  484. +getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  485. dataParams.id = this.editId;
  486. }else {
  487. url = getApp().globalData.shareUrl +"api/api.php" +
  488. "?method=glory&action=add&timestamp=" +
  489. getApp().globalData.globalTimestamp +
  490. "&sign=" +
  491. md5Sign;
  492. }
  493. uni.request({
  494. url: url,
  495. method: "POST",
  496. header: {
  497. "content-type": "application/x-www-form-urlencoded",
  498. },
  499. data:dataParams,
  500. success: (res) => {
  501. if (res.data.code === 200) {
  502. if(this.editId){
  503. uni.showToast({
  504. title: "修改成功",
  505. icon: "none",
  506. duration: 2500,
  507. });
  508. setTimeout(()=>{uni.navigateBack({})},500)
  509. }else {
  510. uni.showToast({
  511. title: "上传成功",
  512. icon: "none",
  513. duration: 2500,
  514. });
  515. setTimeout(()=>{uni.navigateBack({})},500)
  516. }
  517. }
  518. },
  519. fail: () => {
  520. console.log("连接失败");
  521. },
  522. });
  523. },
  524. }
  525. }
  526. </script>
  527. <style lang="scss" scoped>
  528. .content {
  529. &_list{
  530. display: flex;
  531. flex-direction: row;
  532. align-items: center;
  533. justify-content:space-around;
  534. &_lable{
  535. }
  536. &_content{
  537. flex: 1;
  538. width: auto;
  539. text-align: right;
  540. }
  541. }
  542. }
  543. .content-box {
  544. width: 100%;
  545. /* height: 100%; */
  546. display: flex;
  547. flex-direction: column;
  548. align-items: center;
  549. /* justify-content: center; */
  550. }
  551. .header-box {
  552. width: 85%;
  553. height:80rpx;
  554. border: .5px dotted #00A1B4;
  555. border-radius: 50rpx;
  556. display: flex;
  557. justify-content: center;
  558. align-items: center;
  559. font-size: 24rpx;
  560. color:#00A1B4 ;
  561. /* font-family: PingFangSC-Regular; */
  562. margin-top: 2%;
  563. }
  564. .header-box image {
  565. width: 36rpx;
  566. height: 36rpx;
  567. margin-right: 1%;
  568. }
  569. .self-title-box {
  570. width: 90%;
  571. display: flex;
  572. align-items: center;
  573. font-size: 32rpx;
  574. letter-spacing: 2rpx;
  575. color:#3C3C3C ;
  576. /* font-family: SimHei; */
  577. margin: 4% auto;
  578. font-weight: bold;
  579. height: 50rpx;
  580. line-height: 50rpx;
  581. }
  582. .self-title-box image {
  583. width: 6rpx;
  584. height: 32rpx;
  585. margin-right: 2%;
  586. }
  587. .info-box {
  588. width: 90%;
  589. margin: 3% auto;
  590. display: flex;
  591. flex-direction: column;
  592. // align-items: center;
  593. // height: 180rpx;
  594. }
  595. .info-title-box {
  596. width: 20%;
  597. display: flex;
  598. align-items: center;
  599. font-size: 26rpx;
  600. }
  601. .info-title-box image{
  602. width: 15rpx;
  603. height: 15rpx;
  604. margin-right: 2%;
  605. }
  606. .info-value-box {
  607. width: 100%;
  608. }
  609. .info-value-box input {
  610. height: 88rpx;
  611. background: #f7f7f7;
  612. font-size: 26rpx;
  613. padding-left: 4%;
  614. margin: 2% auto;
  615. }
  616. .info-value-box picker {
  617. position: relative;
  618. }
  619. .info-value-box picker image {
  620. position: absolute;
  621. width: 25rpx;
  622. height: 25rpx;
  623. right: 10px;
  624. top: 30rpx;
  625. }
  626. .select-box {
  627. height: 80rpx;
  628. background: #f7f7f7;
  629. font-size: 26rpx;
  630. padding-left: 4%;
  631. margin: 2% auto;
  632. color: #888;
  633. line-height: 88rpx;
  634. }
  635. .info-gender-box {
  636. width: 75%;
  637. font-size: 28rpx;
  638. }
  639. .form-radio {
  640. transform: scale(0.6);
  641. }
  642. .padding-left-2 {
  643. // padding-left: 2%;
  644. }
  645. .margin-right-10 {
  646. margin-right: 10%;
  647. }
  648. .border-line-box {
  649. width: 100%;
  650. height: 20rpx;
  651. background: #f7f7f7;
  652. }
  653. .picker-box{
  654. display: flex;
  655. align-items: center;
  656. justify-content: space-between;
  657. height: 60rpx;
  658. line-height: 60rpx;
  659. background: #f7f7f7;
  660. height: 88rpx;
  661. line-height: 88rpx;
  662. background: #f7f7f7;
  663. font-size: 28rpx;
  664. padding-left: 4%;
  665. }
  666. .uni-input image {
  667. width: 40rpx;
  668. height: 40rpx;
  669. margin-right: 2%;
  670. float: right;
  671. }
  672. .textarea-box {
  673. background: #f7f7f7;
  674. min-height: 120rpx;
  675. font-size: 28rpx;
  676. margin: 5% auto;
  677. padding: 4%;
  678. margin-bottom: 8%;
  679. }
  680. .upload-box {
  681. display: flex;
  682. flex-flow: column;
  683. width: 25%;
  684. height: 100rpx;
  685. border-radius: 10rpx;
  686. padding-top: 15rpx;
  687. image {
  688. width: 100rpx;
  689. height:100rpx;
  690. }
  691. }
  692. .upload-box-photo {
  693. width: 25%;
  694. height: 100rpx;
  695. border-radius: 10rpx;
  696. padding-top: 15rpx;
  697. position: relative;
  698. margin-left: 10rpx;
  699. }
  700. .del-icon {
  701. position: absolute;
  702. right: 0;
  703. width: 30rpx;
  704. height: 30rpx;
  705. }
  706. .update_button {
  707. text-align: center;
  708. display: flex;
  709. flex-wrap: wrap;
  710. }
  711. .picker-class {
  712. border-radius: 10rpx;
  713. padding: 10rpx;
  714. width: 73%;
  715. font-size: 28rpx;
  716. background: #f5f5f5;
  717. }
  718. .picker-class image {
  719. width: 26rpx;
  720. height: 26rpx;
  721. }
  722. .submit-bth {
  723. width: 25%;
  724. font-size: 26rpx;
  725. margin: 0 0 5% 0;
  726. color: #fff;
  727. }
  728. .select-member {
  729. input {
  730. margin: 2% 2% 2% 0;
  731. height: 80rpx;
  732. line-height: 80rpx;
  733. }
  734. button {
  735. background-color: #169bd5;
  736. margin: 0;
  737. height: 60rpx;
  738. line-height: 60rpx;
  739. width: 20%;
  740. }
  741. }
  742. </style>