index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854
  1. <template>
  2. <view style="background-image: linear-gradient(#ff8e0c,#ffc555 80%,#ff8e0c); width: 100%; height: 100%;">
  3. <!-- #ifdef MP-ALIPAY -->
  4. <u-navbar title="免费抽奖" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" leftIconSize="0" />
  5. <!-- #endif -->
  6. <!-- #ifndef MP-ALIPAY -->
  7. <view v-if="pagesNum > 1">
  8. <u-navbar title="免费抽奖" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
  9. </view>
  10. <view v-else>
  11. <u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff" title="免费抽奖">
  12. <view class="nav-left flex" slot="left" @click="toActivity">
  13. <u-icon name="arrow-left" size="20" color="#333"></u-icon>
  14. </view>
  15. </u-navbar>
  16. </view>
  17. <!-- #endif -->
  18. <view class="wrap">
  19. <!-- 参与人 -->
  20. <view class="wrap-fakeNum">
  21. <view class="fakeNum">{{info.fakeNum}}人已参与</view>
  22. </view>
  23. <!-- 距离开奖时间 -->
  24. <view v-if="info.status && JSON.parse(info.status).value == 3" class="wrap-date">
  25. <view class="wrap-date-on">
  26. <view class="wrap-date-on-line" style="right: 30rpx;"></view>距离开奖
  27. <view class="wrap-date-on-line" style="left: 30rpx;"></view>
  28. </view>
  29. <u-count-down :time="activityTime" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
  30. <view class="wrap-date-date">
  31. <text>{{timeData.days}}天</text>
  32. <text>{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours }}:</text>
  33. <text>{{ timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes }}:</text>
  34. <text>{{ timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds }}</text>
  35. </view>
  36. </u-count-down>
  37. </view>
  38. <!-- 距离开始时间 -->
  39. <view v-if="info.status && JSON.parse(info.status).value == 2" class="wrap-date">
  40. <view class="wrap-date-on">
  41. <view class="wrap-date-on-line" style="right: 30rpx;"></view>距离开始
  42. <view class="wrap-date-on-line" style="left: 30rpx;"></view>
  43. </view>
  44. <u-count-down :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
  45. <view class="wrap-date-date">
  46. <text>{{timeData.days}}天</text>
  47. <text>{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours }}:</text>
  48. <text>{{ timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes }}:</text>
  49. <text>{{ timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds }}</text>
  50. </view>
  51. </u-count-down>
  52. </view>
  53. <!-- 一等奖 -->
  54. <view v-for="(item,index) in awardsList" :key="index">
  55. <view class="wrap-fixed" v-for="(itemTwo,index) in item.prizeList" :key="index"
  56. v-if="item.name == '一等奖'">
  57. <view class="wrap-fixed-effectstwo">
  58. <view class="effectsthree">
  59. <navigator :url="JSON.parse(itemTwo.prizeType).value == 'goods' ? `/packagePrize/goods/detail?id=${ itemTwo.refId }`:JSON.parse(itemTwo.prizeType).value == 'coin' ?`/packagePrize/goods/detail?id=424`:`/packagePrize/goods/detail?id=425`" hover-class="none">
  60. <view class="effectsthree-width">
  61. <image src="../static/activity/effectsthree.png"></image>
  62. <view class="effectsthree-width-name">
  63. {{item.name}}
  64. </view>
  65. </view>
  66. <view class="effectsthree-position">{{item.quantity}}个名额 </view>
  67. <view class="effectsthree-positionTwo">
  68. <view>
  69. <image :src="itemTwo.picUrl" mode="aspectFit"></image>
  70. </view>
  71. <view class="textone ells-one"
  72. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'">
  73. {{itemTwo.title}}x{{itemTwo.value}}
  74. </view>
  75. <view class="textone ells-one" v-else> {{itemTwo.title}} </view>
  76. <view class="texttwo ells-one"
  77. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'">
  78. ¥{{$numberFormat(itemTwo.value)}} </view>
  79. </view>
  80. </navigator>
  81. </view>
  82. <view class="effectstwo"></view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 非一等奖 -->
  87. <view v-for="(item,index) in awardsList" :key="index">
  88. <view v-if="item.name != '一等奖'">
  89. <view class="wrap-award">
  90. <view class="effectsthree">
  91. <view class="effectsthree-width">
  92. <image src="../static/activity/effectsthree.png" mode="scaleToFill"></image>
  93. <view class="effectsthree-width-name">
  94. {{item.name}}
  95. </view>
  96. </view>
  97. <view class="effectsthree-position">{{item.quantity}}个名额 </view>
  98. <view style="padding-top: 120rpx;"></view>
  99. <view class="effectsthree-positionTwo" v-for="(itemTwo,index) in item.prizeList"
  100. :key="index">
  101. <navigator :url="JSON.parse(itemTwo.prizeType).value == 'goods' ? `/packagePrize/goods/detail?id=${ itemTwo.refId }`:JSON.parse(itemTwo.prizeType).value == 'coin' ?`/packagePrize/goods/detail?id=424`:`/packagePrize/goods/detail?id=425`" hover-class="none">
  102. <view class="flex" >
  103. <view >
  104. <image :src="itemTwo.picUrl" mode="aspectFit" class="imatwo"></image>
  105. </view>
  106. <view>
  107. <view class="textone ells-one"
  108. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'">
  109. {{itemTwo.title}}x{{itemTwo.value}}
  110. </view>
  111. <view class="textone ells-one" v-else> {{itemTwo.title}}</view>
  112. <view class="texttwo ells-one"
  113. v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'">
  114. ¥{{$numberFormat(itemTwo.value)}} </view>
  115. </view>
  116. </view>
  117. </navigator>
  118. </view>
  119. </view>
  120. <view v-if="item.prizeList.length > 1 " class="wrap-award-explain">以上奖品随机获得一件</view>
  121. </view>
  122. </view>
  123. </view>
  124. <!-- 我的抽奖码 -->
  125. <!-- 抽奖码 -->
  126. <view class="wrap-description">
  127. <view class="wrap-description-code"> 我的抽奖码</view>
  128. <view v-if="info.codeList.length > 0" class="wrap-description-codetwo">
  129. <view class="codeList" v-for="(item,index) in info.codeList">
  130. <view class="codeList-bottom">{{item}}</view>
  131. </view>
  132. </view>
  133. <view v-else class="wrap-description-codethree">
  134. <view class="codethree">
  135. <image src="../static/activity/off.png" mode="scaleToFill" class="codeimg"></image>
  136. </view>
  137. <text class="codesix">还没有抽奖码</text>
  138. </view>
  139. <view class="wrap-description-codesix" v-if="info.codeList && info.codeList.length > 0">再获取1个抽奖码可超过当前<view class="view">{{ (info.codeList.length + 4)*5 > 80 ? 80 : (info.codeList.length + 4)*5}}%</view>的人</view>
  140. <view class="wrap-description-codesixtwo">每邀请一位好友助力成功,即可获得1个抽奖码</view>
  141. <view class="wrap-description-codesixtwo">抽奖码越多中奖概率越大</view>
  142. </view>
  143. <!-- 关注公众号 -->
  144. <!-- #ifdef MP-WEIXIN -->
  145. <view class="wrap-account" @click="toWeixin">
  146. <view class="wrap-account-view">
  147. <image src="../static/activity/logo.png" mode=""></image>
  148. <text>关注盲票公众号,获取中奖提醒</text>
  149. <view>去关注</view>
  150. </view>
  151. </view>
  152. <!-- #endif -->
  153. <!-- 图文介绍 -->
  154. <view v-if="description" class="wrap-descriptiontwo">
  155. <view style="padding: 36rpx 24rpx 36rpx;">图文介绍</view>
  156. <u-parse :content="description" :selectable="true"></u-parse>
  157. </view>
  158. </view>
  159. <!-- #ifdef MP-WEIXIN -->
  160. <view class="footer-fixed">
  161. <view class="flex btn">
  162. <button v-if="info.codeType == 2 && info.codeList.length < 1" type="default" @click="exChange"
  163. open-type="share">分享给好友,参与抽奖</button>
  164. <button v-if="info.codeType == 1 && info.codeList.length < 1" type="default" @click="exChangeCode">立即参与抽奖</button>
  165. <button v-if="info.codeType == 1 && info.codeList.length >= 1 || info.codeType == 2 && info.codeList.length >= 1" type="default" @click="exChange"
  166. open-type="share">分享给好友,提升中奖概率</button>
  167. <!--<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond
  168. @change="onChange">
  169. <button class="buttoncol" type="default">
  170. 开始倒计时:{{timeData.days}}&nbsp;天{{ timeData.hours>=10?timeData.hours:'0'+timeData.hours}}&nbsp;:{{timeData.minutes>=10?timeData.minutes:'0'+timeData.minutes}}&nbsp;:{{timeData.seconds>=10?timeData.seconds:'0'+timeData.seconds}}
  171. </button>
  172. </u-count-down> -->
  173. </view>
  174. </view>
  175. <!-- #endif -->
  176. <!-- #ifdef H5 || MP-ALIPAY -->
  177. <view class="footer-fixed">
  178. <view class="flex btn">
  179. <button type="default" v-if="info.codeType == 1 && info.codeList.length < 1" @click="exChangeCode">立即参与抽奖</button>
  180. <button type="default" class="buttoncol" v-else>请在微信“盲票”小程序分享助力</button>
  181. </view>
  182. </view>
  183. <!-- #endif -->
  184. <!-- <u-popup :show="popupShow" mode="bottom" @close="close" closeable>
  185. <view class="popupcode">获取抽奖码</view>
  186. <view class="popupcodetwo">
  187. <view class="popupcodetwo-view">邀请好友助力,获取抽奖码</view>
  188. <text class="popupcodetwo-text">每邀请一位好友助力成功,即可获得1个抽奖码,没有上限</text>
  189. </view>
  190. <view class="popupcodethree" style="">
  191. <button type="default" class="popupcodethree-default" open-type="share">立即邀请好友助力</button>
  192. </view>
  193. </u-popup> -->
  194. <!-- <u-popup v-if="info.status && JSON.parse(info.status).value == 4" mode="bottom" @close="close" closeable> -->
  195. <!-- 助力邀请弹框组件 -->
  196. <activity-help :activity-show="activityShow" :inviteCode="inviteCodeTa" :marketingId="marketingId" @close="close" @exChange='exChange' @success="toActivity" v-if="activityShow && info.status && JSON.parse(info.status).value == 3" />
  197. <!-- 活动结束弹框 -->
  198. <u-popup v-if="info.status && JSON.parse(info.status).value == 4 || info.isOn == -1" show="true" mode="center" @close="close"
  199. round="11">
  200. <view style="text-align: center;width: 600rpx; height: 500rpx;">
  201. <view style="color: #666;margin-top: 110rpx;font-size: 40rpx;">来晚了,活动已结束</view>
  202. <view style="color: #666;margin-top: 50rpx;font-size: 36rpx;">点击前往查看新的免费抽奖活动</view>
  203. <button @click="toActivity" type="default"
  204. style="background-color: #FF8000;color: #fff; width: 300rpx;margin-top: 70rpx;">确定</button>
  205. </view>
  206. </u-popup>
  207. </view>
  208. </template>
  209. <script>
  210. import env from '../../config/env.js'
  211. import $http from '@/utils/request.js'
  212. import ActivityHelp from '@/components/activity-help/activity-help.vue'
  213. import { formatRichText } from '@/utils/util.js'
  214. export default {
  215. components: {
  216. ActivityHelp
  217. },
  218. data() {
  219. return {
  220. popupShow: false,
  221. id: '',
  222. description: '', //富文本
  223. info: {}, //列表
  224. timeData: {}, //时间
  225. awardsList: [], //奖品
  226. inviteCode: '', //邀请码
  227. activityTime: 0,
  228. activityTimeTwo: 0,
  229. pagesNum: "",
  230. activityShow: false,//助力邀请弹框
  231. inviteCodeTa: '', //邀请码
  232. marketingId: '',//活动id
  233. userInfo: '',//uid
  234. }
  235. },
  236. onLoad(opthios) {
  237. if(opthios.id){
  238. this.id = opthios.id
  239. }
  240. /**
  241. * 免费活动邀请助力分享跳转接收参数
  242. * inviteCodeTa: 邀请码
  243. * marketingId: 活动id
  244. * */
  245. if (opthios.inviteCode && opthios.marketingId) {
  246. this.inviteCodeTa = opthios.inviteCode
  247. this.marketingId = opthios.marketingId
  248. this.id = opthios.marketingId
  249. this.activityShow = true
  250. }
  251. if (opthios.userId) {
  252. uni.setStorageSync('shareUid', opthios.userId)
  253. }
  254. if (opthios.type) {
  255. uni.setStorageSync('shareType', opthios.type)
  256. }
  257. this.getDetail()
  258. },
  259. onShow() {
  260. this.pagesNum = getCurrentPages().length
  261. this.getBaseInfo()
  262. },
  263. methods: {
  264. toActivity() {
  265. uni.reLaunch({
  266. url: `/pages/activity/index`
  267. })
  268. },
  269. getDetail() {
  270. uni.showLoading({
  271. title: '加载中'
  272. });
  273. $http.post(`/api/v1/mp/user/marketing/detail/${this.id}`, {}).then(res => {
  274. uni.hideLoading();
  275. if (res.code == 0) {
  276. this.info = res.data
  277. let awardsList = res.data.awardsList
  278. awardsList.forEach(item => {
  279. item.prizeList.forEach(itemTwo => {
  280. itemTwo.picUrl = (env.filePublic + itemTwo.picUrl.split(',')[0] +
  281. '?imageView2/2/w/750')
  282. })
  283. })
  284. this.awardsList = awardsList
  285. // 处理富文本
  286. // #ifndef MP-ALIPAY
  287. const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
  288. .replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
  289. ".png?imageView2/2/w/750\"");
  290. this.description = formatRichText(description);
  291. // #endif
  292. // #ifdef MP-ALIPAY
  293. res.data.description.split(".jpg\"").join(".jpg?imageView2/2/w/750\"")
  294. res.data.description.split(".jpeg\"").join(".jpeg?imageView2/2/w/750\"")
  295. res.data.description.split(".png\"").join(".png?imageView2/2/w/750\"")
  296. this.description = formatRichText(res.data.description);
  297. // #endif
  298. let timestamp = parseInt(new Date().getTime())
  299. this.activityTime = this.info.endTime - timestamp
  300. this.activityTimeTwo = this.info.startTime - timestamp
  301. }
  302. }).catch(() => {
  303. uni.hideLoading();
  304. })
  305. $http.post('/api/v1/mp/user/marketing/inviteCode', {}).then(res => {
  306. if (res.code == 0) {
  307. this.inviteCode = res.data
  308. }
  309. })
  310. },
  311. onChange(e) {
  312. this.timeData = e
  313. },
  314. exChange() {
  315. //弹出层打开
  316. // this.popupShow = true
  317. uni.requestSubscribeMessage({
  318. tmplIds: ['3y_My-yRmqmGd3-f-vAwNaK4LQeehzXBSNDi_5wcnFI',
  319. 'FGcPOV1j9ApESr3VUlWjFr6E1vF4X_h0LLN82T2CLL0',
  320. '92xxL8XTRPLROyNUtmN04OT0kyq4iwSCH3sz-j6zbZs'
  321. ],
  322. success(res) {
  323. }
  324. })
  325. },
  326. //立即参与抽奖
  327. exChangeCode(){
  328. $http.post(`/api/v1/mp/user/marketing/generateCode/${this.id}`, {}).then( res => {
  329. console.log(res);
  330. if(res.code == 0){
  331. this.getDetail()
  332. setTimeout(()=>{
  333. uni.$u.toast('参与成功,您已获得1个抽奖码');
  334. },500)
  335. }
  336. })
  337. this.exChange()
  338. },
  339. close() {
  340. //弹出层收起
  341. // this.popupShow = false
  342. // 关闭支付弹框
  343. this.activityShow = false
  344. this.getDetail()
  345. },
  346. //公众号
  347. toWeixin() {
  348. uni.navigateTo({
  349. url: `/packageOperate/activity/wxofficial`
  350. })
  351. },
  352. getBaseInfo() {
  353. $http.post('/api/v1/mp/user/getLoginUserinfo', {}).then(res => {
  354. uni.hideLoading();
  355. if (res.code == 0) {
  356. this.userInfo = res.data
  357. }
  358. })
  359. },
  360. },
  361. onShareAppMessage(res) {
  362. return {
  363. title: '超值宝贝免费抽,参与活动仅需3秒',
  364. path: `/packageOperate/activity/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }&userId=${ this.userInfo.userId }&type=1`,
  365. imageUrl: 'https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/free_draw_bkg.jpeg',
  366. }
  367. },
  368. //分享朋友圈
  369. onShareTimeline() {
  370. return {
  371. title: '一起来刮盲票吧',
  372. path: `/packageOperate/activity/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }&userId=${ this.userInfo.userId }&type=1`,
  373. imageUrl: 'https://mp-public-1310078123.cos.ap-shanghai.myqcloud.com/v2/free_draw_bkg.jpeg',
  374. }
  375. }
  376. }
  377. </script>
  378. <style lang="scss" scoped>
  379. .popupcode {
  380. height: 98rpx;
  381. width: 100%;
  382. background-color: #F8832C;
  383. text-align: center;
  384. line-height: 98rpx;
  385. color: #fff;
  386. font-size: 32rpx;
  387. }
  388. .popupcodetwo {
  389. padding: 30rpx 20rpx;
  390. &-view {
  391. color: #101010;
  392. line-height: 50rpx;
  393. font-size: 30rpx;
  394. }
  395. &-text {
  396. color: #8c8c8c;
  397. font-size: 26rpx;
  398. }
  399. }
  400. .popupcodethree {
  401. padding: 0rpx 20rpx 50rpx;
  402. &-default {
  403. background-color: #FCE9DB;
  404. color: #fff;
  405. border: 2rpx solid #F8832C;
  406. color: #F9832C;
  407. border-radius: 22rpx;
  408. }
  409. }
  410. .wrap {
  411. // 设置ios刘海屏底部横线安全区域
  412. // padding-bottom: constant(safe-area-inset-bottom);
  413. // padding-bottom: env(safe-area-inset-bottom);
  414. padding-bottom: 200rpx;
  415. background: url(../static/activity/effectsone.png) no-repeat 100% 0%;
  416. background-size: 100%;
  417. &-fakeNum {
  418. margin-top: 46rpx;
  419. .fakeNum {
  420. line-height: 66rpx;
  421. text-align: center;
  422. width: 266rpx;
  423. height: 76rpx;
  424. background: url(../static/activity/rectangle.png) no-repeat center center;
  425. background-size: 266rpx 76rpx;
  426. margin: 0 auto;
  427. color: #A13D01;
  428. font-size: 30rpx;
  429. }
  430. }
  431. &-date {
  432. text-align: center;
  433. width: 100%;
  434. font-family: YouSheBiaoTiHei;
  435. color: #FFFFFF;
  436. &-on {
  437. display: inline-block;
  438. font-size: 76rpx;
  439. line-height: 68rpx;
  440. &-line {
  441. display: inline-block;
  442. width: 68rpx;
  443. height: 2rpx;
  444. overflow: hidden;
  445. background-color: #fff;
  446. position: relative;
  447. bottom: 25rpx;
  448. }
  449. }
  450. &-date {
  451. font-size: 52rpx;
  452. }
  453. }
  454. &-fixed {
  455. height: 630rpx;
  456. margin: 30rpx 30rpx;
  457. &-effectstwo {
  458. border-radius: 20rpx;
  459. width: 100%;
  460. height: 100%;
  461. background: url(../static/activity/effectstwo.png) no-repeat center center;
  462. .effectsthree {
  463. position: relative;
  464. height: 400rpx;
  465. width: 100%;
  466. z-index: 10;
  467. &-width {
  468. position: absolute;
  469. width: 175rpx;
  470. height: 175rpx;
  471. margin: 0;
  472. image {
  473. width: 100%;
  474. height: 100%;
  475. }
  476. &-name {
  477. position: relative;
  478. left: 10rpx;
  479. top: -160rpx;
  480. transform: rotateZ(-45deg);
  481. color: #fff;
  482. font-size: 26rpx;
  483. }
  484. }
  485. &-position {
  486. position: absolute;
  487. // z-index: 1;
  488. width: 180rpx;
  489. height: 62rpx;
  490. background-image: linear-gradient(to right, #FAE08A, #FFC45A);
  491. border-radius: 17rpx;
  492. line-height: 62rpx;
  493. text-align: center;
  494. color: #A13D01;
  495. font-size: 30rpx;
  496. top: 20rpx;
  497. right: 20rpx;
  498. }
  499. &-positionTwo {
  500. width: 100%;
  501. height: 100%;
  502. text-align: center;
  503. image {
  504. width: 350rpx;
  505. height: 350rpx;
  506. margin-top: 70rpx;
  507. }
  508. .textone {
  509. width: 70%;
  510. margin: 0 auto;
  511. margin-top: 80rpx;
  512. color: #333333;
  513. font-size: 30rpx;
  514. line-height: 40rpx;
  515. }
  516. .texttwo {
  517. color: #FC531E;
  518. font-size: 30rpx;
  519. line-height: 34rpx;
  520. }
  521. }
  522. }
  523. .effectstwo {
  524. position: relative;
  525. bottom: 120rpx;
  526. margin-left: 17.5%;
  527. width: 65%;
  528. height: 65%;
  529. background: url(../static/activity/effectssix.png) no-repeat 100% center;
  530. background-size: 100%;
  531. }
  532. }
  533. }
  534. &-award {
  535. padding-bottom: 50rpx;
  536. // height: 2230rpx;
  537. border-radius: 18rpx;
  538. margin: 30rpx 30rpx;
  539. background-color: #fff;
  540. .effectsthree {
  541. position: relative;
  542. // height: 400rpx;
  543. // width: 100%;
  544. // z-index: 10;
  545. &-width {
  546. position: absolute;
  547. width: 175rpx;
  548. height: 175rpx;
  549. margin: 0;
  550. image {
  551. width: 100%;
  552. height: 100%;
  553. }
  554. &-name {
  555. position: relative;
  556. left: 10rpx;
  557. top: -160rpx;
  558. transform: rotateZ(-45deg);
  559. color: #fff;
  560. font-size: 26rpx;
  561. }
  562. }
  563. &-position {
  564. position: absolute;
  565. z-index: 1;
  566. width: 180rpx;
  567. height: 62rpx;
  568. background-image: linear-gradient(to right, #FAE08A, #FFC45A);
  569. border-radius: 17rpx;
  570. line-height: 62rpx;
  571. text-align: center;
  572. color: #A13D01;
  573. font-size: 30rpx;
  574. top: 20rpx;
  575. right: 20rpx;
  576. }
  577. &-positionTwo {
  578. width: 100%;
  579. height: 220rpx;
  580. // text-align: center;
  581. padding: 0 62rpx;
  582. justify-content: flex-start;
  583. .imatwo {
  584. width: 150rpx;
  585. height: 150rpx;
  586. }
  587. .textone {
  588. color: #333333;
  589. font-size: 30rpx;
  590. margin-left: 20rpx;
  591. line-height: 75rpx;
  592. }
  593. .texttwo {
  594. margin-left: 20rpx;
  595. color: #FC531E;
  596. font-size: 28rpx;
  597. line-height: 75rpx;
  598. }
  599. .imgone {
  600. width: 449rpx;
  601. height: 280rpx;
  602. position: relative;
  603. bottom: 80rpx;
  604. margin-left: 0%;
  605. z-index: 0;
  606. // width: 45%;
  607. // height: 45%;
  608. }
  609. }
  610. }
  611. &-explain {
  612. margin-top: 30rpx;
  613. text-align: center;
  614. color: #999999;
  615. font-size: 30rpx;
  616. }
  617. }
  618. &-description {
  619. min-height: 200rpx;
  620. background-color: #fff;
  621. margin: 30rpx 30rpx;
  622. border-radius: 18rpx;
  623. padding-bottom: 40rpx;
  624. &-code {
  625. font-size: 30rpx;
  626. color: #333;
  627. padding: 36rpx 24rpx;
  628. }
  629. &-codetwo {
  630. text-align: center;
  631. margin-top: 20rpx;
  632. margin-bottom: 40rpx;
  633. .codeList {
  634. text-align: center;
  635. margin-bottom: 40rpx;
  636. &-bottom {
  637. margin: 0 auto;
  638. width: 526rpx;
  639. height: 70rpx;
  640. background-color: #F8832C;
  641. color: #fff;
  642. border-radius: 12rpx;
  643. font-size: 36rpx;
  644. line-height: 70rpx;
  645. }
  646. }
  647. }
  648. &-codethree {
  649. text-align: center;
  650. .codethree {
  651. margin-left: 80rpx;
  652. .codeimg {
  653. width: 200rpx;
  654. height: 200rpx;
  655. }
  656. }
  657. .codesix {
  658. line-height: 1rpx;
  659. color: #F8832C;
  660. font-size: 30rpx;
  661. display: inline-block;
  662. margin-bottom: 80rpx;
  663. }
  664. }
  665. &-codesix {
  666. padding: 10rpx 0;
  667. text-align: center;
  668. line-height: 60rpx;
  669. font-size: 28rpx;
  670. font-weight: bold;
  671. color: #666666;
  672. margin-bottom: 20rpx;
  673. .view {
  674. font-size: 28rpx;
  675. color: #F9822C;
  676. display: inline-block;
  677. }
  678. }
  679. &-codesixtwo {
  680. margin: 0 auto;
  681. width: 600rpx;
  682. font-size: 26rpx;
  683. color: #999;
  684. line-height: 40rpx;
  685. // padding-bottom: 40rpx;
  686. text-align: center;
  687. }
  688. }
  689. &-descriptiontwo {
  690. margin: 30rpx;
  691. border-radius: 18rpx;
  692. overflow: hidden;
  693. background-color: #fff;
  694. }
  695. &-account {
  696. height: 100rpx;
  697. border-radius: 22rpx;
  698. background-color: #fff;
  699. margin: 30rpx 30rpx 0 30rpx;
  700. text-align: center;
  701. &-view {
  702. padding: 0 20rpx;
  703. image {
  704. width: 64rpx;
  705. height: 64rpx;
  706. vertical-align: -50%;
  707. }
  708. text {
  709. line-height: 100rpx;
  710. margin: 20rpx;
  711. font-size: 30rpx;
  712. color: #333333;
  713. }
  714. view {
  715. text-align: center;
  716. border-radius: 6rpx;
  717. display: inline-block;
  718. height: 44rpx;
  719. line-height: 44rpx;
  720. font-size: 26rpx;
  721. width: 112rpx;
  722. color: #f9822c;
  723. background-color: #fff;
  724. border: 2rpx solid #f9822c;
  725. }
  726. }
  727. }
  728. }
  729. .data-btn {
  730. float: left;
  731. text {
  732. display: inline-block;
  733. width: 60rpx;
  734. }
  735. }
  736. .footer-fixed {
  737. position: fixed;
  738. bottom: var(--window-bottom);
  739. left: 0;
  740. right: 0;
  741. z-index: 11;
  742. box-shadow: 0 -4rpx 40rpx 0 rgba(151, 151, 151, 0.24);
  743. background: #fff;
  744. // 设置ios刘海屏底部横线安全区域
  745. padding-bottom: constant(safe-area-inset-bottom);
  746. padding-bottom: env(safe-area-inset-bottom);
  747. .btn {
  748. padding: 20rpx 0;
  749. ::v-deep button {
  750. width: 640rpx;
  751. height: 90rpx;
  752. line-height: 90rpx;
  753. font-size: 34rpx;
  754. color: #fff;
  755. background-color: #f9822c;
  756. border: none;
  757. border-radius: 48rpx;
  758. }
  759. }
  760. .buttoncol {
  761. background-color: #555;
  762. }
  763. }
  764. </style>