record.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
  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. if(this.headImgId.length===0){
  450. uni.showToast({
  451. title: "请选上传图片",
  452. icon: "none",
  453. duration: 2500,
  454. });
  455. return
  456. }
  457. if(!params.awardName){
  458. uni.showToast({
  459. title: "请填写名称",
  460. icon: "none",
  461. duration: 2500,
  462. });
  463. return
  464. }
  465. let levelObj = {
  466. '中央':'1',
  467. '省级':'2',
  468. '市级':'3',
  469. '区级':'4',
  470. '单位':'5'
  471. }
  472. let fromObj = {
  473. '党内荣誉':'1',
  474. '社会荣誉':'2',
  475. '单位荣誉':'3',
  476. '行业荣誉':'4'
  477. }
  478. let typeObj = {
  479. '集体荣誉':'1',
  480. '个人荣誉':'2',
  481. '集体个人兼有':'3',
  482. }
  483. let md5Sign = md5("method=" + "glory" + "&timestamp=" + getApp().globalData.globalTimestamp +"&secret=" + getApp().globalData.secret)
  484. , url;
  485. let dataParams = {
  486. openid:getApp().globalData.open_id,
  487. name:params.awardName,
  488. level:levelObj[this.levelValue],
  489. from:fromObj[this.fromValue],
  490. for:typeObj[this.typeValue],
  491. year:this.dateYear,
  492. month:this.dateMonth,
  493. branch_id:this.branchId,
  494. member_ids:this.memberIds.join(),
  495. photo_attach_id:this.headImgId,
  496. remark:''
  497. };
  498. if(this.editId){
  499. url = getApp().globalData.shareUrl +"api/api.php" + "?method=glory&action=update&timestamp="
  500. +getApp().globalData.globalTimestamp + "&sign=" + md5Sign;
  501. dataParams.id = this.editId;
  502. }else {
  503. url = getApp().globalData.shareUrl +"api/api.php" +
  504. "?method=glory&action=add&timestamp=" +
  505. getApp().globalData.globalTimestamp +
  506. "&sign=" +
  507. md5Sign;
  508. }
  509. uni.request({
  510. url: url,
  511. method: "POST",
  512. header: {
  513. "content-type": "application/x-www-form-urlencoded",
  514. },
  515. data:dataParams,
  516. success: (res) => {
  517. if (res.data.code === 200) {
  518. if(this.editId){
  519. uni.showToast({
  520. title: "修改成功",
  521. icon: "none",
  522. duration: 2500,
  523. });
  524. setTimeout(()=>{uni.navigateBack({})},500)
  525. }else {
  526. let types = 'add';
  527. let pages = getCurrentPages(); // 获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。
  528. let nowPage = pages[pages.length - 1]; //当前页页面实例
  529. let prevPage = pages[pages.length - 2]; //上一页页面实例
  530. prevPage.$vm.pageRefreshHonor(types)
  531. uni.showToast({
  532. title: "上传成功",
  533. icon: "none",
  534. duration: 2500,
  535. });
  536. setTimeout(()=>{uni.navigateBack({delta:1})},500)
  537. }
  538. }
  539. },
  540. fail: () => {
  541. console.log("连接失败");
  542. },
  543. });
  544. },
  545. }
  546. }
  547. </script>
  548. <style lang="scss" scoped>
  549. .content {
  550. &_list{
  551. display: flex;
  552. flex-direction: row;
  553. align-items: center;
  554. justify-content:space-around;
  555. &_lable{
  556. }
  557. &_content{
  558. flex: 1;
  559. width: auto;
  560. text-align: right;
  561. }
  562. }
  563. }
  564. .content-box {
  565. width: 100%;
  566. /* height: 100%; */
  567. display: flex;
  568. flex-direction: column;
  569. align-items: center;
  570. /* justify-content: center; */
  571. }
  572. .header-box {
  573. width: 85%;
  574. height:80rpx;
  575. border: .5px dotted #00A1B4;
  576. border-radius: 50rpx;
  577. display: flex;
  578. justify-content: center;
  579. align-items: center;
  580. font-size: 24rpx;
  581. color:#00A1B4 ;
  582. /* font-family: PingFangSC-Regular; */
  583. margin-top: 2%;
  584. }
  585. .header-box image {
  586. width: 36rpx;
  587. height: 36rpx;
  588. margin-right: 1%;
  589. }
  590. .self-title-box {
  591. width: 90%;
  592. display: flex;
  593. align-items: center;
  594. font-size: 32rpx;
  595. letter-spacing: 2rpx;
  596. color:#3C3C3C ;
  597. /* font-family: SimHei; */
  598. margin: 4% auto;
  599. font-weight: bold;
  600. height: 50rpx;
  601. line-height: 50rpx;
  602. }
  603. .self-title-box image {
  604. width: 6rpx;
  605. height: 32rpx;
  606. margin-right: 2%;
  607. }
  608. .info-box {
  609. width: 90%;
  610. margin: 3% auto;
  611. display: flex;
  612. flex-direction: column;
  613. // align-items: center;
  614. // height: 180rpx;
  615. }
  616. .info-title-box {
  617. width: 20%;
  618. display: flex;
  619. align-items: center;
  620. font-size: 26rpx;
  621. }
  622. .info-title-box image{
  623. width: 15rpx;
  624. height: 15rpx;
  625. margin-right: 2%;
  626. }
  627. .info-value-box {
  628. width: 100%;
  629. }
  630. .info-value-box input {
  631. height: 88rpx;
  632. background: #f7f7f7;
  633. font-size: 26rpx;
  634. padding-left: 4%;
  635. margin: 2% auto;
  636. }
  637. .info-value-box picker {
  638. position: relative;
  639. }
  640. .info-value-box picker image {
  641. position: absolute;
  642. width: 25rpx;
  643. height: 25rpx;
  644. right: 10px;
  645. top: 30rpx;
  646. }
  647. .select-box {
  648. height: 80rpx;
  649. background: #f7f7f7;
  650. font-size: 26rpx;
  651. padding-left: 4%;
  652. margin: 2% auto;
  653. color: #888;
  654. line-height: 88rpx;
  655. }
  656. .info-gender-box {
  657. width: 75%;
  658. font-size: 28rpx;
  659. }
  660. .form-radio {
  661. transform: scale(0.6);
  662. }
  663. .padding-left-2 {
  664. // padding-left: 2%;
  665. }
  666. .margin-right-10 {
  667. margin-right: 10%;
  668. }
  669. .border-line-box {
  670. width: 100%;
  671. height: 20rpx;
  672. background: #f7f7f7;
  673. }
  674. .picker-box{
  675. display: flex;
  676. align-items: center;
  677. justify-content: space-between;
  678. height: 60rpx;
  679. line-height: 60rpx;
  680. background: #f7f7f7;
  681. height: 88rpx;
  682. line-height: 88rpx;
  683. background: #f7f7f7;
  684. font-size: 28rpx;
  685. padding-left: 4%;
  686. }
  687. .uni-input image {
  688. width: 40rpx;
  689. height: 40rpx;
  690. margin-right: 2%;
  691. float: right;
  692. }
  693. .textarea-box {
  694. background: #f7f7f7;
  695. min-height: 120rpx;
  696. font-size: 28rpx;
  697. margin: 5% auto;
  698. padding: 4%;
  699. margin-bottom: 8%;
  700. }
  701. .upload-box {
  702. display: flex;
  703. flex-flow: column;
  704. width: 25%;
  705. height: 100rpx;
  706. border-radius: 10rpx;
  707. padding-top: 15rpx;
  708. image {
  709. width: 100rpx;
  710. height:100rpx;
  711. }
  712. }
  713. .upload-box-photo {
  714. width: 25%;
  715. height: 100rpx;
  716. border-radius: 10rpx;
  717. padding-top: 15rpx;
  718. position: relative;
  719. margin-left: 10rpx;
  720. }
  721. .del-icon {
  722. position: absolute;
  723. right: 0;
  724. width: 30rpx;
  725. height: 30rpx;
  726. }
  727. .update_button {
  728. text-align: center;
  729. display: flex;
  730. flex-wrap: wrap;
  731. }
  732. .picker-class {
  733. border-radius: 10rpx;
  734. padding: 10rpx;
  735. width: 73%;
  736. font-size: 28rpx;
  737. background: #f5f5f5;
  738. }
  739. .picker-class image {
  740. width: 26rpx;
  741. height: 26rpx;
  742. }
  743. .submit-bth {
  744. width: 25%;
  745. font-size: 26rpx;
  746. margin: 0 0 5% 0;
  747. color: #fff;
  748. }
  749. .select-member {
  750. input {
  751. margin: 2% 2% 2% 0;
  752. height: 80rpx;
  753. line-height: 80rpx;
  754. }
  755. button {
  756. background-color: #169bd5;
  757. margin: 0;
  758. height: 60rpx;
  759. line-height: 60rpx;
  760. width: 20%;
  761. }
  762. }
  763. </style>