lottery.vue 20 KB

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