signAcCom.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997
  1. <template>
  2. <view class="page">
  3. <view class="main_content2" :style="{backgroundImage:'url('+img_url+'signIn/sign_ac_bg.png)'}">
  4. <view class="top_bar">
  5. <view class="top_header">
  6. <view class="top_header_left" @click="goBack">
  7. <image :src="img_url + 'signIn/to_back.png'" mode=""></image>
  8. </view>
  9. <view class="top_header_cen">签到中心</view>
  10. <view class="top_white_space"></view>
  11. </view>
  12. </view>
  13. <view class="mid_banner">
  14. <view class="banner_tip">
  15. <view class="s_sign_tip" @tap="isHideMask = false;signRule=true">
  16. <image :src="img_url+'signIn/help_icon.png'" mode=""></image>
  17. <text>活动规则</text>
  18. </view>
  19. </view>
  20. <view class="banner_b_title">
  21. <text>每日签到领积分</text>
  22. </view>
  23. <view class="banner_s_title">
  24. <image :src="img_url+'signIn/ban_oral_left.png'" mode=""></image>
  25. <text>连续累计签到 独享好礼翻倍</text>
  26. <image :src="img_url+'signIn/ban_oral_right.png'" mode=""></image>
  27. </view>
  28. <view class="banner_time" v-if="JSON.stringify(signInfo)!='{}'">
  29. <view class="banner_time_tip">{{acState==0?'距离活动开始还有':(acState==1?'距离活动结束还有':'活动已结束')}}</view>
  30. <view class="banner_time_count">
  31. <block v-if="countDown.day!=0">{{countDown.day}}天</block>
  32. {{countDown.hour}}
  33. <text>小时</text>
  34. {{countDown.minute}}
  35. <text>分</text>
  36. {{countDown.second}}
  37. <text>秒</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="sign_ac_con">
  42. <block v-if="JSON.stringify(signInfo)!='{}'">
  43. <view class="ac_con_top">
  44. <view class="cur_int">目前积分<text>{{my_points}}</text></view>
  45. <view class="cur_int_tip" v-show="signInfo.continueNum>0">连续签到{{signInfo.continueNum}}天可领取好礼</view>
  46. </view>
  47. <view class="ac_con_bottom">
  48. <view class="sign_ac_day">
  49. <block v-if="signInfo.memberSignInfoList&&signInfo.memberSignInfoList.length<=8">
  50. <view class="sign_ac_day_line1">
  51. <view class="day_bonus_img" v-for="(item,index) in signInfo.memberSignInfoList.slice(0,4)" :key="index">
  52. <image :src="img_url+'signIn/sign_bonus.png'" mode="" :class="{opa_class:item.signRecordState!=2}"></image>
  53. <text>第{{index+1}}天</text>
  54. </view>
  55. </view>
  56. <view class="sign_ac_day_line1">
  57. <view class="day_bonus_img" v-for="(item,index) in signInfo.memberSignInfoList.slice(4)" :key="index">
  58. <image :src="img_url+'signIn/sign_bonus.png'" mode="" :class="{opa_class:item.signRecordState!=2}"></image>
  59. <text>第{{index+5}}天</text>
  60. </view>
  61. </view>
  62. </block>
  63. <block v-else>
  64. <swiper class="swiper-box" :current="current" indicator-dots="true" indicator-color="#ffa527" indicator-active-color="#FF6F1A">
  65. <swiper-item class="swiper-item" v-for="(item,idxA) in signMutipleDay" :key="idxA">
  66. <view class="sign_ac_day_line1">
  67. <view class="day_bonus_img" v-for="(subItem,idxB) in item.slice(0,4)" :key="idxB">
  68. <image :src="img_url+'signIn/sign_bonus.png'" mode="" :class="{opa_class:subItem.signRecordState!=2}"></image>
  69. <text>第{{idxB+idxA*8+1}}天</text>
  70. </view>
  71. </view>
  72. <view class="sign_ac_day_line1">
  73. <view class="day_bonus_img" v-for="(subItem,idxC) in item.slice(4)" :key="idxC">
  74. <image :src="img_url+'signIn/sign_bonus.png'" mode="" :class="{opa_class:subItem.signRecordState!=2}"></image>
  75. <text>第{{idxC+idxA*8+5}}天</text>
  76. </view>
  77. </view>
  78. </swiper-item>
  79. </swiper>
  80. </block>
  81. </view>
  82. <view class="sign_ac_but sign_on" v-if="acState==1&&signInfo.isSign==1" @tap="goSign">立即签到</view>
  83. <view class="sign_ac_but sign_al" v-if="acState==1&&signInfo.isSign==2">今日已签到&nbsp;&nbsp;{{signInfo.integralPerSign>0?'积分+'+signInfo.integralPerSign:''}}</text></view>
  84. <view class="sign_ac_but sign_off" v-if="acState==0">活动未开始</view>
  85. <view class="sign_ac_but sign_off" v-if="acState==2">活动已结束</view>
  86. <view class="sign_fini">
  87. <block v-if="signInfo.continueNum>0">
  88. <text v-if="signCountTotal>5">您已连续签到{{signCountTotal}}天,<block v-if="signInfo.integralPerSign>0">累计积分{{signCountTotal*signInfo.integralPerSign}}</block></text>
  89. <text v-if="signCountTotal==signInfo.continueNum">您已连续签到{{signCountTotal}}天, <block v-show="signInfo.bonusIntegral>0">获得积分奖励{{signInfo.bonusIntegral}}</block> <block v-if="signInfo.bonusVoucher>0">,优惠券:{{signInfo.bonusVoucherName}}</block></text>
  90. </block>
  91. </view>
  92. </view>
  93. </block>
  94. <block v-if="JSON.stringify(signInfo)=='{}'&&!firstLoading">
  95. <view class="signAc_off">签到活动已关闭</view>
  96. <view class="signAc_off_but" @click="goBack()">返回</view>
  97. </block>
  98. </view>
  99. <view class="sign_ac_bottom" :style="{backgroundImage:'url('+img_url+'signIn/sign_ac_bottom.png)'}" v-if="JSON.stringify(signInfo.share)!='{}'">
  100. <view class="share_con">
  101. <view class="share_con_top">
  102. <text>分享至好友</text>
  103. <view class="share_but" @click="goShare">
  104. 分享
  105. <image :src="img_url+'signIn/share_but.png'" mode=""></image>
  106. </view>
  107. </view>
  108. <text>分享至好友,共同参与签到领积分活动</text>
  109. </view>
  110. </view>
  111. <view class="popMask" :hidden="isHideMask" @tap="hideMask">
  112. <view class="sign_rule" @click.stop="()=>{}" v-if="signRule">
  113. <view class="sign_rule_title">签到领积分规则</view>
  114. <view class="sign_rule_one">
  115. <image :src="img_url+'signIn/sign_rule1.png'" mode=""></image>
  116. <text>每日签到获得积分奖励</text>
  117. </view>
  118. <view class="sign_rule_one_text">
  119. <text>{{signInfo.bonusRules}}</text>
  120. </view>
  121. <view class="sign_rule_one">
  122. <image :src="img_url+'signIn/sign_rule2.png'" mode=""></image>
  123. <text>分享活动</text>
  124. </view>
  125. <view class="sign_rule_one_text">
  126. <text>
  127. 1.签到活动未开始前即可分享至好友;
  128. </text>
  129. </view>
  130. <view class="sign_but_rule" @click.stop="hideMask">知道了~</view>
  131. </view>
  132. </view>
  133. <!-- 分享弹框 start -->
  134. <view class="share_model" v-if="share_model" @touchmove.stop.prevent="moveHandle">
  135. <view class="share_model_list">
  136. <!-- #ifdef H5 -->
  137. <view class="share_model_pre" @tap.stop="sldShareBrower" v-if="isWeiXinBrower">
  138. <image :src="img_url+'goods_detail/wx_share.png'" mode=""></image>
  139. <text>{{$L('微信好友')}}</text>
  140. </view>
  141. <!-- #endif -->
  142. <!-- #ifdef MP-WEIXIN -->
  143. <button open-type="share" class="share_model_pre">
  144. <image :src="img_url+'goods_detail/wx_share.png'" mode=""></image>
  145. <text>{{$L('微信好友')}}</text>
  146. </button>
  147. <!-- #endif -->
  148. <!-- #ifdef APP-PLUS -->
  149. <view class="share_model_pre" @tap.stop="sldShare(0,'WXSceneSession')">
  150. <image :src="img_url+'goods_detail/wx_share.png'" mode=""></image>
  151. <text>{{$L('微信好友')}}</text>
  152. </view>
  153. <view class="share_model_pre" @tap.stop="sldShare(0,'WXSenceTimeline')">
  154. <image :src="img_url+'goods_detail/wechat_moments.png'" mode=""></image>
  155. <text>{{$L('微信朋友圈')}}</text>
  156. </view>
  157. <!-- #endif -->
  158. </view>
  159. <view class="share_model_close" @click="closeShareModel">
  160. <image :src="img_url+'goods_detail/share_close.png'" mode=""></image>
  161. </view>
  162. </view>
  163. <!-- 分享弹框 end -->
  164. <!-- 微信浏览器分享提示 start-->
  165. <view class="wx_brower_share_mask" v-if="showWeiXinBrowerTip">
  166. <view class="wx_brower_share_top_wrap">
  167. <image :src="img_url+'wx_share_tip.png'" mode="widthFix" @tap="closeShareModel" class="wx_brower_share_img"></image>
  168. </view>
  169. </view>
  170. <!-- 微信浏览器分享提示 end-->
  171. </view>
  172. </view>
  173. </template>
  174. <script>
  175. import uniSwiperDot from "@/components/uni-swiper-dot/uni-swiper-dot.vue";
  176. export default{
  177. data(){
  178. return{
  179. img_url:getApp().globalData.imgUrl,
  180. bigDay:'00',
  181. month:'00',
  182. year:'0000',
  183. signInfo:{},
  184. my_points:0,
  185. acState:'',
  186. countDown:{
  187. day:0,
  188. hour:0,
  189. minute:0,
  190. second:0
  191. },
  192. secInterval:'',
  193. isHideMask:true,
  194. signCountTotal:0,
  195. signMutipleDay:[],
  196. current:0,
  197. isWeiXinBrower:false,
  198. share_model:false,
  199. showWeiXinBrowerTip:false,
  200. isReachContiBonus:false,
  201. signRule:false,
  202. firstLoading:true
  203. }
  204. },
  205. created() {
  206. this.initData()
  207. // #ifdef H5
  208. this.isWeiXinBrower = this.$isWeiXinBrower();
  209. // #endif
  210. },
  211. components:{
  212. uniSwiperDot,
  213. },
  214. methods:{
  215. initData(){
  216. uni.showLoading({})
  217. this.getInfo()
  218. this.getUserPoints()
  219. },
  220. goBack(){
  221. const prePage = getCurrentPages()[getCurrentPages().length-2]
  222. if(prePage.route == 'pages/index/index'){
  223. uni.switchTab({
  224. url:'/pages/index/index'
  225. })
  226. }else{
  227. uni.switchTab({
  228. url:'/pages/user/user'
  229. })
  230. }
  231. },
  232. //获取签到信息
  233. getInfo(){
  234. this.firstLoading = true
  235. let params = {
  236. url:'/v3/promotion/front/sign/activity/detail'
  237. }
  238. this.$request(params).then(res=>{
  239. if(res.state==200){
  240. this.firstLoading = false
  241. this.signInfo = res.data
  242. uni.hideLoading()
  243. this.countDay()
  244. this.openTime()
  245. }else if(res.state==255){
  246. this.$api.msg(res.msg)
  247. }
  248. })
  249. },
  250. //获取用户积分
  251. getUserPoints(){
  252. let param = {}
  253. param.url = 'v3/member/front/integralLog/getMemberIntegral'
  254. param.method = 'GET'
  255. this.$request(param).then(res=>{
  256. if(res.state == 200){
  257. this.my_points = res.data.memberIntegral
  258. }
  259. })
  260. },
  261. //处理距离活动开始时间|距离活动结束时间
  262. openTime(){
  263. let now= new Date()
  264. let start = new Date(this.signInfo.startTime.replace(/-/g, '/'))
  265. let end = new Date(this.signInfo.endTime.replace(/-/g, '/'))
  266. if(now<start){
  267. this.acState = 0
  268. }else if(now>start&&now<end){
  269. this.acState = 1
  270. let diffTime = (end.getTime() - now.getTime())/1000
  271. this.secInterval = setInterval(()=>{
  272. if(diffTime == 0){
  273. //倒计时结束,清除倒计时
  274. this.getInfo()
  275. clearInterval(this.secInterval);
  276. }else{
  277. diffTime--;
  278. let day = parseInt(diffTime / 60 / 60 / 24);
  279. let hours = parseInt(diffTime / 60 / 60 % 24);
  280. let minutes = parseInt(diffTime / 60 % 60);
  281. let seconds = parseInt(diffTime % 60);
  282. this.countDown.day = day
  283. this.countDown.hour = hours
  284. this.countDown.minute = minutes
  285. this.countDown.second = seconds
  286. }
  287. },1000)
  288. }else if(now>end){
  289. this.acState = 2
  290. }
  291. },
  292. //处理签到天数
  293. countDay(){
  294. let {continueNum,integralPerSign,memberSignInfoList} = this.signInfo
  295. let now = new Date()
  296. let nowIdx = 0
  297. let contiSignCount = 0
  298. //在数组中找到当天的下标
  299. this.signContiDay = new Array(this.signInfo.memberSignInfoList.length).fill({day:0,isSignIn:0})
  300. this.signInfo.memberSignInfoList.some((i,index)=>{
  301. let day = new Date(i.date.replace(/-/g, '/'))
  302. if(day.getFullYear()==now.getFullYear()&&day.getMonth()==now.getMonth()&&day.getDate()==now.getDate()){
  303. nowIdx = index
  304. return false
  305. }
  306. })
  307. //如果有连续签到奖励,则计算当天之前连续签到几天
  308. if(continueNum>0){
  309. for(let i = nowIdx;i>=0;i--){
  310. if(this.signInfo.memberSignInfoList[i].signRecordState==2){
  311. contiSignCount++
  312. continue
  313. }else{
  314. break
  315. }
  316. }
  317. //如果连续签到达到要求的天数则--
  318. if(contiSignCount==continueNum){
  319. this.isReachContiBonus = true
  320. }else if(contiSignCount>continueNum){ //如果已经完成连续签到,下一次签到重新开始算
  321. contiSignCount = contiSignCount - continueNum
  322. this.isReachContiBonus = false
  323. }
  324. this.signCountTotal = contiSignCount
  325. }
  326. // 如果活动天数大于8天,则另外处理(大于8天,则需要用swiper滑动展示)
  327. if(memberSignInfoList.length>8){
  328. this.current = nowIdx<8?0:(nowIdx+1)/8 //根据现在时间决定swiper的current
  329. console.log(this.current,'llll',nowIdx)
  330. this.formatMutipleDay()
  331. }
  332. },
  333. // 如果活动天数大于8天,则另外处理(大于8天,则需要用swiper滑动展示)
  334. formatMutipleDay(){
  335. let {memberSignInfoList} = this.signInfo
  336. let splt = 8
  337. let multiArr = []
  338. let init = 0
  339. let count = Math.ceil(memberSignInfoList.length/splt)
  340. for(let i = 0;i<count;i++){
  341. multiArr.push(memberSignInfoList.slice(init,init+splt))
  342. init+=splt
  343. }
  344. this.signMutipleDay = multiArr
  345. },
  346. hideMask(){
  347. this.isHideMask = true
  348. },
  349. //去签到
  350. goSign(){
  351. let source = 0
  352. // #ifdef APP-PLUS
  353. if(uni.getSystemInfoSync().platform==='ios'){
  354. source = 4
  355. }else if(uni.getSystemInfoSync().platform==='android'){
  356. source = 3
  357. }
  358. // #endif
  359. //#ifdef H5
  360. source = 2
  361. //#endif
  362. //#ifdef MP-WEIXIN
  363. source = 5
  364. //#endif
  365. let param = {
  366. url:'v3/promotion/front/sign/activity/doSign',
  367. method:'POST',
  368. data:{
  369. source,
  370. signActivityId:this.signInfo.signActivityId
  371. }
  372. }
  373. this.$request(param).then(res=>{
  374. if(res.state==200){
  375. uni.showToast({
  376. title:res.msg,
  377. icon:'none'
  378. })
  379. this.getInfo()
  380. this.getUserPoints()
  381. }else{
  382. uni.showToast({
  383. title:'签到活动已结束',
  384. icon:'none'
  385. })
  386. this.getInfo()
  387. }
  388. })
  389. },
  390. goShare(){
  391. // #ifdef H5
  392. if(this.isWeiXinBrower){
  393. this.share_model = true
  394. }else{
  395. this.showWeiXinBrowerTip = true
  396. }
  397. // #endif
  398. // #ifdef MP-WEIXIN || APP-PLUS
  399. this.share_model = true
  400. // #endif
  401. },
  402. sldShareBrower() {
  403. this.showWeiXinBrowerTip = true;
  404. this.share_model = false;
  405. },
  406. sldShare: function(type, scene) {
  407. let shareData = {};
  408. if (type == 0) {
  409. shareData.href = getApp().globalData.apiUrl + '/standard/signIn/signIn';
  410. shareData.title = this.signInfo.shareTitle;
  411. shareData.summary = this.signInfo.shareDesc;
  412. shareData.imageUrl =this.signInfo.shareImgUrl;
  413. } else if (type == 2) {
  414. shareData.imageUrl = '';
  415. }
  416. this.$weiXinAppShare(type, scene, shareData);
  417. this.closeShareModel(); //关闭分享
  418. },
  419. closeShareModel() {
  420. this.share_model = false;
  421. this.showWeiXinBrowerTip = false;
  422. this.poster = false;
  423. },
  424. }
  425. }
  426. </script>
  427. <style lang="scss">
  428. page{
  429. }
  430. .main_content2{
  431. width: 750rpx;
  432. margin: 0 auto;
  433. background-repeat: no-repeat;
  434. background-position: center center;
  435. background-size: 100% 100%;
  436. position: relative;
  437. height: 100vh;
  438. .top_bar {
  439. width: 750rpx;
  440. // height: 178rpx;
  441. padding-top: 42rpx;
  442. /* #ifdef APP-PLUS||MP-WEIXIN */
  443. padding-top: calc(var(--status-bar-height) + 42rpx);
  444. /* #endif */
  445. padding-right: 20rpx;
  446. width: 750rpx;
  447. z-index: 50;
  448. .top_header {
  449. display: flex;
  450. align-items: center;
  451. justify-content: space-between;
  452. .top_header_left {
  453. padding-left: 20rpx;
  454. image {
  455. width: 17rpx;
  456. height: 29rpx;
  457. }
  458. }
  459. .top_header_cen {
  460. margin: 0 50rpx;
  461. font-size: 36rpx;
  462. font-family: PingFang SC;
  463. color: #FFFFFF;
  464. }
  465. .top_white_space {
  466. width: 30rpx;
  467. height: 29rpx;
  468. padding-right: 20rpx;
  469. }
  470. }
  471. .top_category {
  472. margin-top: 40rpx;
  473. .cate_wrap {
  474. display: -webkit-box;
  475. align-items: center;
  476. overflow-x: scroll;
  477. .category_item {
  478. color: #FFFFFF;
  479. padding: 0 20rpx;
  480. margin-left: 20rpx;
  481. height: 54rpx;
  482. &.boWhite {
  483. border-bottom: 4rpx solid #fff;
  484. }
  485. }
  486. }
  487. }
  488. }
  489. .mid_banner{
  490. padding: 24rpx;
  491. .banner_tip{
  492. margin-top: 20rpx;
  493. width: 100%;
  494. position: relative;
  495. height: 69rpx;
  496. .s_sign_tip{
  497. position: absolute;
  498. top: 0;
  499. right: -24rpx;
  500. width: 189rpx;
  501. height: 69rpx;
  502. background: rgba(0,0,0,0.1);
  503. border-bottom-left-radius: 35rpx;
  504. border-top-left-radius: 35rpx;
  505. display: flex;
  506. justify-content: center;
  507. align-items: center;
  508. text{
  509. font-size: 30rpx;
  510. font-family: PingFang;
  511. font-weight: bold;
  512. color: #fff;
  513. opacity: 0.9;
  514. }
  515. image{
  516. width:37rpx;
  517. height:34rpx;
  518. margin-right: 10rpx;
  519. }
  520. }
  521. }
  522. .banner_b_title{
  523. margin-top:26rpx;
  524. text-align: center;
  525. text{
  526. font-size: 98rpx;
  527. font-family: SourceHanSerifCN;
  528. font-weight: 800;
  529. color: #FFFFFF;
  530. text-shadow: #FF771E 2rpx 12rpx 2rpx;
  531. }
  532. }
  533. .banner_s_title{
  534. margin-top: 30rpx;
  535. display: flex;
  536. align-items: center;
  537. image{
  538. width:178rpx;
  539. height:10rpx
  540. }
  541. text{
  542. font-size: 26rpx;
  543. font-family: SourceHanSansCN;
  544. font-weight: 500;
  545. color: #FFFFFF;
  546. margin: 0 10rpx;
  547. }
  548. }
  549. .banner_time{
  550. margin-top: 36rpx;
  551. color: #fff;
  552. .banner_time_tip{
  553. font-size: 26rpx;
  554. font-family: PingFang;
  555. font-weight: bold;
  556. text-align: center;
  557. }
  558. .banner_time_count{
  559. margin-top: 10rpx;
  560. font-size: 44rpx;
  561. font-family: PingFang;
  562. text-align: center;
  563. font-weight: bold;
  564. text{
  565. font-size: 28rpx;
  566. }
  567. }
  568. }
  569. }
  570. .sign_ac_con{
  571. padding: 42rpx 24rpx 0;
  572. margin: 0 auto;
  573. width: 700rpx;
  574. height: 720rpx;
  575. background: #FFFFFF;
  576. box-shadow: 0px 10rpx 26rpx 0px rgba(255, 130, 25, 0.18);
  577. border-radius: 20rpx;
  578. position: relative;
  579. .ac_con_top{
  580. .cur_int{
  581. text-align: center;
  582. font-size: 36rpx;
  583. font-family: PingFang;
  584. font-weight: 500;
  585. color: #2D2D2D;
  586. text{
  587. color: #FF8118;
  588. }
  589. }
  590. .cur_int_tip{
  591. margin-top: 27rpx;
  592. font-size: 26rpx;
  593. font-family: PingFang;
  594. font-weight: bold;
  595. color: #000000;
  596. opacity: 0.3;
  597. text-align: center;
  598. }
  599. }
  600. .ac_con_bottom{
  601. margin-top: 30rpx;
  602. height: 500rpx;
  603. display: flex;
  604. flex-direction: column;
  605. justify-content: center;
  606. align-items: center;
  607. }
  608. .sign_ac_day{
  609. width: 100%;
  610. .sign_ac_day_line1{
  611. display: flex;
  612. flex-wrap: wrap;
  613. justify-content: space-around;
  614. margin-bottom: 20rpx;
  615. }
  616. .day_bonus_img{
  617. display: flex;
  618. flex-direction: column;
  619. align-items: center;
  620. image{
  621. width: 90rpx;
  622. height: 90rpx;
  623. }
  624. text{
  625. margin-top: 10rpx;
  626. font-size: 24rpx;
  627. font-family: PingFang;
  628. font-weight: 500;
  629. color: #333333;
  630. }
  631. }
  632. }
  633. .sign_ac_but{
  634. width: 580rpx;
  635. height: 80rpx;
  636. white-space: pre-wrap;
  637. border-radius: 40rpx;
  638. text-align: center;
  639. line-height: 80rpx;
  640. font-size: 34rpx;
  641. font-family: PingFang;
  642. font-weight: 500;
  643. color: #FFFFFF;
  644. margin: 20rpx auto 0;
  645. &.sign_on{
  646. background: #FF6F1A;
  647. box-shadow: 0px 6rpx 30rpx 0px rgba(170, 170, 170, 0.18);
  648. }
  649. &.sign_off{
  650. background: #999999;
  651. }
  652. &.sign_al{
  653. border: 1px solid #F65A0E;
  654. box-shadow: 0px 3px 15px 0px rgba(170, 170, 170, 0.18);
  655. color: #F65A0E;
  656. }
  657. }
  658. .sign_fini{
  659. margin: 20rpx;
  660. text-align: center;
  661. font-size: 24rpx;
  662. font-family: PingFang;
  663. font-weight: 500;
  664. color: #FF6F1A;
  665. }
  666. .signAc_off{
  667. position: relative;
  668. top: 20%;
  669. text-align: center;
  670. font-size: 60rpx;
  671. color: #FF6F1A;
  672. }
  673. .signAc_off_but{
  674. position: relative;
  675. top: 60%;
  676. width: 580rpx;
  677. height: 80rpx;
  678. white-space: pre-wrap;
  679. border-radius: 40rpx;
  680. text-align: center;
  681. line-height: 80rpx;
  682. font-size: 34rpx;
  683. background: #FF6F1A;
  684. margin: auto;
  685. color: #fff;
  686. }
  687. }
  688. .sign_ac_bottom{
  689. position: relative;
  690. width: 750rpx;
  691. margin-top: -100rpx;
  692. // bottom: -106rpx;
  693. height: 230rpx;
  694. background-repeat: no-repeat;
  695. background-size: 100% 100%;
  696. background-position: center center;
  697. .share_con{
  698. position: absolute;
  699. bottom: 34rpx;
  700. right: 42rpx;
  701. .share_con_top{
  702. display: flex;
  703. align-items: center;
  704. text{
  705. font-size: 56rpx;
  706. font-style: italic;
  707. font-weight: bold;
  708. color: #fff;
  709. text-shadow: #FF771E 4rpx 0rpx 6rpx;
  710. margin-right: 20rpx;
  711. letter-spacing:6rpx
  712. }
  713. .share_but{
  714. width: 130rpx;
  715. height: 40rpx;
  716. background: #FFFFFF;
  717. border-radius: 20rpx;
  718. display: flex;
  719. align-items: center;
  720. justify-content: space-evenly;
  721. font-size: 28rpx;
  722. font-family: PingFang;
  723. font-weight: 500;
  724. color: #FF8016;
  725. image{
  726. width: 30rpx;
  727. height: 24rpx;
  728. }
  729. }
  730. }
  731. &>text{
  732. font-size: 24rpx;
  733. font-family: SourceHanSansCN;
  734. font-weight: 400;
  735. color: rgba(255, 255, 255, 0.8);
  736. }
  737. }
  738. }
  739. }
  740. .popMask{
  741. width: 750rpx;
  742. height: calc(100vh + 210rpx - 106rpx);
  743. margin: 0 auto;
  744. position: absolute;
  745. background: rgba(0, 0, 0, 0.4);
  746. top: 0;
  747. left: 0;
  748. z-index: 10;
  749. .sign_rule{
  750. width: 600rpx;
  751. height: 760rpx;
  752. background: #FFFFFF;
  753. box-shadow: 0px 0px 27rpx 6rpx rgba(85, 85, 85, 0.3);
  754. border-radius: 20rpx;
  755. margin: 40% auto 0;
  756. padding-top: 36rpx;
  757. padding-left: 36rpx;
  758. padding-right: 36rpx;
  759. position: relative;
  760. .sign_rule_title{
  761. text-align: center;
  762. font-size: 36rpx;
  763. font-family: PingFang;
  764. font-weight: 500;
  765. color: #FF7C19;
  766. }
  767. .sign_rule_one{
  768. margin-top: 38rpx;
  769. display: flex;
  770. align-items: center;
  771. text{
  772. font-size: 28rpx;
  773. font-family: PingFang;
  774. font-weight: 500;
  775. color: #FF7C19;
  776. }
  777. image{
  778. margin-right: 10rpx;
  779. width:39rpx;
  780. height:35rpx;
  781. }
  782. }
  783. .sign_rule_one_text{
  784. margin-top: 21rpx;
  785. font-size: 24rpx;
  786. font-family: PingFang;
  787. font-weight: 400;
  788. color: #333333;
  789. line-height: 44rpx;
  790. word-break: break-all;
  791. }
  792. .sign_but_rule{
  793. width: 320rpx;
  794. height: 80rpx;
  795. background: #FF7C19;
  796. border-radius: 40rpx;
  797. line-height: 80rpx;
  798. text-align: center;
  799. color: #fff;
  800. // position: absolute;
  801. margin: 30rpx auto;
  802. }
  803. .sign_but_rule_already{
  804. width: 320rpx;
  805. height: 80rpx;
  806. border: 2rpx solid #FF7C19;
  807. color: #FF7C19;
  808. line-height: 80rpx;
  809. text-align: center;
  810. margin: 30rpx auto;
  811. border-radius: 40rpx;
  812. }
  813. }
  814. .sign_ac_off{
  815. width:600rpx;
  816. height:740rpx;
  817. }
  818. }
  819. .swiper-box{
  820. height: 330rpx;
  821. }
  822. .opa_class{
  823. opacity: 0.5;
  824. }
  825. .share_model {
  826. width: 750rpx;
  827. height: 100%;
  828. position: fixed;
  829. top: 0;
  830. left: 0;
  831. right: 0;
  832. margin: 0 auto;
  833. background: rgba(0, 0, 0, 0.6);
  834. z-index: 100;
  835. }
  836. .share_model_list {
  837. display: flex;
  838. justify-content: space-around;
  839. padding: 0 50rpx;
  840. box-sizing: border-box;
  841. position: fixed;
  842. bottom: 150rpx;
  843. z-index: 110;
  844. width: 750rpx;
  845. .share_model_pre {
  846. display: flex;
  847. flex-direction: column;
  848. align-items: center;
  849. background: transparent;
  850. border-radius: 0;
  851. height: auto;
  852. line-height: auto;
  853. &::after {
  854. border-width: 0;
  855. }
  856. image {
  857. width: 105rpx;
  858. height: 105rpx;
  859. }
  860. text {
  861. font-size: 24rpx;
  862. font-family: PingFang SC;
  863. font-weight: 500;
  864. color: #FFFFFF;
  865. line-height: 36rpx;
  866. margin-top: 30rpx;
  867. }
  868. }
  869. }
  870. .share_model_close {
  871. width: 46rpx;
  872. height: 46rpx;
  873. bottom: 60rpx;
  874. position: fixed;
  875. z-index: 110;
  876. left: 0;
  877. right: 0;
  878. margin: 0 auto;
  879. image {
  880. width: 46rpx;
  881. height: 46rpx;
  882. }
  883. }
  884. /* 微信浏览器分享提示 start */
  885. .wx_brower_share_mask {
  886. width: 750rpx;
  887. height: 100vh;
  888. background-color: rgba(0, 0, 0, 0.45);
  889. position: fixed;
  890. z-index: 99999;
  891. top: 0;
  892. }
  893. .wx_brower_share_top_wrap {
  894. width: 100%;
  895. height: 100%;
  896. display: flex;
  897. justify-content: flex-end;
  898. align-items: flex-start;
  899. margin-top: 150rpx;
  900. }
  901. .wx_brower_share_top_wrap .wx_brower_share_img {
  902. width: 450rpx;
  903. height: 150rpx;
  904. margin-right: 80rpx;
  905. }
  906. .share_h5 {
  907. width: 100% !important;
  908. height: 100% !important
  909. }
  910. uni-image>img{
  911. opacity: unset;
  912. object-fit: contain;
  913. }
  914. .share_h5_operate_img {
  915. width: 440rpx !important;
  916. height: 120rpx !important;
  917. }
  918. .share_h5_close_img {
  919. width: 50rpx !important;
  920. height: 50rpx !important;
  921. }
  922. .share_h5_img_bottom {
  923. width: 50rpx !important;
  924. height: 200rpx !important;
  925. }
  926. /* 微信浏览器分享提示 end */
  927. </style>