abnormalTrack.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  1. <template>
  2. <div class="abnormal-track-page">
  3. <custom-header
  4. :name="pageTitle"
  5. :isGoBack="!isFromShare"
  6. :isClose="isFromShare"
  7. :showClose="false"
  8. @goback="handleBack"
  9. />
  10. <div class="abnormal-track-body" v-loading="loading">
  11. <div class="abnormal-hero">
  12. <div class="abnormal-hero__top">
  13. <div class="abnormal-hero__main">
  14. <div class="abnormal-hero__title-row">
  15. <span class="abnormal-hero__title">{{ theme }}</span>
  16. <span class="abnormal-hero__tag abnormal-hero__tag--level">
  17. <el-icon>
  18. <BellFilled />
  19. </el-icon>
  20. {{ level }}
  21. </span>
  22. <span class="abnormal-hero__tag abnormal-hero__tag--zone">{{ zoneName }}</span>
  23. </div>
  24. <div class="abnormal-head-bottom">
  25. <div class="abnormal-hero__reason">{{ reason }}</div>
  26. <div class="abnormal-hero__share" @click="handleShare">
  27. <Icon name="share" />
  28. <span>{{ t("agriFile.forward") }}</span>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="abnormal-track-content">
  35. <div
  36. class="situation-card__head"
  37. v-for="(item, index) in interactList"
  38. :key="item.fw_code || index"
  39. >
  40. <div class="situation-card__name">
  41. <div class="situation-card__title">
  42. <img
  43. class="situation-card__icon"
  44. src="@/assets/img/agricultural/gaojin.png"
  45. alt=""
  46. />
  47. <span>{{ item.abnormal_type }}</span>
  48. </div>
  49. <div class="situation-card__upload" @click="handleUploadClick">
  50. + {{ t("agriFile.uploadPhoto") }}
  51. </div>
  52. </div>
  53. <!-- 互动问题 -->
  54. <div class="interact-qa">
  55. <div class="interact-qa__head">
  56. <span class="interact-qa__tag">{{ t("agriFile.interactQuestion") }}</span>
  57. <span class="interact-qa__question">{{ item.interact_problem }}</span>
  58. </div>
  59. <div class="interact-qa__actions">
  60. <div
  61. v-for="(opt, optIndex) in item.options"
  62. :key="`${item.fw_code || index}-${optIndex}`"
  63. class="interact-qa__option"
  64. :class="{ selected: selectedMap[item.fw_code || index] === optIndex }"
  65. @click="selectedMap[item.fw_code || index] = optIndex"
  66. >
  67. {{ opt }}
  68. </div>
  69. <div
  70. class="interact-qa__submit"
  71. :class="{ disabled: selectedMap[item.fw_code || index] == null }"
  72. @click="handleSubmit(item, index)"
  73. >
  74. 提交信息
  75. </div>
  76. </div>
  77. </div>
  78. <div class="situation-card__assess">
  79. <div class="situation-card__assess-title">{{ t("agriFile.agriAssessment") }}</div>
  80. <div class="situation-card__assess-desc">{{ item.interaction_reason }}</div>
  81. </div>
  82. <div class="situation-card__guide">
  83. <div class="guide-title">{{ t("agriFile.patrolGuide") }}</div>
  84. <div class="situation-card__guide-box">
  85. <photo-provider :photo-closable="true">
  86. <photo-consumer :src="resolveGuideImage(item.pic_url)">
  87. <img :src="resolveGuideImage(item.pic_url)" alt="" />
  88. </photo-consumer>
  89. </photo-provider>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. <album-upload-popup v-model:show="showUploadPopup" @confirm="handleUploadConfirm" />
  96. <tip-popup
  97. v-model:show="showSuccessPopup"
  98. type="executeSuccess"
  99. text="您已上传成功"
  100. text2="请等待诊断报告生成"
  101. hideBtn
  102. >
  103. <template #footer>
  104. <div class="bottom-btn-container">
  105. <div class="bottom-btn primary-btn" @click="handleComplete">完成</div>
  106. </div>
  107. </template>
  108. </tip-popup>
  109. </div>
  110. </template>
  111. <script setup>
  112. import { computed, nextTick, onActivated, reactive, ref } from "vue";
  113. import { useRoute, useRouter } from "vue-router";
  114. import { Icon } from "vant";
  115. import { ElMessage } from "element-plus";
  116. import customHeader from "@/components/customHeader.vue";
  117. import albumUploadPopup from "../components/albumUploadPopup.vue";
  118. import tipPopup from "@/components/popup/tipPopup.vue";
  119. import { useI18n } from "@/i18n";
  120. import { base_img_url2 } from "@/api/config";
  121. import wx from "weixin-js-sdk";
  122. const { t } = useI18n();
  123. const route = useRoute();
  124. const router = useRouter();
  125. // ---------- 常量 ----------
  126. const DEFAULT_GUIDE_IMAGE = require("@/assets/img/agricultural/patrol-guide.png");
  127. // ---------- 页面状态 ----------
  128. const loading = ref(false);
  129. const submitting = ref(false);
  130. const showUploadPopup = ref(false);
  131. const showSuccessPopup = ref(false);
  132. const needDraw = ref(true); // status≠1 时需先勾画种植范围
  133. const interactList = ref([]); // ab_it_info.interact_Info 映射后的列表
  134. const stressInfo = ref({}); // 胁迫等级等公共信息
  135. const selectedMap = reactive({}); // fw_code/index → 选项下标
  136. /** 与查询共用的提交上下文,保证 fw 答案与列表同源 */
  137. const queryContext = ref({
  138. farm_id: null,
  139. zone_id: null,
  140. calc_date: "",
  141. crop_type: "",
  142. });
  143. // ---------- 计算属性 ----------
  144. const pageTitle = computed(() => route.query.pageName || t("agriFile.patrolAbnormalTitle"));
  145. const zoneId = computed(() => route.query.zoneId || route.query.id);
  146. const firstInteract = computed(() => interactList.value[0] || null);
  147. /** interaction_theme */
  148. const theme = computed(
  149. () => firstInteract.value?.interaction_title || t("agriFile.interactTheme")
  150. );
  151. /** interaction_title */
  152. const reason = computed(
  153. () => firstInteract.value?.interaction_theme || t("agriFile.interactReason")
  154. );
  155. /** stress_info.level */
  156. const level = computed(() => {
  157. const lv = stressInfo.value?.level;
  158. if (lv == null || lv === "") return t("agriFile.riskLevel2");
  159. return `${lv}级`;
  160. });
  161. const zoneName = computed(() => {
  162. const farm = getSelectedFarm();
  163. return farm.variety_name || farm.zone_name || t("agriFile.zoneOne");
  164. });
  165. /** 通过分享进入:无返回箭头 */
  166. const isFromShare = computed(() => {
  167. if (isTruthyFlag(route.query.fromShare)) return true;
  168. const paramsPage = parseMaybeJson(route.query.paramsPage);
  169. if (isTruthyFlag(paramsPage?.fromShare)) return true;
  170. const miniJson = parseMaybeJson(route.query.miniJson);
  171. if (isTruthyFlag(miniJson?.fromShare)) return true;
  172. if (isTruthyFlag(parseMaybeJson(miniJson?.paramsPage)?.fromShare)) return true;
  173. return false;
  174. });
  175. // ---------- 工具函数 ----------
  176. function isTruthyFlag(value) {
  177. return value === 1 || value === "1" || value === true || value === "true";
  178. }
  179. function parseMaybeJson(value) {
  180. if (value == null || value === "") return null;
  181. if (typeof value === "object") return value;
  182. try {
  183. return JSON.parse(value);
  184. } catch {
  185. return null;
  186. }
  187. }
  188. function getSelectedFarm() {
  189. try {
  190. return JSON.parse(localStorage.getItem("selectedFarmData") || "{}");
  191. } catch {
  192. return {};
  193. }
  194. }
  195. function getSelectedFarmId() {
  196. const stored = localStorage.getItem("selectedFarmId");
  197. if (stored != null && stored !== "") return Number(stored);
  198. const farm = getSelectedFarm();
  199. const id = farm.farm_id ?? farm.id;
  200. return id != null && id !== "" ? Number(id) : null;
  201. }
  202. /** 农场品类编码,接口 crop_type */
  203. const resolveCropType = (farm = getSelectedFarm()) =>
  204. farm.category_code || farm.categorycode || farm.crop_code || farm.crop_type || "";
  205. function resolveImageUrl(path) {
  206. if (!path) return "";
  207. const text = String(path).trim();
  208. if (!text) return "";
  209. if (/^https?:\/\//i.test(text)) return text;
  210. return base_img_url2 + text.replace(/^\//, "");
  211. }
  212. function resolveGuideImage(picUrl) {
  213. return resolveImageUrl(picUrl) || DEFAULT_GUIDE_IMAGE;
  214. }
  215. /** interact_options 可能是 JSON 字符串 */
  216. function parseInteractOptions(value) {
  217. if (Array.isArray(value)) return value.map((name) => String(name));
  218. const parsed = parseMaybeJson(value);
  219. if (Array.isArray(parsed)) return parsed.map((name) => String(name));
  220. return [];
  221. }
  222. function mapInteractItem(raw) {
  223. return {
  224. ...raw,
  225. options: parseInteractOptions(raw?.interact_options),
  226. };
  227. }
  228. // ---------- 业务逻辑 ----------
  229. const fetchAbnormalInteract = async () => {
  230. const farm = getSelectedFarm();
  231. const farmId = getSelectedFarmId();
  232. const zId = zoneId.value || farm.zone_id || farm.zoneId;
  233. const cropType = resolveCropType(farm);
  234. if (farmId == null || zId == null || zId === "" || !cropType) {
  235. interactList.value = [];
  236. stressInfo.value = {};
  237. return;
  238. }
  239. // 与 patrolPanel 调试参数保持一致;正式环境改回 farmId / zId / 当天日期
  240. const params = {
  241. crop_type: cropType,
  242. farm_id: 321,
  243. zone_id: 46,
  244. calc_date: "2025-08-30",
  245. };
  246. queryContext.value = { ...params };
  247. loading.value = true;
  248. try {
  249. const res = await VE_API.questionnaire.getAbnormalInteract(params);
  250. if (res?.code !== 200) {
  251. interactList.value = [];
  252. stressInfo.value = {};
  253. return;
  254. }
  255. const data = res?.data || {};
  256. const abInfo = data.ab_it_info || {};
  257. const list = Array.isArray(abInfo.interact_Info) ? abInfo.interact_Info : [];
  258. interactList.value = list.map(mapInteractItem);
  259. stressInfo.value = abInfo.stress_info || data.stress_info || {};
  260. } catch (e) {
  261. console.warn("[abnormalTrack] getAbnormalInteract failed", e);
  262. interactList.value = [];
  263. stressInfo.value = {};
  264. } finally {
  265. loading.value = false;
  266. }
  267. };
  268. /** status=1 有范围无需勾画;status=0 无范围需要勾画 */
  269. const fetchZoneRangeStatus = async () => {
  270. const farm = getSelectedFarm();
  271. const farmId = farm.farm_id ?? farm.id;
  272. const zId = zoneId.value || farm.zone_id || farm.zoneId;
  273. if (farmId == null || farmId === "" || zId == null || zId === "") {
  274. needDraw.value = true;
  275. return;
  276. }
  277. try {
  278. const res = await VE_API.questionnaire.checkZoneRange({
  279. farm_id: farmId,
  280. zone_id: zId,
  281. });
  282. needDraw.value = Number(res?.data?.status) !== 1;
  283. } catch (e) {
  284. console.warn("[abnormalTrack] checkZoneRange failed", e);
  285. needDraw.value = true;
  286. }
  287. };
  288. // ---------- 事件处理 / 生命周期 ----------
  289. const handleShare = () => {
  290. const query = {
  291. askInfo: { title: "转发巡园要点", content: "是否分享给好友" },
  292. shareText: theme.value || "速长窗口不追肥?后期发育慢人一步,直接掉队!",
  293. targetUrl: "abnormal_track",
  294. paramsPage: JSON.stringify({
  295. id: route.query.id,
  296. zoneId: zoneId.value,
  297. fromShare: 1,
  298. ...(route.query.pageName ? { pageName: route.query.pageName } : {}),
  299. }),
  300. imageUrl: "https://birdseye-img.sysuimars.com/temp/field.png",
  301. };
  302. wx.miniProgram.navigateTo({
  303. url: `/pages/subPages/share_page/index?pageParams=${JSON.stringify(query)}&type=sharePage`,
  304. });
  305. };
  306. /** 需勾画则先画范围;否则直接上传(同 growthTrack) */
  307. const handleUploadClick = () => {
  308. if (needDraw.value) {
  309. router.push({
  310. path: "/add_zone",
  311. query: {
  312. type: "farm",
  313. targetUrl: "/abnormal_track",
  314. ...(zoneId.value ? { trackId: zoneId.value } : {}),
  315. },
  316. });
  317. return;
  318. }
  319. showUploadPopup.value = true;
  320. // 原异常逻辑:勾画后进病虫害选地块 / 直接进 pest_interact
  321. // if (needDraw.value) {
  322. // router.push({
  323. // path: "/add_zone",
  324. // query: {
  325. // type: "farm",
  326. // targetUrl: "/pest_interact",
  327. // isAbnormal: "true",
  328. // ...(zoneId.value ? { trackId: zoneId.value } : {}),
  329. // },
  330. // });
  331. // return;
  332. // }
  333. // router.push({ path: "/pest_interact" });
  334. };
  335. const handleUploadConfirm = async ({ images, date } = {}) => {
  336. const cloud_url = Array.isArray(images) ? images : [];
  337. if (!cloud_url.length) {
  338. ElMessage.warning("请先上传照片");
  339. return;
  340. }
  341. const farm = getSelectedFarm();
  342. try {
  343. const res = await VE_API.questionnaire.uploadImages({
  344. cloud_url,
  345. farm_id: farm.farm_id ?? farm.id ?? "",
  346. zone_id: zoneId.value || "",
  347. category_code: farm.category_code || "",
  348. zone_name: farm.variety_name || "",
  349. create_time: date,
  350. });
  351. if (res?.code === 200) {
  352. showSuccessPopup.value = true;
  353. return;
  354. }
  355. ElMessage.error(res?.msg || "上传失败,请稍后再试");
  356. } catch {
  357. ElMessage.error("上传失败,请稍后再试");
  358. }
  359. };
  360. const handleComplete = () => {
  361. showSuccessPopup.value = false;
  362. router.replace("/agri_file");
  363. };
  364. const handleSubmit = async (item, index) => {
  365. const key = item?.fw_code || index;
  366. const optIndex = selectedMap[key];
  367. if (optIndex == null) {
  368. ElMessage.warning(t("agriFile.pleaseSelectOption"));
  369. return;
  370. }
  371. const optionText = item?.options?.[optIndex];
  372. if (!optionText || !item?.fw_code) {
  373. ElMessage.warning(t("agriFile.pleaseSelectOption"));
  374. return;
  375. }
  376. if (submitting.value) return;
  377. submitting.value = true;
  378. try {
  379. const res = await VE_API.questionnaire.confirmAbnormalInteract({
  380. ...queryContext.value,
  381. fw_code: item.fw_code,
  382. options: String(optionText),
  383. });
  384. if (res?.code === 200) {
  385. ElMessage.success(t("agriFile.submitSuccess"));
  386. return;
  387. }
  388. ElMessage.error(res?.msg || "提交失败,请稍后再试");
  389. } catch (e) {
  390. console.warn("[abnormalTrack] confirmAbnormalInteract failed", e);
  391. ElMessage.error("提交失败,请稍后再试");
  392. } finally {
  393. submitting.value = false;
  394. }
  395. };
  396. const handleBack = () => {
  397. router.back();
  398. };
  399. onActivated(() => {
  400. fetchZoneRangeStatus();
  401. fetchAbnormalInteract();
  402. if (route.query.showUpload !== "1") return;
  403. nextTick(() => {
  404. showUploadPopup.value = true;
  405. const { showUpload, ...restQuery } = route.query;
  406. router.replace({ path: route.path, query: restQuery });
  407. });
  408. });
  409. </script>
  410. <style lang="scss" scoped>
  411. .abnormal-track-page {
  412. display: flex;
  413. flex-direction: column;
  414. width: 100%;
  415. height: 100vh;
  416. overflow: hidden;
  417. background: #f5f5f5;
  418. .abnormal-track-body {
  419. flex: 1;
  420. overflow-y: auto;
  421. -webkit-overflow-scrolling: touch;
  422. .abnormal-hero {
  423. padding: 18px 10px 38px;
  424. background: #2199f8;
  425. color: #fff;
  426. &__top {
  427. display: flex;
  428. align-items: center;
  429. justify-content: space-between;
  430. }
  431. &__title-row {
  432. display: flex;
  433. align-items: center;
  434. gap: 10px;
  435. }
  436. &__title {
  437. font-size: 22px;
  438. font-family: "PangMenZhengDao";
  439. margin-top: -5px;
  440. }
  441. .abnormal-head-bottom {
  442. margin-top: 10px;
  443. display: flex;
  444. gap: 6px;
  445. align-items: center;
  446. justify-content: space-between;
  447. }
  448. &__reason {
  449. padding: 4px 10px;
  450. border-radius: 4px;
  451. background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  452. }
  453. &__tag {
  454. flex: none;
  455. display: inline-flex;
  456. align-items: center;
  457. gap: 4px;
  458. padding: 1px 4px;
  459. border-radius: 2px;
  460. background: #fff;
  461. font-size: 12px;
  462. }
  463. &__tag--level {
  464. color: #ff6a6a;
  465. }
  466. &__tag--zone {
  467. color: #2199f8;
  468. }
  469. &__share {
  470. flex: none;
  471. display: flex;
  472. align-items: center;
  473. gap: 4px;
  474. padding: 4px 14px;
  475. border-radius: 25px;
  476. background: rgba(19, 125, 209, 0.5);
  477. color: #fff;
  478. }
  479. }
  480. }
  481. .guide-title {
  482. position: relative;
  483. z-index: 1;
  484. display: inline-block;
  485. font-size: 16px;
  486. font-weight: 500;
  487. &::after {
  488. content: "";
  489. position: absolute;
  490. left: 0;
  491. bottom: 2px;
  492. z-index: -1;
  493. width: 90px;
  494. height: 6px;
  495. border-radius: 25px;
  496. background: linear-gradient(90deg, #2199f8 0%, rgba(255, 255, 255, 0.37) 100%);
  497. opacity: 0.4;
  498. }
  499. }
  500. .abnormal-track-content {
  501. position: relative;
  502. z-index: 1;
  503. margin: -24px 10px 12px;
  504. }
  505. .situation-card {
  506. &__head {
  507. position: relative;
  508. z-index: 1;
  509. margin: 0 10px 12px;
  510. padding: 12px;
  511. border-radius: 10px;
  512. background: #fff;
  513. &:first-child {
  514. margin-top: -24px;
  515. }
  516. }
  517. &__name {
  518. display: flex;
  519. align-items: center;
  520. justify-content: space-between;
  521. gap: 10px;
  522. padding-bottom: 10px;
  523. border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  524. }
  525. &__title {
  526. display: flex;
  527. align-items: center;
  528. gap: 8px;
  529. color: #2199f8;
  530. font-size: 16px;
  531. font-weight: 500;
  532. }
  533. &__icon {
  534. width: 18px;
  535. height: 18px;
  536. }
  537. &__upload {
  538. flex: none;
  539. padding: 4px 12px;
  540. border-radius: 4px;
  541. background: #2199f8;
  542. color: #fff;
  543. font-size: 14px;
  544. line-height: 20px;
  545. cursor: pointer;
  546. }
  547. &__assess {
  548. margin-top: 10px;
  549. padding: 10px;
  550. border-radius: 8px;
  551. background: #f9f9f9;
  552. }
  553. &__assess-title {
  554. color: #4f4f4f;
  555. font-size: 16px;
  556. margin-top: -3px;
  557. font-family: "PangMenZhengDao";
  558. }
  559. &__assess-desc {
  560. margin-top: 4px;
  561. color: #9c9c9c;
  562. }
  563. &__guide {
  564. margin-top: 10px;
  565. padding: 10px;
  566. border: 1px solid rgba(33, 153, 248, 0.2);
  567. border-radius: 8px;
  568. background: linear-gradient(360deg, #ffffff 90.33%, #abd8fc 116.61%, #2199f8 148.55%);
  569. }
  570. &__guide-box {
  571. margin-top: 12px;
  572. img {
  573. display: block;
  574. width: 100%;
  575. }
  576. }
  577. }
  578. .interact-qa {
  579. margin-top: 10px;
  580. padding: 10px;
  581. border-radius: 8px;
  582. background: rgba(33, 153, 248, 0.1);
  583. &__head {
  584. display: flex;
  585. align-items: center;
  586. flex-wrap: wrap;
  587. gap: 8px;
  588. }
  589. &__tag {
  590. flex: none;
  591. padding: 2px 6px;
  592. border-radius: 2px;
  593. background: #2199f8;
  594. color: #fff;
  595. font-size: 12px;
  596. line-height: 18px;
  597. }
  598. &__question {
  599. flex: 1;
  600. min-width: 0;
  601. color: #333;
  602. font-size: 14px;
  603. font-weight: 500;
  604. }
  605. &__actions {
  606. display: flex;
  607. gap: 8px;
  608. margin-top: 10px;
  609. }
  610. &__option {
  611. position: relative;
  612. flex: 1;
  613. min-width: 0;
  614. height: 36px;
  615. line-height: 36px;
  616. border-radius: 6px;
  617. background: #fff;
  618. border: 1px solid transparent;
  619. color: #666;
  620. font-size: 14px;
  621. text-align: center;
  622. box-sizing: border-box;
  623. cursor: pointer;
  624. &.selected {
  625. border-color: #2199f8;
  626. color: #2199f8;
  627. &::after {
  628. content: "";
  629. position: absolute;
  630. top: -1px;
  631. right: -1px;
  632. width: 18px;
  633. height: 14px;
  634. background: url("@/assets/img/home/checked-bg-top.png") no-repeat bottom right / 18px 13px;
  635. }
  636. }
  637. }
  638. &__submit {
  639. flex: 1;
  640. min-width: 0;
  641. height: 36px;
  642. line-height: 36px;
  643. border-radius: 6px;
  644. background: #2199f8;
  645. color: #fff;
  646. font-size: 14px;
  647. text-align: center;
  648. cursor: pointer;
  649. &.disabled {
  650. opacity: 0.2;
  651. cursor: not-allowed;
  652. }
  653. }
  654. }
  655. }
  656. .bottom-btn-container {
  657. display: flex;
  658. justify-content: space-between;
  659. gap: 12px;
  660. width: 100%;
  661. .bottom-btn {
  662. padding: 0 25px;
  663. border-radius: 4px;
  664. font-size: 16px;
  665. height: 40px;
  666. line-height: 40px;
  667. box-sizing: border-box;
  668. font-weight: 500;
  669. text-align: center;
  670. &.primary-btn {
  671. flex: 1;
  672. background: #2199f8;
  673. color: #fff;
  674. }
  675. }
  676. }
  677. </style>