home.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  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="toTurn('/pages/perillPgjs')">
  69. <image :src="imgBase+'home_img_pinggu.png'"></image>
  70. <text>PERILL团队发展动态评估介绍</text>
  71. </view>
  72. <view class="common-menu-pre adffcac" @click="toTurn('/pages/perillPgsm')">
  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="toTurn('/pages/support')">
  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. export default {
  136. components:{ Tabbar },
  137. data(){
  138. return {
  139. current:0,
  140. perillPJ:null,
  141. perillBG:null,
  142. defaultBanner:this.$imgBase+'home_lb.png',
  143. bannerOrigin:[],
  144. bannarList:[],
  145. newUserFreeShow:false,
  146. teamKindShow:false,
  147. teamKindMsg:'',
  148. questionnaireKindShow:false,
  149. testShow:false
  150. }
  151. },
  152. onLoad(options) {
  153. this.getBannerList();
  154. if(options.q){
  155. try{
  156. const decodedUrl = decodeURIComponent(options.q);
  157. const codeMatch = decodedUrl.match(/type=([^&]+)/);
  158. const codeMatchId = decodedUrl.match(/shareUserId=([^&]+)/);
  159. const stationCode = codeMatch ? codeMatch[1] : null;
  160. const stationCodeId = codeMatchId ? codeMatchId[1] : null;
  161. if(stationCode) uni.setStorageSync('channelType',stationCode)
  162. if(stationCodeId){
  163. uni.setStorageSync('shareUserId',stationCodeId)
  164. uni.setStorageSync('channelType','Forward')
  165. }
  166. }catch(e){
  167. console.log(e,'e');
  168. }
  169. }
  170. if(options.shareType) uni.setStorageSync('channelType',options.shareType)
  171. if(options.shareUserId) uni.setStorageSync('shareUserId',options.shareUserId)
  172. if(options.shareTQId) uni.setStorageSync('shareTQId',options.shareTQId)
  173. if(options.shareTQId||uni.getStorageSync('shareTQId')){
  174. // if(uni.getStorageSync('userInfo')&&uni.getStorageSync('shareUserId')==JSON.parse(uni.getStorageSync('userInfo')).id) return
  175. // 邀请进来的并且已经登录的
  176. if(uni.getStorageSync('userInfo')){
  177. this.$api.get('/wx/queShareCheck',{
  178. channelType:uni.getStorageSync('channelType')||'',
  179. phone:JSON.parse(uni.getStorageSync('userInfo')).mobile||'',
  180. referrerId:uni.getStorageSync('shareUserId')||'',
  181. teamQuestionnaireId:uni.getStorageSync('shareTQId')||'',
  182. }).then(({data:res})=>{
  183. if(res.code!==0){
  184. this.teamKindMsg = res.msg||'';
  185. this.teamKindShow = true;
  186. }else if(res.code===0&&res.data==1) this.questionnaireKindShow = true;
  187. })
  188. }
  189. }
  190. if(uni.getStorageSync('token')){
  191. this.getPerillPJ();
  192. this.getPerillBG();
  193. }
  194. if(uni.getStorageSync('newUser')) this.newUserFreeShow = true;
  195. },
  196. methods:{
  197. getBannerList(){
  198. //space 广告位置: 1首页 2发布问卷
  199. //type 类型: 1 banner区 2弹框
  200. this.$api.get('/core/advertisement/manage/page',{
  201. space:1,
  202. type:1
  203. }).then(({data:res})=>{
  204. if(res.code!==0) return this.$showToast(res.msg)
  205. if(res.data&&res.data.length){
  206. const list = res.data.filter(l=>l.enable==1);
  207. this.bannerOrigin = list;
  208. this.bannarList = list.map(d=>d.fileUrl);
  209. } else this.bannarList = [this.defaultBanner]
  210. })
  211. },
  212. bannerClick(e){
  213. let banner = this.bannerOrigin[e];
  214. if(banner&&banner?.redirect){
  215. if(banner?.redirectType==1){//微信公众号
  216. uni.navigateTo({
  217. url:'/pages/webView?src='+banner?.redirect
  218. })
  219. }else if(banner?.redirectType==2){//微信小程序
  220. uni.navigateToMiniProgram({
  221. appId:banner?.redirect
  222. })
  223. }
  224. }
  225. },
  226. toTurn(url){
  227. if(!url) return
  228. const notloginurls = ['/pages/dialog','/pages/support','/pagesHome/weixin','perillPgjs','perillPgsm'];
  229. if(!notloginurls.includes(url)&&!this.isLogin()) return
  230. uni.navigateTo({
  231. url
  232. })
  233. },
  234. getPerillPJ(){
  235. this.$api.get('/core/teammember/que/questionnaireStats').then(res=>{
  236. if(res.data.code!==0) return
  237. const stats = res.data.data||{};
  238. const hasUsableStats = stats.participated !== undefined
  239. && stats.received !== undefined
  240. && stats.created !== undefined
  241. && (Number(stats.participated||0) > 0
  242. || Number(stats.received||0) > 0
  243. || Number(stats.created||0) > 0);
  244. if(hasUsableStats){
  245. this.perillPJ = Object.assign({}, stats, {sum:Number(stats.participated||0)});
  246. return;
  247. }
  248. this.loadPerillStatsFallback();
  249. })
  250. },
  251. loadPerillStatsFallback(){
  252. Promise.all([
  253. this.$api.get('/core/teammember/que/listByUser'),
  254. this.$api.get('/core/teammember/que/personalList',{teamName:''}),
  255. this.$api.get('/core/teammember/que/createList',{teamName:''})
  256. ]).then(([participatedRes, receivedRes, createdRes])=>{
  257. const uniqueTaskCount = response => {
  258. const result = response && response.data && response.data.code===0
  259. ? response.data.data : [];
  260. return new Set((result||[]).map(item =>
  261. item.teamQuestionnaireId || item.team_questionnaire_id || item.id
  262. ).filter(Boolean)).size;
  263. };
  264. const participated = uniqueTaskCount(participatedRes);
  265. this.perillPJ = {
  266. participated,
  267. received:uniqueTaskCount(receivedRes),
  268. created:uniqueTaskCount(createdRes),
  269. sum:participated
  270. };
  271. }).catch(()=>{
  272. this.perillPJ = {participated:0,received:0,created:0,sum:0};
  273. });
  274. },
  275. getPerillBG(){
  276. this.$api.get('/core/report/reportStats').then(res=>{
  277. if(res.data.code!==0) return
  278. this.perillBG = res.data.data||{};
  279. // this.perillBG.sum = (this.perillBG?.received||0)+(this.perillBG?.sent||0);
  280. this.perillBG.sum = (this.perillBG?.received||0)+(this.perillBG?.generated||0);
  281. })
  282. },
  283. getWjList(){
  284. this.$api.get('/core/teammember/que/listByUser').then(res=>{
  285. if(res.data.code!==0) return
  286. this.wjDwc = res.data.data.filter(d=>d.status===0).length;
  287. this.wjYwc = res.data.data.filter(d=>d.status===1).length;
  288. })
  289. },
  290. getReportList(){
  291. this.$api.get('/core/report/member/personalReportList').then(res=>{
  292. if(res.data.code!==0) return
  293. this.reportCount = res.data.data.length;
  294. })
  295. },
  296. handleToFill(){
  297. this.questionnaireKindShow = false;
  298. uni.navigateTo({
  299. url:'/pagesHome/questionnaire?type=receive'
  300. })
  301. },
  302. handleFree(){
  303. uni.reLaunch({
  304. url:'/pages/publish'
  305. })
  306. },
  307. onShareAppMessage() {
  308. const sharerId = uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo'))?.id || '' : '';
  309. return {
  310. title: '致力于帮助企业打造高价值创造团队',
  311. path: `/pages/home?shareUserId=${sharerId}&shareType=Forward`,
  312. imageUrl: this.$imgBase + 'share_fm.png'
  313. };
  314. },
  315. onShareTimeline() {
  316. const sharerId = uni.getStorageSync('userInfo') ? JSON.parse(uni.getStorageSync('userInfo'))?.id || '' : '';
  317. return {
  318. title: '致力于帮助企业打造高价值创造团队',
  319. query: `shareUserId=${sharerId}&shareType=Forward`,
  320. imageUrl: this.$imgBase + 'share_fm.png'
  321. };
  322. }
  323. }
  324. }
  325. </script>
  326. <style scoped lang="scss">
  327. ::v-deep .u-swiper{
  328. border-radius: 24rpx !important;
  329. }
  330. ::v-deep .indicator__dot{
  331. width: 10rpx;
  332. height: 10rpx;
  333. background: transparent;
  334. border: 2rpx solid #FFFFFF;
  335. border-radius: 50%;
  336. margin: 0 7rpx;
  337. }
  338. ::v-deep .indicator__dot--active{
  339. width: 10rpx;
  340. height: 10rpx;
  341. background: #FFFFFF;
  342. }
  343. .tabPage{
  344. background: #F7F7F7;
  345. .topbg{
  346. width: 100%;
  347. height: 720rpx;
  348. position: fixed;
  349. top: 0;
  350. left: 0;
  351. right: 0;
  352. }
  353. .lunbo{
  354. width: 100%;
  355. height: 368rpx;
  356. margin-top: 30rpx;
  357. position: relative;
  358. }
  359. .preill{
  360. margin-top: 30rpx;
  361. position: relative;
  362. &-box{
  363. width: calc(50% - 11rpx);
  364. background: #FFFFFF;
  365. border-radius: 24rpx;
  366. padding: 54rpx 24rpx 52rpx;
  367. box-sizing: border-box;
  368. &-title{
  369. font-family: PingFang-SC, PingFang-SC;
  370. font-weight: bold;
  371. font-size: 28rpx;
  372. color: #002846;
  373. line-height: 28rpx;
  374. span{
  375. font-size: 36rpx;
  376. }
  377. }
  378. &-num{
  379. font-family: PingFang-SC, PingFang-SC;
  380. font-weight: 800;
  381. font-size: 40rpx;
  382. color: #002846;
  383. line-height: 40rpx;
  384. margin-top: 24rpx;
  385. }
  386. &-state{
  387. margin-top: 46rpx;
  388. &-pre{
  389. padding-left: 16rpx;
  390. position: relative;
  391. font-family: PingFangSC, PingFang SC;
  392. font-weight: 400;
  393. font-size: 24rpx;
  394. color: #335368;
  395. line-height: 20rpx;
  396. span{
  397. color: #1D2129;
  398. }
  399. &::before{
  400. content: '';
  401. width: 10rpx;
  402. height: 10rpx;
  403. border-radius: 5rpx;
  404. position: absolute;
  405. left: 0;
  406. top: 50%;
  407. margin-top: -5rpx;
  408. }
  409. &.grey{
  410. &::before{
  411. background: #DDE0E6;
  412. }
  413. }
  414. &.yellow{
  415. &::before{
  416. background: #FFD750;
  417. }
  418. }
  419. &.green{
  420. &::before{
  421. background: #31D1D6;
  422. }
  423. }
  424. }
  425. }
  426. &-progress{
  427. margin-top: 24rpx;
  428. width: 100%;
  429. height: 10rpx;
  430. background: #DFE5EE;
  431. border-radius: 5rpx;
  432. position: relative;
  433. &-current{
  434. height: 10rpx;
  435. border-radius: 4rpx;
  436. position: absolute;
  437. left: 0;
  438. top: 0;
  439. }
  440. .pbp-yellow{
  441. background: #FFD750;
  442. }
  443. .pbp-green{
  444. background: #31D1D6;
  445. }
  446. }
  447. }
  448. }
  449. .boxs{
  450. margin-top: 20rpx;
  451. position: relative;
  452. &-pre{
  453. width: calc(50% - 11rpx);
  454. padding: 42rpx 0 0 20rpx;
  455. box-sizing: border-box;
  456. height: 184rpx;
  457. &-title{
  458. font-family: PingFang-SC, PingFang-SC;
  459. font-weight: bold;
  460. font-size: 32rpx;
  461. color: #E0EFEF;
  462. line-height: 45rpx;
  463. }
  464. &-tip{
  465. font-family: PingFangSC, PingFang SC;
  466. font-weight: 400;
  467. font-size: 24rpx;
  468. color: #E0EFEF;
  469. line-height: 33rpx;
  470. margin-top: 16rpx;
  471. image{
  472. width: 26rpx;
  473. height: 26rpx;
  474. margin-left: 12rpx;
  475. }
  476. }
  477. &.bp1{
  478. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/home_box_bg1.png') no-repeat;
  479. background-size: 100% 100%;
  480. }
  481. &.bp2{
  482. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/home_box_bg2.png') no-repeat;
  483. background-size: 100% 100%;
  484. }
  485. }
  486. }
  487. .common{
  488. margin-top: 20rpx;
  489. background: #FFFFFF;
  490. border-radius: 24rpx;
  491. padding: 40rpx 24rpx 48rpx;
  492. position: relative;
  493. &-title{
  494. font-family: PingFang-SC, PingFang-SC;
  495. font-weight: bold;
  496. font-size: 34rpx;
  497. color: #002846;
  498. line-height: 48rpx;
  499. }
  500. &-menu{
  501. width: calc(100% + 48rpx);
  502. margin-left: -24rpx;
  503. margin-top: 45rpx;
  504. &-pre{
  505. width: calc(100% / 4);
  506. image{
  507. width: 64rpx;
  508. height: 64rpx;
  509. }
  510. text{
  511. font-family: PingFangSC, PingFang SC;
  512. font-weight: 400;
  513. font-size: 22rpx;
  514. color: #193D59;
  515. line-height: 32rpx;
  516. text-align: center;
  517. margin-top: 24rpx;
  518. padding: 0 4rpx;
  519. }
  520. }
  521. }
  522. }
  523. .new-user-free{
  524. position: fixed;
  525. left: 0;
  526. right: 0;
  527. top: 0;
  528. bottom: 0;
  529. background: rgba(0, 0, 0, .6);
  530. z-index: 1000;
  531. &-box1{
  532. width: calc(100% - 180rpx);
  533. height: 280rpx;
  534. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/new_free_title.png') no-repeat;
  535. background-size: 100% 100%;
  536. padding-left: 53rpx;
  537. &-text{
  538. font-family: SourceHanSansCN, SourceHanSansCN;
  539. font-weight: bold;
  540. font-size: 36rpx;
  541. color: #874016;
  542. line-height: 54rpx;
  543. margin-top: 140rpx;
  544. }
  545. }
  546. &-box2{
  547. width: calc(100% - 140rpx);
  548. background: #FFFFFF;
  549. border-radius: 24rpx;
  550. padding: 45rpx 25rpx 42rpx;
  551. box-sizing: border-box;
  552. &-price{
  553. width: 100%;
  554. height: 132rpx;
  555. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/new_free_price.png') no-repeat;
  556. background-size: 100% 100%;
  557. padding: 27rpx 34rpx 27rpx 30rpx;
  558. box-sizing: border-box;
  559. &-left{
  560. &-title{
  561. font-family: PingFang-SC, PingFang-SC;
  562. font-weight: bold;
  563. font-size: 28rpx;
  564. color: #5E2E11;
  565. line-height: 36rpx;
  566. }
  567. &-tip{
  568. font-family: PingFangSC, PingFang SC;
  569. font-weight: 400;
  570. font-size: 24rpx;
  571. color: #808080;
  572. line-height: 32rpx;
  573. margin-top: 10rpx;
  574. }
  575. }
  576. &-right{
  577. &-top{
  578. font-family: PingFang-SC, PingFang-SC;
  579. font-weight: bold;
  580. font-size: 48rpx;
  581. color: #FF5A09;
  582. line-height: 67rpx;
  583. }
  584. &-bottom{
  585. font-family: PingFangSC, PingFang SC;
  586. font-weight: 400;
  587. font-size: 24rpx;
  588. color: #612D11;
  589. line-height: 33rpx;
  590. margin-top: 3rpx;
  591. text-decoration: line-through;
  592. }
  593. }
  594. }
  595. &-btn{
  596. width: calc(100% - 170rpx);
  597. height: 80rpx;
  598. border-radius: 40rpx;
  599. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/new_free_btn.png') no-repeat;
  600. background-size: 100% 100%;
  601. font-family: PingFang-SC, PingFang-SC;
  602. font-weight: bold;
  603. font-size: 32rpx;
  604. color: #5E2E11;
  605. line-height: 80rpx;
  606. text-align: center;
  607. letter-spacing: 2rpx;
  608. margin-top: 38rpx;
  609. }
  610. }
  611. &-close{
  612. width: 64rpx;
  613. height: 64rpx;
  614. margin-top: 48rpx;
  615. }
  616. }
  617. .kind-reminder{
  618. position: fixed;
  619. left: 0;
  620. right: 0;
  621. top: 0;
  622. bottom: 0;
  623. z-index: 1000;
  624. background: rgba(0, 0, 0, .6);
  625. .kr-box{
  626. width: calc(100% - 100rpx);
  627. padding: 54rpx 60rpx 48rpx;
  628. box-sizing: border-box;
  629. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/remind_bg.png') no-repeat;
  630. background-size: 100% 100%;
  631. position: relative;
  632. image{
  633. width: 48rpx;
  634. height: 48rpx;
  635. position: absolute;
  636. top: 40rpx;
  637. right: 30rpx;
  638. }
  639. .kr-title{
  640. font-family: PingFang-SC, PingFang-SC;
  641. font-weight: bold;
  642. font-size: 36rpx;
  643. color: #002846;
  644. line-height: 56rpx;
  645. text-align: center;
  646. }
  647. .kr-p{
  648. font-family: PingFangSC, PingFang SC;
  649. font-weight: 400;
  650. font-size: 30rpx;
  651. color: #002846;
  652. line-height: 48rpx;
  653. text-align: center;
  654. span{
  655. font-weight: bold;
  656. margin: 0 10rpx;
  657. }
  658. }
  659. .kr-btn{
  660. width: calc(100% - 80rpx);
  661. height: 88rpx;
  662. background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
  663. border-radius: 44rpx;
  664. font-family: PingFang-SC, PingFang-SC;
  665. font-weight: bold;
  666. font-size: 32rpx;
  667. color: #FFFFFF;
  668. line-height: 88rpx;
  669. text-align: center;
  670. letter-spacing: 2rpx;
  671. margin-top: 66rpx;
  672. }
  673. }
  674. }
  675. }
  676. </style>