creatcoupon.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  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. temp.push(item.url)
  419. }))
  420. }
  421. let data={
  422. voucherWayInfo:this.form.voucherWay=='1'?this.voucherWayInfo1:this.voucherWayInfo2,
  423. conditions : this.form.conditionsUse == '2' ? this.form.conditions : '0',
  424. voucherRangeInfo : this.form.voucherRangeInfo.length > 0 ? this.form.voucherRangeInfo.join(',') : null,
  425. // voucherPhoto : this.form.voucherPhoto.length > 0 ? this.form.voucherPhoto.join(',') : null
  426. voucherPhoto:temp.length > 0 ? temp.join(',') : null
  427. }
  428. if (this.productId == '') {
  429. this.$http.post("/merchant/localVoucherInfo/add", { ...this.form,...data, merchantId: uni.getStorageSync(USER_INFO).merchantId }).then(res => {
  430. if (res.data.code == 200) {
  431. uni.showToast({
  432. title: '添加成功',
  433. icon: 'none'
  434. });
  435. this.$store.state.shopSelectedIds=[]
  436. uni.navigateTo({
  437. url: '/pages/coupon/coupon'
  438. })
  439. }else{
  440. uni.showToast({
  441. title: res.message,
  442. icon: 'none'
  443. });
  444. }
  445. })
  446. } else {
  447. this.form.productId = this.productId
  448. this.$http.post("/merchant/localVoucherInfo/edit", {...this.form,...data}).then(res => {
  449. if (res.data.code == 200) {
  450. uni.showToast({
  451. title: '编辑成功',
  452. icon: 'none'
  453. });
  454. this.$store.state.shopSelectedIds=[]
  455. uni.navigateTo({
  456. url: '/pages/coupon/coupon'
  457. })
  458. }else{
  459. uni.showToast({
  460. title: res.data.message,
  461. icon: 'none'
  462. });
  463. }
  464. })
  465. }
  466. }
  467. },
  468. //回显数据
  469. getForm() {
  470. this.$http.get("/merchant/localVoucherInfo/queryById?id="+this.productId ).then(res => {
  471. if(res.data.success){
  472. res.data.result.voucherRangeInfo=res.data.result.voucherRangeInfo?res.data.result.voucherRangeInfo.split(',').filter(id => id ):[]
  473. // res.data.result.voucherPhoto=res.data.result.voucherPhoto!==null && res.data.result.voucherPhoto.length>0?res.data.result.voucherPhoto.split(',').filter(id => id ):[]
  474. if(res.data.result.voucherPhoto){
  475. let xqtemp = []
  476. xqtemp = res.data.result.voucherPhoto.split(',')
  477. xqtemp.map(item => {
  478. this.xqImage.push({
  479. url: item
  480. })
  481. })
  482. }
  483. res.data.result.conditionsUse = res.data.result.conditions == '0' ? '1' : '2'
  484. res.data.result.voucherWay = res.data.result.voucherWay? res.data.result.voucherWay+'':''
  485. this.voucherWayInfo1=res.data.result.voucherWay=='1'?res.data.result.voucherWayInfo:''
  486. this.voucherWayInfo2=res.data.result.voucherWay=='2'?res.data.result.voucherWayInfo:''
  487. this.headPhotoImg=res.data.result.voucherPhoto
  488. this.showDate = res.data.result.beginTime + '-' + res.data.result.endTime
  489. this.form=res.data.result
  490. }
  491. })
  492. }
  493. },
  494. onLoad(options) {
  495. if (options.id) {
  496. this.productId = options.id
  497. }
  498. // if (options && options.params) {
  499. // let params = JSON.parse(decodeURIComponent(options.params))
  500. //
  501. // }
  502. },
  503. onShow() {
  504. if((this.form.voucherRange == '2' || this.form.voucherRange == '3') &&this.$store.state.shopSelectedIds){
  505. this.form.voucherRangeInfo = this.$store.state.shopSelectedIds
  506. }
  507. else{
  508. this.form.voucherRangeInfo =[]
  509. }
  510. if(this.productId){
  511. this.getForm()
  512. }
  513. }
  514. }
  515. </script>
  516. <style lang="scss" scoped>
  517. .u-radio {
  518. flex: 1;
  519. /* 让每个radio项都尽可能填充可用空间 */
  520. }
  521. .creat {
  522. width: 100vw;
  523. height: 100vh;
  524. background: #F7F8FC;
  525. display: flex;
  526. flex-direction: column;
  527. justify-content: space-between;
  528. /*#ifdef APP-PLUS*/
  529. .top {
  530. width: 100%;
  531. height: var(--status-bar-height);
  532. background-color: #fff;
  533. }
  534. /*#endif*/
  535. .head {
  536. width: 100%;
  537. height: 112rpx;
  538. padding: 32rpx 24rpx;
  539. display: flex;
  540. align-items: center;
  541. background-color: #fff;
  542. position: relative;
  543. .cuIcon-back {
  544. font-size: 40rpx;
  545. margin-right: 40rpx;
  546. }
  547. .case {
  548. font-size: 36rpx;
  549. font-weight: 600;
  550. position: absolute;
  551. top: 50%;
  552. left: 50%;
  553. transform: translate(-50%, -50%);
  554. }
  555. .step {
  556. position: absolute;
  557. right: 20rpx;
  558. }
  559. }
  560. .content {
  561. width: 100%;
  562. flex: 1;
  563. padding: 24rpx;
  564. overflow-y: auto;
  565. .titl {
  566. font-weight: 500;
  567. font-size: 32rpx;
  568. color: #333333;
  569. width: 100%;
  570. // height: 60rpx;
  571. font-weight: 600;
  572. margin-bottom: 22rpx;
  573. }
  574. .form {
  575. background-color: #fff;
  576. padding: 16rpx;
  577. border-radius: 16rpx;
  578. .item {
  579. width: 100%;
  580. height: 58rpx;
  581. border-bottom: 1px solid #EEEEEE;
  582. display: flex;
  583. // align-items: center;
  584. padding-bottom: 16rpx;
  585. margin-bottom: 16rpx;
  586. .label {
  587. margin-right: 20rpx;
  588. font-weight: 600;
  589. font-size: 28rpx;
  590. min-width: 126rpx;
  591. span {
  592. color: red;
  593. }
  594. }
  595. .picker {
  596. flex: 1;
  597. display: flex;
  598. align-items: center;
  599. justify-content: space-between;
  600. font-size: 28rpx;
  601. color: #999999;
  602. ::v-deep.u-input__input {
  603. text-align: right;
  604. }
  605. }
  606. .set {
  607. display: flex;
  608. justify-content: flex-end;
  609. ::v-deep.u-input {
  610. text-align: right !important;
  611. }
  612. }
  613. }
  614. .upload {
  615. display: block;
  616. height: auto;
  617. .tips {
  618. font-size: 20rpx;
  619. color: #999999;
  620. margin-bottom: 16rpx;
  621. margin-top: 10rpx;
  622. }
  623. }
  624. .textarea {
  625. width: 100%;
  626. min-height: 196rpx;
  627. background: #F7F8FC;
  628. border-radius: 4rpx;
  629. padding: 12rpx 16rpx;
  630. font-size: 26rpx;
  631. margin-top: 12rpx;
  632. }
  633. .num {
  634. width: 100%;
  635. text-align: right;
  636. font-size: 24rpx;
  637. color: #999999;
  638. margin-top: 6rpx;
  639. }
  640. }
  641. }
  642. .btn {
  643. width: 100%;
  644. height: 112rpx;
  645. background-color: #fff;
  646. display: flex;
  647. justify-content: center;
  648. align-items: center;
  649. padding: 16rpx 24rpx;
  650. .submit {
  651. width: 100%;
  652. height: 76rpx;
  653. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  654. border-radius: 75rpx;
  655. display: flex;
  656. align-items: center;
  657. justify-content: center;
  658. font-size: 28rpx;
  659. color: #FFFFFF;
  660. }
  661. }
  662. .popup {
  663. width: 100vw;
  664. height: 100vh;
  665. position: fixed;
  666. top: 0;
  667. left: 0;
  668. background: rgba(0, 0, 0, 0.4);
  669. display: flex;
  670. align-items: flex-end;
  671. z-index: 99;
  672. .model {
  673. width: 100%;
  674. background-color: #fff;
  675. border-radius: 20rpx 20rpx 0rpx 0rpx;
  676. padding: 0rpx 24rpx;
  677. padding-bottom: 20rpx;
  678. .title {
  679. width: 100%;
  680. height: 86rpx;
  681. display: flex;
  682. align-items: center;
  683. justify-content: center;
  684. border-bottom: 1px solid #EEEEEE;
  685. position: relative;
  686. image {
  687. width: 40rpx;
  688. height: 40rpx;
  689. position: absolute;
  690. right: 0px;
  691. }
  692. }
  693. .tree {
  694. display: flex;
  695. height: 546rpx;
  696. .left {
  697. overflow-y: auto;
  698. .item {
  699. width: 224rpx;
  700. height: 78rpx;
  701. padding: 20rpx;
  702. font-size: 26rpx;
  703. }
  704. .active {
  705. background: rgba(68, 154, 255, 0.1);
  706. color: #2983EC;
  707. }
  708. }
  709. .border {
  710. border-left: 1px solid #eeeeee;
  711. border-right: 1px solid #eeeeee;
  712. }
  713. }
  714. .sub {
  715. display: flex;
  716. justify-content: space-between;
  717. margin-top: 16rpx;
  718. border-top: 1px solid #eeeeee;
  719. padding-top: 16rpx;
  720. .submit {
  721. width: 672rpx;
  722. height: 76rpx;
  723. background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
  724. border-radius: 53rpx;
  725. display: flex;
  726. align-items: center;
  727. justify-content: center;
  728. font-size: 28rpx;
  729. color: #FFFFFF;
  730. }
  731. }
  732. }
  733. }
  734. }
  735. ::v-deep.u-upload__button {
  736. width: 250rpx !important;
  737. height: 250rpx !important;
  738. }
  739. .radio-style {
  740. margin-bottom: 15rpx;
  741. // border-bottom: 1px solid #EEEEEE;
  742. ::v-deep.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text {
  743. color: #333 !important
  744. }
  745. ::v-deep.uni-data-checklist .checklist-group {
  746. flex-direction: column;
  747. .checklist-box {
  748. flex-direction: row-reverse;
  749. justify-content: space-between;
  750. .checklist-content .checklist-text {
  751. margin-left: 0;
  752. font-weight: 600;
  753. font-size: 28rpx;
  754. }
  755. }
  756. }
  757. }
  758. .product-item {
  759. display: flex;
  760. justify-content: space-between;
  761. margin-bottom: 20rpx;
  762. // border-bottom: 1px solid #EEEEEE;
  763. input{
  764. width:120rpx;
  765. border-bottom: 1px solid #ccc ;
  766. margin:0 10rpx;
  767. font-size:28rpx;
  768. text-align: center;
  769. }
  770. }
  771. .radio-container {
  772. width: 34rpx;
  773. height: 34rpx;
  774. border-radius: 50%;
  775. border: 1px solid #B4B4B4;
  776. }
  777. .radio-img {
  778. width: 34rpx;
  779. height: 34rpx;
  780. }
  781. </style>