creatcoupon.vue 21 KB

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