driverAdd.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771
  1. <template>
  2. <view class="order">
  3. <view class="example">
  4. <u-form
  5. labelPosition="left"
  6. :model="orderForm"
  7. :rules="rules"
  8. ref="form1"
  9. labelWidth="90"
  10. >
  11. <!-- 下单日期 -->
  12. <u-form-item :label="$t('order.orderDate')" borderBottom prop="setDate">
  13. <u-input
  14. readonly
  15. v-model="orderForm.setDate"
  16. border="none"
  17. :placeholder="
  18. $t('base.common.placeholderS') + $t('order.orderDate')
  19. "
  20. />
  21. </u-form-item>
  22. <!-- 有效日期 -->
  23. <template v-if="orderForm.orderType == '2'">
  24. <u-form-item
  25. :label="$t('order.endDate')"
  26. borderBottom
  27. prop="orderValidDate"
  28. @click="showEndDateCalendar = true"
  29. >
  30. <u-input
  31. readonly
  32. v-model="orderForm.orderValidDate"
  33. border="none"
  34. :placeholder="
  35. $t('base.common.placeholderS') + $t('order.endDate')
  36. "
  37. />
  38. </u-form-item>
  39. </template>
  40. <!-- 选择企业 -->
  41. <!-- <u-form-item :label="$t('order.enterprise')" borderBottom prop="tenantId"
  42. @click="showPopup('popupTenantId')">
  43. <u-input readonly v-model="orderForm.tenantName" border="none"
  44. :placeholder="$t('base.common.placeholderS')+$t('order.enterprise')" />
  45. </u-form-item> -->
  46. <!-- 临时/固定 -->
  47. <u-form-item
  48. :label="$t('order.orderType')"
  49. borderBottom
  50. prop="orderType"
  51. @click="showPopup('popupOrderType')"
  52. >
  53. <u-input
  54. readonly
  55. v-model="orderForm.orderTypeName"
  56. border="none"
  57. :placeholder="
  58. $t('base.common.placeholderS') + $t('order.orderType')
  59. "
  60. />
  61. </u-form-item>
  62. <!-- 业务类型 -->
  63. <!-- <u-form-item :label="$t('order.vehicleType')" borderBottom prop="vehicleType"
  64. @click="showPopup('popupVehicleType')">
  65. <u-input readonly v-model="orderForm.vehicleTypeName" border="none"
  66. :placeholder="$t('base.common.placeholderS')+$t('order.vehicleType')" />
  67. </u-form-item> -->
  68. <u-form-item
  69. :label="$t('order.vehicleType')"
  70. borderBottom
  71. prop="vehicleType"
  72. >
  73. <u-radio-group
  74. v-model="orderForm.vehicleType"
  75. @change="onVehicleTypeConfirm"
  76. placement="row"
  77. class="p-input"
  78. >
  79. <u-radio
  80. :customStyle="{ marginRight: '10px' }"
  81. v-for="item in vehicleTypeOption"
  82. :key="item.value"
  83. :label="item.text"
  84. :name="item.value"
  85. >
  86. </u-radio>
  87. </u-radio-group>
  88. </u-form-item>
  89. <template>
  90. <u-form-item
  91. :label="$t('order.companyName')"
  92. borderBottom
  93. prop="companyId"
  94. @click="showPopup('popupCompanyId')"
  95. >
  96. <u-input
  97. readonly
  98. v-model="orderForm.companyName"
  99. border="none"
  100. :placeholder="
  101. $t('base.common.placeholderS') + $t('order.companyName')
  102. "
  103. >
  104. <template slot="suffix">
  105. <view
  106. v-if="paymentOption && paymentOption.isShow == '1'"
  107. style="color: darkgreen; font-size: 9pt"
  108. >
  109. {{ paymentOption.total }}
  110. </view>
  111. </template>
  112. </u-input>
  113. </u-form-item>
  114. <view
  115. v-if="
  116. paymentOption &&
  117. paymentOption.isShow == '1' &&
  118. paymentOption.agentResponsible == '1'
  119. "
  120. style="display: flex; flex-direction: row-reverse"
  121. >
  122. <view style="color: red; font-size: 9pt"
  123. >{{ $t("order.source") }}:{{ paymentOption.companyName }}
  124. </view>
  125. </view>
  126. <u-form-item
  127. :label="$t('order.materialName')"
  128. borderBottom
  129. prop="materialId"
  130. @click="showPopup('popupmaterialId')"
  131. >
  132. <u-input
  133. readonly
  134. v-model="orderForm.materialName"
  135. border="none"
  136. :placeholder="
  137. $t('base.common.placeholderS') + $t('order.materialName')
  138. "
  139. />
  140. </u-form-item>
  141. </template>
  142. <!-- 订单数量 -->
  143. <u-form-item
  144. :label="$t('order.orderNumber')"
  145. borderBottom
  146. prop="orderNumber"
  147. >
  148. <u--input
  149. v-model="orderForm.orderNumber"
  150. border="none"
  151. type="digit"
  152. :placeholder="
  153. $t('base.common.placeholderI') + $t('order.orderNumber')
  154. "
  155. ></u--input>
  156. </u-form-item>
  157. <u-form-item
  158. v-if="orderForm.orderType != '4'"
  159. u-form-item
  160. :label="$t('order.vehicle')"
  161. borderBottom
  162. prop="vehicle"
  163. @click="toSelectVehicle"
  164. >
  165. <u--input
  166. readonly
  167. v-model="orderForm.vehicle"
  168. border="none"
  169. :placeholder="$t('base.common.placeholderS') + $t('order.vehicle')"
  170. ></u--input>
  171. <u-icon slot="right" name="arrow-right"></u-icon>
  172. </u-form-item>
  173. </u-form>
  174. <view style="margin: 16px 0">
  175. <button class="bind-btn" @click="submit('form1')">
  176. {{ $t("base.common.submit") }}
  177. </button>
  178. </view>
  179. </view>
  180. <u-toast ref="loadingToast"></u-toast>
  181. <CarKeyboard
  182. :show.sync="carKeyboardShow"
  183. :vehicleNo="orderForm.vehicle"
  184. @confirm="onKeyBoardConfirm"
  185. vehicleType="car"
  186. ></CarKeyboard>
  187. <!-- 下单日期 -->
  188. <u-calendar
  189. color="#4680F9"
  190. round="25"
  191. :show="showSetDateCalendar"
  192. @confirm="onSetDateConfirm"
  193. @close="showSetDateCalendar = false"
  194. ></u-calendar>
  195. <!-- 有效日期 -->
  196. <u-datetime-picker
  197. :show="showEndDateCalendar"
  198. v-model="defaultEndDate"
  199. :defaultDate="defaultEndDate"
  200. mode="datetime"
  201. @confirm="onEndDateConfirm"
  202. @close="showEndDateCalendar = false"
  203. />
  204. <!-- <u-calendar color="#4680F9" :defaultDate="defaultEndDate" :show="showEndDateCalendar"
  205. @confirm="onEndDateConfirm" @close="showEndDateCalendar=false" /> -->
  206. <!-- 临时或固定 -->
  207. <PopupSelect
  208. ref="popupOrderType"
  209. :option="orderTypeOption"
  210. @onConfirm="onOrderTypeConfirm"
  211. />
  212. <!-- 业务类型 -->
  213. <!-- <PopupSelect ref="popupVehicleType" :option="vehicleTypeOption" @onConfirm="onVehicleTypeConfirm" /> -->
  214. <!-- 客户 -->
  215. <PopupSelect
  216. ref="popupCompanyId"
  217. :hasSearch="false"
  218. :option="companyOption"
  219. @onConfirm="onCompanyConfirm"
  220. />
  221. <!-- 原料 -->
  222. <PopupSelect
  223. ref="popupmaterialId"
  224. kind="m"
  225. :hasSearch="false"
  226. :option="materialOption"
  227. @onConfirm="onProductConfirm"
  228. />
  229. <!-- 企业选项 -->
  230. <PopupSelect
  231. ref="popupTenantId"
  232. :hasSearch="false"
  233. :option="tenantOption"
  234. @onConfirm="onTenantConfirm"
  235. />
  236. </view>
  237. </template>
  238. <script>
  239. import PopupSelect from "../../components/popup-select/index";
  240. import dayjs from "dayjs";
  241. import CarKeyboard from "../../components/carKeyboard/carKeyboard";
  242. import { getTenantCacheList } from "../../utils/util.js";
  243. import { saveOrder, getOption, getMaterialsByCompany } from "../../api/order";
  244. export default {
  245. components: {
  246. CarKeyboard,
  247. PopupSelect,
  248. },
  249. data() {
  250. return {
  251. carKeyboardShow: false,
  252. start: dayjs().format("YYYY-MM-DD"),
  253. orderForm: {
  254. setDate: dayjs().format("YYYY-MM-DD"), //订单日期
  255. orderValidDate: dayjs().add(30, "day").format("YYYY-MM-DD HH:mm:ss"), //有效日期
  256. tenantId: "", //企业
  257. orderType: "1", //订单类型
  258. companyId: "", //客商
  259. materialId: "", //物料
  260. orderNumber: "0", //数量
  261. vehicle: "", //车号
  262. driverId: "", //司机id\
  263. vehicleType: "1",
  264. xfFlag: "",
  265. phone: "",
  266. idcard: "",
  267. driver: "",
  268. tenantName: "",
  269. vehicleTypeName: "", //业务类型
  270. companyName: "", //客商
  271. materialName: "", //物料id
  272. orderTypeName: "临时订单",
  273. sourceId: "", //第三方大订单ID
  274. },
  275. rules: {
  276. orderType: [
  277. {
  278. required: true,
  279. message:
  280. this.$t("base.common.placeholderS") + this.$t("order.orderType"),
  281. },
  282. ],
  283. vehicleType: [
  284. {
  285. required: true,
  286. message:
  287. this.$t("base.common.placeholderS") +
  288. this.$t("order.vehicleType"),
  289. },
  290. ],
  291. tenantId: [
  292. {
  293. required: true,
  294. message:
  295. this.$t("base.common.placeholderS") + this.$t("order.enterprise"),
  296. },
  297. ],
  298. companyId: [
  299. {
  300. required: true,
  301. message:
  302. this.$t("base.common.placeholderS") +
  303. this.$t("order.companyName"),
  304. },
  305. ],
  306. materialId: [
  307. {
  308. required: true,
  309. message:
  310. this.$t("base.common.placeholderS") +
  311. this.$t("order.materialName"),
  312. },
  313. ],
  314. orderNumber: [
  315. {
  316. required: true,
  317. message:
  318. this.$t("base.common.placeholderI") +
  319. this.$t("order.orderNumber"),
  320. },
  321. ],
  322. },
  323. vehicleTypeOption: [
  324. {
  325. text: this.$t("base.common.noData"),
  326. value: null,
  327. },
  328. ],
  329. orderTypeOption: [
  330. {
  331. text: "临时订单",
  332. value: "1",
  333. },
  334. {
  335. text: "固定订单",
  336. value: "2",
  337. },
  338. {
  339. text: "共享订单",
  340. value: "4",
  341. },
  342. ],
  343. paymentOption: {},
  344. //产品选项
  345. materialOption: [
  346. {
  347. text: this.$t("base.common.noData"),
  348. value: null,
  349. },
  350. ], //物料选项
  351. //客户选项
  352. companyOption: [
  353. {
  354. text: this.$t("base.common.noData"),
  355. compvalueanyId: null,
  356. },
  357. ], //供应商选项
  358. // vehicleOption:[{vehicle:this.$t('base.common.noData'),value:null}], //司机选项
  359. tenantOption: [
  360. {
  361. text: this.$t("base.common.noData"),
  362. value: null,
  363. },
  364. ], //企业选项
  365. showSetDateCalendar: false,
  366. showEndDateCalendar: false,
  367. defaultEndDate: dayjs().add(30, "day").format("YYYY-MM-DD HH:mm:ss"), //默认有效日期
  368. //业务对应的客户信息
  369. vehicleTypeCompanyList: [],
  370. //客户对应的物料信息
  371. companyMaterialList: [],
  372. };
  373. },
  374. onLoad(options) {
  375. let item=JSON.parse(options.data);
  376. console.log("获取到参数信息、", item);
  377. this.vehicleTypeCompanyList = item.appDriverCompany;
  378. this.vehicleTypeOption = item.appVehicleType;
  379. this.orderForm.tenantId = item.tenantId;
  380. this.switchTenant(item.tenantId);
  381. this.bindOption();
  382. },
  383. methods: {
  384. //去选择司机
  385. toSelectVehicle() {
  386. uni.navigateTo({
  387. url: "/subpages/order/driverVehicle",
  388. });
  389. },
  390. //司机扫码set租户
  391. switchTenant(tenantId){
  392. if(tenantId&&!uni.setStorageSync('tenantInfo')){
  393. let tenant=[{
  394. tenantName:'',
  395. tenantId:tenantId,
  396. tenantCode:tenantId,
  397. statusFlag:"1"}]
  398. uni.setStorageSync('tenantInfo',tenant)
  399. }
  400. },
  401. //车号键盘输出
  402. onKeyBoardConfirm(id) {
  403. this.orderForm.vehicle = id;
  404. },
  405. //显示车牌键盘
  406. carKeyboardOut() {
  407. this.carKeyboardShow = true;
  408. },
  409. // //选择订单类型后加载选项 //获取品种信息 101:销售,102:采购
  410. bindOption() {
  411. var that = this;
  412. console.log("当前租户ID、", that.orderForm.tenantId);
  413. if (that.orderForm.tenantId) {
  414. console.log("用户业务类型、", that.vehicleTypeOption);
  415. console.log("用户客户信息、", that.vehicleTypeCompanyList);
  416. if (that.vehicleTypeOption && that.vehicleTypeOption.length > 0) {
  417. that.orderForm.vehicleType = that.vehicleTypeOption[0].value;
  418. that.bindCompany();
  419. that.bindMaterial();
  420. }
  421. }
  422. },
  423. bindCompany() {
  424. if (this.vehicleTypeCompanyList&&this.vehicleTypeCompanyList.length>0) {
  425. this.companyOption = [
  426. {
  427. text: this.$t("order.notSelected"),
  428. value: null,
  429. },
  430. ]; //物料选项
  431. this.vehicleTypeCompanyList.forEach((item) => {
  432. this.companyOption.push({
  433. text: item.name,
  434. value: item.id,
  435. });
  436. });
  437. this.orderForm.companyId = this.companyOption[1].value;
  438. this.orderForm.companyName = this.companyOption[1].text;
  439. console.log("客户信息、", this.companyOption);
  440. }
  441. },
  442. bindMaterial() {
  443. var companyId = this.orderForm.companyId;
  444. this.materialOption = [];
  445. this.orderForm.materialId = "";
  446. this.orderForm.materialName = "";
  447. this.paymentOption = {};
  448. if (companyId) {
  449. getMaterialsByCompany(this.orderForm).then((res) => {
  450. if (res.data.code == 0) {
  451. this.paymentOption = res.data.hardInfo;
  452. this.materialOption = [
  453. {
  454. text: this.$t("order.notSelected"),
  455. value: null,
  456. },
  457. ]; //物料选项
  458. var materialInfos = res.data.data;
  459. console.log("1111213213", materialInfos);
  460. if (materialInfos && materialInfos.length > 0) {
  461. materialInfos.forEach((item) => {
  462. this.materialOption.push({
  463. text: item.name,
  464. value: item.id,
  465. });
  466. });
  467. if (this.materialOption[1]) {
  468. this.orderForm.materialId = this.materialOption[1].value;
  469. this.orderForm.materialName = this.materialOption[1].text;
  470. }
  471. }
  472. console.log("品种信息、", this.materialOption);
  473. }
  474. });
  475. }
  476. },
  477. //
  478. // bindTenant() {
  479. // this.tenantOption = getTenantCacheList();
  480. // if (this.tenantOption.length > 0) {
  481. // this.orderForm.tenantId = this.tenantOption[0].value
  482. // this.orderForm.tenantName = this.tenantOption[0].text
  483. // }
  484. // this.bindOption();
  485. // },
  486. //提交订单
  487. submit(ref) {
  488. let _this = this;
  489. console.log("提交的订单信息、", this.orderForm);
  490. if (this.orderForm.orderType != "4" && !this.orderForm.vehicle) {
  491. uni.showToast({
  492. title: this.$t("base.common.placeholderI") + this.$t("order.vehicle"),
  493. icon: "none",
  494. duration: 2000,
  495. });
  496. return;
  497. }
  498. if (!this.orderForm.orderNumber || this.orderForm.orderNumber == "0") {
  499. uni.showToast({
  500. title:
  501. this.$t("base.common.placeholderI") + this.$t("order.orderNumber"),
  502. icon: "none",
  503. duration: 2000,
  504. });
  505. return;
  506. }
  507. this.$refs[ref]
  508. .validate()
  509. .then(() => {
  510. _this.orderForm.saveOrder='101';
  511. let data = JSON.parse(JSON.stringify(_this.orderForm));
  512. console.log("保存订单信息、", data);
  513. this.$refs.loadingToast.show({
  514. type: "loading",
  515. message: this.$t("base.common.loading"),
  516. duration: "1000000",
  517. });
  518. saveOrder(data).then((res) => {
  519. this.$refs.loadingToast.hide();
  520. if (res.statusCode === 200) {
  521. uni.showModal({
  522. // title: '提示',
  523. content: this.$t("order.isContinueAddOrder"),
  524. showCancel: true,
  525. cancelText: this.$t("base.button.goBack"),
  526. confirmText: this.$t("base.button.continue"),
  527. success: function (res) {
  528. if (res.confirm) {
  529. (_this.orderForm = {
  530. setDate: dayjs().format("YYYY-MM-DD"), //订单日期
  531. orderValidDate: dayjs()
  532. .add(30, "day")
  533. .format("YYYY-MM-DD HH:mm:ss"), //有效日期
  534. vehicleTypeName: "", //业务类型
  535. companyId: "", //客商
  536. materialId: "", //物料
  537. orderNumber: "0", //数量
  538. vehicle: "", //车号
  539. driverId: "", //司机id\
  540. orderType: "1",
  541. orderTypeName: "临时订单",
  542. phone: "",
  543. idcard: "",
  544. driver: "",
  545. companyName: "", //客商
  546. materialName: "", //物料id
  547. }),
  548. console.log("用户点击确定");
  549. } else if (res.cancel) {
  550. console.log("用户点击取消");
  551. uni.redirectTo({
  552. url: "/subpages/order/driverList?index=0",
  553. });
  554. }
  555. },
  556. });
  557. }
  558. });
  559. })
  560. .catch((err) => {
  561. console.log("err", err);
  562. this.$refs.loadingToast.hide();
  563. });
  564. },
  565. //显示选择
  566. showPopup(refs) {
  567. this.$refs[refs].showPicker = true;
  568. },
  569. //选择下单日期
  570. onSetDateConfirm(date) {
  571. this.orderForm.setDate = dayjs(date).format("YYYY-MM-DD");
  572. this.showSetDateCalendar = false;
  573. },
  574. //选择下单日期
  575. onEndDateConfirm(date) {
  576. this.orderForm.orderValidDate = dayjs(date.value).format(
  577. "YYYY-MM-DD HH:mm:ss"
  578. );
  579. this.showEndDateCalendar = false;
  580. },
  581. //选择订单类型
  582. onOrderTypeConfirm(value) {
  583. this.orderForm.orderType = "";
  584. this.orderForm.orderTypeName = "";
  585. if (value.value) {
  586. this.orderForm.orderType = value.value;
  587. this.orderForm.orderTypeName = value.text;
  588. }
  589. },
  590. //选择订单类型
  591. onVehicleTypeConfirm(value) {
  592. this.orderForm.vehicleType = value;
  593. this.clear(false);
  594. this.bindCompany();
  595. this.bindMaterial();
  596. },
  597. //选择客户
  598. onCompanyConfirm(value) {
  599. this.orderForm.companyId = "";
  600. this.orderForm.companyName = "";
  601. if (value.value) {
  602. this.orderForm.companyId = value.value;
  603. this.orderForm.companyName = value.text;
  604. }
  605. this.bindMaterial();
  606. },
  607. //选择原料
  608. onProductConfirm(value) {
  609. console.log("选择的物料信息、", value);
  610. this.orderForm.materialId = "";
  611. this.orderForm.materialName = "";
  612. if (value.value) {
  613. this.orderForm.materialId = value.value;
  614. this.orderForm.materialName = value.text;
  615. }
  616. },
  617. // //选择企业
  618. // onTenantConfirm(value) {
  619. // this.orderForm.tenantId = "";
  620. // this.orderForm.tenantName = "";
  621. // if (value.value) {
  622. // this.orderForm.tenantId = value.value;
  623. // this.orderForm.tenantName = value.text;
  624. // }
  625. // this.bindOption();
  626. // },
  627. clear(isVehicleType) {
  628. if (isVehicleType == true) {
  629. this.vehicleTypeOption = [
  630. {
  631. text: this.$t("base.common.noData"),
  632. value: null,
  633. },
  634. ];
  635. this.orderForm.vehicleType = "";
  636. }
  637. this.companyOption = [
  638. {
  639. text: this.$t("base.common.noData"),
  640. value: null,
  641. },
  642. ]; //客户选项
  643. this.materialOption = [
  644. {
  645. text: this.$t("base.common.noData"),
  646. value: null,
  647. },
  648. ]; //物料选项
  649. this.orderForm.companyId = "";
  650. this.orderForm.materialId = "";
  651. this.orderForm.companyName = "";
  652. this.orderForm.materialName = "";
  653. this.orderForm.orderNumber = "0";
  654. this.orderForm.driver = "";
  655. this.orderForm.driverId = "";
  656. this.orderForm.vehicle = "";
  657. },
  658. },
  659. };
  660. </script>
  661. <style lang="less" scoped>
  662. .order {
  663. padding: 32rpx;
  664. .picker-title {
  665. display: flex;
  666. padding: 0 32rpx;
  667. line-height: 84rpx;
  668. justify-content: space-between;
  669. .confirm {
  670. color: #4680f9;
  671. }
  672. }
  673. .picker-wrap {
  674. height: 440rpx;
  675. .picker-view {
  676. height: 100%;
  677. .item {
  678. display: flex;
  679. justify-content: space-between;
  680. height: 88rpx;
  681. line-height: 88rpx;
  682. padding: 0 32rpx;
  683. .text {
  684. width: 33%;
  685. }
  686. .text1 {
  687. width: 33%;
  688. text-align: center;
  689. }
  690. .text2 {
  691. width: 33%;
  692. text-align: right;
  693. }
  694. }
  695. .btn-item {
  696. display: flex;
  697. justify-content: center;
  698. height: 88rpx;
  699. line-height: 88rpx;
  700. padding: 0 32rpx;
  701. align-items: center;
  702. .add-vehicle {
  703. line-height: 64rpx;
  704. height: 64rpx;
  705. background: #4680f9;
  706. width: 25%;
  707. font-size: 28rpx;
  708. }
  709. }
  710. }
  711. }
  712. .form-wrap {
  713. height: 444rpx;
  714. padding: 0 32rpx;
  715. }
  716. }
  717. // button {
  718. // // background:linear-gradient(to right,#4680F9 0%,#00e2fa 80%,#00e2fa 100%);
  719. // background: #4680F9;
  720. // line-height: 100rpx;
  721. // color: #fff;
  722. // border: none;
  723. // }
  724. uni-button:after {
  725. border: none;
  726. }
  727. uni-input {
  728. height: 72rpx;
  729. padding: 0 10rpx 0 20rpx;
  730. }
  731. .uni-forms-item__inner {
  732. padding: 20rpx 0;
  733. }
  734. // /deep/ .u-button--primary {
  735. // background-color: #4680F9;
  736. // border-color: #4680F9;
  737. // }
  738. </style>