create.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  1. <template>
  2. <div class="app-container">
  3. <div class="base-info">
  4. <div class="base-info-title">基础信息</div>
  5. <!-- 基础信息 -->
  6. <div class="base-info-form">
  7. <el-form :model="form" :rules="rules" ref="form" label-width="100px">
  8. <el-form-item label="盲票类型" prop="type">
  9. <el-radio-group v-model="form.type" size="small" :disabled="form.disabled" @change="$refs['form'].clearValidate();changeType($event)">
  10. <el-radio label="online">线上盲票</el-radio>
  11. <el-radio label="offline">线下盲票</el-radio>
  12. </el-radio-group>
  13. </el-form-item>
  14. <el-form-item label="盲票组名称" prop="title">
  15. <el-col :xs="{span: 22, offset: 0}" :sm=" {span: 18, offset: 0}" :lg="{span: 10, offset: 0}">
  16. <el-input
  17. v-model="form.title"
  18. size="small"
  19. placeholder="请输入盲票组名称"
  20. ></el-input>
  21. </el-col>
  22. </el-form-item>
  23. <el-form-item label="图片" prop="picUrl">
  24. <Upload v-model="ticketPicUrl" :limit="3" :fileSize="0.5" @change="$refs.form.validateField(['picUrl'])"/>
  25. </el-form-item>
  26. <div class="tip" v-if="form.type != 'offline'">
  27. 请上传图片,jpg、png格式;线上盲票第1张为封面图,第2张为奖品图,第3张为主题图;大小不超过500k
  28. </div>
  29. <div class="tip" v-else>
  30. 上传1张图片,支持jpg、png格式上传,大小不超过500k;
  31. </div>
  32. <el-form-item label="面值" prop="facePrice">
  33. <el-input
  34. v-model="form.facePrice "
  35. style="width: 240px"
  36. size="small"
  37. placeholder="请输入面值" :disabled="form.disabled"
  38. >
  39. <template slot="append">元</template>
  40. </el-input>
  41. </el-form-item>
  42. <el-form-item label="售价" prop="salePrice">
  43. <el-input
  44. v-model="form.salePrice"
  45. style="width: 240px"
  46. size="small"
  47. placeholder="请输入售价"
  48. >
  49. <template slot="append">元</template>
  50. </el-input>
  51. </el-form-item>
  52. <el-form-item label="预付售票价" prop="prePrice">
  53. <el-input
  54. v-model="form.prePrice"
  55. style="width: 240px"
  56. size="small"
  57. placeholder="请输入预付售票价"
  58. >
  59. <template slot="append">元 / 张</template>
  60. </el-input>
  61. </el-form-item>
  62. <div class="tip" v-if="form.type != 'offline'">
  63. 如果为0则不作为预售票购买
  64. </div>
  65. <el-form-item
  66. label="划线价"
  67. prop="originPrice"
  68. v-if="form.type != 'offline'"
  69. >
  70. <el-input
  71. v-model="form.originPrice"
  72. style="width: 240px"
  73. size="small"
  74. placeholder="请输入划线价"
  75. >
  76. <template slot="append">元</template>
  77. </el-input>
  78. </el-form-item>
  79. <div class="tip" v-if="form.type != 'offline'">
  80. 划线价为0或不填,则不显示划线价
  81. </div>
  82. <el-form-item label="盲票总数" prop="quantity">
  83. <el-input
  84. v-model="form.quantity"
  85. style="width: 240px"
  86. size="small"
  87. placeholder="请输入盲票总数" :disabled="form.disabled"
  88. >
  89. <template slot="append">张</template>
  90. </el-input>
  91. </el-form-item>
  92. <el-form-item label="每包张数" prop="pkgUnit">
  93. <el-input
  94. v-model="form.pkgUnit"
  95. style="width: 240px"
  96. size="small"
  97. placeholder="请输入每包张数" :disabled="form.disabled"
  98. >
  99. <template slot="append">张</template>
  100. </el-input>
  101. </el-form-item>
  102. <el-form-item
  103. label="采购单价"
  104. prop="pkgSalePrice"
  105. v-if="form.type == 'offline'"
  106. >
  107. <el-input
  108. v-model="form.pkgSalePrice"
  109. style="width: 240px"
  110. size="small"
  111. placeholder="请输入采购单价"
  112. >
  113. <template slot="append">元/包</template>
  114. </el-input>
  115. </el-form-item>
  116. <el-form-item label="佣金系数" prop="saleCommRate">
  117. <el-input
  118. v-model="form.saleCommRate"
  119. style="width: 240px"
  120. size="small"
  121. placeholder="请输入佣金系数"
  122. >
  123. <template slot="append">%</template>
  124. </el-input>
  125. </el-form-item>
  126. <div class="tip">
  127. 例如:一张盲票用户支付10元,盲票佣金系数90%,门店佣金比例20%,那么门店佣金为10元*90%*20%=1.8元
  128. </div>
  129. <el-form-item label="销售范围" prop="saleChannelType" v-if="form.type == 'offline'">
  130. <el-radio-group v-model="form.saleChannelType" size="small" @change="$refs['form'].clearValidate()">
  131. <el-radio :label="1">所有渠道</el-radio>
  132. <el-radio :label="2">指定渠道</el-radio>
  133. </el-radio-group>
  134. </el-form-item>
  135. <el-form-item label="渠道" prop="channelIdList" v-if="form.type == 'offline' && form.saleChannelType == 2">
  136. <el-select
  137. v-model="form.channelIdList"
  138. placeholder="请选择渠道"
  139. style="width: 240px;"
  140. filterable
  141. clearable
  142. multiple
  143. >
  144. <el-option
  145. v-for="(item, index) in channelList"
  146. :key="index"
  147. :label="item.name"
  148. :value="item.channelId">
  149. <div>
  150. <span style="float: left;">{{item.name}} </span>
  151. <span style="float: right;">{{item.mobile}}</span>
  152. </div>
  153. </el-option>
  154. </el-select>
  155. </el-form-item>
  156. <div class="tip" v-if="form.type == 'offline'">注:盲票只对所选渠道下的门店可见</div>
  157. </el-form>
  158. </div>
  159. <!-- 关联商品设置 -->
  160. <div class="base-info-title">商品设置(购买即可提货)</div>
  161. <award-form ref="awardFrom" @close="close" v-model="goodsList" :id="ids" @goodsCommand="goodsCommand"></award-form>
  162. <!-- 奖级设置 -->
  163. <div class="base-info-title" >奖级设置</div>
  164. <!-- 奖级列表 -->
  165. <awards-list ref="awards" :id="ids" v-model="awardsList" @handleCommand="handleCommand" @close="close" />
  166. <!-- 保存 -->
  167. <div class="save-btn">
  168. <el-button size="small" @click="back"> 取 消 </el-button>
  169. <div class="ge"></div>
  170. <el-button type="primary" size="small" @click="submitForm">
  171. 保 存
  172. </el-button>
  173. </div>
  174. </div>
  175. <!-- 添加商品 -->
  176. <goods-add :dialog-visible="goodsTableVisible" @close="close" :iconic="iconic" @confirmGoodsForm="confirmGoodsForm" @confirmGoods="confirmGoods" v-if="goodsTableVisible" />
  177. <!-- 添加券 -->
  178. <coupon-add :dialog-visible="couponTableVisible" :iconic="iconic" @close="close" @confirmCouponForm="confirmCouponForm" @confirmCoupon="confirmCoupon" v-if="couponTableVisible" />
  179. <!-- 添加券包 -->
  180. <coupon-pkg-add :dialog-visible="couponPkgTableVisible" :iconic="iconic" @close="close" @confirmCouponPkgForm="confirmCouponPkgForm" @confirmCouponPkg="confirmCouponPkg" v-if="couponPkgTableVisible" />
  181. <!-- 添加盲豆 -->
  182. <coin-add :dialog-visible="coinTableVisible" @close="close" @confirmCoin="confirmCoin" v-if="coinTableVisible" />
  183. </div>
  184. </template>
  185. <script>
  186. import Upload from '@/components/DragImageUpload'
  187. import { publicFileGetUrl } from "@/api/common";
  188. import CustomFieldsMixin from "@/mixins/CustomFields";
  189. import { ticketBoxCreate, setListDetail, ticketBoxDetail} from "@/api/business/ticket";
  190. import { listAllChannel} from "@/api/admin/channel";
  191. import { accMul, accDiv } from "@/utils/util";
  192. import AwardsList from "./components/AwardsList"
  193. import GoodsAdd from "./components/GoodsAdd"
  194. import CouponAdd from "./components/CouponAdd"
  195. import CouponPkgAdd from "./components/CouponPkgAdd"
  196. import CoinAdd from "./components/CoinAdd"
  197. import AwardForm from "./components/AwardForm"
  198. export default {
  199. name: "TicketCreate",
  200. mixins: [CustomFieldsMixin],
  201. components: {
  202. AwardsList,
  203. GoodsAdd,
  204. CouponAdd,
  205. CouponPkgAdd,
  206. CoinAdd,
  207. Upload,
  208. AwardForm,
  209. },
  210. data() {
  211. return {
  212. loading: false,
  213. id: this.$route.query.id,
  214. ids: this.$route.query.id?this.$route.query.id:0,
  215. form: {
  216. type: "online", //盲票类型
  217. title: "", // 盲票名称
  218. picUrl: "", // 图片
  219. facePrice: "", // 面值
  220. salePrice: "", // 售价
  221. prePrice: 0, //预购价
  222. quantity: "", // 数量
  223. pkgUnit: 200, // 张数
  224. pkgSalePrice: 0, // 单价
  225. saleCommRate: "", // 基数
  226. originPrice: 0, //划线价
  227. disabled: false,
  228. saleChannelType: 1
  229. },
  230. // 上级渠道列表
  231. channelList:[],
  232. rules: {
  233. type: [
  234. { required: true, message: "请选择盲票类型", trigger: "change" },
  235. ],
  236. title: [
  237. { required: true, message: "请输入盲票组名称", trigger: "blur" },
  238. ],
  239. picUrl: [
  240. {
  241. required: true,
  242. message: "请上传盲票图片",
  243. trigger: ["blur", "change"],
  244. },
  245. ],
  246. facePrice: [
  247. { required: true, message: "请输入面值", trigger: "blur" },
  248. {
  249. pattern:
  250. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  251. message: "请输入合法的金额数字,最多两位小数",
  252. trigger: ["blur", "change"],
  253. },
  254. ],
  255. salePrice: [
  256. { required: true, message: "请输入售价", trigger: "blur" },
  257. {
  258. pattern:
  259. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  260. message: "请输入合法的金额数字,最多两位小数",
  261. trigger: ["blur", "change"],
  262. },
  263. ],
  264. prePrice: [
  265. { required: true, message: "请输入预付售票价", trigger: "blur" },
  266. {
  267. pattern:
  268. /^([0-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  269. message: "请输入合法的金额数字,最多两位小数",
  270. trigger: ["blur", "change"],
  271. },
  272. ],
  273. quantity: [
  274. { required: true, message: "请输入数量", trigger: "blur" },
  275. {
  276. pattern: /^([1-9]\d*)$/,
  277. message: "请输入合法的数字",
  278. trigger: ["blur", "change"],
  279. },
  280. ],
  281. originPrice: [{
  282. pattern:
  283. /^([0-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  284. message: "请输入合法的金额数字,最多两位小数",
  285. trigger: ["blur", "change"],
  286. },],
  287. pkgUnit: [
  288. { required: true, message: "请输入每包张数", trigger: "blur" },
  289. {
  290. pattern: /^([1-9]\d*)$/,
  291. message: "请输入合法的数字",
  292. trigger: ["blur", "change"],
  293. },
  294. ],
  295. pkgSalePrice: [
  296. { required: true, message: "请输入采购单价", trigger: "blur" },
  297. {
  298. pattern:
  299. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  300. message: "请输入合法的金额数字,最多两位小数",
  301. trigger: ["blur", "change"],
  302. },
  303. ],
  304. saleCommRate: [
  305. { required: true, message: "请输入分佣基数", trigger: "blur" },
  306. {
  307. pattern:
  308. /^([1-9]\d*(\.\d{1,2})?|([0](\.([0][1-9]|[1-9]\d{0,1}))))$/,
  309. message: "请输入合法的数字,最多两位小数",
  310. trigger: ["blur", "change"],
  311. },
  312. ],
  313. saleChannelType: [
  314. { required: true, message: "请选择销售范围", trigger: "change" },
  315. ],
  316. channelIdList: [
  317. { required: true, message: "请选择渠道", trigger: "change" },
  318. ],
  319. },
  320. // 奖级列表
  321. awardsList: [],
  322. //关联商品列表
  323. goodsList: [],
  324. goodsTableVisible: false, // 添加商品弹框
  325. couponTitle: "", // 券名称
  326. couponTableVisible: false, // 添加卡券弹框
  327. couponPkgTableVisible: false, // 添加券包弹框
  328. coinTableVisible: false, // 添加盲豆弹框
  329. pageParams: {
  330. pageNum: 1,
  331. pageSize: 10,
  332. },
  333. iconic: '',//区分添加的是关联商品还是奖品
  334. };
  335. },
  336. computed: {
  337. ticketPicUrl: {
  338. get() {
  339. return this.form.picUrl ? this.form.picUrl.split(',').map(item => {
  340. return {
  341. fileName: item
  342. }
  343. }) : []
  344. },
  345. set(val) {
  346. this.$set(this.form, 'picUrl', val.map(item => { return item.fileName }).toString())
  347. }
  348. }
  349. },
  350. created() {
  351. this.getChannelList()
  352. if (this.id) {
  353. let data = {
  354. boxId: this.id
  355. }
  356. ticketBoxDetail(data).then(res => {
  357. const { awardsList, goodsList, type, title, picUrl, facePrice, salePrice, prePrice, quantity, originPrice, pkgUnit, pkgSalePrice, saleCommRate, saleChannelType, channelList } = res.data
  358. this.form = {
  359. disabled:true,
  360. title, picUrl, quantity, pkgUnit, saleCommRate, saleChannelType,
  361. channelIdList: channelList.map(item => item.channelId),
  362. type: JSON.parse(type).value,
  363. facePrice:accDiv(facePrice, 100),
  364. salePrice:accDiv(salePrice, 100),
  365. prePrice:accDiv(prePrice,100),
  366. pkgSalePrice:accDiv(pkgSalePrice, 100),
  367. originPrice:accDiv(originPrice, 100)
  368. }
  369. if(awardsList){
  370. awardsList.forEach((item) => {
  371. item.isEdit = true
  372. item.prizeList.forEach((ele) => {
  373. (ele.picUrl = publicFileGetUrl + ele.picUrl.split(',')[0]),
  374. (ele.prizeType = JSON.parse(ele.prizeType).value);
  375. });
  376. });
  377. this.$nextTick(() => {
  378. this.$refs.awards.add(3, awardsList)
  379. this.$refs.awards.changetype(JSON.parse(type).value)
  380. })
  381. this.awardsList = awardsList
  382. }
  383. if(goodsList){
  384. goodsList.forEach((item) => {
  385. (item.picUrl = publicFileGetUrl + item.picUrl.split(',')[0]),
  386. // (item.prizeType = JSON.parse(item.prizeType).value);
  387. (item.type = JSON.parse(item.type).value);
  388. });
  389. if(this.$refs.awardFrom) {
  390. this.$nextTick(() => {
  391. this.$refs.awardFrom.add(3,goodsList)
  392. })
  393. }
  394. // this.goodsList = goodsList
  395. }
  396. })
  397. }
  398. },
  399. methods: {
  400. // 获取上级渠道下拉列表
  401. getChannelList(){
  402. listAllChannel().then(response => {
  403. this.channelList = response.data || [];
  404. });
  405. },
  406. // 保存
  407. submitForm() {
  408. const subForm = this.$refs["form"];
  409. subForm.validate((valid) => {
  410. if (valid) {
  411. // let prizeIndex = this.awardsList.findIndex((item) => {
  412. // return !item.prizeList.length;
  413. // });
  414. // // 判断没有设置奖品的奖级
  415. // if (prizeIndex != -1) {
  416. // this.$message.error(
  417. // `请设置${this.awardsList[prizeIndex].name}的奖品!`
  418. // );
  419. // return;
  420. // }
  421. if (this.form.quantity > 100000) {
  422. this.$message.error("盲票数量超出限制,请重新填写!");
  423. return;
  424. }
  425. let prizeIndex = this.awardsList.findIndex((item) => {
  426. return !item.prizeList.length && item.quantity > 0;
  427. });
  428. // 判断没有设置奖品的奖级
  429. if (prizeIndex != -1) {
  430. this.$message.error(
  431. `请设置${this.awardsList[prizeIndex].name}的奖品!`
  432. );
  433. return;
  434. }
  435. if (this.form.quantity % this.form.pkgUnit != 0) {
  436. this.$message.error("每包数量错误!");
  437. return;
  438. }
  439. let quantityTotal = 0;
  440. this.awardsList.forEach((item) => {
  441. quantityTotal += item.quantity;
  442. });
  443. if (this.form.quantity != quantityTotal) {
  444. this.$message.error("盲票数量和奖品数量不一致!");
  445. return;
  446. }
  447. // if (this.form.saleCommRate > 100) {
  448. // this.$message.error("分佣基数不能大于100!");
  449. // return;
  450. // }
  451. this.awardsList.forEach((item) => {
  452. item.prizeList = item.prizeList.map((ele) => {
  453. return {
  454. ...ele,
  455. refId: ele.goodsId || ele.couponId || ele.id,
  456. prizeType: ele.prizeType,
  457. quantity: ele.quantity,
  458. value: Number(ele.coinValue),
  459. };
  460. });
  461. });
  462. let filterArr = this.awardsList.filter((item) => {
  463. return item.prizeList.length != 0;
  464. });
  465. let filterArr2 = filterArr.filter((item) => {
  466. return item.quantity != 0;
  467. });
  468. // for (let i = 0; i < filterArr2.length; i++) {
  469. // if(filterArr2[i].awardsLabel == "" || filterArr2[i].awardsLabel == undefined){
  470. // this.$message.error("关联奖级不能为空");
  471. // return
  472. // }
  473. // }
  474. if (this.form.type == "offline") {
  475. this.form.originPrice = null
  476. for (let i = 0; i < filterArr2.length; i++) {
  477. for (let j = 0; j < filterArr2[i].prizeList; j++) {
  478. filterArr2[i].prizeList[j].quantity = null
  479. }
  480. }
  481. }
  482. if (this.form.type != "offline" && this.goodsList.length < 1) {
  483. this.$message.error("关联商品不能为空");
  484. return
  485. }
  486. let data = {
  487. ...this.form,
  488. facePrice: accMul(this.form.facePrice, 100),
  489. salePrice: accMul(this.form.salePrice, 100),
  490. prePrice: accMul(this.form.prePrice, 100),
  491. pkgSalePrice: accMul(this.form.pkgSalePrice, 100),
  492. originPrice: accMul(this.form.originPrice, 100),
  493. awardsList: filterArr2,
  494. goodsList: this.goodsList
  495. };
  496. if (this.id){
  497. data.boxId = this.id
  498. }
  499. let request = this.id ? setListDetail : ticketBoxCreate;
  500. const loading = this.$loading({
  501. lock: true,
  502. text: "保存中",
  503. spinner: "el-icon-loading",
  504. background: "rgba(0, 0, 0, 0.4)",
  505. });
  506. request(data)
  507. .then((res) => {
  508. loading.close();
  509. if (res.code == 0) {
  510. this.msgSuccess("保存成功");
  511. this.$store.dispatch("tagsView/delView", this.$route);
  512. this.$router.go(-1);
  513. }
  514. })
  515. .catch(() => {
  516. loading.close();
  517. });
  518. } else {
  519. this.getFormErrorMessage(subForm);
  520. return false;
  521. }
  522. });
  523. },
  524. // 关闭弹框
  525. close() {
  526. this.goodsTableVisible = false;
  527. this.couponTableVisible = false;
  528. this.couponPkgTableVisible = false;
  529. this.coinTableVisible = false;
  530. },
  531. changeType(e) {
  532. this.$refs.awards.changetype(e)
  533. },
  534. // 添加奖品种类
  535. handleCommand(e) {
  536. if (e == "goods") {
  537. this.iconic = 'goods'
  538. this.goodsTableVisible = true;
  539. } else if (e == "coupon") {
  540. this.iconic = 'coupon'
  541. this.couponTableVisible = true;
  542. } else if (e == "coupon_pkg") {
  543. this.iconic = 'couponPkg'
  544. this.couponPkgTableVisible = true;
  545. } else if (e == "coin") {
  546. this.coinTableVisible = true;
  547. }
  548. },
  549. goodsCommand(e) {
  550. if (e == "goods") {
  551. this.iconic = 'goodsForm'
  552. this.goodsTableVisible = true;
  553. } else if (e == "coupon") {
  554. this.iconic = 'couponForm'
  555. this.couponTableVisible = true;
  556. } else if (e == "coupon_pkg") {
  557. this.iconic = 'couponPkgForm'
  558. this.couponPkgTableVisible = true;
  559. }
  560. },
  561. // 确认选中商品
  562. confirmGoods(arr) {
  563. this.$refs.awards.add(1, arr)
  564. },
  565. // 确认选中卡券
  566. confirmCoupon(arr) {
  567. this.$refs.awards.add(1, arr)
  568. },
  569. // 确认选中券包
  570. confirmCouponPkg(arr) {
  571. this.$refs.awards.add(1, arr)
  572. },
  573. // 确认输入盲豆
  574. confirmCoin(obj) {
  575. this.$refs.awards.add(2, obj)
  576. },
  577. //选中的关联商品
  578. confirmGoodsForm(arr) {
  579. this.$refs.awardFrom.add(1,arr)
  580. },
  581. // 确认选中关联卡券
  582. confirmCouponForm(arr) {
  583. this.$refs.awardFrom.add(1, arr)
  584. },
  585. // 确认选中关联券包
  586. confirmCouponPkgForm(arr) {
  587. this.$refs.awardFrom.add(1, arr)
  588. },
  589. // 取消
  590. back() {
  591. this.$store.dispatch("tagsView/delView", this.$route);
  592. this.$router.go(-1);
  593. },
  594. },
  595. };
  596. </script>
  597. <style lang="scss" scoped>
  598. .base-info-title {
  599. padding: 10px;
  600. border-bottom: 1px solid #eaeaea;
  601. margin-bottom: 20px;
  602. }
  603. .tip {
  604. padding-left: 100px;
  605. height: 32px;
  606. margin-bottom: 20px;
  607. color: #828282;
  608. font-size: 14px;
  609. }
  610. .save-btn {
  611. display: flex;
  612. align-content: center;
  613. justify-content: center;
  614. margin-bottom: 100px;
  615. .ge {
  616. width: 100px;
  617. }
  618. }
  619. .prize {
  620. width: 1000px;
  621. margin-bottom: 50px;
  622. background: #f9f9f9;
  623. border: 1px solid #bbbbbb;
  624. font-size: 14px;
  625. &-top {
  626. padding: 10px 20px;
  627. margin-bottom: 10px;
  628. display: flex;
  629. align-content: center;
  630. justify-content: space-around;
  631. border-bottom: 1px solid #bbbbbb;
  632. div {
  633. line-height: 36px;
  634. }
  635. }
  636. &-btn {
  637. border-top: 1px solid #bbbbbb;
  638. padding: 10px;
  639. }
  640. }
  641. .dialog-search {
  642. display: flex;
  643. line-height: 32px;
  644. margin-bottom: 20px;
  645. .ge {
  646. width: 40px;
  647. }
  648. }
  649. .dialog-btn {
  650. display: flex;
  651. align-content: center;
  652. justify-content: flex-end;
  653. padding: 40px 0 0;
  654. .ge {
  655. width: 40px;
  656. }
  657. }
  658. </style>