lottery.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. <template>
  2. <view>
  3. <view class="lottery_box">
  4. <view class="lottery_time" v-if="lotteryInfo.id">活动时间:{{ lotteryInfo.start_date }} ~ {{ lotteryInfo.end_date }}</view>
  5. <view class="lottery_info">
  6. <image class="lottery_logo" v-if="lotteryInfo.logo" :src="lotteryInfo.logo" mode="widthFix"></image>
  7. <button class="lottery_rule_btn" @click="showRule">活动规则</button>
  8. </view>
  9. <l-dialer
  10. :customStyle="'width: 500rpx;height: 500rpx;margin: 0rpx auto;'"
  11. @click="onClick"
  12. dial-style="color: rgba(60,48,158,0.7); padding: 32rpx;background-image: url(https://mall.findit.ltd/uploads/images/default/lottery_bg.png)"
  13. :prizeList="prizeList"
  14. :turns="5"
  15. :duration="5"
  16. @done="onDone"
  17. ref="dialer"
  18. />
  19. <view class="record_box">
  20. <view class="score_info">
  21. <view class="custom_score">可用次数:{{ lotteryInfo.number }}</view>
  22. <view class="need_score" v-if="!lotteryInfo.id">暂无可参与的活动</view>
  23. </view>
  24. <button class="lottery_record" @click="showRecord" v-if="lotteryInfo.id">
  25. <image class="lottery_record_img" src="https://mall.findit.ltd/uploads/images/default/lottery_record.png" mode=""></image>
  26. <text class="lottery_record_text">中奖记录</text>
  27. </button>
  28. </view>
  29. <!-- <button open-type="share" class="share-btn">分享好友再答一次题</button> -->
  30. </view>
  31. <uni-popup ref="lotteryRule" type="center">
  32. <view class="lottery_rule_box">
  33. <view class="lottery_rule_title">
  34. <text>活动规则</text>
  35. <view class="close_btn" @click="closeRule"> X </view>
  36. </view>
  37. <scroll-view class="lottery_rule_info" scroll-y="true">
  38. <rich-text :nodes="lotteryInfo.rule" class="rich_text"></rich-text>
  39. </scroll-view>
  40. </view>
  41. </uni-popup>
  42. <uni-popup ref="lotteryRecord" type="bottom">
  43. <view class="lottery_record_box">
  44. <view class="lottery_record_title">
  45. <text>我的奖品</text>
  46. <view class="close_btn" @click="closeRecord"> X </view>
  47. </view>
  48. <view class="lottery_record_none" v-if="!recordList.length">这里还是空的哦~</view>
  49. <scroll-view class="lottery_record_list" scroll-y="true">
  50. <view class="lottery_record_item" v-for="(item, index) in recordList" :key="index">
  51. <view class="reward_time">{{ item.insert_time }}</view>
  52. <view class="reward_name">{{ item.reward_name }}</view>
  53. <view class="reward_state" v-if="item.status">{{ item.state }}</view>
  54. <view class="reward_state" v-if="!item.status" @click="openAddr(index)">{{ item.state }}</view>
  55. </view>
  56. </scroll-view>
  57. </view>
  58. </uni-popup>
  59. <uni-popup ref="addrPopup" type="bottom" class="popup" background-color="#FFFFFF">
  60. <view class="popup_title">收货地址 <navigator url="/pages/addr/index?notify=addr" class="to_addr_page">管理</navigator> </view>
  61. <view class="addr_list">
  62. <view class="addr_item" v-for="(item, index) in addrList" :key="index" @click="checkedAddrItem(item)">
  63. <view class="radio_label">
  64. <image
  65. class="radio_icon"
  66. :src="item.id == checkedAddr.id ? 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/radioed.png' : 'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/radio.png'"
  67. ></image>
  68. </view>
  69. <view class="contact_user">
  70. <text class="contact_name">{{ item.contact_name }}</text>
  71. <text class="contact_phone">{{ item.contact_phone }}</text>
  72. <text class="contact_default" v-if="item.is_default">默认</text>
  73. <text class="contact_shop">{{ item.contact_shop }}</text>
  74. </view>
  75. <view class="contact_addr"> {{ item.contact_province }} {{ item.contact_city }} {{ item.contact_area }} {{ item.contact_addr }} </view>
  76. </view>
  77. </view>
  78. <view class="create_box">
  79. <navigator url="/pages/addr/index?notify=addr&type=create" class="create_addr">新建收货地址</navigator>
  80. </view>
  81. </uni-popup>
  82. <uni-popup ref="addFollow" type="center" class="center_popup">
  83. <FollowPopup
  84. :picUrl="'https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/qrcode/qrcode.jpg'"
  85. :closePopup="closePopup"
  86. :showRule="false"
  87. :clickTitle="'点击二维码添加客服抽奖'"
  88. :longTapTitle="'长按二维码添加客服抽奖'"
  89. />
  90. </uni-popup>
  91. </view>
  92. </template>
  93. <script>
  94. import FollowPopup from "@/components/FollowPopup/FollowPopup.vue";
  95. export default {
  96. components: {
  97. FollowPopup,
  98. },
  99. data() {
  100. return {
  101. height: "",
  102. // 奖项列表,
  103. prizeList: [],
  104. // 中奖记录
  105. recordList: [],
  106. // 地址列表
  107. addrList: [],
  108. // 抽奖信息
  109. lotteryInfo: {
  110. id: 0,
  111. name: "",
  112. logo: "",
  113. number: "0",
  114. start_date: "",
  115. end_date: "",
  116. start_time: "",
  117. end_time: "",
  118. rule: "",
  119. },
  120. recordId: 0,
  121. // 请求参数
  122. requestParam: {
  123. id: 0,
  124. activity_id: 0,
  125. },
  126. };
  127. },
  128. onLoad(param) {
  129. //未登陆提醒用户登陆
  130. try {
  131. // 接收参数
  132. console.log(param, "onload param");
  133. this.requestParam.id = param.id;
  134. this.requestParam.activity_id = param.activity_id;
  135. // 如果有scene参数的话,获取其中的ID
  136. if (param.scene) {
  137. // 转键值对参数
  138. let scene = this.$http.strToParam(param.scene);
  139. // 如果没有传入ID,但是传入了场景ID,获取场景ID
  140. if (!param.id && scene.id) this.requestParam.id = scene.id;
  141. }
  142. // 窗口信息
  143. var sysinfo = uni.getWindowInfo();
  144. // 获取屏幕可用高度
  145. this.height = "height:" + sysinfo.windowHeight + "px;";
  146. // 监听地址变动
  147. uni.$on("addr_list_change", (data) => {
  148. // 地址列表
  149. this.addrList = data.list;
  150. });
  151. // #ifdef MP-WEIXIN
  152. //分享按钮
  153. uni.showShareMenu({
  154. withShareTicket: true,
  155. menus: ["shareAppMessage", "shareTimeline"],
  156. });
  157. // #endif
  158. } catch (e) {
  159. console.log(e);
  160. }
  161. },
  162. onShareAppMessage(obj) {
  163. // if (obj) {
  164. // this.shareRequest();
  165. // }
  166. return {
  167. title: "999智控终端平台\n新人抽奖",
  168. path: `/pages/recruitment/lottery?id=${this.requestParam.id}&activity_id=${this.requestParam.activity_id}`,
  169. imageUrl: "https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/lottery/20250210-143021.jpg",
  170. promise: new Promise((resolve, reject) => {
  171. this.$http.request("api/share_message/get_item", { item_id: this.requestParam.activity_id, pages: "/pages/recruitment/lottery" }).then((callback) => {
  172. console.log(callback, "api/share_message/get_item");
  173. let obj = {
  174. title: callback.data?.title == "" ? this.lotteryInfo.name : callback.data.title,
  175. path: "/pages/activity/index?id=" + this.requestParam.activity_id,
  176. imageUrl: callback.data?.image_url == "" ? this.lotteryInfo.logo : callback.data.image_url,
  177. };
  178. resolve(obj);
  179. });
  180. }),
  181. };
  182. },
  183. onShow() {
  184. console.log(this.requestParam, "onshow requestParam");
  185. if (!this.$checkAccess.checkLogin()) {
  186. uni.showModal({
  187. title: "温馨提示",
  188. content: "请先登录",
  189. confirmText: "去登录",
  190. cancelText: "取消",
  191. success: (res) => {
  192. if (res.confirm) {
  193. uni.redirectTo({
  194. url: `/pages/login/index?redirect=/pages/recruitment/lottery&id=${this.requestParam.id}`,
  195. });
  196. }
  197. },
  198. });
  199. return;
  200. }
  201. // 没有数据的话,或者请求中,不允许刷新
  202. if (this.isReqing) return;
  203. // 登录提示
  204. // if (!this.$checkAccess.alterLogin()) return;
  205. // 如果存在产品ID的话
  206. if (this.requestParam.id > 0) {
  207. // 设置请求中
  208. this.isReqing = true;
  209. // 请求
  210. this.$http.request("api/lottery_recruitment/get_detail", this.requestParam).then((re) => {
  211. // 设置非请求中
  212. this.isReqing = false;
  213. // 成功结果
  214. if (re.code == "success") {
  215. this.lotteryInfo = re.data;
  216. this.prizeList = re.data.reward_list;
  217. } else {
  218. if (re.code != "no_login") {
  219. uni.showModal({
  220. content: re.msg,
  221. showCancel: false,
  222. });
  223. }
  224. }
  225. });
  226. } else {
  227. uni.showModal({
  228. content: "未知的活动ID",
  229. showCancel: false,
  230. });
  231. }
  232. },
  233. methods: {
  234. // shareRequest() {
  235. // this.$http.request("api/riddle_active_share/add", { active_id: this.requestParam.activity_id }).then((response) => {
  236. // uni.showModal({
  237. // title: "分享成功",
  238. // confirmText: "立即答题",
  239. // cancelText: "留在此页",
  240. // success: (res) => {
  241. // if (res.confirm) {
  242. // uni.redirectTo({
  243. // url: "/pages/activity/index?id=" + this.requestParam.activity_id,
  244. // });
  245. // }
  246. // },
  247. // });
  248. // });
  249. // },
  250. onDone(index) {
  251. // 奖项
  252. let prize = this.prizeList[index];
  253. // 结果
  254. uni.showModal({
  255. title: prize.id == 0 ? "很遗憾" : "恭喜您",
  256. content: (prize.id != 0 ? `获得` : "") + prize.name + (prize.reward_type == 5 ? ",请在中奖记录中填写收货地址" : ""),
  257. showCancel: false,
  258. success: (re) => {
  259. if (re.confirm && prize.reward_type == 5) {
  260. // 显示中奖列表
  261. this.showRecord();
  262. }
  263. },
  264. });
  265. },
  266. onClick() {
  267. // 活动是否开始
  268. if (!this.lotteryInfo.id) {
  269. uni.showToast({
  270. title: "暂无可参与活动",
  271. icon: "none",
  272. });
  273. return;
  274. }
  275. // 活动是否开始
  276. if (this.lotteryInfo.start_time * 1000 > new Date().getTime()) {
  277. uni.showToast({
  278. title: "活动还没开始哦",
  279. icon: "none",
  280. });
  281. return;
  282. }
  283. // 活动是否结束
  284. if (this.lotteryInfo.end_time * 1000 <= new Date().getTime()) {
  285. uni.showToast({
  286. title: "活动已结束了哦",
  287. icon: "none",
  288. });
  289. return;
  290. }
  291. // 次数已用完了
  292. if (this.lotteryInfo.number <= 0) {
  293. uni.showToast({
  294. title: "次数已用完了",
  295. icon: "none",
  296. });
  297. return;
  298. }
  299. if (!this.$checkAccess.getHasFollow()) {
  300. this.$refs.addFollow.open("center");
  301. return;
  302. }
  303. // 次数操作
  304. this.lotteryInfo.number = this.lotteryInfo.number - 1;
  305. // 请求列表
  306. this.$http.request("/api/lottery_recruitment/get_reward", { lottery_id: this.lotteryInfo.id }).then((re) => {
  307. // 设置非请求中
  308. this.isReqing = false;
  309. // 成功结果
  310. if (re.code == "success") {
  311. // 奖品列表更新
  312. this.prizeList = re.data.reward_list;
  313. // 奖品的索引
  314. return this.$refs.dialer.run(re.data.reward_index);
  315. } else {
  316. uni.showToast({
  317. title: re.msg,
  318. icon: "none",
  319. });
  320. return;
  321. }
  322. });
  323. },
  324. closePopup() {
  325. this.$refs.addFollow.close();
  326. },
  327. showRule() {
  328. this.$refs.lotteryRule.open("center");
  329. },
  330. closeRule() {
  331. this.$refs.lotteryRule.close();
  332. },
  333. showRecord() {
  334. // 活动是否开始
  335. if (this.lotteryInfo.id) {
  336. // 请求列表
  337. this.$http.request("/api/lottery_riddle_record/get_list", { lottery_id: this.lotteryInfo.id }).then((re) => {
  338. // 设置非请求中
  339. this.isReqing = false;
  340. // 成功结果
  341. if (re.code == "success") {
  342. this.recordList = re.data;
  343. }
  344. });
  345. }
  346. this.$refs.lotteryRecord.open("bottom");
  347. },
  348. closeRecord() {
  349. this.$refs.lotteryRecord.close();
  350. },
  351. openAddr(index) {
  352. // 选择的下标
  353. this.recordIndex = index;
  354. // 地址列表
  355. this.getAddrList(true);
  356. },
  357. // 选择地址
  358. checkedAddrItem(item) {
  359. // 判断数据
  360. this.$http.request("api/lottery_riddle_record/set_addr", { id: this.recordList[this.recordIndex].id, addr_id: item.id }, "post").then((callback) => {
  361. // 获取成功
  362. if (callback.code == "success") {
  363. this.recordList[this.recordIndex].status = 1;
  364. this.recordList[this.recordIndex].state = "进行中";
  365. }
  366. this.$refs.addrPopup.close();
  367. });
  368. },
  369. getAddrList(showPopup = false) {
  370. // 判断数据
  371. this.$http.request("api/custom_addr/get_list").then((callback) => {
  372. // 获取成功
  373. if (callback.code == "success") {
  374. this.addrList = callback.data;
  375. // 如果有的话
  376. if (this.addrList.length) {
  377. // 获取默认的
  378. for (let i in this.addrList) {
  379. // 如果是默认的
  380. if (this.addrList[i].is_default) this.checkedAddr = this.addrList[i];
  381. }
  382. // 如果没有默认的话
  383. if (!this.checkedAddr.id) {
  384. this.checkedAddr = this.addrList[this.addrList.length - 1];
  385. }
  386. }
  387. // 弹出地址层
  388. if (showPopup) this.$refs.addrPopup.open("bottom");
  389. }
  390. });
  391. },
  392. },
  393. };
  394. </script>
  395. <style lang="less">
  396. .lottery_box {
  397. display: block;
  398. width: 750rpx;
  399. margin: 0 auto;
  400. position: relative;
  401. background: linear-gradient(to bottom, #fc335f 0%, #fb7224 80%, #ffffff 100%);
  402. padding-bottom: 200rpx;
  403. .share-btn {
  404. width: 80%;
  405. height: 80rpx;
  406. background-color: #f0370e;
  407. color: #fff;
  408. border-radius: 60rpx;
  409. display: flex;
  410. justify-content: center;
  411. align-items: center;
  412. padding: 16rpx;
  413. margin-top: 60rpx;
  414. box-sizing: border-box;
  415. }
  416. .lottery_time {
  417. top: 0rpx;
  418. left: 35rpx;
  419. z-index: 1;
  420. width: 700rpx;
  421. color: #ffffff;
  422. display: block;
  423. height: 40rpx;
  424. font-size: 24rpx;
  425. line-height: 40rpx;
  426. text-align: center;
  427. position: absolute;
  428. border-radius: 10rpx;
  429. background-color: rgba(0, 0, 0, 0.15);
  430. }
  431. .lottery_info {
  432. width: 750rpx;
  433. overflow: hidden;
  434. margin: 0rpx auto;
  435. position: relative;
  436. margin-bottom: 40rpx;
  437. .lottery_logo {
  438. float: left;
  439. width: 750rpx;
  440. height: 240rpx;
  441. display: block;
  442. }
  443. .lottery_rule_btn {
  444. top: 50%;
  445. right: 0rpx;
  446. width: 120rpx;
  447. height: 60rpx;
  448. color: #ffffff;
  449. overflow: hidden;
  450. font-size: 24rpx;
  451. text-align: center;
  452. line-height: 60rpx;
  453. position: absolute;
  454. padding: 0rpx 0rpx;
  455. border-top-left-radius: 30rpx;
  456. border-bottom-left-radius: 30rpx;
  457. border-top-right-radius: 0rpx;
  458. border-bottom-right-radius: 0rpx;
  459. background-color: rgba(0, 0, 0, 0.3);
  460. }
  461. .lottery_rule_btn::after {
  462. border: 0rpx solid transparent;
  463. }
  464. }
  465. .record_box {
  466. display: block;
  467. height: 120rpx;
  468. overflow: hidden;
  469. position: relative;
  470. margin-top: 40rpx;
  471. .score_info {
  472. display: block;
  473. overflow: auto;
  474. .custom_score {
  475. height: 60rpx;
  476. font-size: 28rpx;
  477. text-align: center;
  478. line-height: 60rpx;
  479. }
  480. .need_score {
  481. height: 60rpx;
  482. font-size: 32rpx;
  483. text-align: center;
  484. line-height: 60rpx;
  485. }
  486. }
  487. .lottery_record {
  488. top: 0rpx;
  489. right: 0rpx;
  490. width: 120rpx;
  491. height: 120rpx;
  492. overflow: hidden;
  493. text-align: center;
  494. position: absolute;
  495. padding: 0rpx 0rpx;
  496. background-color: transparent;
  497. .lottery_record_img {
  498. width: 60rpx;
  499. height: 60rpx;
  500. display: block;
  501. margin: 0rpx auto;
  502. }
  503. .lottery_record_text {
  504. color: #ffffff;
  505. display: block;
  506. height: 40rpx;
  507. width: 120rpx;
  508. font-size: 24rpx;
  509. line-height: 40rpx;
  510. }
  511. }
  512. .lottery_record::after {
  513. border: none;
  514. }
  515. }
  516. }
  517. .lottery_rule_box {
  518. width: 500rpx;
  519. display: block;
  520. overflow: hidden;
  521. background: #ffffff;
  522. font-size: 26rpx;
  523. margin: 0rpx auto;
  524. line-height: 50rpx;
  525. border-radius: 10rpx;
  526. padding: 0rpx 25rpx;
  527. padding-bottom: 20rpx;
  528. background-color: #fc335f;
  529. .lottery_rule_title {
  530. color: #ffffff;
  531. height: 60rpx;
  532. font-size: 32rpx;
  533. line-height: 60rpx;
  534. text-align: center;
  535. margin-bottom: 10rpx;
  536. .close_btn {
  537. float: right;
  538. width: 40rpx;
  539. height: 40rpx;
  540. font-size: 24rpx;
  541. margin-top: 9rpx;
  542. line-height: 40rpx;
  543. border-radius: 50%;
  544. border: 1rpx solid #ffffff;
  545. }
  546. }
  547. .lottery_rule_info {
  548. display: block;
  549. height: 500rpx;
  550. font-size: 24rpx;
  551. line-height: 40rpx;
  552. border-radius: 10rpx;
  553. padding: 20rpx 20rpx;
  554. box-sizing: border-box;
  555. background-color: #ffffff;
  556. .rich_text {
  557. white-space: break-spaces;
  558. }
  559. }
  560. }
  561. .lottery_record_box {
  562. display: block;
  563. color: #deb887;
  564. height: 700rpx;
  565. padding: 10rpx 25rpx;
  566. background-color: #faebd7;
  567. .lottery_record_title {
  568. color: #000000;
  569. height: 80rpx;
  570. font-weight: bold;
  571. font-size: 32rpx;
  572. line-height: 80rpx;
  573. text-align: center;
  574. margin-bottom: 20rpx;
  575. .close_btn {
  576. float: right;
  577. width: 40rpx;
  578. height: 40rpx;
  579. color: #deb887;
  580. font-size: 24rpx;
  581. margin-top: 9rpx;
  582. line-height: 40rpx;
  583. border-radius: 50%;
  584. border: 2rpx solid #deb887;
  585. }
  586. }
  587. .lottery_record_none {
  588. display: block;
  589. height: 200rpx;
  590. color: #deb887;
  591. font-size: 26rpx;
  592. text-align: center;
  593. line-height: 200rpx;
  594. }
  595. .lottery_record_list {
  596. display: block;
  597. height: 500rpx;
  598. .lottery_record_item {
  599. height: 80rpx;
  600. display: block;
  601. font-size: 26rpx;
  602. overflow: hidden;
  603. line-height: 80rpx;
  604. .reward_time {
  605. float: left;
  606. width: 300rpx;
  607. }
  608. .reward_name {
  609. float: left;
  610. width: 200rpx;
  611. }
  612. .reward_state {
  613. float: right;
  614. }
  615. }
  616. }
  617. }
  618. .popup {
  619. overflow: hidden;
  620. .popup_title {
  621. display: block;
  622. overflow: hidden;
  623. margin: 0rpx auto;
  624. font-size: 36rpx;
  625. height: 120rpx;
  626. line-height: 120rpx;
  627. padding: 0rpx 20rpx;
  628. border-bottom: 10rpx solid #f8f8f8;
  629. .to_addr_page {
  630. float: right;
  631. color: #f59a23;
  632. display: block;
  633. height: 120rpx;
  634. line-height: 120rpx;
  635. font-size: 26rpx;
  636. padding: 0rpx 10rpx;
  637. }
  638. }
  639. .addr_list {
  640. width: 730rpx;
  641. display: block;
  642. overflow: hidden;
  643. margin: 0rpx auto;
  644. min-height: 500rpx;
  645. .addr_item {
  646. display: block;
  647. font-size: 24rpx;
  648. overflow: hidden;
  649. line-height: 40rpx;
  650. padding: 15rpx 10rpx;
  651. border-radius: 15rpx;
  652. border-bottom: 2rpx solid #dddddd;
  653. .radio_label {
  654. width: 40rpx;
  655. float: left;
  656. height: 50rpx;
  657. padding-top: 30rpx;
  658. margin-right: 20rpx;
  659. .radio_icon {
  660. float: left;
  661. width: 40rpx;
  662. height: 40rpx;
  663. }
  664. }
  665. .contact_user {
  666. float: left;
  667. width: 640rpx;
  668. display: block;
  669. height: 50rpx;
  670. font-size: 24rpx;
  671. line-height: 50rpx;
  672. .contact_name {
  673. font-size: 26rpx;
  674. font-weight: bold;
  675. margin-right: 16rpx;
  676. }
  677. .contact_default {
  678. color: #f59a23;
  679. font-size: 20rpx;
  680. margin-left: 16rpx;
  681. border: 1rpx solid #f59a23;
  682. }
  683. .contact_shop {
  684. float: right;
  685. font-size: 26rpx;
  686. margin-right: 16rpx;
  687. }
  688. }
  689. .contact_addr {
  690. float: left;
  691. width: 640rpx;
  692. display: block;
  693. font-size: 24rpx;
  694. line-height: 30rpx;
  695. padding: 10rpx 5rpx;
  696. }
  697. }
  698. }
  699. .create_box {
  700. height: 140rpx;
  701. display: block;
  702. .create_addr {
  703. width: 700rpx;
  704. height: 80rpx;
  705. display: block;
  706. color: #ffffff;
  707. font-size: 30rpx;
  708. overflow: hidden;
  709. line-height: 80rpx;
  710. padding: 0rpx 0rpx;
  711. text-align: center;
  712. margin: 0rpx auto;
  713. margin-top: 20rpx;
  714. border-radius: 40rpx;
  715. background-color: #e03519;
  716. }
  717. }
  718. }
  719. </style>