record.vue 22 KB

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