home.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. <template>
  2. <view class="tabPage" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <u-navbar bgColor="transparent">
  4. <view class="u-nav-slot" slot="left" style="display: flex;background-color: transparent;">
  5. <image :src="imgBase+'home_logo.png'" style="width: 375rpx;height: 54rpx;margin-left: 12rpx;"></image>
  6. </view>
  7. </u-navbar>
  8. <image class="topbg" :src="imgBase+'home_top_bg.png'" mode="widthFix"></image>
  9. <view class="lunbo">
  10. <u-swiper
  11. :list="bannarList"
  12. @change="e => current = e.current"
  13. @click="bannerClick"
  14. :autoplay="true"
  15. :interval="2000"
  16. :duration="200"
  17. :circular="true"
  18. imgMode="scaleToFill"
  19. height="368rpx"
  20. >
  21. <template #indicator>
  22. <view class="indicator adf">
  23. <view class="indicator__dot" v-for="(item, index) in bannarList" :key="index"
  24. :class="[index === current && 'indicator__dot--active']">
  25. </view>
  26. </view>
  27. </template>
  28. </u-swiper>
  29. </view>
  30. <view class="preill adfacjb">
  31. <view class="preill-box" @click="toTurn('/pagesHome/questionnaire?type=receive')">
  32. <view class="preill-box-title">我的PERILL评估:<span>{{perillPJ.sum||0}}</span></view>
  33. <view class="preill-box-state adfacjb">
  34. <view class="preill-box-state-pre adfac grey">我收到:<span>{{perillPJ.received||0}}</span></view>
  35. <view class="preill-box-state-pre adfac yellow">我创建:<span>{{perillPJ.created||0}}</span></view>
  36. </view>
  37. <view class="preill-box-progress">
  38. <view class="preill-box-progress-current pbp-yellow" :style="{'width':((perillPJ.received||0)/(perillPJ.sum||9999)*100)+'%'}"></view>
  39. </view>
  40. </view>
  41. <view class="preill-box" @click="toTurn('/pagesHome/report')">
  42. <view class="preill-box-title">我的PREILL报告:<span>{{perillBG.sum||0}}</span></view>
  43. <view class="preill-box-state adfacjb">
  44. <view class="preill-box-state-pre adfac green">我收到:<span>{{perillBG.received||0}}</span></view>
  45. <!-- <view class="preill-box-state-pre adfac grey">我发送:<span>{{perillBG.sent||0}}</span></view> -->
  46. <view class="preill-box-state-pre adfac grey">我生成:<span>{{perillBG.generated||0}}</span></view>
  47. </view>
  48. <view class="preill-box-progress">
  49. <view class="preill-box-progress-current pbp-green" :style="{'width':((perillBG.received||0)/(perillBG.sum||9999)*100)+'%'}"></view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="boxs adfacjb">
  54. <!-- <view class="boxs-pre bp1" @click="toTurn('/pages/dialog')"> -->
  55. <view class="boxs-pre bp1" @click="testShow=true">
  56. <view class="boxs-pre-title">AI教练对话</view>
  57. <!-- <view class="boxs-pre-tip adfac">点击开始<image :src="imgBase+'home_arrow_right.png'"></image></view> -->
  58. <view class="boxs-pre-tip adfac">即将上线,敬请期待</view>
  59. </view>
  60. <view class="boxs-pre bp2" @click="toTurn('/pagesHome/weixin')">
  61. <view class="boxs-pre-title">专业支持</view>
  62. <view class="boxs-pre-tip adfac">添加客服微信预约<image :src="imgBase+'home_arrow_right.png'"></image></view>
  63. </view>
  64. </view>
  65. <view class="common">
  66. <view class="common-title">常用功能</view>
  67. <view class="common-menu adf">
  68. <view class="common-menu-pre adffcac" @click="openHtml('PERILL团队发展动态评估系统介绍.html')">
  69. <image :src="imgBase+'home_img_pinggu.png'"></image>
  70. <text>PERILL倍力团队六维评估介绍</text>
  71. </view>
  72. <view class="common-menu-pre adffcac" @click="openHtml('PERILL团队发展动态评估系统使用说明.html')">
  73. <image :src="imgBase+'home_img_baogao.png'"></image>
  74. <text>PERILL倍力团队六维评估说明</text>
  75. </view>
  76. <view class="common-menu-pre adffcac" @click="toTurn('/pagesHome/questionnaire?type=create')">
  77. <image :src="imgBase+'home_img_guanli.png'"></image>
  78. <text>问卷管理</text>
  79. </view>
  80. <view class="common-menu-pre adffcac" @click="openHtml('PERILL常见问题与支持.html')">
  81. <image :src="imgBase+'home_img_qywx.png'" style="width: 74rpx;"></image>
  82. <text>常见问题与支持</text>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="new-user-free adffcacjc" v-if="newUserFreeShow">
  87. <view class="new-user-free-box1">
  88. <view class="new-user-free-box1-text">PERILL评估</view>
  89. <view class="new-user-free-box1-text" style="margin-top: 8rpx;">个人版免费体验1次</view>
  90. </view>
  91. <view class="new-user-free-box2 adffcac">
  92. <view class="new-user-free-box2-price adfacjb">
  93. <view class="new-user-free-box2-price-left adffc">
  94. <view class="new-user-free-box2-price-left-title">仅限个人创建使用</view>
  95. <view class="new-user-free-box2-price-left-tip">领取后1年内有效</view>
  96. </view>
  97. <view class="new-user-free-box2-price-right adffcac">
  98. <view class="new-user-free-box2-price-right-top">1次</view>
  99. <view class="new-user-free-box2-price-right-bottom">原价699/次</view>
  100. </view>
  101. </view>
  102. <view class="new-user-free-box2-btn" @click="handleFree">免费体验</view>
  103. </view>
  104. <image class="new-user-free-close" :src="imgBase+'new_free_close.png'" @click="newUserFreeShow=false"></image>
  105. </view>
  106. <view class="kind-reminder adffcacjc" v-if="teamKindShow">
  107. <view class="kr-box adffcac">
  108. <image :src="imgBase+'remind_close.png'" @click="teamKindShow=false"></image>
  109. <view class="kr-title">温馨提示</view>
  110. <view class="kr-p" style="margin-top: 32rpx;">{{teamKindMsg}}</view>
  111. <view class="kr-btn" @click="teamKindShow=false">我知道了</view>
  112. </view>
  113. </view>
  114. <view class="kind-reminder adffcacjc" v-if="questionnaireKindShow">
  115. <view class="kr-box adffcac">
  116. <image :src="imgBase+'remind_close.png'" @click="questionnaireKindShow=false"></image>
  117. <view class="kr-title">温馨提示</view>
  118. <view class="kr-p" style="margin-top: 32rpx;">你有一份<span>“PERILL倍力团队六维评估(团队版)”</span>问卷待完成,请及时作答,</view>
  119. <view class="kr-p">以便我们为您提供精准分析。</view>
  120. <view class="kr-btn" @click="handleToFill">去填写</view>
  121. </view>
  122. </view>
  123. <view class="kind-reminder adffcacjc" v-if="testShow">
  124. <view class="kr-box adffcac">
  125. <view class="kr-title">温馨提示</view>
  126. <view class="kr-p" style="margin-top: 54rpx;">功能测试中,即将上线,敬请期待!</view>
  127. <view class="kr-btn" @click="testShow=false">确定</view>
  128. </view>
  129. </view>
  130. <Tabbar :tabbarIndex="0"></Tabbar>
  131. </view>
  132. </template>
  133. <script>
  134. import Tabbar from '@/components/CusTabbar/index.vue'
  135. import { resolveHomeBannerAction } from '@/utils/homeBannerAction.js'
  136. export default {
  137. components:{ Tabbar },
  138. data(){
  139. return {
  140. current:0,
  141. perillPJ:null,
  142. perillBG:null,
  143. defaultBanner:this.$imgBase+'home_lb.png',
  144. bannerOrigin:[],
  145. bannarList:[],
  146. newUserFreeShow:false,
  147. teamKindShow:false,
  148. teamKindMsg:'',
  149. questionnaireKindShow:false,
  150. testShow:false
  151. }
  152. },
  153. onLoad(options) {
  154. this.getBannerList();
  155. if(options.q){
  156. try{
  157. const decodedUrl = decodeURIComponent(options.q);
  158. const codeMatch = decodedUrl.match(/type=([^&]+)/);
  159. const codeMatchId = decodedUrl.match(/shareUserId=([^&]+)/);
  160. const stationCode = codeMatch ? codeMatch[1] : null;
  161. const stationCodeId = codeMatchId ? codeMatchId[1] : null;
  162. if(stationCode) uni.setStorageSync('channelType',stationCode)
  163. if(stationCodeId){
  164. uni.setStorageSync('shareUserId',stationCodeId)
  165. uni.setStorageSync('channelType','Forward')
  166. }
  167. }catch(e){
  168. console.log(e,'e');
  169. }
  170. }
  171. if(options.shareType) uni.setStorageSync('channelType',options.shareType)
  172. if(options.shareUserId) uni.setStorageSync('shareUserId',options.shareUserId)
  173. if(options.shareTQId) uni.setStorageSync('shareTQId',options.shareTQId)
  174. if(options.shareTQId||uni.getStorageSync('shareTQId')){
  175. // if(uni.getStorageSync('userInfo')&&uni.getStorageSync('shareUserId')==JSON.parse(uni.getStorageSync('userInfo')).id) return
  176. // 邀请进来的并且已经登录的
  177. if(uni.getStorageSync('userInfo')){
  178. this.$api.get('/wx/queShareCheck',{
  179. channelType:uni.getStorageSync('channelType')||'',
  180. phone:JSON.parse(uni.getStorageSync('userInfo')).mobile||'',
  181. referrerId:uni.getStorageSync('shareUserId')||'',
  182. teamQuestionnaireId:uni.getStorageSync('shareTQId')||'',
  183. }).then(({data:res})=>{
  184. if(res.code!==0){
  185. this.teamKindMsg = res.msg||'';
  186. this.teamKindShow = true;
  187. }else if(res.code===0&&res.data==1) this.questionnaireKindShow = true;
  188. })
  189. }
  190. }
  191. if(uni.getStorageSync('token')){
  192. this.getPerillPJ();
  193. this.getPerillBG();
  194. }
  195. if(uni.getStorageSync('newUser')) this.newUserFreeShow = true;
  196. },
  197. methods:{
  198. openHtml(filename){
  199. uni.navigateTo({
  200. url:'/pages/webView?src='+encodeURIComponent(this.$htmlUrl(filename))
  201. })
  202. },
  203. getBannerList(){
  204. //space 广告位置: 1首页 2发布问卷
  205. //type 类型: 1 banner区 2弹框
  206. this.$api.get('/core/advertisement/manage/page',{
  207. space:1,
  208. type:1
  209. }).then(({data:res})=>{
  210. if(res.code!==0) return this.$showToast(res.msg)
  211. if(res.data&&res.data.length){
  212. const list = res.data.filter(l=>l.enable==1);
  213. this.bannerOrigin = list;
  214. this.bannarList = list.map(d=>d.fileUrl);
  215. } else this.bannarList = [this.defaultBanner]
  216. })
  217. },
  218. bannerClick(e){
  219. const action = resolveHomeBannerAction(this.bannerOrigin[e])
  220. if(!action) return
  221. if(action.type==='html') return this.openHtml(action.filename)
  222. if(action.type==='web') return uni.navigateTo({
  223. url:'/pages/webView?src='+action.url
  224. })
  225. if(action.type==='miniProgram') return uni.navigateToMiniProgram({
  226. appId:action.appId
  227. })
  228. },
  229. toTurn(url){
  230. if(!url) return
  231. const notloginurls = ['/pages/dialog','/pagesHome/weixin',];
  232. if(!notloginurls.includes(url)&&!this.isLogin()) return
  233. uni.navigateTo({
  234. url
  235. })
  236. },
  237. getPerillPJ(){
  238. this.$api.get('/core/teammember/que/questionnaireStats').then(res=>{
  239. if(res.data.code!==0) return
  240. const stats = res.data.data||{};
  241. const hasUsableStats = stats.participated !== undefined
  242. && stats.received !== undefined
  243. && stats.created !== undefined
  244. && (Number(stats.participated||0) > 0
  245. || Number(stats.received||0) > 0
  246. || Number(stats.created||0) > 0);
  247. if(hasUsableStats){
  248. this.perillPJ = Object.assign({}, stats, {sum:Number(stats.participated||0)});
  249. return;
  250. }
  251. this.loadPerillStatsFallback();
  252. })
  253. },
  254. loadPerillStatsFallback(){
  255. Promise.all([
  256. this.$api.get('/core/teammember/que/listByUser'),
  257. this.$api.get('/core/teammember/que/personalList',{teamName:''}),
  258. this.$api.get('/core/teammember/que/createList',{teamName:''})
  259. ]).then(([participatedRes, receivedRes, createdRes])=>{
  260. const uniqueTaskCount = response => {
  261. const result = response && response.data && response.data.code===0
  262. ? response.data.data : [];
  263. return new Set((result||[]).map(item =>
  264. item.teamQuestionnaireId || item.team_questionnaire_id || item.id
  265. ).filter(Boolean)).size;
  266. };
  267. const participated = uniqueTaskCount(participatedRes);
  268. this.perillPJ = {
  269. participated,
  270. received:uniqueTaskCount(receivedRes),
  271. created:uniqueTaskCount(createdRes),
  272. sum:participated
  273. };
  274. }).catch(()=>{
  275. this.perillPJ = {participated:0,received:0,created:0,sum:0};
  276. });
  277. },
  278. getPerillBG(){
  279. this.$api.get('/core/report/reportStats').then(res=>{
  280. if(res.data.code!==0) return
  281. this.perillBG = res.data.data||{};
  282. // this.perillBG.sum = (this.perillBG?.received||0)+(this.perillBG?.sent||0);
  283. this.perillBG.sum = (this.perillBG?.received||0)+(this.perillBG?.generated||0);
  284. })
  285. },
  286. getWjList(){
  287. this.$api.get('/core/teammember/que/listByUser').then(res=>{
  288. if(res.data.code!==0) return
  289. this.wjDwc = res.data.data.filter(d=>d.status===0).length;
  290. this.wjYwc = res.data.data.filter(d=>d.status===1).length;
  291. })
  292. },
  293. getReportList(){
  294. this.$api.get('/core/report/member/personalReportList').then(res=>{
  295. if(res.data.code!==0) return
  296. this.reportCount = res.data.data.length;
  297. })
  298. },
  299. handleToFill(){
  300. this.questionnaireKindShow = false;
  301. uni.navigateTo({
  302. url:'/pagesHome/questionnaire?type=receive'
  303. })
  304. },
  305. handleFree(){
  306. uni.reLaunch({
  307. url:'/pages/publish'
  308. })
  309. },
  310. onShareAppMessage() {
  311. const sharerId = uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo'))?.id || '' : '';
  312. return {
  313. title: '致力于帮助企业打造高价值创造团队',
  314. path: `/pages/home?shareUserId=${sharerId}&shareType=Forward`,
  315. imageUrl: this.$imgBase + 'share_fm.png'
  316. };
  317. },
  318. onShareTimeline() {
  319. const sharerId = uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo'))?.id || '' : '';
  320. return {
  321. title: '致力于帮助企业打造高价值创造团队',
  322. query: `shareUserId=${sharerId}&shareType=Forward`,
  323. imageUrl: this.$imgBase + 'share_fm.png'
  324. };
  325. }
  326. }
  327. }
  328. </script>
  329. <style scoped lang="scss">
  330. @import '../static/_asset-config';
  331. ::v-deep .u-swiper{
  332. border-radius: 24rpx !important;
  333. }
  334. ::v-deep .indicator__dot{
  335. width: 10rpx;
  336. height: 10rpx;
  337. background: transparent;
  338. border: 2rpx solid #FFFFFF;
  339. border-radius: 50%;
  340. margin: 0 7rpx;
  341. }
  342. ::v-deep .indicator__dot--active{
  343. width: 10rpx;
  344. height: 10rpx;
  345. background: #FFFFFF;
  346. }
  347. .tabPage{
  348. background: #F7F7F7;
  349. .topbg{
  350. width: 100%;
  351. height: 720rpx;
  352. position: fixed;
  353. top: 0;
  354. left: 0;
  355. right: 0;
  356. }
  357. .lunbo{
  358. width: 100%;
  359. height: 368rpx;
  360. margin-top: 30rpx;
  361. position: relative;
  362. }
  363. .preill{
  364. margin-top: 30rpx;
  365. position: relative;
  366. &-box{
  367. width: calc(50% - 11rpx);
  368. background: #FFFFFF;
  369. border-radius: 24rpx;
  370. padding: 54rpx 24rpx 52rpx;
  371. box-sizing: border-box;
  372. &-title{
  373. font-family: PingFang-SC, PingFang-SC;
  374. font-weight: bold;
  375. font-size: 28rpx;
  376. color: #002846;
  377. line-height: 28rpx;
  378. span{
  379. font-size: 36rpx;
  380. }
  381. }
  382. &-num{
  383. font-family: PingFang-SC, PingFang-SC;
  384. font-weight: 800;
  385. font-size: 40rpx;
  386. color: #002846;
  387. line-height: 40rpx;
  388. margin-top: 24rpx;
  389. }
  390. &-state{
  391. margin-top: 46rpx;
  392. &-pre{
  393. padding-left: 16rpx;
  394. position: relative;
  395. font-family: PingFangSC, PingFang SC;
  396. font-weight: 400;
  397. font-size: 24rpx;
  398. color: #335368;
  399. line-height: 20rpx;
  400. span{
  401. color: #1D2129;
  402. }
  403. &::before{
  404. content: '';
  405. width: 10rpx;
  406. height: 10rpx;
  407. border-radius: 5rpx;
  408. position: absolute;
  409. left: 0;
  410. top: 50%;
  411. margin-top: -5rpx;
  412. }
  413. &.grey{
  414. &::before{
  415. background: #DDE0E6;
  416. }
  417. }
  418. &.yellow{
  419. &::before{
  420. background: #FFD750;
  421. }
  422. }
  423. &.green{
  424. &::before{
  425. background: #31D1D6;
  426. }
  427. }
  428. }
  429. }
  430. &-progress{
  431. margin-top: 24rpx;
  432. width: 100%;
  433. height: 10rpx;
  434. background: #DFE5EE;
  435. border-radius: 5rpx;
  436. position: relative;
  437. &-current{
  438. height: 10rpx;
  439. border-radius: 4rpx;
  440. position: absolute;
  441. left: 0;
  442. top: 0;
  443. }
  444. .pbp-yellow{
  445. background: #FFD750;
  446. }
  447. .pbp-green{
  448. background: #31D1D6;
  449. }
  450. }
  451. }
  452. }
  453. .boxs{
  454. margin-top: 20rpx;
  455. position: relative;
  456. &-pre{
  457. width: calc(50% - 11rpx);
  458. padding: 42rpx 0 0 20rpx;
  459. box-sizing: border-box;
  460. height: 184rpx;
  461. &-title{
  462. font-family: PingFang-SC, PingFang-SC;
  463. font-weight: bold;
  464. font-size: 32rpx;
  465. color: #E0EFEF;
  466. line-height: 45rpx;
  467. }
  468. &-tip{
  469. font-family: PingFangSC, PingFang SC;
  470. font-weight: 400;
  471. font-size: 24rpx;
  472. color: #E0EFEF;
  473. line-height: 33rpx;
  474. margin-top: 16rpx;
  475. image{
  476. width: 26rpx;
  477. height: 26rpx;
  478. margin-left: 12rpx;
  479. }
  480. }
  481. &.bp1{
  482. background: asset-image('home_box_bg1.png') no-repeat;
  483. background-size: 100% 100%;
  484. }
  485. &.bp2{
  486. background: asset-image('home_box_bg2.png') no-repeat;
  487. background-size: 100% 100%;
  488. }
  489. }
  490. }
  491. .common{
  492. margin-top: 20rpx;
  493. background: #FFFFFF;
  494. border-radius: 24rpx;
  495. padding: 40rpx 24rpx 48rpx;
  496. position: relative;
  497. &-title{
  498. font-family: PingFang-SC, PingFang-SC;
  499. font-weight: bold;
  500. font-size: 34rpx;
  501. color: #002846;
  502. line-height: 48rpx;
  503. }
  504. &-menu{
  505. width: calc(100% + 48rpx);
  506. margin-left: -24rpx;
  507. margin-top: 45rpx;
  508. &-pre{
  509. width: calc(100% / 4);
  510. image{
  511. width: 64rpx;
  512. height: 64rpx;
  513. }
  514. text{
  515. font-family: PingFangSC, PingFang SC;
  516. font-weight: 400;
  517. font-size: 22rpx;
  518. color: #193D59;
  519. line-height: 32rpx;
  520. text-align: center;
  521. margin-top: 24rpx;
  522. padding: 0 4rpx;
  523. }
  524. }
  525. }
  526. }
  527. .new-user-free{
  528. position: fixed;
  529. left: 0;
  530. right: 0;
  531. top: 0;
  532. bottom: 0;
  533. background: rgba(0, 0, 0, .6);
  534. z-index: 1000;
  535. &-box1{
  536. width: calc(100% - 180rpx);
  537. height: 280rpx;
  538. background: asset-image('new_free_title.png') no-repeat;
  539. background-size: 100% 100%;
  540. padding-left: 53rpx;
  541. &-text{
  542. font-family: SourceHanSansCN, SourceHanSansCN;
  543. font-weight: bold;
  544. font-size: 36rpx;
  545. color: #874016;
  546. line-height: 54rpx;
  547. margin-top: 140rpx;
  548. }
  549. }
  550. &-box2{
  551. width: calc(100% - 140rpx);
  552. background: #FFFFFF;
  553. border-radius: 24rpx;
  554. padding: 45rpx 25rpx 42rpx;
  555. box-sizing: border-box;
  556. &-price{
  557. width: 100%;
  558. height: 132rpx;
  559. background: asset-image('new_free_price.png') no-repeat;
  560. background-size: 100% 100%;
  561. padding: 27rpx 34rpx 27rpx 30rpx;
  562. box-sizing: border-box;
  563. &-left{
  564. &-title{
  565. font-family: PingFang-SC, PingFang-SC;
  566. font-weight: bold;
  567. font-size: 28rpx;
  568. color: #5E2E11;
  569. line-height: 36rpx;
  570. }
  571. &-tip{
  572. font-family: PingFangSC, PingFang SC;
  573. font-weight: 400;
  574. font-size: 24rpx;
  575. color: #808080;
  576. line-height: 32rpx;
  577. margin-top: 10rpx;
  578. }
  579. }
  580. &-right{
  581. &-top{
  582. font-family: PingFang-SC, PingFang-SC;
  583. font-weight: bold;
  584. font-size: 48rpx;
  585. color: #FF5A09;
  586. line-height: 67rpx;
  587. }
  588. &-bottom{
  589. font-family: PingFangSC, PingFang SC;
  590. font-weight: 400;
  591. font-size: 24rpx;
  592. color: #612D11;
  593. line-height: 33rpx;
  594. margin-top: 3rpx;
  595. text-decoration: line-through;
  596. }
  597. }
  598. }
  599. &-btn{
  600. width: calc(100% - 170rpx);
  601. height: 80rpx;
  602. border-radius: 40rpx;
  603. background: asset-image('new_free_btn.png') no-repeat;
  604. background-size: 100% 100%;
  605. font-family: PingFang-SC, PingFang-SC;
  606. font-weight: bold;
  607. font-size: 32rpx;
  608. color: #5E2E11;
  609. line-height: 80rpx;
  610. text-align: center;
  611. letter-spacing: 2rpx;
  612. margin-top: 38rpx;
  613. }
  614. }
  615. &-close{
  616. width: 64rpx;
  617. height: 64rpx;
  618. margin-top: 48rpx;
  619. }
  620. }
  621. .kind-reminder{
  622. position: fixed;
  623. left: 0;
  624. right: 0;
  625. top: 0;
  626. bottom: 0;
  627. z-index: 1000;
  628. background: rgba(0, 0, 0, .6);
  629. .kr-box{
  630. width: calc(100% - 100rpx);
  631. padding: 54rpx 60rpx 48rpx;
  632. box-sizing: border-box;
  633. background: asset-image('remind_bg.png') no-repeat;
  634. background-size: 100% 100%;
  635. position: relative;
  636. image{
  637. width: 48rpx;
  638. height: 48rpx;
  639. position: absolute;
  640. top: 40rpx;
  641. right: 30rpx;
  642. }
  643. .kr-title{
  644. font-family: PingFang-SC, PingFang-SC;
  645. font-weight: bold;
  646. font-size: 36rpx;
  647. color: #002846;
  648. line-height: 56rpx;
  649. text-align: center;
  650. }
  651. .kr-p{
  652. font-family: PingFangSC, PingFang SC;
  653. font-weight: 400;
  654. font-size: 30rpx;
  655. color: #002846;
  656. line-height: 48rpx;
  657. text-align: center;
  658. span{
  659. font-weight: bold;
  660. margin: 0 10rpx;
  661. }
  662. }
  663. .kr-btn{
  664. width: calc(100% - 80rpx);
  665. height: 88rpx;
  666. background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
  667. border-radius: 44rpx;
  668. font-family: PingFang-SC, PingFang-SC;
  669. font-weight: bold;
  670. font-size: 32rpx;
  671. color: #FFFFFF;
  672. line-height: 88rpx;
  673. text-align: center;
  674. letter-spacing: 2rpx;
  675. margin-top: 66rpx;
  676. }
  677. }
  678. }
  679. }
  680. </style>