creatReduction.vue 21 KB

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