creatReduction.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820
  1. <template>
  2. <view class="creat">
  3. <view class="top"></view>
  4. <cu-custom bgColor="bg-fff" :isBack="true">
  5. <block slot="content">{{ productId ? '编辑满减券' : '新增满减券' }}</block>
  6. </cu-custom>
  7. <view class="content">
  8. <view class="form">
  9. <view class="titl">
  10. 领取信息
  11. </view>
  12. <view class="item">
  13. <view class="label">
  14. 满减券名称
  15. </view>
  16. <view class="picker">
  17. <u-input v-model="form.couponName" placeholder="输入满减券名称" />
  18. </view>
  19. </view>
  20. <view style="margin-bottom:15rpx">
  21. <view class="section-title">
  22. 满减消费
  23. </view>
  24. <view class="section-full justify-between ">
  25. <view style="width: 46%;">
  26. <text class="section-title" style="font-weight: 500;">满
  27. <text class="section-limit" >0元即不限制金额</text>
  28. </text>
  29. <view class="flex align-center"><u-input v-model="form.contentConditions"
  30. placeholder="输入金额" />元</view>
  31. </view>
  32. <view style="width: 46%;">
  33. <text class="section-title" style="font-weight: 500;">减</text>
  34. <view class="flex align-center"><u-input v-model="form.contentInfo" placeholder="输入金额" />元
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="item">
  40. <view class="label">
  41. 库存
  42. </view>
  43. <view class="picker">
  44. <u-input v-model="form.number" placeholder="输入库存" />
  45. </view>
  46. </view>
  47. <view class="item">
  48. <view class="label">
  49. 有效时间
  50. </view>
  51. <view class="picker">
  52. <u-input placeholder="去设置" v-model="showDate" @click="selectDate" selectDate />
  53. <u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
  54. </view>
  55. </view>
  56. <view class="titl">
  57. 领取方式
  58. </view>
  59. <view class="product-item">
  60. <view class="title flex">所有人可领
  61. </view>
  62. <view @click="groupChange(1)" class="flex" style="margin-left:36rpx">
  63. <text v-if="form.couponWay !== '1'" style="display: inline-block;"
  64. class="radio-container"></text>
  65. <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
  66. mode=""></image>
  67. </view>
  68. </view>
  69. <view class="product-item">
  70. <view class="title flex">本店消费可领
  71. </view>
  72. <view @click="groupChange(2)" class="flex" style="margin-left:36rpx">
  73. <text v-if="form.couponWay !== '2'" style="display: inline-block;"
  74. class="radio-container"></text>
  75. <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
  76. mode=""></image>
  77. </view>
  78. </view>
  79. <view class="item justify-between">
  80. <view class="label">
  81. 允许重复领取
  82. </view>
  83. <view >
  84. <u-switch activeColor="#449AFF " v-model="form.repeatClaim" size="24" ></u-switch>
  85. </view>
  86. </view>
  87. <view class="titl">
  88. 使用信息
  89. </view>
  90. <view class="item justify-between">
  91. <view class="label">
  92. 适用范围
  93. </view>
  94. <view>
  95. <picker @change="confirm1" :value="form.couponRange" :range="columns1" range-key="name">
  96. <view class="picker" v-if="form.couponRange" style="color: #303133">
  97. {{columns1.find(e => e.value == form.couponRange).name}}
  98. </view>
  99. <view v-else style="color: #999999">
  100. 去选择
  101. <u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
  102. </view>
  103. </picker>
  104. </view>
  105. </view>
  106. <view class="item justify-between" v-show="form.couponRange == '2' || form.couponRange == '3'">
  107. <view class="label">适用商品范围</view>
  108. <view @click="geActivity" style="color: #999999">
  109. {{ form.couponRangeInfo.length !== 0 ? '已选择' + form.couponRangeInfo.length + '个商品' : '去选择' }}
  110. <u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
  111. </view>
  112. </view>
  113. <!-- <view class="titl">
  114. 使用条件
  115. </view>
  116. <view class="product-item">
  117. <view class="title flex">不限制 </view>
  118. <view @click="conditionsChange(1)" class="flex" style="margin-left:36rpx">
  119. <text v-if="form.conditionsUse !== '1'" style="display: inline-block;"
  120. class="radio-container"></text>
  121. <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
  122. mode=""></image>
  123. </view>
  124. </view>
  125. <view class="product-item">
  126. <view class="title flex">最低消费
  127. <input name="input" :disabled="form.conditionsUse !== '2'" v-model="form.conditions" />元
  128. </view>
  129. <view @click="conditionsChange(2)" class="flex" style="margin-left:36rpx">
  130. <text v-if="form.conditionsUse !== '2'" style="display: inline-block;"
  131. class="radio-container"></text>
  132. <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
  133. mode=""></image>
  134. </view>
  135. </view> -->
  136. <view class="item upload">
  137. <view class="label">
  138. 满减券描述
  139. </view>
  140. <view class="textarea">
  141. <u-input v-model="form.couponDescription" type="textarea" placeholder="请输入描述内容"
  142. maxlength="500" />
  143. </view>
  144. <view class="num">
  145. <span v-if="form.couponDescription">{{ form.couponDescription &&
  146. form.couponDescription.length > 0 ?
  147. form.couponDescription.length : 0 }}</span>
  148. /500
  149. </view>
  150. <view class="tips">
  151. 支持jpg,png格式,最多上传5张,每张图片大小不得超过5M。
  152. </view>
  153. <view class="grid col-4 grid-square flex-sub booder-top">
  154. <view class="bg-img" v-for="(item, index) in headPhotoImg" :key="index" @tap="ViewImage"
  155. :data-url="headPhotoImg[index]">
  156. <image :src="headPhotoImg[index]" mode="aspectFill"></image>
  157. <view class="cu-tag bg-red" @tap.stop="DelImg" :data-index="index">
  158. <text class='cuIcon-close'></text>
  159. </view>
  160. </view>
  161. <view @tap="ChooseImage" v-if="headPhotoImg.length <= 4">
  162. <image style="width: 156rpx;height:156rpx" src="../../static/coupon/upload.png"
  163. mode="aspectFill"></image>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. <view class="btn">
  170. <view class="submit" @click="submit">
  171. {{ productId ? '确认编辑' : '确认新增' }}
  172. </view>
  173. </view>
  174. <rangTime title="选中有效时间" ref="rangTime" :mode="mode" @onSubmit="onEndTimeChange" />
  175. </view>
  176. </template>
  177. <script>
  178. import rangTime from '@/components/dengrq-datetime-picker/dateSelector/index.vue'
  179. import refund from '@/components/product/refund.vue'
  180. import { USER_INFO } from "@/common/util/constants"
  181. import configService from '../../common/service/config.service'
  182. export default {
  183. components: {
  184. rangTime,
  185. refund
  186. },
  187. data() {
  188. return {
  189. headPhotoImg: [],
  190. showApplication: false,
  191. columns1: [{
  192. name: '全店通用',
  193. value: 1
  194. }, {
  195. name: '本店可用商品',
  196. value: 2
  197. }, {
  198. name: '本店不可用商品',
  199. value: 3
  200. }],
  201. mode: 1,
  202. form: {
  203. couponWay: null,
  204. // conditionsUse: null,
  205. couponRange: '',
  206. couponRangeInfo: [],
  207. couponPhoto: [],
  208. type:'1',
  209. contentConditions:''
  210. },
  211. showRule: '', //显示退款规则文字
  212. action: configService.apiUrl + '/sys/common/upload', //图片上传地址
  213. fileList: [],
  214. selectedTime: null,
  215. isSelectDate: false,
  216. showDate: '',
  217. productId: '',
  218. }
  219. },
  220. methods: {
  221. groupChange(e) {
  222. // e=='1'?this.couponWayInfo2='':this.couponWayInfo1=''
  223. this.form.couponWay = e == '1' ? '1' : '2'
  224. },
  225. conditionsChange(e) {
  226. // this.form.couponWayInfo=''
  227. this.form.conditionsUse = e == '1' ? '1' : '2'
  228. },
  229. ViewImage(e) {
  230. uni.previewImage({
  231. urls: this.headPhotoImg,
  232. current: e.currentTarget.dataset.url
  233. });
  234. },
  235. DelImg(e) {
  236. uni.showModal({
  237. title: '提示',
  238. content: '确定要删除?',
  239. cancelText: '取消',
  240. confirmText: '确定',
  241. success: res => {
  242. if (res.confirm) {
  243. this.headPhotoImg.splice(e.currentTarget.dataset.index, 1)
  244. this.form.couponPhoto.splice(e.currentTarget.dataset.index, 1)
  245. }
  246. }
  247. })
  248. },
  249. ChooseImage() {
  250. uni.chooseImage({
  251. // count: 4, //默认9
  252. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  253. sourceType: ['album'], //从相册选择
  254. success: (res) => {
  255. if (res) {
  256. // this[type + 'Img'] = chooseImageRes.tempFilePaths[0];
  257. uni.uploadFile({
  258. url: configService.apiUrl + '/sys/common/upload',
  259. filePath: res.tempFilePaths[0],
  260. name: "file",
  261. formData: {
  262. 'biz': 'temp',
  263. },
  264. success: (files) => {
  265. let data = JSON.parse(files.data);
  266. if (data.success) {
  267. if (this.headPhotoImg.length != 0) {
  268. this.headPhotoImg = this.headPhotoImg.concat(res.tempFilePaths)
  269. this.form.couponPhoto.push(configService.apiUrl + '/' + data.message)
  270. } else {
  271. this.headPhotoImg = res.tempFilePaths
  272. this.form.couponPhoto = [configService.apiUrl + '/' + data.message]
  273. }
  274. // this.form.headPhoto =this.form.headPhoto+'/'+ data.message
  275. }
  276. }
  277. })
  278. }
  279. }
  280. });
  281. },
  282. confirm1(e) {
  283. this.form.couponRange = e.detail.value + 1
  284. // if(e!=='0'){
  285. // this.form.couponRangeInfo = uni.getStorageSync('allowanceSelected')
  286. // }
  287. // else{
  288. // this.form.couponRangeInfo =[]
  289. // }
  290. },
  291. //返回
  292. back() {
  293. uni.navigateTo({
  294. url: '/pages/product/index'
  295. })
  296. },
  297. // 处理 confirm 事件,接收子组件传递的时间段数据
  298. handleConfirm(time) {
  299. this.selectedTime = time; // 保存时间段数据
  300. this.isSelectDate = false
  301. },
  302. //隐藏弹窗
  303. closeSelectDate() {
  304. this.isSelectDate = false
  305. },
  306. //跳转至可用时间
  307. setUsable() {
  308. uni.navigateTo({
  309. url: '/pages/product/usable'
  310. })
  311. },
  312. selectDate() {
  313. // this.isSelectDate = true
  314. this.$refs.rangTime.open()
  315. },
  316. onEndTimeChange(val) {
  317. this.form.beginTime = val.startDate
  318. this.form.endTime = val.endDate
  319. this.showDate = val.startDate + '-' + val.endDate
  320. this.$forceUpdate(); // 强制刷新视图
  321. },
  322. geActivity() {
  323. uni.navigateTo({
  324. url: '/pages/coupon/activity?params=' + encodeURIComponent(JSON.stringify(this.form.couponRangeInfo))
  325. })
  326. },
  327. //提交审核
  328. submit() {
  329. if (!this.form.couponName) {
  330. uni.showToast({
  331. title: '请输入满减券名称',
  332. icon: 'none'
  333. });
  334. return
  335. } else if (this.form.contentConditions=='') {
  336. uni.showToast({
  337. title: '请输入满减金额',
  338. icon: 'none'
  339. });
  340. return
  341. } else if (!this.form.contentInfo) {
  342. uni.showToast({
  343. title: '请输入金额',
  344. icon: 'none'
  345. });
  346. return
  347. } else if (!this.form.number) {
  348. uni.showToast({
  349. title: '请输入库存',
  350. icon: 'none'
  351. });
  352. return
  353. } else if (this.form.number == '0' || this.form.number == 0) {
  354. uni.showToast({
  355. title: '库存不能为0',
  356. icon: 'none'
  357. });
  358. return
  359. } else if (this.form.couponWay == null) {
  360. uni.showToast({
  361. title: '请选择领取方式',
  362. icon: 'none'
  363. });
  364. return
  365. } else if (!this.form.beginTime && !this.form.endTime) {
  366. uni.showToast({
  367. title: '请选择有效时间',
  368. icon: 'none'
  369. });
  370. return
  371. } else if (this.form.couponRange == '') {
  372. uni.showToast({
  373. title: '请选择适用范围',
  374. icon: 'none'
  375. });
  376. return
  377. } else if ((this.form.couponRange == '3' || this.form.couponRange == '2' )&& this.form.couponRangeInfo.length==0) {
  378. uni.showToast({
  379. title: '请选择适用商品范围',
  380. icon: 'none'
  381. });
  382. return
  383. } else {
  384. let data={
  385. repeatClaim:this.form.repeatClaim?'1':'2',
  386. couponRangeInfo:this.form.couponRangeInfo.length > 0 ? this.form.couponRangeInfo.join(',') : null,
  387. couponPhoto:this.form.couponPhoto.length > 0 ? this.form.couponPhoto.join(',') : null
  388. }
  389. if (this.productId == '') {
  390. this.$http.post("/merchant/localCouponInfo/add", { ...this.form,...data, merchantId: uni.getStorageSync(USER_INFO).merchantId }).then(res => {
  391. if (res.data.code == 200) {
  392. uni.showToast({
  393. title: '添加成功',
  394. icon: 'none'
  395. });
  396. this.$store.state.shopSelectedIds=[]
  397. uni.navigateTo({
  398. url: '/pages/coupon/coupon'
  399. })
  400. }
  401. })
  402. } else {
  403. this.form.productId = this.productId
  404. this.$http.post("/merchant/localCouponInfo/edit", {...this.form,...data}).then(res => {
  405. if (res.data.code == 200) {
  406. uni.showToast({
  407. title: '编辑成功',
  408. icon: 'none'
  409. });
  410. this.$store.state.shopSelectedIds=[]
  411. uni.navigateTo({
  412. url: '/pages/coupon/coupon'
  413. })
  414. }
  415. })
  416. }
  417. }
  418. },
  419. //回显数据
  420. getForm() {
  421. this.$http.get("/merchant/localCouponInfo/queryById?id=" + this.productId).then(res => {
  422. if (res.data.success) {
  423. res.data.result.couponRangeInfo = res.data.result.couponRangeInfo ? res.data.result.couponRangeInfo.split(',').filter(id => id) : []
  424. res.data.result.couponPhoto = res.data.result.couponPhoto!== null && res.data.result.couponPhoto.length>0? res.data.result.couponPhoto.split(',').filter(id => id) : []
  425. res.data.result.couponWay = res.data.result.couponWay ? res.data.result.couponWay + '' : ''
  426. res.data.result.repeatClaim = res.data.result.repeatClaim && res.data.result.repeatClaim=='1'? true: false
  427. this.headPhotoImg=res.data.result.couponPhoto
  428. this.showDate = res.data.result.beginTime + '-' + res.data.result.endTime
  429. this.form = res.data.result
  430. }
  431. })
  432. }
  433. },
  434. onLoad(options) {
  435. if (options.id) {
  436. this.productId = options.id
  437. }
  438. // if (options && options.params) {
  439. // let params = JSON.parse(decodeURIComponent(options.params))
  440. //
  441. // }
  442. },
  443. onShow() {
  444. if((this.form.couponRange == '2' || this.form.couponRange == '3') &&this.$store.state.shopSelectedIds){
  445. this.form.couponRangeInfo = this.$store.state.shopSelectedIds
  446. }
  447. else{
  448. this.form.couponRangeInfo =[]
  449. }
  450. if(this.productId){
  451. this.getForm()
  452. }
  453. }
  454. }
  455. </script>
  456. <style lang="scss" scoped>
  457. .u-radio {
  458. flex: 1;
  459. /* 让每个radio项都尽可能填充可用空间 */
  460. }
  461. .creat {
  462. width: 100vw;
  463. height: 100vh;
  464. background: #F7F8FC;
  465. display: flex;
  466. flex-direction: column;
  467. justify-content: space-between;
  468. /*#ifdef APP-PLUS*/
  469. .top {
  470. width: 100%;
  471. height: var(--status-bar-height);
  472. background-color: #fff;
  473. }
  474. /*#endif*/
  475. .head {
  476. width: 100%;
  477. height: 112rpx;
  478. padding: 32rpx 24rpx;
  479. display: flex;
  480. align-items: center;
  481. background-color: #fff;
  482. position: relative;
  483. .cuIcon-back {
  484. font-size: 40rpx;
  485. margin-right: 40rpx;
  486. }
  487. .case {
  488. font-size: 36rpx;
  489. font-weight: 600;
  490. position: absolute;
  491. top: 50%;
  492. left: 50%;
  493. transform: translate(-50%, -50%);
  494. }
  495. .step {
  496. position: absolute;
  497. right: 20rpx;
  498. }
  499. }
  500. .content {
  501. width: 100%;
  502. flex: 1;
  503. padding: 24rpx;
  504. overflow-y: auto;
  505. .titl {
  506. font-weight: 500;
  507. font-size: 32rpx;
  508. color: #333333;
  509. width: 100%;
  510. // height: 60rpx;
  511. font-weight: 600;
  512. margin-bottom: 22rpx;
  513. }
  514. .form {
  515. background-color: #fff;
  516. padding: 16rpx;
  517. border-radius: 16rpx;
  518. .item {
  519. width: 100%;
  520. height: 58rpx;
  521. border-bottom: 1px solid #EEEEEE;
  522. display: flex;
  523. // align-items: center;
  524. padding-bottom: 16rpx;
  525. margin-bottom: 16rpx;
  526. .label {
  527. margin-right: 20rpx;
  528. font-weight: 600;
  529. font-size: 28rpx;
  530. min-width: 126rpx;
  531. span {
  532. color: red;
  533. }
  534. }
  535. .picker {
  536. flex: 1;
  537. display: flex;
  538. align-items: center;
  539. justify-content: space-between;
  540. font-size: 28rpx;
  541. color: #999999;
  542. ::v-deep.u-input__input {
  543. text-align: right;
  544. }
  545. }
  546. .set {
  547. display: flex;
  548. justify-content: flex-end;
  549. ::v-deep.u-input {
  550. text-align: right !important;
  551. }
  552. }
  553. }
  554. .upload {
  555. display: block;
  556. height: auto;
  557. .tips {
  558. font-size: 20rpx;
  559. color: #999999;
  560. margin-bottom: 16rpx;
  561. margin-top: 10rpx;
  562. }
  563. }
  564. .textarea {
  565. width: 100%;
  566. min-height: 196rpx;
  567. background: #F7F8FC;
  568. border-radius: 4rpx;
  569. padding: 12rpx 16rpx;
  570. font-size: 26rpx;
  571. margin-top: 12rpx;
  572. }
  573. .num {
  574. width: 100%;
  575. text-align: right;
  576. font-size: 24rpx;
  577. color: #999999;
  578. margin-top: 6rpx;
  579. }
  580. }
  581. }
  582. .btn {
  583. width: 100%;
  584. height: 112rpx;
  585. background-color: #fff;
  586. display: flex;
  587. justify-content: center;
  588. align-items: center;
  589. padding: 16rpx 24rpx;
  590. .submit {
  591. width: 100%;
  592. height: 76rpx;
  593. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  594. border-radius: 75rpx;
  595. display: flex;
  596. align-items: center;
  597. justify-content: center;
  598. font-size: 28rpx;
  599. color: #FFFFFF;
  600. }
  601. }
  602. .popup {
  603. width: 100vw;
  604. height: 100vh;
  605. position: fixed;
  606. top: 0;
  607. left: 0;
  608. background: rgba(0, 0, 0, 0.4);
  609. display: flex;
  610. align-items: flex-end;
  611. z-index: 99;
  612. .model {
  613. width: 100%;
  614. background-color: #fff;
  615. border-radius: 20rpx 20rpx 0rpx 0rpx;
  616. padding: 0rpx 24rpx;
  617. padding-bottom: 20rpx;
  618. .title {
  619. width: 100%;
  620. height: 86rpx;
  621. display: flex;
  622. align-items: center;
  623. justify-content: center;
  624. border-bottom: 1px solid #EEEEEE;
  625. position: relative;
  626. image {
  627. width: 40rpx;
  628. height: 40rpx;
  629. position: absolute;
  630. right: 0px;
  631. }
  632. }
  633. .tree {
  634. display: flex;
  635. height: 546rpx;
  636. .left {
  637. overflow-y: auto;
  638. .item {
  639. width: 224rpx;
  640. height: 78rpx;
  641. padding: 20rpx;
  642. font-size: 26rpx;
  643. }
  644. .active {
  645. background: rgba(68, 154, 255, 0.1);
  646. color: #2983EC;
  647. }
  648. }
  649. .border {
  650. border-left: 1px solid #eeeeee;
  651. border-right: 1px solid #eeeeee;
  652. }
  653. }
  654. .sub {
  655. display: flex;
  656. justify-content: space-between;
  657. margin-top: 16rpx;
  658. border-top: 1px solid #eeeeee;
  659. padding-top: 16rpx;
  660. .submit {
  661. width: 672rpx;
  662. height: 76rpx;
  663. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  664. border-radius: 53rpx;
  665. display: flex;
  666. align-items: center;
  667. justify-content: center;
  668. font-size: 28rpx;
  669. color: #FFFFFF;
  670. }
  671. }
  672. }
  673. }
  674. }
  675. ::v-deep.u-upload__button {
  676. width: 250rpx !important;
  677. height: 250rpx !important;
  678. }
  679. .radio-style {
  680. margin-bottom: 15rpx;
  681. // border-bottom: 1px solid #EEEEEE;
  682. ::v-deep.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text {
  683. color: #333 !important
  684. }
  685. ::v-deep.uni-data-checklist .checklist-group {
  686. flex-direction: column;
  687. .checklist-box {
  688. flex-direction: row-reverse;
  689. justify-content: space-between;
  690. .checklist-content .checklist-text {
  691. margin-left: 0;
  692. font-weight: 600;
  693. font-size: 28rpx;
  694. }
  695. }
  696. }
  697. }
  698. .product-item {
  699. display: flex;
  700. justify-content: space-between;
  701. margin-bottom: 20rpx;
  702. // border-bottom: 1px solid #EEEEEE;
  703. input {
  704. width: 120rpx;
  705. border-bottom: 1px solid #ccc;
  706. margin: 0 10rpx;
  707. font-size: 28rpx;
  708. text-align: center;
  709. }
  710. }
  711. .radio-container {
  712. width: 34rpx;
  713. height: 34rpx;
  714. border-radius: 50%;
  715. border: 1px solid #B4B4B4;
  716. }
  717. .radio-img {
  718. width: 34rpx;
  719. height: 34rpx;
  720. }
  721. .section-title {
  722. margin-right: 20rpx;
  723. font-weight: 600;
  724. font-size: 28rpx;
  725. min-width: 126rpx;
  726. }
  727. .section-limit{
  728. background: #F6F6F6;
  729. padding: 5rpx 12rpx;
  730. font-size: 24rpx;
  731. color: #666666;
  732. margin-left: 16rpx;
  733. }
  734. .section-full {
  735. display: flex;
  736. margin-top: 18rpx;
  737. border-bottom: 1px solid #EEEEEE;
  738. .u-input {
  739. height: 64rpx;
  740. background: #F7F8FC;
  741. margin-right: 18rpx;
  742. font-size: 28rpx;
  743. margin: 18rpx 0;
  744. margin-right: 18rpx;
  745. }
  746. ::v-deep.u-input__input {
  747. padding: 10rpx 20rpx;
  748. }
  749. }
  750. </style>