satisfactionQuestions.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354
  1. <template>
  2. <view class="container">
  3. <scroll-view
  4. class="scroll_view"
  5. scroll-y
  6. scroll-with-animation
  7. scroll-anchoring
  8. :scroll-into-view="point"
  9. >
  10. <view class="top_bg_box">
  11. <image mode="widthFix" :src="icon.satisfaction.ques_top_bg"></image>
  12. <view class="ques_introduce displayFlexCol">
  13. <text>{{ quesList.SubjectTitle }}</text>
  14. <text>{{ quesList.Remark }}</text>
  15. </view>
  16. </view>
  17. <view class="main_box">
  18. <view class="mask_form" v-if="complete"></view>
  19. <block v-for="(item, index) in quesList.QuestionList" :key="index">
  20. <view
  21. class="ques_item_box"
  22. :id="'p' + index"
  23. :class="item.QuestType == 'SubTitle' ? 'sub_title' : ''"
  24. >
  25. <view class="ques_title_box">
  26. <text class="mustQuest_tag" wx:if="{{item.MustQuest}}">*</text>
  27. <text v-if="item.QuestType != 'SubTitle'">{{ item.Sort }}.{{ item.Question }}</text>
  28. <text v-if="item.QuestType == 'SubTitle'">{{ item.Num }}、{{ item.Question }}</text>
  29. </view>
  30. <!-- 填空题 -->
  31. <view
  32. class="ques_options align_items_left displayFlexCol"
  33. v-if="item.QuestType == 'Input'"
  34. >
  35. <text class="input_label">{{ item.Question }}:</text>
  36. <view class="textarea_box">
  37. <textarea
  38. auto-height
  39. :data-index="index"
  40. :placeholder="'最多输入' + item.RuleInfo.MaxLength + '个字'"
  41. :maxlength="item.RuleInfo.MaxLength"
  42. :value="item.AnswerList"
  43. @blur="setVal"
  44. />
  45. </view>
  46. </view>
  47. <!-- 矩阵填空题 -->
  48. <view
  49. class="ques_options align_items_left displayFlexCol"
  50. v-if="item.QuestType == 'MatrixInput'"
  51. >
  52. <block
  53. v-for="(childItem, childIndex) in item.MatrixQuestionList"
  54. :key="`MatrixInput-${index}-${childIndex}`"
  55. >
  56. <view class="matrix_input_box margin_bottom_10 displayFlexRow">
  57. <text>{{ childItem.Question }}:</text>
  58. <view class="textarea_box matrix_textarea_box">
  59. <textarea
  60. auto-height
  61. :data-index="index"
  62. :data-childindex="childIndex"
  63. :placeholder="'最多输入' + childItem.RuleInfo.MaxLength + '个字'"
  64. :maxlength="childItem.RuleInfo.MaxLength"
  65. :value="childItem.AnswerList"
  66. @input="setVal"
  67. />
  68. </view>
  69. </view>
  70. </block>
  71. </view>
  72. <!-- 单选/多选题 -->
  73. <view
  74. class="ques_options displayFlexCol"
  75. v-if="item.QuestType == 'Radio' || item.QuestType == 'Checkbox'"
  76. >
  77. <block
  78. v-for="(childItem, childIndex) in item.QuestionItemList"
  79. :key="`Checkbox-${index}-${childIndex}`"
  80. >
  81. <text
  82. class="choice_item"
  83. :class="fn.answer(item, childItem.ItemId) ? 'active_option' : ''"
  84. :data-index="index"
  85. :data-childindex="childIndex"
  86. @click="choiceOption"
  87. >
  88. {{ childItem.ItemName }}
  89. </text>
  90. </block>
  91. </view>
  92. <!-- 选择题 -->
  93. <view class="ques_options displayFlexCol" v-if="item.QuestType == 'Select'">
  94. <picker
  95. class="picker_box"
  96. range-key="ItemName"
  97. :range="item.QuestionItemList"
  98. :data-index="index"
  99. :value="item.AnswerList"
  100. @change="bindPickerChange"
  101. >
  102. <view class="picker displayFlexRow">
  103. <text>{{ item.QuestionItemList[item.AnswerList].ItemName }}</text>
  104. <image :src="icon.satisfaction.right" mode="" />
  105. </view>
  106. </picker>
  107. </view>
  108. <!-- 矩阵单选题/矩阵多选题/矩阵量表 -->
  109. <view
  110. class="ques_options matrix_border displayFlexCol"
  111. v-if="
  112. item.QuestType == 'MatrixRadio' ||
  113. item.QuestType == 'MatrixCheckbox' ||
  114. item.QuestType == 'MatrixScale'
  115. "
  116. >
  117. <view class="matrix_options matrix_options_title displayFlexRow">
  118. <block
  119. v-for="(childItem, childIndex) in item.MatrixQuestionList[0].QuestionItemList"
  120. :key="`${item.QuestType}0-${index}-${childIndex}`"
  121. >
  122. <text
  123. :style="{
  124. width: fn.getWidth(item.MatrixQuestionList[0].QuestionItemList.length) + '%',
  125. }"
  126. >
  127. {{ childItem.ItemName }}
  128. </text>
  129. </block>
  130. </view>
  131. <block
  132. v-for="(childItem, childIndex) in item.MatrixQuestionList"
  133. :key="`${item.QuestType}-${index}-${childIndex}`"
  134. >
  135. <view class="matrix_icon_box displayFlexCol">
  136. <text
  137. :style="{
  138. width: fn.getWidth(item.MatrixQuestionList[0].QuestionItemList.length) + '%',
  139. }"
  140. >{{ childItem.Question }}</text
  141. >
  142. <view class="matrix_options displayFlexBetween">
  143. <block
  144. v-for="(sunItem, sunIndex) in childItem.QuestionItemList"
  145. :key="`${item.QuestType}-${index}-${childIndex}-${sunIndex}`"
  146. >
  147. <view
  148. class="displayFlexRow"
  149. :data-index="index"
  150. :data-childindex="childIndex"
  151. :data-sunindex="sunIndex"
  152. @click="choiceMatrixOption"
  153. >
  154. <!-- 矩阵单选/矩阵量表 -->
  155. <image
  156. :src="
  157. fn.answer(childItem, sunItem.ItemId)
  158. ? icon.satisfaction.circle_active
  159. : icon.satisfaction.circle
  160. "
  161. mode=""
  162. v-if="item.QuestType == 'MatrixRadio' || item.QuestType == 'MatrixScale'"
  163. />
  164. <!-- 矩阵多选 -->
  165. <image
  166. :src="
  167. fn.answer(childItem, sunItem.ItemId)
  168. ? icon.satisfaction.checkBox_circle_active
  169. : icon.satisfaction.checkBox_circle
  170. "
  171. mode=""
  172. v-if="item.QuestType == 'MatrixCheckbox'"
  173. />
  174. </view>
  175. </block>
  176. </view>
  177. </view>
  178. </block>
  179. </view>
  180. <!-- 上传文件题 -->
  181. <view class="ques_options displayFlexCol" v-if="item.QuestType == 'UploadImage'">
  182. <view class="img_list displayFlexRow">
  183. <image
  184. class="add_img"
  185. mode=""
  186. :src="icon.satisfaction.add"
  187. :data-index="index"
  188. @click="choiceFile"
  189. />
  190. <block
  191. v-for="(imgItem, imgIndex) in item.AnswerList"
  192. :key="`UploadImage-${index}-${imgIndex}`"
  193. >
  194. <view class="add_img">
  195. <image class="item_img" :src="imgItem" mode="" />
  196. <image
  197. class="cha_img"
  198. :src="icon.satisfaction.cha_green"
  199. mode=""
  200. :data-index="index"
  201. :data-imgitem="imgItem"
  202. @click="closeImg"
  203. />
  204. </view>
  205. </block>
  206. </view>
  207. <view class="add_img_tips p_flexStart">
  208. <text>限制:</text>
  209. <text> 仅支持图片上传、</text>
  210. <text>
  211. 大小不超过{{ item.RuleInfo.FileSize }}M数量不超过{{ item.RuleInfo.FileCount }}个
  212. </text>
  213. </view>
  214. </view>
  215. <!-- 量表题 -->
  216. <view class="ques_options displayFlexRow" v-if="item.QuestType == 'Scale'">
  217. <block
  218. v-for="(childItem, childIndex) in item.QuestionItemList"
  219. :key="`Scale-${index}-${childIndex}`"
  220. >
  221. <view
  222. class="options_item_box displayFlexCol"
  223. :data-index="index"
  224. :data-childindex="childIndex"
  225. @click="choiceOption"
  226. >
  227. <text>{{ childItem.ItemName }}</text>
  228. <image
  229. :src="
  230. fn.answer(item, childItem.ItemId)
  231. ? icon.satisfaction.circle_active
  232. : icon.satisfaction.circle
  233. "
  234. mode=""
  235. />
  236. </view>
  237. </block>
  238. </view>
  239. </view>
  240. </block>
  241. </view>
  242. </scroll-view>
  243. <!-- <view class="yjfl" @click="yjfk">
  244. <image :src="icon.satisfaction.yjfk" alt="" style="width: 140rpx; height: 140rpx" />
  245. <view class="title"> 意见反馈 </view>
  246. </view> -->
  247. <view class="footer_box displayFlexRow">
  248. <text :class="complete ? 'backgroundCustom_D9' : ''" @click="submit">提交</text>
  249. </view>
  250. <!-- 是否实名弹窗 -->
  251. <view class="modal_wrap" v-if="showModal_Anonymous">
  252. <view class="modal_box">
  253. <view class="modal_tit">是否实名填写</view>
  254. <view class="modal_con">
  255. <view class="modal_box_b1" @click="isAnonymous(1)">实名填写</view>
  256. <view class="modal_box_b1" @click="isAnonymous(2)">匿名填写</view>
  257. </view>
  258. </view>
  259. </view>
  260. <!-- 是否实名弹窗 -->
  261. <view class="modal_wrap" v-if="showModal_User">
  262. <view class="modal_box">
  263. <view class="modal_tit">请选择答卷人</view>
  264. <view class="modal_con">
  265. <view class="modal_user_item" v-if="currentUser.memberName" @click="goSelMember">
  266. <view>
  267. <view>
  268. <text class="modal_t1">{{ currentUser.memberName }}</text>
  269. <text class="modal_t2">
  270. {{ currentUser.sex == 1 ? '男' : currentUser.sex == 2 ? '女' : '未知' }} |
  271. {{ currentUser.age }}岁
  272. </text>
  273. </view>
  274. <view class="modal_t3">{{ currentUser.mobile }}</view>
  275. </view>
  276. <image class="modal_user_right_img" :src="icon.satisfaction.right"></image>
  277. </view>
  278. <view class="modal_user_item" wx:else @click="goSelMember">
  279. <view>点击选择答卷人</view>
  280. <image class="modal_user_right_img" :src="icon.satisfaction.right"></image>
  281. </view>
  282. <view class="modal_btn_wrap displayFlexBetween" v-if="currentUser.memberName">
  283. <view class="modal_btn modal_btn1" @click="goBack">取消</view>
  284. <view class="modal_btn modal_btn2" @click="confirmMember">确定</view>
  285. </view>
  286. </view>
  287. </view>
  288. </view>
  289. </view>
  290. </template>
  291. <script lang="ts" setup>
  292. import { reactive, ref } from 'vue';
  293. import { useOnLoad } from '@/hook';
  294. import { useDomain } from '@kasite/uni-app-base';
  295. import { mapGetters } from '@kasite/uni-app-base/store/hook';
  296. import {
  297. QuerySubjectListToChannelTask_V3,
  298. QuerySubjectInfoById_V3,
  299. UploadZxFile,
  300. CommitAnswer_V3,
  301. QuerySample_V3,
  302. } from '../../service';
  303. import icon from '@/utils/icon';
  304. import { common, throttle } from '@/utils';
  305. import fn from './fn';
  306. const app = getApp();
  307. let time = null;
  308. const currentUser = ref({} as any);
  309. const taskId = ref('');
  310. const objType = ref('3'); // 3门诊 4住院
  311. const quesList = ref({} as any);
  312. const imgList = ref([]);
  313. const point = ref('');
  314. const complete = ref(false);
  315. const anonymousType = ref(0);
  316. const showModal_Anonymous = ref(false); // 是否实名填写弹窗显示
  317. const showModal_User = ref(false); // 实名用户选择弹窗显示
  318. let quesAnswers = reactive({
  319. MemberId: '',
  320. TaskId: '-1',
  321. SysAppId: 'visit',
  322. SubjectId: '',
  323. UserAgent: '',
  324. IP: '',
  325. Location: '',
  326. Mobile: '',
  327. UserName: '',
  328. Sex: '',
  329. Age: '',
  330. ThirdPartyId: '',
  331. AnswerUseTime: 0,
  332. PushDept: '',
  333. PushDeptName: '',
  334. BedNo: '',
  335. HospitalNo: '',
  336. CardNo: '',
  337. AnswerList: [],
  338. });
  339. const { getCurrentUser } = mapGetters({
  340. getCurrentUser: 'getCurrentUser',
  341. });
  342. const main = async (options) => {
  343. currentUser.value = getCurrentUser();
  344. const params = {
  345. SubjectId: options.subjectId,
  346. TaskId: options.taskId,
  347. };
  348. const resp = await QuerySubjectListToChannelTask_V3(params);
  349. if (!common.isEmpty(resp)) {
  350. objType.value = resp[0].GroupType;
  351. //匿名有3种传参 ""(空) "true" "false" 转换字符串为布尔值
  352. let anonymous =
  353. resp[0].Anonymous === 'false'
  354. ? false
  355. : resp[0].Anonymous === 'true'
  356. ? true
  357. : resp[0].Anonymous || '';
  358. // type 1实名 2:匿名 3自行选择
  359. anonymousType.value = anonymous === '' ? 3 : anonymous === false ? 1 : 2;
  360. showModal_Anonymous.value = anonymous == 3 ? true : false;
  361. taskId.value = options.taskId;
  362. quesAnswers.SubjectId = options.subjectId;
  363. //如果不是执行选择直接调用对应填写按钮
  364. if (anonymous != 3) {
  365. isAnonymous(anonymousType.value);
  366. }
  367. await querySubjectInfoById_V3();
  368. // 查询样本和答案
  369. // await querySample_V3();
  370. // 开始计算答卷时间
  371. getSec();
  372. if(options?.type == "sms_myddc") {
  373. currentUser.value.cardNo = options.cardNo
  374. currentUser.value.cardType = options.cardType
  375. showModal_Anonymous.value = false
  376. showModal_User.value = false
  377. }
  378. } else {
  379. common.showModal('该任务已失效', () => {
  380. common.goToUrl(`/pages/business/tabbar/homePage/homePage`, { skipWay: 'reLaunch' });
  381. });
  382. return;
  383. }
  384. };
  385. /** 实名/匿名 */
  386. const isAnonymous = (type) => {
  387. //实名
  388. if (type == 1) {
  389. showModal_Anonymous.value = false;
  390. showModal_User.value = true;
  391. }
  392. //匿名
  393. else {
  394. // currentUser.value = {};
  395. showModal_Anonymous.value = false;
  396. }
  397. };
  398. /** 问卷详情 */
  399. const querySubjectInfoById_V3 = async () => {
  400. const resp = await QuerySubjectInfoById_V3({
  401. SubjectId: quesAnswers.SubjectId,
  402. });
  403. if (common.isNotEmpty(resp)) {
  404. if (resp[0].Status != 0) {
  405. common.showModal('该问卷已失效', () => {
  406. common.navigateBack(1);
  407. });
  408. return;
  409. }
  410. if (resp[0].State != 1) {
  411. common.showModal('该问卷未发布', () => {
  412. common.navigateBack(1);
  413. });
  414. return;
  415. }
  416. // 提交答案数据模版
  417. quesAnswers.PushDept = resp[0].DeptId;
  418. quesAnswers.PushDeptName = resp[0].PushDeptName;
  419. resp[0].QuestionList.forEach((item, index) => {
  420. item.AnswerList = [];
  421. item.MustQuest = item.MustQuest == 'false' ? false : true;
  422. item.RuleInfo = item.RuleInfo != '' ? JSON.parse(item.RuleInfo) : '';
  423. // 多选框
  424. if (item.QuestType == 'Select') {
  425. item.AnswerList = 0;
  426. }
  427. if (common.isNotEmpty(item.MatrixQuestionList)) {
  428. item.MatrixQuestionList.forEach((childItem) => {
  429. childItem.AnswerList = [];
  430. childItem.RuleInfo = childItem.RuleInfo != '' ? JSON.parse(childItem.RuleInfo) : '';
  431. // 答案列表模版
  432. let answerItem = {
  433. Answer: [],
  434. Blank: index,
  435. QuestId: childItem.QuestId,
  436. QuestType: item.QuestType,
  437. MustQuest: item.MustQuest,
  438. };
  439. quesAnswers.AnswerList.push(answerItem);
  440. if (common.isNotEmpty(childItem.QuestionItemList)) {
  441. childItem.QuestionItemList.forEach((sunItem) => {
  442. sunItem.Check = false;
  443. });
  444. }
  445. });
  446. } else {
  447. // 答案列表模版
  448. let answerItem = {
  449. Answer: [],
  450. Blank: index,
  451. QuestId: item.QuestId,
  452. QuestType: item.QuestType,
  453. MustQuest: item.MustQuest,
  454. };
  455. quesAnswers.AnswerList.push(answerItem);
  456. }
  457. });
  458. resp[0].QuestionList = bySort(resp[0].QuestionList);
  459. quesList.value = resp[0];
  460. }
  461. };
  462. /** 查询样本和答案 */
  463. const querySample_V3 = async () => {
  464. const resp = await QuerySample_V3({
  465. SubjectId: quesAnswers.SubjectId,
  466. IsGetAnswer: true,
  467. ThirdPartyId: currentUser.MemberId,
  468. State: 1
  469. });
  470. if (common.isNotEmpty(resp)) {
  471. quesList.value.QuestionList.forEach((item) => {
  472. resp[0].AnswerList.forEach((childItem) => {
  473. if(item.QuestId == childItem.QuestId) {
  474. if(item.QuestType == "Input") {
  475. item.AnswerList = childItem.Answer
  476. }
  477. if(item.QuestType == "UploadImage") {
  478. item.AnswerList = childItem.Answer.split(",")
  479. }
  480. if(common.isNotEmpty(item.QuestionItemList)) {
  481. if(item.QuestType == "Select"){
  482. item.QuestionItemList.forEach((sunItem,sunIndex) => {
  483. if(sunItem.ItemId == childItem.Answer) {
  484. item.AnswerList = sunIndex
  485. }
  486. })
  487. }else {
  488. item.AnswerList = childItem.Answer.split(",")
  489. }
  490. }
  491. }
  492. if(common.isNotEmpty(item.MatrixQuestionList)) {
  493. item.MatrixQuestionList.forEach((sunItem) => {
  494. if(sunItem.QuestId == childItem.QuestId) {
  495. if(sunItem.QuestType == "MatrixInput") {
  496. sunItem.AnswerList = childItem.Answer
  497. }
  498. if(sunItem.QuestType == "MatrixCheckbox" || sunItem.QuestType == "MatrixRadio" || sunItem.QuestType == "MatrixScale") {
  499. sunItem.AnswerList = childItem.Answer.split(",")
  500. }
  501. }
  502. })
  503. }
  504. })
  505. })
  506. complete.value = true;
  507. }
  508. }
  509. /** 计算答题时间 */
  510. const getSec = () => {
  511. time = setTimeout(() => {
  512. let answerUseTime = quesAnswers.AnswerUseTime;
  513. answerUseTime++;
  514. quesAnswers.AnswerUseTime = answerUseTime;
  515. getSec();
  516. }, 1000);
  517. };
  518. /** 根据子标题排序 */
  519. const bySort = (list: any[]) => {
  520. let find = 0;
  521. let sort = 0;
  522. let item = {} as any;
  523. for (var t = 0; t < list.length; t++) {
  524. item = list[t];
  525. //子标题
  526. if (item.QuestType == 'SubTitle') {
  527. //将子标题底下的题目从1开始排
  528. sort = 0;
  529. //判断是出现的第几个子标题
  530. //num是子标题的排序
  531. item.Num = toChinesNum(find + 1);
  532. find++;
  533. } else {
  534. //sort是子标题底下的排序
  535. item.Sort = sort + 1;
  536. sort++;
  537. }
  538. item.SortNum = t;
  539. if (common.isNotEmpty(item.QuestionItemList)) {
  540. item.QuestionItemList.forEach((childItem, childIndex) => {
  541. childItem.SortNum = childIndex;
  542. if (common.isNotEmpty(childItem.QuestionItem)) {
  543. childItem.QuestionItem.forEach((sunItem, sunIndex) => {
  544. sunItem.SortNum = sunIndex;
  545. });
  546. }
  547. });
  548. }
  549. }
  550. return list;
  551. };
  552. /** 汉字顺序 */
  553. const toChinesNum = (num) => {
  554. var changeNum = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十'],
  555. newNum = '',
  556. arr = num.toString().split('');
  557. arr[0] = parseInt(arr[0]) - 1;
  558. if (arr[0] == -1 && arr.length == 1) {
  559. return '零';
  560. }
  561. if (arr.length > 1) {
  562. arr[1] = parseInt(arr[1]) - 1;
  563. if (!arr[0]) {
  564. newNum = !arr[0] && arr[1] == -1 ? changeNum[9] : changeNum[9] + changeNum[arr[1]];
  565. } else {
  566. newNum = changeNum[arr[0]] + changeNum[9] + (changeNum[arr[1]] ? changeNum[arr[1]] : '');
  567. }
  568. } else {
  569. newNum = changeNum[arr[0]];
  570. }
  571. return newNum;
  572. };
  573. /** 单选/多选/量表 */
  574. const choiceOption = (e) => {
  575. let index = e.currentTarget.dataset.index;
  576. let childIndex = e.currentTarget.dataset.childindex;
  577. let answerIndex = 0;
  578. let questionList = quesList.value.QuestionList;
  579. let answerList = quesAnswers.AnswerList;
  580. answerList.forEach((itm, ind) => {
  581. if (itm.QuestId == questionList[index].QuestId) {
  582. answerIndex = ind;
  583. }
  584. });
  585. // 单选/量表
  586. if (questionList[index].QuestType == 'Radio' || questionList[index].QuestType == 'Scale') {
  587. if (
  588. questionList[index].AnswerList[0] != questionList[index].QuestionItemList[childIndex].ItemId
  589. ) {
  590. questionList[index].AnswerList = [];
  591. questionList[index].AnswerList.push(questionList[index].QuestionItemList[childIndex].ItemId);
  592. }
  593. answerList[answerIndex].Answer = questionList[index].QuestionItemList[childIndex].ItemId;
  594. }
  595. // 多选
  596. else if (questionList[index].QuestType == 'Checkbox') {
  597. let flag = false;
  598. questionList[index].AnswerList.forEach((item) => {
  599. if (item == questionList[index].QuestionItemList[childIndex].ItemId) {
  600. flag = true;
  601. }
  602. });
  603. if (flag) {
  604. questionList[index].AnswerList = questionList[index].AnswerList.filter((item) => {
  605. return item != questionList[index].QuestionItemList[childIndex].ItemId;
  606. });
  607. answerList[answerIndex].Answer = answerList[answerIndex].Answer.filter((fiItem) => {
  608. return fiItem != questionList[index].QuestionItemList[childIndex].ItemId;
  609. });
  610. } else {
  611. if (questionList[index].RuleInfo.MaxLength < questionList[index].AnswerList.length + 1) {
  612. common.showModal('最多选择' + questionList[index].RuleInfo.MaxLength + '项');
  613. return;
  614. }
  615. questionList[index].AnswerList.push(questionList[index].QuestionItemList[childIndex].ItemId);
  616. answerList[answerIndex].Answer.push(questionList[index].QuestionItemList[childIndex].ItemId);
  617. }
  618. }
  619. quesList.value.QuestionList = questionList;
  620. quesAnswers.AnswerList = answerList;
  621. };
  622. /** 选择题 */
  623. const bindPickerChange = (e) => {
  624. let index = e.currentTarget.dataset.index;
  625. let val = e.detail.value;
  626. let questionList = quesList.value.QuestionList;
  627. let answerList = quesAnswers.AnswerList;
  628. let answerIndex = 0;
  629. answerList.forEach((itm, ind) => {
  630. if (itm.QuestId == questionList[index].QuestId) {
  631. answerIndex = ind;
  632. }
  633. });
  634. questionList[index].AnswerList = val;
  635. answerList[answerIndex].Answer = questionList[index].QuestionItemList[val].ItemId;
  636. quesList.value.QuestionList = questionList;
  637. quesAnswers.AnswerList = answerList;
  638. };
  639. /** 矩阵单选 */
  640. const choiceMatrixOption = (e) => {
  641. let index = e.currentTarget.dataset.index;
  642. let childIndex = e.currentTarget.dataset.childindex;
  643. let sunIndex = e.currentTarget.dataset.sunindex;
  644. let questionList = quesList.value.QuestionList;
  645. let answerList = quesAnswers.AnswerList;
  646. let answerIndex = 0;
  647. answerList.forEach((itm, ind) => {
  648. if (itm.QuestId == questionList[index].MatrixQuestionList[childIndex].QuestId) {
  649. answerIndex = ind;
  650. }
  651. });
  652. // 矩阵单选/矩阵量表
  653. if (
  654. questionList[index].QuestType == 'MatrixRadio' ||
  655. questionList[index].QuestType == 'MatrixScale'
  656. ) {
  657. if (
  658. questionList[index].MatrixQuestionList[childIndex].AnswerList[0] !=
  659. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  660. ) {
  661. questionList[index].MatrixQuestionList[childIndex].AnswerList = [];
  662. questionList[index].MatrixQuestionList[childIndex].AnswerList.push(
  663. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  664. );
  665. }
  666. answerList[answerIndex].Answer =
  667. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId;
  668. }
  669. // 矩阵多选
  670. else if (questionList[index].QuestType == 'MatrixCheckbox') {
  671. let flag = false;
  672. questionList[index].MatrixQuestionList[childIndex].AnswerList.forEach((item) => {
  673. if (
  674. item == questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  675. ) {
  676. flag = true;
  677. }
  678. });
  679. if (flag) {
  680. questionList[index].MatrixQuestionList[childIndex].AnswerList = questionList[
  681. index
  682. ].MatrixQuestionList[childIndex].AnswerList.filter((item) => {
  683. return (
  684. item !=
  685. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  686. );
  687. });
  688. answerList[answerIndex].Answer = answerList[answerIndex].Answer.filter((fiItem) => {
  689. return (
  690. fiItem !=
  691. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  692. );
  693. });
  694. } else {
  695. questionList[index].MatrixQuestionList[childIndex].AnswerList.push(
  696. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  697. );
  698. answerList[answerIndex].Answer.push(
  699. questionList[index].MatrixQuestionList[childIndex].QuestionItemList[sunIndex].ItemId
  700. );
  701. }
  702. }
  703. quesList.value.QuestionList = questionList;
  704. quesAnswers.AnswerList = answerList;
  705. };
  706. /** 选择文件 */
  707. const choiceFile = (e) => {
  708. let index = e.currentTarget.dataset.index;
  709. let questionList = quesList.value.QuestionList;
  710. let answerList = quesAnswers.AnswerList;
  711. let answerIndex = 0;
  712. answerList.forEach((itm, ind) => {
  713. if (itm.QuestId == questionList[index].QuestId) {
  714. answerIndex = ind;
  715. }
  716. });
  717. if (answerList[answerIndex].Answer.length >= questionList[index].RuleInfo.FileCount) {
  718. common.showModal('最多上传' + questionList[index].RuleInfo.FileCount + '张图片');
  719. return;
  720. }
  721. uni.chooseMedia({
  722. count: questionList[index].RuleInfo.FileCount,
  723. mediaType: ['image'],
  724. sourceType: ['album', 'camera'],
  725. sizeType: ['compressed'],
  726. async success(res) {
  727. uni.showLoading({
  728. title: '上传中。。。',
  729. });
  730. for (var i = 0; i < res.tempFiles.length; i++) {
  731. let m = 1024 * 1024;
  732. if (res.tempFiles[i].size < m) {
  733. let imgUrl = (await uploadFile(
  734. res.tempFiles[i].tempFilePath,
  735. questionList[index].RuleInfo.FileCount,
  736. answerList[answerIndex].Answer
  737. )) as string;
  738. if (common.isNotEmpty(imgUrl)) {
  739. imgUrl =
  740. imgUrl.indexOf('http') > -1 ? imgUrl : useDomain() + imgUrl.replace(/\\/g, '/');
  741. answerList[answerIndex].Answer.push(imgUrl);
  742. questionList[index].AnswerList = answerList[answerIndex].Answer;
  743. quesList.value.QuestionList = questionList;
  744. quesAnswers.AnswerList = answerList;
  745. if (res.tempFiles.length - 1 == i) {
  746. uni.hideLoading();
  747. }
  748. }
  749. } else {
  750. uni.hideLoading();
  751. common.showModal('文件不得大于' + questionList[index].RuleInfo.FileSize + 'M');
  752. return;
  753. }
  754. }
  755. },
  756. });
  757. };
  758. /** 上传文件 */
  759. const uploadFile = (imgItem, fileCount, imgList) => {
  760. return new Promise((resolve, reject) => {
  761. if (imgList.length >= fileCount) {
  762. uni.hideLoading();
  763. common.showModal('最多上传' + fileCount + '张图片');
  764. return;
  765. }
  766. // 将图片上传至服务器
  767. uni.uploadFile({
  768. url: UploadZxFile,
  769. filePath: imgItem,
  770. name: 'newsFile',
  771. formData: {
  772. user: 'test',
  773. },
  774. header: {
  775. token: uni.getStorageSync('token'),
  776. },
  777. data: {},
  778. success(res) {
  779. const data = JSON.parse(res.data);
  780. if (data.RespCode == '10000') {
  781. resolve(data.url);
  782. } else {
  783. common.showModal(data.msg);
  784. }
  785. },
  786. });
  787. });
  788. };
  789. /** 删除图片 */
  790. const closeImg = (e) => {
  791. let index = e.currentTarget.dataset.index;
  792. let imgItem = e.currentTarget.dataset.imgitem;
  793. let questionList = quesList.value.QuestionList;
  794. let answerList = quesAnswers.AnswerList;
  795. let answerIndex = 0;
  796. answerList.forEach((itm, ind) => {
  797. if (itm.QuestId == questionList[index].QuestId) {
  798. answerIndex = ind;
  799. }
  800. });
  801. answerList[answerIndex].Answer = answerList[answerIndex].Answer.filter((item) => {
  802. return item != imgItem;
  803. });
  804. questionList[index].AnswerList = answerList[answerIndex].Answer;
  805. quesList.value.QuestionList = questionList;
  806. quesAnswers.AnswerList = answerList;
  807. };
  808. /** 获取input值 */
  809. const setVal = (e) => {
  810. let index = e.currentTarget.dataset.index;
  811. let childIndex = e.currentTarget.dataset.childindex;
  812. let questionList = quesList.value.QuestionList;
  813. let answerList = quesAnswers.AnswerList;
  814. let answerIndex = 0;
  815. // 矩阵填空题
  816. if (questionList[index].QuestType == 'MatrixInput') {
  817. if (
  818. questionList[index].MatrixQuestionList[childIndex].AnswerList.length ==
  819. questionList[index].MatrixQuestionList[childIndex].RuleInfo.MaxLength
  820. ) {
  821. common.showToast(
  822. '最多输入' + questionList[index].MatrixQuestionList[childIndex].RuleInfo.MaxLength + '个字'
  823. );
  824. return;
  825. }
  826. answerList.forEach((itm, ind) => {
  827. if (itm.QuestId == questionList[index].MatrixQuestionList[childIndex].QuestId) {
  828. answerIndex = ind;
  829. }
  830. });
  831. questionList[index].MatrixQuestionList[childIndex].AnswerList = e.detail.value;
  832. }
  833. // 填空题
  834. else {
  835. if (questionList[index].RuleInfo.DataType != '无') {
  836. let dataTypeOptions = questionList[index].RuleInfo.DataTypeOptions;
  837. for (var i = 0; i < dataTypeOptions.length; i++) {
  838. if (questionList[index].RuleInfo.DataType == dataTypeOptions[i].Value) {
  839. const regRule = dataTypeOptions[i].Rule;
  840. let reg = null;
  841. if (regRule.startsWith('/') && regRule.endsWith('/')) {
  842. reg = new RegExp(regRule.slice(1, -1));
  843. } else {
  844. reg = new RegExp(regRule);
  845. }
  846. if (!reg.test(e.detail.value)) {
  847. common.showModal('请输入' + dataTypeOptions[i].Text);
  848. questionList[index].AnswerList = '';
  849. answerList[answerIndex].Answer = '';
  850. this.setData({
  851. 'quesList.QuestionList': questionList,
  852. 'quesAnswers.AnswerList': answerList,
  853. });
  854. return;
  855. }
  856. }
  857. }
  858. }
  859. if (questionList[index].AnswerList.length == questionList[index].RuleInfo.MaxLength) {
  860. common.showToast('最多输入' + questionList[index].RuleInfo.MaxLength + '个字');
  861. return;
  862. }
  863. answerList.forEach((itm, ind) => {
  864. if (itm.QuestId == questionList[index].QuestId) {
  865. answerIndex = ind;
  866. }
  867. });
  868. questionList[index].AnswerList = e.detail.value;
  869. }
  870. answerList[answerIndex].Answer = e.detail.value;
  871. quesList.value.QuestionList = questionList;
  872. quesAnswers.AnswerList = answerList;
  873. };
  874. /** 提交 */
  875. const submit = () => {
  876. throttle(async () => {
  877. await common.sleep(1000);
  878. if (complete.value) return;
  879. uni.showLoading();
  880. const answers = { ...quesAnswers } as any;
  881. for (var i = 0; i < answers.AnswerList.length; i++) {
  882. let item = answers.AnswerList[i];
  883. if (item.MustQuest && common.isEmpty(item.Answer)) {
  884. common.showToast('存在未填写的问卷');
  885. point.value = 'p' + item.Blank;
  886. return;
  887. }
  888. }
  889. answers.AnswerList.forEach((item) => {
  890. if (typeof item.Answer == 'object') {
  891. item.Answer = item.Answer.join();
  892. }
  893. });
  894. answers.AnswerList = JSON.stringify(quesAnswers.AnswerList);
  895. let mobile = ""
  896. try {
  897. mobile = currentUser.value.mobile
  898. }catch {
  899. mobile = ""
  900. }
  901. // quesAnswers.IP = (await getIP()).cip;
  902. // quesAnswers.Location = (await getIP()).cname;
  903. quesAnswers.UserAgent = app.globalData.smallPro_systemInfo;
  904. quesAnswers.Mobile = mobile;
  905. quesAnswers.UserName = currentUser.value.memberName;
  906. quesAnswers.MemberId = currentUser.value.MemberId;
  907. quesAnswers.Sex = currentUser.value.sex;
  908. quesAnswers.Age = currentUser.value.age;
  909. quesAnswers.ThirdPartyId = currentUser.value.MemberId || uni.getStorageSync('openid');
  910. quesAnswers.BedNo = '';
  911. quesAnswers.HospitalNo = objType.value == '4' ? currentUser.value.cardNo : '';
  912. quesAnswers.CardNo = objType.value == '3' ? currentUser.value.cardNo : '';
  913. quesAnswers.TaskId = taskId.value;
  914. quesAnswers.CardType = objType.value == '3' ? currentUser.value.cardType : '';
  915. let res = await CommitAnswer_V3(quesAnswers);
  916. clearTimeout(time);
  917. if (common.isNotEmpty(res)) {
  918. common.showModal('提交成功!', () => {
  919. common.navigateBack(1);
  920. });
  921. }
  922. }, 5 * 1000);
  923. };
  924. /** 获取IP */
  925. const getIP = () => {
  926. return new Promise((resolve, reject) => {
  927. uni.request({
  928. url: 'https://pv.sohu.com/cityjson?ie=utf-8',
  929. success: (res: any) => {
  930. const result = res.data.substring(res.data.indexOf('{'), res.data.lastIndexOf('}') + 1);
  931. const obj = JSON.parse(result);
  932. resolve(obj);
  933. },
  934. });
  935. }) as Promise<any>;
  936. };
  937. const goBack = () => {
  938. uni.navigateBack({
  939. delta: 1,
  940. });
  941. };
  942. const yjfk = () => {};
  943. const goSelMember = () => {};
  944. const confirmMember = () => {};
  945. useOnLoad((options) => {
  946. main(options);
  947. });
  948. </script>
  949. <style lang="scss" scoped>
  950. .align_items_left {
  951. align-items: flex-start;
  952. }
  953. .active_option {
  954. background: #18ba89 !important;
  955. color: white !important;
  956. }
  957. .mask_form {
  958. width: 100%;
  959. height: 100%;
  960. position: absolute;
  961. top: 0;
  962. left: 0;
  963. z-index: 100;
  964. }
  965. .container {
  966. overflow: hidden;
  967. }
  968. .scroll_view {
  969. height: 100%;
  970. }
  971. .top_bg_box {
  972. position: relative;
  973. image {
  974. width: 100%;
  975. height: 456rpx;
  976. position: absolute;
  977. top: 0;
  978. left: 0;
  979. z-index: 1;
  980. }
  981. .ques_introduce {
  982. padding: 46rpx 52rpx 0 52rpx;
  983. box-sizing: border-box;
  984. position: absolute;
  985. top: 0;
  986. left: 0;
  987. z-index: 2;
  988. text:nth-child(1) {
  989. font-size: 36rpx;
  990. font-weight: bold;
  991. color: white;
  992. margin-bottom: 20rpx;
  993. }
  994. text:nth-child(2) {
  995. line-height: 45rpx;
  996. font-size: 28rpx;
  997. color: white;
  998. }
  999. }
  1000. }
  1001. .main_box {
  1002. padding: 470rpx 30rpx 190rpx 30rpx;
  1003. box-sizing: border-box;
  1004. position: relative;
  1005. z-index: 2;
  1006. }
  1007. .ques_item_box {
  1008. padding: 30rpx;
  1009. box-sizing: border-box;
  1010. background: white;
  1011. border-radius: 20rpx;
  1012. margin-bottom: 32rpx;
  1013. > .ques_title_box > text {
  1014. line-height: 50rpx;
  1015. font-size: 36rpx;
  1016. font-weight: bold;
  1017. color: #1c1c1c;
  1018. }
  1019. .mustQuest_tag {
  1020. color: #dc2828;
  1021. }
  1022. }
  1023. .ques_options {
  1024. margin-top: 34rpx;
  1025. }
  1026. .choice_item {
  1027. width: 100%;
  1028. line-height: 80rpx;
  1029. font-size: 30rpx;
  1030. color: #686868;
  1031. text-align: center;
  1032. margin-bottom: 16rpx;
  1033. border-radius: 10rpx;
  1034. background: #f8f8fa;
  1035. &:last-child {
  1036. margin-bottom: 0;
  1037. }
  1038. }
  1039. .input_label {
  1040. line-height: 40rpx;
  1041. font-size: 32rpx;
  1042. color: #474747;
  1043. }
  1044. .textarea_box {
  1045. width: 100%;
  1046. padding: 20rpx;
  1047. box-sizing: border-box;
  1048. border-radius: 10rpx;
  1049. background: #f8f8fa;
  1050. margin-top: 22rpx;
  1051. textarea {
  1052. width: 100%;
  1053. }
  1054. }
  1055. .matrix_textarea_box {
  1056. width: 70%;
  1057. }
  1058. .picker_box {
  1059. width: 100%;
  1060. }
  1061. .picker {
  1062. width: 100%;
  1063. height: 80rpx;
  1064. padding: 22rpx;
  1065. box-sizing: border-box;
  1066. background: #f9f9f9;
  1067. border-radius: 20rpx;
  1068. justify-content: space-between;
  1069. text {
  1070. white-space: nowrap;
  1071. font-size: 28rpx;
  1072. color: #686868;
  1073. }
  1074. image {
  1075. width: 12rpx;
  1076. height: 24rpx;
  1077. }
  1078. }
  1079. .matrix_options {
  1080. width: 100%;
  1081. margin-bottom: 34rpx;
  1082. justify-content: space-between;
  1083. text {
  1084. font-size: 30rpx;
  1085. color: #1c1c1c;
  1086. text-align: center;
  1087. padding: 20rpx;
  1088. box-sizing: border-box;
  1089. word-wrap: break-word;
  1090. word-break: break-all;
  1091. }
  1092. }
  1093. .matrix_border {
  1094. border: 1px solid #f0f0f0;
  1095. }
  1096. .matrix_options_title {
  1097. background: #f5f5f5;
  1098. }
  1099. .matrix_icon_box {
  1100. width: 100%;
  1101. align-items: flex-start;
  1102. text {
  1103. font-size: 30rpx;
  1104. color: #1c1c1c;
  1105. margin-bottom: 36rpx;
  1106. padding: 0 20rpx;
  1107. box-sizing: border-box;
  1108. }
  1109. image {
  1110. width: 40rpx;
  1111. height: 40rpx;
  1112. }
  1113. }
  1114. .sub_title {
  1115. background: none;
  1116. }
  1117. .img_list {
  1118. width: 100%;
  1119. margin-bottom: 24rpx;
  1120. justify-content: flex-start;
  1121. flex-wrap: wrap;
  1122. .item_img {
  1123. width: 100%;
  1124. height: 100%;
  1125. }
  1126. }
  1127. .add_img {
  1128. width: 32%;
  1129. height: 200rpx;
  1130. margin-right: 2%;
  1131. margin-bottom: 3%;
  1132. position: relative;
  1133. &:nth-child(3n) {
  1134. margin-right: 0;
  1135. }
  1136. }
  1137. .add_img_tips {
  1138. width: 100%;
  1139. text {
  1140. font-size: 30rpx;
  1141. color: #474747;
  1142. }
  1143. }
  1144. .cha_img {
  1145. width: 50rpx;
  1146. height: 50rpx;
  1147. position: absolute;
  1148. top: -15rpx;
  1149. right: -5rpx;
  1150. }
  1151. .options_item_box {
  1152. width: 100%;
  1153. padding: 0 10rpx;
  1154. box-sizing: border-box;
  1155. margin-bottom: 20rpx;
  1156. justify-content: space-between;
  1157. text {
  1158. font-size: 28rpx;
  1159. color: #686868;
  1160. word-wrap: break-word;
  1161. word-break: break-all;
  1162. }
  1163. image {
  1164. width: 40rpx;
  1165. height: 40rpx;
  1166. margin: 20rpx 0;
  1167. }
  1168. }
  1169. .matrix_input_box {
  1170. width: 100%;
  1171. text {
  1172. width: 30%;
  1173. white-space: nowrap;
  1174. }
  1175. input {
  1176. width: 70%;
  1177. }
  1178. }
  1179. .footer_box {
  1180. width: 100%;
  1181. padding: 30rpx 30rpx 60rpx 30rpx;
  1182. box-sizing: border-box;
  1183. background: white;
  1184. position: fixed;
  1185. bottom: 0;
  1186. left: 0;
  1187. z-index: 10;
  1188. text {
  1189. width: 100%;
  1190. line-height: 88rpx;
  1191. font-size: 36rpx;
  1192. color: white;
  1193. text-align: center;
  1194. border-radius: 88rpx;
  1195. background: #18ba89;
  1196. display: block;
  1197. }
  1198. }
  1199. .modal_wrap {
  1200. width: 100%;
  1201. height: 100%;
  1202. background-color: rgba(0, 0, 0, 0.6);
  1203. position: fixed;
  1204. left: 0;
  1205. top: 0;
  1206. z-index: 99;
  1207. display: flex;
  1208. align-items: center;
  1209. justify-content: center;
  1210. }
  1211. .modal_box {
  1212. width: 600rpx;
  1213. max-height: 600rpx;
  1214. background-color: #fff;
  1215. border-radius: 5px;
  1216. padding: 40rpx 40rpx 60rpx;
  1217. }
  1218. .modal_tit {
  1219. text-align: center;
  1220. font-size: 30rpx;
  1221. }
  1222. .modal_box_b1 {
  1223. background-color: #f2f2f2;
  1224. border-radius: 5px;
  1225. line-height: 80rpx;
  1226. margin-top: 40rpx;
  1227. /* padding-left: 40rpx; */
  1228. text-align: center;
  1229. }
  1230. .modal_user_item {
  1231. background: #f2f2f2;
  1232. padding: 30rpx;
  1233. margin-top: 40rpx;
  1234. position: relative;
  1235. }
  1236. .modal_user_right_img {
  1237. width: 12rpx;
  1238. height: 21rpx;
  1239. position: absolute;
  1240. right: 30rpx;
  1241. top: 0;
  1242. bottom: 0;
  1243. margin: auto 0;
  1244. }
  1245. .modal_t1 {
  1246. font-weight: bold;
  1247. display: inline-block;
  1248. margin-right: 20rpx;
  1249. font-size: 32rpx;
  1250. }
  1251. .modal_t3 {
  1252. margin-top: 20rpx;
  1253. }
  1254. .modal_btn {
  1255. width: 46%;
  1256. line-height: 75rpx;
  1257. text-align: center;
  1258. border-radius: 50rpx;
  1259. margin-top: 40rpx;
  1260. }
  1261. .modal_btn1 {
  1262. background: #aaaaaa;
  1263. color: #fff;
  1264. }
  1265. .modal_btn2 {
  1266. background: #61c88f;
  1267. color: #fff;
  1268. }
  1269. .yjfl {
  1270. position: fixed;
  1271. bottom: 340rpx;
  1272. right: 0;
  1273. z-index: 100;
  1274. width: 160rpx;
  1275. text-align: center;
  1276. .title {
  1277. color: #fff;
  1278. position: absolute;
  1279. bottom: 10rpx;
  1280. right: 4rpx;
  1281. width: 100%;
  1282. text-align: center;
  1283. font-size: 24rpx;
  1284. }
  1285. }
  1286. </style>