| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939 |
- <template>
- <view class="creat">
- <view class="top"></view>
- <cu-custom bgColor="bg-fff" :isBack="true">
- <block slot="content">{{ productId ? '编辑满减券' : '新增满减券' }}</block>
- </cu-custom>
- <view class="content">
- <view class="form">
- <view class="titl">
- 领取信息
- </view>
- <view class="item">
- <view class="label">
- 满减券名称
- </view>
- <view class="picker">
- <u-input v-model="form.couponName" placeholder="输入满减券名称" />
- </view>
- </view>
- <view style="margin-bottom:15rpx">
- <view class="section-title">
- 满减消费
- </view>
- <view class="section-full justify-between ">
- <view style="width: 46%;">
- <text class="section-title" style="font-weight: 500;">满
- <text class="section-limit" >0元即不限制金额</text>
- </text>
- <view class="flex align-center"><u-input v-model="form.contentConditions"
- placeholder="输入金额" @input="(val) => handleAmountInput(val, 'contentConditions', true)" />元</view>
- </view>
- <view style="width: 46%;">
- <text class="section-title" style="font-weight: 500;">减</text>
- <view class="flex align-center"><u-input v-model="form.contentInfo" placeholder="输入金额"
- @input="(val) => handleAmountInput(val, 'contentInfo', false)" />元
- </view>
- </view>
- </view>
- </view>
- <view class="item">
- <view class="label">
- 库存
- </view>
- <view class="picker">
- <u-input v-model="form.number" placeholder="输入库存" />
- </view>
- </view>
- <view class="item">
- <view class="label">
- 有效时间
- </view>
- <view class="picker" style="display: flex;align-items: center;justify-content: end;"@click="selectDate">
- <!-- <u-input placeholder="去设置" v-model="showDate" @click="selectDate" selectDate @focus="preventKeyboard" /> -->
- <view class="" >
- {{showDate}}
- </view>
- <u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
- </view>
- </view>
- <view class="titl">
- 领取方式
- </view>
- <view class="product-item">
- <view class="title flex">所有人可领
- </view>
- <view @click="groupChange(1)" class="flex" style="margin-left:36rpx">
- <text v-if="form.couponWay !== '1'" style="display: inline-block;"
- class="radio-container"></text>
- <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
- mode=""></image>
- </view>
- </view>
- <view class="product-item">
- <view class="title flex">本店消费可领
- </view>
- <view @click="groupChange(2)" class="flex" style="margin-left:36rpx">
- <text v-if="form.couponWay !== '2'" style="display: inline-block;"
- class="radio-container"></text>
- <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
- mode=""></image>
- </view>
- </view>
- <view class="item justify-between">
- <view class="label">
- 允许重复领取
- </view>
- <view >
- <u-switch activeColor="#449AFF " v-model="form.repeatClaim" size="24" ></u-switch>
- </view>
- </view>
- <view class="titl">
- 使用信息
- </view>
- <view class="item justify-between">
- <view class="label">
- 适用范围
- </view>
- <view>
- <picker @change="confirm1" :value="form.couponRange" :range="columns1" range-key="name">
- <view class="picker" v-if="form.couponRange" style="color: #303133">
- {{columns1.find(e => e.value == form.couponRange).name}}
- </view>
- <view v-else style="color: #999999">
- 去选择
- <u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
- </view>
- </picker>
- </view>
- </view>
- <view class="item justify-between" v-show="form.couponRange == '2' || form.couponRange == '3'">
- <view class="label">适用商品范围</view>
- <view @click="geActivity" style="color: #999999">
- {{ form.couponRangeInfo.length !== 0 ? '已选择' + form.couponRangeInfo.length + '个商品' : '去选择' }}
- <u-icon name="arrow-right" style="margin-left: 17rpx;"></u-icon>
- </view>
- </view>
- <!-- <view class="titl">
- 使用条件
- </view>
- <view class="product-item">
- <view class="title flex">不限制 </view>
- <view @click="conditionsChange(1)" class="flex" style="margin-left:36rpx">
- <text v-if="form.conditionsUse !== '1'" style="display: inline-block;"
- class="radio-container"></text>
- <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
- mode=""></image>
- </view>
- </view>
- <view class="product-item">
- <view class="title flex">最低消费
- <input name="input" :disabled="form.conditionsUse !== '2'" v-model="form.conditions" />元
- </view>
- <view @click="conditionsChange(2)" class="flex" style="margin-left:36rpx">
- <text v-if="form.conditionsUse !== '2'" style="display: inline-block;"
- class="radio-container"></text>
- <image v-else style=" vertical-align: top;" class="radio-img" src="/static/coupon/xuanzhong.png"
- mode=""></image>
- </view>
- </view> -->
- <view class="item upload">
- <view class="label">
- 满减券描述
- </view>
- <view class="textarea">
- <u-input v-model="form.couponDescription" type="textarea" placeholder="请输入描述内容"
- maxlength="500" />
- </view>
- <view class="num">
- <span v-if="form.couponDescription">{{ form.couponDescription &&
- form.couponDescription.length > 0 ?
- form.couponDescription.length : 0 }}</span>
- /500
- </view>
- <!-- <view class="tips">
- 支持jpg,png格式,最多上传5张,每张图片大小不得超过5M。
- </view> -->
- <!-- <view class="grid col-4 grid-square flex-sub booder-top">
- <view class="bg-img" v-for="(item, index) in headPhotoImg" :key="index" @tap="ViewImage"
- :data-url="headPhotoImg[index]">
- <image :src="headPhotoImg[index]" mode="aspectFill"></image>
- <view class="cu-tag bg-red" @tap.stop="DelImg" :data-index="index">
- <text class='cuIcon-close'></text>
- </view>
- </view>
- <view @tap="ChooseImage" v-if="headPhotoImg.length <= 4">
- <image style="width: 156rpx;height:156rpx" src="../../static/coupon/upload.png"
- mode="aspectFill"></image>
- </view>
- </view> -->
-
- <!-- <u-upload ref="dUpload" :action="action" :file-list="xqImage" @on-success="detailsSuccess"
- @on-remove="detailsRemove" max-count="5" width="140rpx" height="140rpx"></u-upload> -->
- </view>
- </view>
- </view>
- <view class="btn">
- <view class="submit" @click="submit">
- {{ productId ? '确认编辑' : '确认新增' }}
- </view>
- </view>
- <rangTime title="选中有效时间" ref="rangTime" :mode="mode" @onSubmit="onEndTimeChange" />
- </view>
- </template>
- <script>
- import rangTime from '@/components/dengrq-datetime-picker/dateSelector/index.vue'
- import refund from '@/components/product/refund.vue'
- import { USER_INFO } from "@/common/util/constants"
- import configService from '../../common/service/config.service'
- export default {
- components: {
- rangTime,
- refund
- },
- data() {
- return {
- // action: configService.apiUrl + '/sys/common/upload', //图片上传地址
- // xqImage: [], //详情图回显
- headPhotoImg: [],
- showApplication: false,
- columns1: [{
- name: '全店通用',
- value: 1
- }, {
- name: '本店可用商品',
- value: 2
- }, {
- name: '本店不可用商品',
- value: 3
- }],
- mode: 1,
- form: {
- couponWay: null,
- // conditionsUse: null,
- couponRange: '',
- couponRangeInfo: [],
- // couponPhoto: [],
- type:'1',
- contentConditions:''
- },
- showRule: '', //显示退款规则文字
- action: configService.apiUrl + '/sys/common/upload', //图片上传地址
- fileList: [],
- selectedTime: null,
- isSelectDate: false,
- showDate: '去设置',
- productId: '',
- }
- },
- methods: {
- goBackToList(listTab = 0) {
- this.$store.state.shopSelectedIds = []
- setTimeout(() => {
- const pages = getCurrentPages()
- if (pages.length > 1) {
- uni.navigateBack()
- } else {
- uni.redirectTo({
- url: `/pages/coupon/coupon?tab=${listTab}`
- })
- }
- }, 500)
- },
- // 阻止键盘弹出
- preventKeyboard(e) {
- e.preventDefault();
- e.stopPropagation(); // 阻止默认事件(键盘弹出)
- },
- //上传详情图
- //detailsSuccess(res, index, lists) {
- // this.xqImage = lists
-
- //},
- // detailsRemove(index, lists) {
- // this.xqImage = lists
- // },
- groupChange(e) {
- // e=='1'?this.couponWayInfo2='':this.couponWayInfo1=''
- this.form.couponWay = e == '1' ? '1' : '2'
- },
- conditionsChange(e) {
- // this.form.couponWayInfo=''
- this.form.conditionsUse = e == '1' ? '1' : '2'
- },
- ViewImage(e) {
- uni.previewImage({
- urls: this.headPhotoImg,
- current: e.currentTarget.dataset.url
- });
- },
- DelImg(e) {
- uni.showModal({
- title: '提示',
- content: '确定要删除?',
- cancelText: '取消',
- confirmText: '确定',
- success: res => {
- if (res.confirm) {
- this.headPhotoImg.splice(e.currentTarget.dataset.index, 1)
- this.form.couponPhoto.splice(e.currentTarget.dataset.index, 1)
- }
- }
- })
- },
- ChooseImage() {
- uni.chooseImage({
- count: 4, //默认9
- sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
- sourceType: ['album'], //从相册选择
- success: (res) => {
- if (res) {
- // this[type + 'Img'] = chooseImageRes.tempFilePaths[0];
- uni.uploadFile({
- url: configService.apiUrl + '/sys/common/upload',
- filePath: res.tempFilePaths[0],
- name: "file",
- formData: {
- 'biz': 'temp',
- },
- success: (files) => {
- let data = JSON.parse(files.data);
- if (data.success) {
- if (this.headPhotoImg.length != 0) {
- this.headPhotoImg = this.headPhotoImg.concat(res.tempFilePaths)
- this.form.couponPhoto.push(configService.apiUrl + '/' + data.message)
- } else {
- this.headPhotoImg = res.tempFilePaths
- this.form.couponPhoto = [configService.apiUrl + '/' + data.message]
- }
- // this.form.headPhoto =this.form.headPhoto+'/'+ data.message
- }
- }
- })
- }
- }
- });
- },
- confirm1(e) {
- this.form.couponRange = e.detail.value + 1
- // if(e!=='0'){
- // this.form.couponRangeInfo = uni.getStorageSync('allowanceSelected')
- // }
- // else{
- // this.form.couponRangeInfo =[]
- // }
- },
- //返回
- back() {
- uni.navigateTo({
- url: '/pages/product/index'
- })
- },
- // 处理 confirm 事件,接收子组件传递的时间段数据
- handleConfirm(time) {
- this.selectedTime = time; // 保存时间段数据
- this.isSelectDate = false
- },
- //隐藏弹窗
- closeSelectDate() {
- this.isSelectDate = false
- },
- //跳转至可用时间
- setUsable() {
- uni.navigateTo({
- url: '/pages/product/usable'
- })
- },
- selectDate() {
- // this.isSelectDate = true
- this.$refs.rangTime.open()
- },
- onEndTimeChange(val) {
- this.form.beginTime = val.startDate
- this.form.endTime = val.endDate
- this.showDate = val.startDate + '-' + val.endDate
- this.$forceUpdate(); // 强制刷新视图
- },
- geActivity() {
- uni.navigateTo({
- url: '/pages/coupon/activity?params=' + encodeURIComponent(JSON.stringify(this.form.couponRangeInfo))
- })
- },
- handleAmountInput(val, field, allowZero = false) {
- this.$nextTick(() => {
- if (!val && val !== 0) {
- this.form[field] = ''
- return
- }
- let value = val.toString().replace(/[^\d.]/g, '')
- const dotIndex = value.indexOf('.')
- if (dotIndex !== -1) {
- value = value.slice(0, dotIndex + 1) + value.slice(dotIndex + 1).replace(/\./g, '')
- }
- const parts = value.split('.')
- if (parts.length === 2 && parts[1].length > 2) {
- value = parts[0] + '.' + parts[1].slice(0, 2)
- }
- if (value.startsWith('0') && value.length > 1 && value[1] !== '.') {
- value = value.replace(/^0+/, '') || '0'
- }
- if (!allowZero && value !== '' && parseFloat(value) === 0) {
- uni.showToast({
- title: '减免金额必须大于0',
- icon: 'none'
- })
- this.form[field] = ''
- return
- }
- this.form[field] = value
- })
- },
- isValidAmount(value, allowZero = false) {
- if (value === '' || value === null || value === undefined) return false
- const str = String(value)
- if (!/^\d+(\.\d{1,2})?$/.test(str)) return false
- const num = parseFloat(str)
- if (isNaN(num) || num < 0) return false
- if (allowZero) return num >= 0
- return num > 0
- },
- //提交审核
- submit() {
- console.log('++++')
- if (!this.form.couponName) {
- uni.showToast({
- title: '请输入满减券名称',
- icon: 'none'
- });
- return
- } else if (this.form.contentConditions === '') {
- uni.showToast({
- title: '请输入满减金额',
- icon: 'none'
- });
- return
- } else if (!this.isValidAmount(this.form.contentConditions, true)) {
- uni.showToast({
- title: '满减金额只能输入0或正数',
- icon: 'none'
- });
- return
- } else if (!this.form.contentInfo) {
- uni.showToast({
- title: '请输入减免金额',
- icon: 'none'
- });
- return
- } else if (!this.isValidAmount(this.form.contentInfo, false)) {
- uni.showToast({
- title: '减免金额只能输入正数',
- icon: 'none'
- });
- return
- } else if (parseFloat(this.form.contentConditions) > 0 && parseFloat(this.form.contentInfo) > parseFloat(this.form.contentConditions)) {
- uni.showToast({
- title: '减免金额不能大于满减门槛',
- icon: 'none'
- });
- return
- } else if (!this.form.number) {
- uni.showToast({
- title: '请输入库存',
- icon: 'none'
- });
- return
- } else if (this.form.number == '0' || this.form.number == 0) {
- uni.showToast({
- title: '库存不能为0',
- icon: 'none'
- });
- return
- } else if (this.form.couponWay == null) {
- uni.showToast({
- title: '请选择领取方式',
- icon: 'none'
- });
- return
- } else if (!this.form.beginTime && !this.form.endTime) {
- uni.showToast({
- title: '请选择有效时间',
- icon: 'none'
- });
- return
- } else if (this.form.couponRange == '') {
- uni.showToast({
- title: '请选择适用范围',
- icon: 'none'
- });
- return
- } else if ((this.form.couponRange == '3' || this.form.couponRange == '2' )&& this.form.couponRangeInfo.length==0) {
- uni.showToast({
- title: '请选择适用商品范围',
- icon: 'none'
- });
- return
- } else {
- // let temp = []
- // if (this.xqImage.length > 0) {
- // this.xqImage.forEach((item) => {
- // if (item.response && item.response.message) {
- // temp.push(configService.apiUrl + '/' + item.response.message)
- // } else if (item.url) {
- // temp.push(item.url)
- // }
- // })
- // }
-
-
- let data={
- repeatClaim:this.form.repeatClaim?'1':'2',
- couponRangeInfo:this.form.couponRangeInfo.length > 0 ? this.form.couponRangeInfo.join(',') : null,
- // couponPhoto:temp.length > 0 ? temp.join(',') : null
- }
-
-
- if (this.productId == '') {
- this.$http.post("/merchant/localCouponInfo/add", { ...this.form, ...data, merchantId: uni.getStorageSync(USER_INFO).merchantId }).then(res => {
- if (res.data.code == 200) {
- uni.showToast({
- title: '添加成功',
- icon: 'none'
- });
- this.goBackToList(0)
- }else{
- uni.showToast({
- title: res.data.message,
- icon: 'none'
- });
- }
- })
- } else {
- this.form.productId = this.productId
- this.$http.post("/merchant/localCouponInfo/edit", {...this.form, ...data}).then(res => {
- if (res.data.code == 200) {
- uni.showToast({
- title: '编辑成功',
- icon: 'none'
- });
- this.goBackToList(0)
- }else{
- uni.showToast({
- title: res.data.message,
- icon: 'none'
- });
- }
- })
- }
- }
- },
- //回显数据
- getForm() {
- this.$http.get("/merchant/localCouponInfo/queryById?id=" + this.productId).then(res => {
- if (res.data.success) {
- res.data.result.couponRangeInfo = res.data.result.couponRangeInfo ? res.data.result.couponRangeInfo.split(',').filter(id => id) : []
- // res.data.result.couponPhoto = res.data.result.couponPhoto!== null && res.data.result.couponPhoto.length>0? res.data.result.couponPhoto.split(',').filter(id => id) : []
-
- // if(res.data.result.couponPhoto){
- // let xqtemp = []
- // xqtemp = res.data.result.couponPhoto.split(',')
- // xqtemp.map(item => {
- // this.xqImage.push({
- // url: item
- // })
- // })
- // }
- res.data.result.couponWay = res.data.result.couponWay ? res.data.result.couponWay + '' : ''
- res.data.result.repeatClaim = res.data.result.repeatClaim && res.data.result.repeatClaim=='1'? true: false
- // this.headPhotoImg=res.data.result.couponPhoto
- this.showDate = res.data.result.beginTime + '-' + res.data.result.endTime
- this.form = res.data.result
- }
- })
- }
- },
- onLoad(options) {
- if (options.id) {
- this.productId = options.id
- }
- // if (options && options.params) {
- // let params = JSON.parse(decodeURIComponent(options.params))
- //
- // }
- },
- onShow() {
- if((this.form.couponRange == '2' || this.form.couponRange == '3') &&this.$store.state.shopSelectedIds){
- this.form.couponRangeInfo = this.$store.state.shopSelectedIds
- }
- else{
- this.form.couponRangeInfo =[]
- }
- if(this.productId){
- this.getForm()
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .u-radio {
- flex: 1;
- /* 让每个radio项都尽可能填充可用空间 */
- }
- .creat {
- width: 100vw;
- height: 100vh;
- background: #F7F8FC;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- /*#ifdef APP-PLUS*/
- .top {
- width: 100%;
- height: var(--status-bar-height);
- background-color: #fff;
- }
- /*#endif*/
- .head {
- width: 100%;
- height: 112rpx;
- padding: 32rpx 24rpx;
- display: flex;
- align-items: center;
- background-color: #fff;
- position: relative;
- .cuIcon-back {
- font-size: 40rpx;
- margin-right: 40rpx;
- }
- .case {
- font-size: 36rpx;
- font-weight: 600;
- position: absolute;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
- .step {
- position: absolute;
- right: 20rpx;
- }
- }
- .content {
- width: 100%;
- flex: 1;
- padding: 24rpx;
- overflow-y: auto;
- .titl {
- font-weight: 500;
- font-size: 32rpx;
- color: #333333;
- width: 100%;
- // height: 60rpx;
- font-weight: 600;
- margin-bottom: 22rpx;
- }
- .form {
- background-color: #fff;
- padding: 16rpx;
- border-radius: 16rpx;
- .item {
- width: 100%;
- height: 58rpx;
- border-bottom: 1px solid #EEEEEE;
- display: flex;
- // align-items: center;
- padding-bottom: 16rpx;
- margin-bottom: 16rpx;
- .label {
- margin-right: 20rpx;
- font-weight: 600;
- font-size: 28rpx;
- min-width: 126rpx;
- span {
- color: red;
- }
- }
- .picker {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 28rpx;
- color: #999999;
- ::v-deep.u-input__input {
- text-align: right;
- }
- }
- .set {
- display: flex;
- justify-content: flex-end;
- ::v-deep.u-input {
- text-align: right !important;
- }
- }
- }
- .upload {
- display: block;
- height: auto;
- .tips {
- font-size: 20rpx;
- color: #999999;
- margin-bottom: 16rpx;
- margin-top: 10rpx;
- }
- }
- .textarea {
- width: 100%;
- min-height: 196rpx;
- background: #F7F8FC;
- border-radius: 4rpx;
- padding: 12rpx 16rpx;
- font-size: 26rpx;
- margin-top: 12rpx;
- }
- .num {
- width: 100%;
- text-align: right;
- font-size: 24rpx;
- color: #999999;
- margin-top: 6rpx;
- }
- }
- }
- .btn {
- width: 100%;
- height: 112rpx;
- background-color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 16rpx 24rpx;
- .submit {
- width: 100%;
- height: 76rpx;
- background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
- border-radius: 75rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28rpx;
- color: #FFFFFF;
- }
- }
- .popup {
- width: 100vw;
- height: 100vh;
- position: fixed;
- top: 0;
- left: 0;
- background: rgba(0, 0, 0, 0.4);
- display: flex;
- align-items: flex-end;
- z-index: 99;
- .model {
- width: 100%;
- background-color: #fff;
- border-radius: 20rpx 20rpx 0rpx 0rpx;
- padding: 0rpx 24rpx;
- padding-bottom: 20rpx;
- .title {
- width: 100%;
- height: 86rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- border-bottom: 1px solid #EEEEEE;
- position: relative;
- image {
- width: 40rpx;
- height: 40rpx;
- position: absolute;
- right: 0px;
- }
- }
- .tree {
- display: flex;
- height: 546rpx;
- .left {
- overflow-y: auto;
- .item {
- width: 224rpx;
- height: 78rpx;
- padding: 20rpx;
- font-size: 26rpx;
- }
- .active {
- background: rgba(68, 154, 255, 0.1);
- color: #2983EC;
- }
- }
- .border {
- border-left: 1px solid #eeeeee;
- border-right: 1px solid #eeeeee;
- }
- }
- .sub {
- display: flex;
- justify-content: space-between;
- margin-top: 16rpx;
- border-top: 1px solid #eeeeee;
- padding-top: 16rpx;
- .submit {
- width: 672rpx;
- height: 76rpx;
- background: linear-gradient(90deg, #77B6FF 0%, #449AFF 100%);
- border-radius: 53rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 28rpx;
- color: #FFFFFF;
- }
- }
- }
- }
- }
- ::v-deep.u-upload__button {
- width: 250rpx !important;
- height: 250rpx !important;
- }
- .radio-style {
- margin-bottom: 15rpx;
- // border-bottom: 1px solid #EEEEEE;
- ::v-deep.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text {
- color: #333 !important
- }
- ::v-deep.uni-data-checklist .checklist-group {
- flex-direction: column;
- .checklist-box {
- flex-direction: row-reverse;
- justify-content: space-between;
- .checklist-content .checklist-text {
- margin-left: 0;
- font-weight: 600;
- font-size: 28rpx;
- }
- }
- }
- }
- .product-item {
- display: flex;
- justify-content: space-between;
- margin-bottom: 20rpx;
- // border-bottom: 1px solid #EEEEEE;
- input {
- width: 120rpx;
- border-bottom: 1px solid #ccc;
- margin: 0 10rpx;
- font-size: 28rpx;
- text-align: center;
- }
- }
- .radio-container {
- width: 34rpx;
- height: 34rpx;
- border-radius: 50%;
- border: 1px solid #B4B4B4;
- }
- .radio-img {
- width: 34rpx;
- height: 34rpx;
- }
- .section-title {
- margin-right: 20rpx;
- font-weight: 600;
- font-size: 28rpx;
- min-width: 126rpx;
- }
- .section-limit{
- background: #F6F6F6;
- padding: 5rpx 12rpx;
- font-size: 24rpx;
- color: #666666;
- margin-left: 16rpx;
- }
- .section-full {
- display: flex;
- margin-top: 18rpx;
- border-bottom: 1px solid #EEEEEE;
- .u-input {
- height: 64rpx;
- background: #F7F8FC;
- margin-right: 18rpx;
- font-size: 28rpx;
- margin: 18rpx 0;
- margin-right: 18rpx;
- }
- ::v-deep.u-input__input {
- padding: 10rpx 20rpx;
- }
- }
- </style>
|