points.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303
  1. <template>
  2. <view class="container">
  3. <view class="uni-nav-bar">
  4. <view :style="{height: statusBarHeight,width: '100%'}"></view>
  5. <view class="uni-nav-barbox">
  6. <view class="uni-nav-back" @click="$navBack()">
  7. <image src="@/static/images/back_white_icon.png" mode="aspectFill"></image>
  8. </view>
  9. <view class="uni-nav-title" style="flex: 1;text-align: center;">我的芳华币</view>
  10. </view>
  11. <image class="uni-nav-bar_bg" src="@/static/images/integral/integral_top_bg.png" mode="widthFix"></image>
  12. </view>
  13. <image class="integral_top_bg" src="@/static/images/integral/integral_top_bg.png" mode="widthFix"></image>
  14. <view class="container-body">
  15. <view class="pointsbox">
  16. <view class="pointsbox-left">
  17. <view>我的芳华币</view>
  18. <view class="pointsbox-num">
  19. <text>{{integral}}</text>
  20. <text class="pointsbox-detail" @click="handleDetail">明细</text>
  21. </view>
  22. <!-- <view class="pointsbox-desc">可抵现金{{money}}元,最高可100%抵扣</view> -->
  23. <view class="pointsbox-desc">其中{{withdrawIntegral}}芳华币可兑换现金提现
  24. <text v-if="withdrawIntegral!==0" class="" @click="openBox">【去兑换】</text>
  25. </view>
  26. </view>
  27. <image class="pointsbox-right" src="@/static/images/integral/integral_img.png" mode="aspectFill"></image>
  28. </view>
  29. <view style="padding: 0 24rpx;">
  30. <!-- 签到 -->
  31. <view class="signbox box">
  32. <view class="signbox-head">
  33. <text class="box-title">连续签到领芳华币</text>
  34. <view class="signbox-head-r">已签到<text>{{signNum}}</text>天</view>
  35. </view>
  36. <view class="signbox-con">
  37. <view class="signbox-item" v-for="(item,index) in sign" :key="index">
  38. <block v-if="index<6" >
  39. <view class="imgbox">
  40. <view v-if="index + 1 <= signNum" class="signdaybox">
  41. <view class="signday">+{{item.signNum}}</view>
  42. <image src="@/static/images/integral/sign_in_on_icon.png" mode="aspectFill"></image>
  43. </view>
  44. <view v-else class="integral-box">
  45. <view class="integral-box-line">
  46. <view class="integral-box-con">
  47. +{{item.signNum}}
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view :style="{color: index + 1 <= signNum ? '#FF5C03':''}">第{{index + 1}}天</view>
  53. </block>
  54. <block v-else>
  55. <view class="imgbox">
  56. <image class="imgbox" src="@/static/images/integral/gift_img.png" mode="aspectFill"></image>
  57. </view>
  58. <view :style="{color: 7 <= signNum ? '#FF5C03':''}">芳华礼包</view>
  59. </block>
  60. </view>
  61. </view>
  62. <view class="signbox-footer">
  63. <button class="signbox-footer-btn" :loading="signLoading" :disabled="signLoading" @click="doSign()">{{isDaySign?'已签到':'立即签到'}}</button>
  64. </view>
  65. </view>
  66. <!-- 福利兑换 -->
  67. <view class="benefit box">
  68. <text class="box-title">福利兑换</text>
  69. <view class="benefit-box">
  70. <view class="benefit-item" v-for="(item,index) in benefitList" @click="handleMenu(item)" :key="index">
  71. <image :src="item.icon" mode="aspectFill"></image>
  72. <view>{{item.name}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 每日任务 -->
  77. <view class="task box">
  78. <text class="box-title">每日任务</text>
  79. <view class="task-box" v-for="(item,index) in taskList" :key="index">
  80. <view class="task-list">
  81. <image class="task-list-icon" :src="item.icon" mode="aspectFill"></image>
  82. <view class="task-list-r">
  83. <view>
  84. <view class="task-title">
  85. <text>{{item.title}}</text>
  86. <text class="title-tip" v-if="item.title =='邀请好友享福利'">最高一万元</text>
  87. </view>
  88. <view v-show="item.id==0||item.id==2||item.id==7" v-html="item.desc"></view>
  89. <view v-show="item.id==1">每日首次成功发布视频<text style="color: #FF5C03;">+{{integralInfo.integralTalentVideo||0}}</text>芳华币</view>
  90. <view v-show="item.id==3">每集<text style="color: #FF5C03;">+{{integralInfo.integralCourse||0}}</text>芳华币</view>
  91. <view v-show="item.id==4">实际消费满1元<text style="color: #FF5C03;">+{{integralInfo.integralRatio||0}}</text>芳华币</view>
  92. <view v-show="item.id==5">填写即送<text style="color: #FF5C03;">+{{integralInfo.integralFollow||0}}芳华币/条</text></view>
  93. <view v-show="item.id==6">分享至微信、朋友圈<text style="color: #FF5C03;">+{{integralInfo.integralShare||0}}芳华币/条</text></view>
  94. </view>
  95. <view class="task-btn" @tap="handleDayTask(item)">{{item.btntxt}}</view>
  96. </view>
  97. </view>
  98. <view v-if="item.title =='邀请好友享福利'" class="task-footer">
  99. <button class="task-footer-btn" @click="copyCode">
  100. <image src="@/static/images/integral/copy_icon.png" mode="aspectFill"></image>
  101. <text>复制邀请码</text>
  102. </button>
  103. <button class="task-footer-btn" style="margin-left: 22rpx;" @click="handleInvite">
  104. <image src="@/static/images/integral/weixin_icon.png" mode="aspectFill"></image>
  105. <text>邀请好友</text>
  106. </button>
  107. </view>
  108. </view>
  109. </view>
  110. <!-- 新人福利 -->
  111. <view class="task box">
  112. <text class="box-title">新人福利</text>
  113. <view class="newusertask-box task-box" v-for="(item,index) in newUserTask" :key="index">
  114. <view class="newusertask-list task-list">
  115. <image class="task-list-icon" :src="item.icon" mode="aspectFill"></image>
  116. <view class="task-list-r">
  117. <!-- <block v-if="index<newUserTask.length-1">
  118. <view v-if="index==0" class="task-btn" :class="isBindMobile?'task-btn-disable':''" @tap="handleNewTask(index)">{{isBindMobile?"已完成":"去完成"}}</view>
  119. <view v-if="index==1" class="task-btn" :class="isBindMobile?'task-btn-disable':''" @tap="handleNewTask(index)">{{isBindMobile?"已完成":"去完成"}}</view>
  120. <view v-else class="task-btn" >{{item.btntxt}}</view>
  121. </block> -->
  122. <block v-if="index==0">
  123. <view>
  124. <view class="task-title">{{item.title}}</view>
  125. <view v-html="item.desc"></view>
  126. </view>
  127. <view class="task-btn" :class="isBindMobile?'task-btn-finish':''" @tap="handleNewTask(index)">{{isBindMobile?"已领取":"去完成"}}</view>
  128. </block>
  129. <!--专家免费咨询-->
  130. <block v-else-if="index==1">
  131. <view>
  132. <view class="task-title">{{item.title}}</view>
  133. <view v-html="item.desc"></view>
  134. <view v-if="isNewUser && userBenefits.taskTwo==0" class="es-mt-5">截止时间:{{ countdownText }}</view>
  135. </view>
  136. <view v-if="isNewUser && userBenefits.taskTwo==0" class="task-btn" @tap="goToCourse()" >{{ "去完成" }}</view>
  137. <view v-else-if="userBenefits.taskTwo==1" class="task-btn task-btn-finish">{{ "已完成" }}</view>
  138. <view v-else-if="!isNewUser&& userBenefits.taskTwo==0" class="task-btn task-btn-disable">{{ "已过期" }}</view>
  139. </block>
  140. <block v-else-if="index==2">
  141. <view>
  142. <view class="task-title">{{item.title}}</view>
  143. <view>下单后返现<span style='color:#FF5C03'>{{integralInfo.integralNewTask||0}}</span>芳华币</view>
  144. <view v-if="isNewUser && userBenefits.taskThree==0" class="es-mt-5">截止时间:{{countdownText}}</view>
  145. </view>
  146. <view v-if="isNewUser && userBenefits.taskThree==0" class="task-btn" @tap="loginNavTo(item.pageUrl)" >{{ "去完成" }}</view>
  147. <view v-else-if="userBenefits.taskThree==1" class="task-btn task-btn-finish">{{ "已完成" }}</view>
  148. <view v-else-if="!isNewUser&& userBenefits.taskThree==0" class="task-btn task-btn-disable">{{ "已过期" }}</view>
  149. </block>
  150. <block v-else-if="index==3">
  151. <view>
  152. <view class="task-title">{{item.title}}</view>
  153. <view v-html="item.desc"></view>
  154. <view v-if="isNewUser && userBenefits.taskFour==0" class="es-mt-5">截止时间:{{ countdownText }}</view>
  155. </view>
  156. <view v-if="isNewUser && userBenefits.taskFour==0" class="task-btn" @tap="loginNavTo(item.pageUrl)" >{{ "去完成" }}</view>
  157. <view v-else-if="userBenefits.taskFour==1" class="task-btn task-btn-finish">{{ "已完成" }}</view>
  158. <view v-else-if="!isNewUser&& userBenefits.taskFour==0" class="task-btn task-btn-disable">{{ "已过期" }}</view>
  159. </block>
  160. <block v-else-if="index==4">
  161. <view>
  162. <view class="task-title">{{item.title}}</view>
  163. <view v-html="item.desc"></view>
  164. <view v-if="isNewUser && userBenefits.taskFive==0" class="es-mt-5">截止时间:{{ countdownText }}</view>
  165. </view>
  166. <view v-if="isNewUser && userBenefits.taskFive==0" class="task-btn" @tap="loginNavTo(item.pageUrl)" >{{ "去完成" }}</view>
  167. <view v-else-if="userBenefits.taskFive==1" class="task-btn task-btn-finish">{{ "已完成" }}</view>
  168. <view v-else-if="!isNewUser&& userBenefits.taskFive==0" class="task-btn task-btn-disable">{{ "已过期" }}</view>
  169. </block>
  170. <block v-else>
  171. <view>
  172. <view class="task-title">{{item.title}}</view>
  173. <view>填码即得<text style='color:#FF5C03'>+{{integralInfo.integralInvited||0}}</text>芳华币</view>
  174. </view>
  175. <template v-if="item.title =='填写朋友邀请码'" >
  176. <view v-if="userBenefits.taskSix==1" class="task-btn task-btn-finish">已领取</view>
  177. </template>
  178. <view class="task-btn" v-else @tap="loginNavTo(item.pageUrl)" >{{item.btntxt}}</view>
  179. </block>
  180. </view>
  181. </view>
  182. <view v-if="item.title =='填写朋友邀请码'&&userBenefits.taskSix!=1" class="invitation-code">
  183. <view>
  184. <input class="input" v-model.trim="invitationCode" maxlength="50" :placeholder-style="placeholderStyle" placeholder="填码得芳华币" />
  185. </view>
  186. <button :class="!invitationCode ? 'task-btn task-btn-disable':'task-btn'" :disabled="bindLoading" :loading="bindLoading" @click="bindCode">{{item.btntxt}}</button>
  187. </view>
  188. </view>
  189. </view>
  190. </view>
  191. </view>
  192. <u-popup :show="isShow" mode="center" @close="closeBox" :round="16" style="width: 80%;">
  193. <view class="tips-box">
  194. <view class="tips-title">
  195. 温馨提示
  196. </view>
  197. <view class="desc">
  198. 您有{{withdrawIntegral}}芳华币可兑换现金<text style="color:#FF5C03;">{{withdrawCash}}元,</text>是否兑换?
  199. </view>
  200. <view class="tips x-f">
  201. <image src="@/static/images/integral/stunning_degree.png"></image>
  202. <view class="text">注意:一旦兑换不可撤销。</view>
  203. </view>
  204. <view class="btn-box x-ac">
  205. <view class="okbtn cancel" @click="closeBox">取消</view>
  206. <view class="okbtn" @click="integralExchange">确定</view>
  207. </view>
  208. </view>
  209. </u-popup>
  210. <!-- 邀请海报 -->
  211. <uni-popup ref="invitePopup" type="center" style="z-index: 9999;">
  212. <view class="invite" @click="closepop">
  213. <image :src="downUrlImg" mode="aspectFit" show-menu-by-longpress="true" @click.stop @longpress="longpressImg"></image>
  214. <button class="downtbn" @click.stop="downImg">保存图片</button>
  215. </view>
  216. </uni-popup>
  217. <!-- 抽奖 -->
  218. <turntableTwo ref="turntableTwo" @sendRewardFun="sendRewardFun" @closebuyLists="closebuyLists" @receive="receivePhysicalPrize"></turntableTwo>
  219. </view>
  220. </template>
  221. <script>
  222. import turntableTwo from "@/components/turntableTwo.vue"
  223. import {getDictByKey,getConfigByKey} from '@/api/common.js'
  224. import {getUserSign,getUserIntegralLogsList,doSign,getNewcomerBenefits,getDownloadPoster,invited,claimSignReward,bindInvForUser} from '@/api/integral.js';
  225. import {getUserInfo,getWallet,integralExchange} from '@/api/user'
  226. import Loading from "@/components/Loading";
  227. export default {
  228. components:{
  229. turntableTwo
  230. },
  231. data() {
  232. return {
  233. withdrawIntegral:0,
  234. withdrawCash:0,
  235. isShow:false,
  236. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  237. signLoading: false,
  238. signList: [10,10,10,50,50,60],
  239. typeOptions:[],
  240. isDaySign:false,
  241. signNum:0,
  242. integral:0,
  243. sign:[],
  244. timer:null,
  245. user:{"phone":""},
  246. isBindMobile:false,
  247. expireTime: "",
  248. countdownText: '',
  249. userBenefits:{},
  250. isNewUser: 0,
  251. benefitList: [
  252. {
  253. icon: '/static/images/integral/go_consultation_icon.png',
  254. name: '去问诊',
  255. pageUrl:"/pages/doctor/doctorList"
  256. },{
  257. icon: '/static/images/integral/go_exchange_icon.png',
  258. name: '去兑换',
  259. pageUrl:"/pages/user/integral/integralGoodsList"
  260. },{
  261. icon: '/static/images/integral/go_buy_medicine_icon.png',
  262. name: '去购药',
  263. pageUrl:"/pages/store/packageList"
  264. },{
  265. icon: '/static/images/integral/go_change_course_icon.png',
  266. isCourse:true,
  267. name: '去换课'
  268. }
  269. ],
  270. newUserTask: [
  271. {
  272. icon: '/static/images/integral/member_icon.png',
  273. title: '10天会员限时领',
  274. desc: "首次注册,完成<span style='color:#FF5C03'>手机号绑定</span>领取",
  275. btntxt: '去完成',
  276. },{
  277. icon: '/static/images/integral/consult_icon.png',
  278. title: '专家免费咨询',
  279. desc: "观看<span style='color:#FF5C03'>10分钟</span>课程领取",
  280. btntxt: '去学习',
  281. },{
  282. icon: '/static/images/integral/first_order_icon.png',
  283. pageUrl:"/pages/store/packageList",
  284. title: '首单立返',
  285. desc: "下单后返现<span style='color:#FF5C03'>5000</span>芳华币",
  286. btntxt: '去下单',
  287. },{
  288. icon: '/static/images/integral/patient_information_icon.png',
  289. pageUrl:"/pages/user/patient",
  290. title: '填写就诊人信息',
  291. desc: "填写即送<span style='color:#FF5C03'>+1000</span>芳华币",
  292. btntxt: '去填写',
  293. },{
  294. icon: '/static/images/integral/address_icon.png',
  295. pageUrl:"/pages/user/address",
  296. title: '填写收货地址',
  297. desc: "填写即送<span style='color:#FF5C03'>+1000</span>芳华币",
  298. btntxt: '去填写',
  299. },{
  300. icon: '/static/images/integral/invitation_code_icon.png',
  301. title: '填写朋友邀请码',
  302. desc: "填码即得<span style='color:#FF5C03'>+2000</span>芳华币",
  303. btntxt: '领奖励',
  304. }
  305. ],
  306. invitationCode: "",
  307. placeholderStyle: 'font-family: PingFang SC, PingFang SC;font-weight: 400;font-size: 26rpx;color: #999999;',
  308. taskList: [
  309. {
  310. id:0,
  311. icon: '/static/images/integral/ssp_icon.png',
  312. title: '刷视频',
  313. desc: "每次浏览<span style='color:#FF5C03'>10秒</span>可获取1次芳华币",
  314. btntxt: '去逛逛',
  315. isVideo:true,
  316. },{
  317. id:1,
  318. icon: '/static/images/integral/ssp_icon.png',
  319. title: '发布视频',
  320. desc: "每日首次成功发布视频<span style='color:#FF5C03'>+100</span>芳华币",
  321. btntxt: '去发布',
  322. pageUrl:"/pages/expert/index"
  323. },{
  324. id:2,
  325. icon: '/static/images/integral/kzb_icon.png',
  326. title: '看直播',
  327. desc: "每次浏览<span style='color:#FF5C03'>10秒</span>可获取1次芳华币",
  328. btntxt: '去观看',
  329. isLive:true,
  330. },{
  331. id:3,
  332. icon: '/static/images/integral/xxkc_icon.png',
  333. title: '学习课程',
  334. desc: "每集<span style='color:#FF5C03'>+200</span>芳华币",
  335. btntxt: '去学习',
  336. isCourse:true,
  337. },{
  338. id:4,
  339. icon: '/static/images/integral/xfdjf_icon.png',
  340. title: '消费得芳华币',
  341. desc: "实际消费满1元<span style='color:#FF5C03'>+1</span>芳华币",
  342. btntxt: '去逛逛',
  343. pageUrl:"/pages/store/packageList"
  344. },{
  345. id:5,
  346. icon: '/static/images/integral/txyysf_icon.png',
  347. title: '填写用药随访',
  348. desc: "填写即送<span style='color:#FF5C03'>+50芳华币/条</span>",
  349. btntxt: '去填写',
  350. pageUrl:"/pages/user/followList"
  351. },{
  352. id:6,
  353. icon: '/static/images/integral/fxjkzs_icon.png',
  354. title: '分享健康知识',
  355. desc: "分享至微信、朋友圈<span style='color:#FF5C03'>+10芳华币/条</span>",
  356. btntxt: '去分享',
  357. },{
  358. id:7,
  359. icon: '/static/images/integral/yqhyxfl_icon.png',
  360. title: '邀请好友享福利',
  361. desc: "先复制邀请码,再邀请好友",
  362. btntxt: '去邀请',
  363. }
  364. ],
  365. downUrlImg: "",
  366. bindLoading: false,
  367. integralInfo: {},
  368. openStatus: false
  369. }
  370. },
  371. computed: {
  372. money() {
  373. const num = Number(this.integral || 0) / 1000
  374. return num.toFixed(2)
  375. }
  376. },
  377. onLoad(option) {
  378. this.getDictByKey("sys_integral_log_type");
  379. this.getConfigByKey();
  380. this.user = this.$getUserInfo();
  381. this.getWallet(this.user.userId)
  382. this.isBindMobile=!this.$isEmpty(this.user.phone);
  383. this.getNewcomerBenefits();
  384. //this.getUserIntegralLogsList()
  385. },
  386. onShow() {
  387. this.getUserSign();
  388. },
  389. onHide() {
  390. },
  391. methods: {
  392. // 兑换现金
  393. openBox(){
  394. this.isShow=true
  395. },
  396. closeBox() {
  397. this.isShow = false
  398. },
  399. handleDetail() {
  400. uni.navigateTo({
  401. url: '/pages/user/integral/integralLogsList'
  402. })
  403. },
  404. getWallet(id){
  405. getWallet({userId:id}).then(
  406. res => {
  407. if(res.code==200){
  408. this.withdrawIntegral=res.data.withdrawIntegral
  409. this.withdrawCash=res.data.withdrawCash
  410. }
  411. },
  412. err => {
  413. }
  414. );
  415. },
  416. integralExchange(){
  417. if(this.withdrawIntegral==0){
  418. uni.showToast({
  419. icon:'none',
  420. title:"您没有可兑换的芳华币",
  421. });
  422. return;
  423. }
  424. integralExchange({userId:this.user.userId}).then(
  425. res => {
  426. if(res.code==200){
  427. uni.showToast({
  428. icon:'none',
  429. title: "兑换成功",
  430. });
  431. this.isShow=false
  432. this.getWallet(this.user.userId);
  433. this.getUserSign()
  434. }
  435. },
  436. err => {
  437. }
  438. );
  439. },
  440. getDictByKey(key){
  441. var data={key:key}
  442. getDictByKey(data).then(
  443. res => {
  444. if(res.code==200){
  445. this.typeOptions=res.data;
  446. }
  447. },
  448. err => {
  449. }
  450. );
  451. },
  452. getConfigByKey(){
  453. let param = {key:"his.integral"};
  454. getConfigByKey(param).then(
  455. res => {
  456. if(res.code==200){
  457. let data=res.data ? JSON.parse(res.data) : {};
  458. this.integralInfo = data;
  459. }else{
  460. uni.showToast({
  461. icon:'none',
  462. title: "请求失败",
  463. });
  464. }
  465. },
  466. rej => {}
  467. );
  468. },
  469. doSign(){
  470. // if(this.isDaySign){
  471. // uni.showToast({
  472. // title:"今日已签到",
  473. // icon:"none",
  474. // duration:2000
  475. // })
  476. // return;
  477. // }
  478. uni.showLoading({
  479. title:"正在加载中..."
  480. });
  481. var data={};
  482. let that=this;
  483. doSign(data).then(res => {
  484. uni.hideLoading()
  485. if(res.code==200){
  486. that.isDaySign = true
  487. uni.showToast({icon:'none',title: res.msg});
  488. if(res.data&&res.data.length>0) {
  489. that.openStatus = true
  490. that.$refs.turntableTwo.open(res.data)
  491. }
  492. setTimeout(e=>{
  493. that.getUserInfo();
  494. that.getUserSign();
  495. uni.$emit('refreshUserSign',{});
  496. },1000);
  497. }else{
  498. uni.showToast({
  499. icon:'none',
  500. title: res.msg,
  501. });
  502. }
  503. },
  504. rej => {}
  505. );
  506. },
  507. getUserSign(){
  508. getUserSign().then(res => {
  509. if(res.code==200){
  510. this.data=res.member;
  511. this.signNum=res.signNum;
  512. this.isDaySign=res.isDaySign;
  513. this.integral=res.integral;
  514. this.sign=JSON.parse(res.sign);
  515. }else{
  516. uni.showToast({
  517. icon:'none',
  518. title: "请求失败",
  519. });
  520. }
  521. },
  522. rej => {}
  523. );
  524. },
  525. getNewcomerBenefits(){
  526. getNewcomerBenefits().then(res => {
  527. if(res.code==200){
  528. this.userBenefits=res.data;
  529. console.log("qxj userBenefits:"+JSON.stringify(this.userBenefits));
  530. this.expireTime=this.$timeFormat(res.createTime,"yyyy-mm-dd hh:MM:ss");
  531. console.log("this.expireTime==",this.expireTime)
  532. this.isNewUser=res.isNewUser;
  533. if(!this.timer){
  534. this.timer=setInterval(() => {
  535. this.calculateCountdown();
  536. }, 1000);
  537. } else {
  538. this.calculateCountdown();
  539. }
  540. }else{
  541. uni.showToast({
  542. icon:'none',
  543. title: "请求失败",
  544. });
  545. }
  546. },
  547. rej => {}
  548. );
  549. },
  550. getUserIntegralLogsList() {
  551. let that = this;
  552. if (that.loaded == true || that.loading == true) return;
  553. that.loading = true;
  554. uni.showLoading({
  555. title:"加载中..."
  556. });
  557. getUserIntegralLogsList(that.page).then(res => {
  558. that.loading = false;
  559. that.loaded = res.data.list.length < that.page.pageSize;
  560. that.page.page = that.page.page + 1;
  561. that.list.push.apply(that.list, res.data.list);
  562. uni.hideLoading()
  563. },
  564. err => {
  565. uni.hideLoading();
  566. uni.showToast({
  567. title: err.msg ,
  568. icon: 'none',
  569. duration: 2000
  570. });
  571. }
  572. );
  573. },
  574. getUserInfo(){
  575. let that=this;
  576. getUserInfo().then(res => {
  577. if(res.code==200){
  578. if(res.user!=null){
  579. uni.setStorageSync('userInfo',JSON.stringify(res.user));
  580. this.user=res.user;
  581. }
  582. else{
  583. uni.showToast({
  584. icon:'none',
  585. title: res.msg,
  586. });
  587. }
  588. }
  589. },
  590. rej => {}
  591. );
  592. },
  593. handleMenu(item) {
  594. console.log("qxj handleMenu:"+JSON.stringify(item));
  595. if(item.isCourse!=undefined && item.isCourse){
  596. this.goToCourse();
  597. }
  598. else if(item.isVideo!=undefined && item.isVideo){
  599. uni.switchTab({url: '/pages/course/video/living-app' });
  600. }
  601. else if(item.isLive!=undefined && item.isLive){
  602. this.goToCourse();
  603. }else{
  604. this.loginNavTo(item.pageUrl);
  605. }
  606. },
  607. goToCourse(){
  608. uni.switchTab({url: '/pages/course/index' });
  609. },
  610. handleNewTask(index){ //新人福利任务
  611. },
  612. handleDayTask(item){ //每日任务
  613. if(item.isCourse!=undefined && item.isCourse){
  614. this.goToCourse();
  615. }else if(item.isVideo!=undefined && item.isVideo){
  616. uni.switchTab({url: '/pages/course/video/living-app' });
  617. }
  618. else if(item.isLive!=undefined && item.isLive){
  619. this.goToCourse();
  620. }else if(item.title == '分享健康知识') {
  621. const list = [{
  622. name: "药膳食疗",
  623. pageUrl:"/pages/article/medicatedFoodList"
  624. },
  625. {
  626. name: "经络穴位",
  627. pageUrl:"/pages/article/vesselList"
  628. }, {
  629. name: "问答专区",
  630. pageUrl:"/pages/article/questionsList"
  631. }, {
  632. name: "疾病",
  633. pageUrl:"/pages/article/diseaseList"
  634. }, {
  635. name: "中药图解",
  636. pageUrl:"/pages/article/chineseMedicineList"
  637. },
  638. {
  639. name: "名方今用",
  640. pageUrl:"/pages/article/famousPrescribeList"
  641. }, {
  642. name: "养生讲堂",
  643. pageUrl:"/pages/doctor/doctorArticleList"
  644. }, {
  645. name: "养生干货",
  646. pageUrl:"/pages/article/articleList"
  647. }]
  648. const num = Math.floor(Math.random() * list.length);
  649. this.loginNavTo(list[num].pageUrl);
  650. }else if(item.title == '邀请好友享福利'){
  651. this.handleInvite()
  652. }else{
  653. this.loginNavTo(item.pageUrl);
  654. }
  655. },
  656. calculateCountdown() {
  657. const targetTime = new Date(this.expireTime.replace(/-/g, '/'));
  658. targetTime.setDate(targetTime.getDate() + 7); // ➕7天
  659. const timeDiff = targetTime - new Date(); // 剩余毫秒
  660. if (timeDiff <= 0) {
  661. this.countdownText = '已结束';
  662. clearInterval(this.timer);
  663. } else {
  664. const days = Math.floor(timeDiff / (24 * 60 * 60 * 1000));
  665. const hours = Math.floor((timeDiff % (24 * 60 * 60 * 1000)) / (60 * 60 * 1000));
  666. const minutes = Math.floor((timeDiff % (60 * 60 * 1000)) / (60 * 1000));
  667. const seconds = Math.floor((timeDiff % (60 * 1000)) / 1000);
  668. this.countdownText = `${days}天${this.padZero(hours)}:${this.padZero(minutes)}:${this.padZero(seconds)}`;
  669. }
  670. },
  671. padZero(num) {
  672. return num < 10 ? '0' + num : num;
  673. },
  674. loginNavTo(url){
  675. if(!this.$isLogin()){
  676. this.$showLoginPage();
  677. return;
  678. }
  679. uni.navigateTo({
  680. url: url
  681. });
  682. },
  683. // 绑定邀请码领奖励
  684. bindCode() {
  685. if(!uni.$u.test.digits(this.invitationCode)) {
  686. uni.showToast({
  687. title:'请输入正确的邀请码',
  688. icon:'none'
  689. })
  690. return
  691. }
  692. this.bindLoading = true
  693. invited({userId: this.invitationCode}).then(res=>{
  694. this.bindLoading = false
  695. if(res.code == 200) {
  696. this.invitationCode = ""
  697. uni.showToast({
  698. title:'领取成功',
  699. icon:'none'
  700. })
  701. this.getUserSign();
  702. } else {
  703. uni.showToast({
  704. title:res.msg,
  705. icon:'none'
  706. })
  707. }
  708. }).catch(()=>{
  709. this.bindLoading = false
  710. })
  711. },
  712. bindInvForUserFun(){
  713. bindInvForUser({fsUserId: this.user.userId,invitationCode:this.invitationCode})
  714. },
  715. copyCode() {
  716. let user=JSON.parse(uni.getStorageSync('userInfo'));
  717. uni.setClipboardData({
  718. data: String(user.userId),
  719. success:()=>{
  720. uni.showToast({
  721. title:'邀请码复制成功',
  722. icon:'none'
  723. })
  724. },
  725. complete: (err) => {
  726. console.log(err)
  727. }
  728. });
  729. },
  730. // 邀请
  731. handleInvite() {
  732. uni.showLoading({
  733. title: "海报生成中"
  734. })
  735. getDownloadPoster().then(res=>{
  736. uni.hideLoading()
  737. if(res.code == 200) {
  738. this.downUrlImg = res.msg
  739. this.$refs.invitePopup.open()
  740. } else {
  741. uni.showToast({
  742. title:'生成海报失败',
  743. icon:'none'
  744. })
  745. }
  746. }).catch(()=>{
  747. uni.hideLoading()
  748. uni.showToast({
  749. title:'生成海报失败',
  750. icon:'none'
  751. })
  752. })
  753. },
  754. closepop() {
  755. this.$refs.invitePopup.close()
  756. },
  757. longpressImg() {
  758. // #ifndef MP-WEIXIN
  759. uni.showActionSheet({
  760. title: "",
  761. itemList: ["保存图片"],
  762. success: (res)=> {
  763. console.log("保存图片")
  764. this.downImg()
  765. }
  766. });
  767. // #endif
  768. },
  769. downImg() {
  770. uni.showLoading({
  771. title: "图片保存中..."
  772. })
  773. uni.downloadFile({
  774. url: this.downUrlImg,
  775. fail: function(res) {
  776. uni.showModal({
  777. title: '提示',
  778. content: '保存失败',
  779. })
  780. uni.hideLoading();
  781. },
  782. success: function(res) {
  783. var tempFilePath = res.tempFilePath;
  784. uni.saveImageToPhotosAlbum({
  785. filePath: tempFilePath,
  786. success:()=> {
  787. uni.showToast({
  788. title: "保存成功",
  789. duration: 2000
  790. })
  791. },
  792. fail:()=>{
  793. console.log("保存失败");
  794. uni.showToast({
  795. title: "保存失败",
  796. duration: 2000,
  797. icon: "error"
  798. })
  799. uni.hideLoading();
  800. },
  801. complete: function() {
  802. uni.hideLoading();
  803. }
  804. })
  805. },
  806. })
  807. },
  808. closebuyLists() {
  809. },
  810. sendRewardFun() {
  811. claimSignReward().then(res => {
  812. if(res.code == 200) {
  813. this.$refs.turntableTwo.endSuccess(res)
  814. } else {
  815. this.$refs.turntableTwo.close('close')
  816. uni.showToast({
  817. title: res.msg,
  818. icon: 'none'
  819. })
  820. }
  821. })
  822. },
  823. receivePhysicalPrize(item) {
  824. uni.navigateTo({
  825. url:`/pages/courseAnswer/winningRecordDetail?goodsId=${item.goodsId}&roundId=${item.roundId}`
  826. })
  827. }
  828. }
  829. }
  830. </script>
  831. <style lang="scss" scoped>
  832. @mixin u-flex($flexD, $alignI, $justifyC) {
  833. display: flex;
  834. flex-direction: $flexD;
  835. align-items: $alignI;
  836. justify-content: $justifyC;
  837. }
  838. ::v-deep .u-popup__content{
  839. width: 80% !important;
  840. overflow: hidden;
  841. }
  842. .tips-box{
  843. //padding: 36rpx;
  844. padding-bottom: 40rpx;
  845. .tips-title{
  846. background: linear-gradient( 0deg, rgba(255, 92, 3, 0) 0%,rgba(255, 92, 3, 0.30) 100%,);
  847. font-family: PingFang SC, PingFang SC;
  848. font-weight: 600;
  849. font-size: 40rpx;
  850. color: #222222;
  851. line-height: 128rpx;
  852. text-align: center;
  853. }
  854. .desc{
  855. padding:0 36rpx;
  856. font-family: PingFang SC, PingFang SC;
  857. font-weight: 400;
  858. font-size: 32rpx;
  859. line-height: 48rpx;
  860. color: #222222;
  861. margin-bottom: 36rpx;
  862. }
  863. .tips{
  864. padding:0 36rpx;
  865. image{
  866. width: 28rpx;
  867. height: 28rpx;
  868. margin-right: 8rpx;
  869. }
  870. .text{
  871. font-family: PingFang SC, PingFang SC;
  872. font-weight: 600;
  873. font-size: 28rpx;
  874. color: #FF5C03;
  875. line-height: 24rpx;
  876. }
  877. }
  878. .btn-box{
  879. margin-top: 40rpx;
  880. .okbtn{
  881. padding:20rpx 100rpx;
  882. font-family: PingFang SC, PingFang SC;
  883. font-weight: 400;
  884. font-size: 28rpx;
  885. color: #FFFFFF;
  886. background: #FF5C03;
  887. border-radius: 42rpx ;
  888. &.cancel{
  889. background: #F5F7FA;
  890. color: #757575
  891. }
  892. }
  893. }
  894. }
  895. .invite {
  896. width: 100vw;
  897. height: calc(100vh - var(--status-bar-height) - 88rpx);
  898. @include u-flex(column, center, center);
  899. image {
  900. width: 100%;
  901. flex: 1;
  902. }
  903. .downtbn {
  904. margin-top: 24rpx;
  905. min-width: 254rpx;
  906. min-height: 88rpx;
  907. padding: 0 16rpx;
  908. box-sizing: border-box;
  909. border-radius: 44rpx 44rpx 44rpx 44rpx;
  910. border: 2rpx solid #FF5C03;
  911. font-family: PingFang SC, PingFang SC;
  912. font-weight: 400;
  913. font-size: 32rpx;
  914. color: #FF5C03;
  915. @include u-flex(column, center, center);
  916. &::after {
  917. border: none;
  918. }
  919. }
  920. }
  921. .container {
  922. position: relative;
  923. font-family: PingFang SC, PingFang SC;
  924. font-weight: 400;
  925. font-size: 24rpx;
  926. color: #222222;
  927. &-body {
  928. position: relative;
  929. padding-top: calc(var(--status-bar-height) + 88rpx);
  930. padding-bottom: calc(var(--window-bottom) + 50rpx);
  931. }
  932. }
  933. .integral_top_bg {
  934. position: absolute;
  935. top: 0;
  936. left: 0;
  937. width: 100%;
  938. height: auto;
  939. }
  940. .uni-nav-bar {
  941. position: fixed;
  942. top: 0;
  943. left: 0;
  944. width: 100%;
  945. z-index: 999;
  946. overflow: hidden;
  947. font-family: PingFang SC, PingFang SC;
  948. font-weight: 500;
  949. color: #FFFFFF;
  950. .uni-nav-bar_bg {
  951. width: 100%;
  952. position: absolute;
  953. top: 0;
  954. left: 0;
  955. z-index: -1;
  956. }
  957. .uni-nav-barbox {
  958. width: 100%;
  959. height: 88rpx;
  960. @include u-flex(row, center, center);
  961. position: relative;
  962. font-size: 24rpx;
  963. }
  964. .uni-nav-title {
  965. /* #ifdef APP-PLUS */
  966. font-size: 34rpx;
  967. /* #endif */
  968. /* #ifndef APP-PLUS */
  969. font-size: 16px;
  970. /* #endif */
  971. }
  972. .uni-nav-back {
  973. position: absolute;
  974. bottom: 0;
  975. left: 20rpx;
  976. height: 88rpx;
  977. @include u-flex(row, center, flex-start);
  978. image {
  979. height: 58rpx;
  980. width: 58rpx;
  981. }
  982. }
  983. }
  984. .box {
  985. margin-bottom: 20rpx;
  986. padding: 28rpx 24rpx 40rpx 24rpx;
  987. box-sizing: border-box;
  988. background: #FFFFFF;
  989. border-radius: 16rpx 16rpx 16rpx 16rpx;
  990. }
  991. .box-title {
  992. font-family: PingFang SC, PingFang SC;
  993. font-weight: 600;
  994. font-size: 36rpx;
  995. color: #222222;
  996. }
  997. .pointsbox {
  998. width: 100%;
  999. padding-left: 24rpx;
  1000. box-sizing: border-box;
  1001. overflow: hidden;
  1002. @include u-flex(row, center, space-between);
  1003. &-left {
  1004. font-weight: 500;
  1005. font-size: 28rpx;
  1006. color: #FFFFFF;
  1007. }
  1008. &-num {
  1009. font-family: DIN, DIN;
  1010. font-weight: bold;
  1011. font-size: 80rpx;
  1012. line-height: 60rpx;
  1013. margin-top: 34rpx;
  1014. margin-bottom: 34rpx;
  1015. }
  1016. &-detail {
  1017. font-weight: 400;
  1018. font-size: 24rpx;
  1019. margin-left: 20rpx;
  1020. text-decoration: underline;
  1021. }
  1022. &-desc {
  1023. font-weight: 400;
  1024. font-size: 28rpx;
  1025. }
  1026. &-right {
  1027. flex-shrink: 0;
  1028. width: 302rpx;
  1029. height: 304rpx;
  1030. margin-right: -18rpx;
  1031. }
  1032. }
  1033. .signbox {
  1034. &-head{
  1035. @include u-flex(row, center, space-between);
  1036. font-weight: 600;
  1037. font-size: 36rpx;
  1038. &-r {
  1039. font-weight: 400;
  1040. font-size: 26rpx;
  1041. color: #757575;
  1042. text {
  1043. color: #FF5C03;
  1044. padding: 0 10rpx;
  1045. }
  1046. }
  1047. }
  1048. &-con {
  1049. margin: 38rpx 0 38rpx 0;
  1050. @include u-flex(row, center, space-between);
  1051. font-weight: 400;
  1052. font-size: 24rpx;
  1053. color: #757575;
  1054. }
  1055. &-item {
  1056. text-align: center;
  1057. .imgbox {
  1058. flex-shrink: 0;
  1059. height: 92rpx;
  1060. width: 92rpx;
  1061. margin-bottom: 4rpx;
  1062. @include u-flex(row, center, center);
  1063. }
  1064. .signdaybox {
  1065. position: relative;
  1066. image {
  1067. width: 24rpx;
  1068. height: 24rpx;
  1069. position: absolute;
  1070. right: 0;
  1071. bottom: 0;
  1072. }
  1073. }
  1074. .signday {
  1075. flex-shrink: 0;
  1076. width: 72rpx;
  1077. height: 72rpx;
  1078. @include u-flex(row, center, center);
  1079. box-sizing: border-box;
  1080. background: #FCF0E7;
  1081. border-radius: 0rpx 0rpx 0rpx 0rpx;
  1082. border: 2rpx dashed rgba(255,92,3,0.5);
  1083. border-radius: 50%;
  1084. font-weight: 500;
  1085. font-size: 22rpx;
  1086. color: #FF5C03;
  1087. }
  1088. .integral-box {
  1089. width: 72rpx;
  1090. height: 72rpx;
  1091. background: linear-gradient( 180deg, #FBE69B 0%, #F2A54E 100%);
  1092. border-radius: 50%;
  1093. @include u-flex(row, center, center);
  1094. &-line {
  1095. width: 64rpx;
  1096. height: 64rpx;
  1097. @include u-flex(row, center, center);
  1098. font-weight: 500;
  1099. font-size: 22rpx;
  1100. color: #FFFFFF;
  1101. border-radius: 50%;
  1102. position: relative;
  1103. background: linear-gradient(180deg, rgba(241, 161, 75, 1), rgba(249, 225, 137, 1));
  1104. }
  1105. &-con {
  1106. width: 60rpx;
  1107. height: 60rpx;
  1108. border-radius: 50%;
  1109. @include u-flex(row, center, center);
  1110. background: linear-gradient( 180deg, #FFCD88 0%, #F4B55C 47%, #F49C49 100%);
  1111. }
  1112. }
  1113. }
  1114. &-footer {
  1115. &-btn {
  1116. width: 598rpx;
  1117. height: 72rpx;
  1118. @include u-flex(row, center, center);
  1119. background: linear-gradient( 90deg, #FF5701 0%, #FFB501 100%);
  1120. box-shadow: 0rpx 8rpx 8rpx 0rpx rgba(238,124,80,0.2);
  1121. border-radius: 36rpx 36rpx 36rpx 36rpx;
  1122. font-weight: 500;
  1123. font-size: 28rpx;
  1124. color: #FFFFFF;
  1125. &::after {
  1126. border: none;
  1127. }
  1128. }
  1129. }
  1130. }
  1131. .benefit {
  1132. &-box {
  1133. margin-top: 38rpx;
  1134. @include u-flex(row, center, space-around);
  1135. }
  1136. &-item {
  1137. width: 104rpx;
  1138. height: 104rpx;
  1139. text-align: center;
  1140. image {
  1141. width: 64rpx;
  1142. height: 64rpx;
  1143. margin-bottom: 6rpx;
  1144. }
  1145. }
  1146. }
  1147. .newusertask-box {
  1148. background: #FAFAFA !important;
  1149. border: none !important;
  1150. .task-list-icon {
  1151. width: 88rpx !important;
  1152. height: 88rpx !important;
  1153. margin-right: 22rpx !important;
  1154. }
  1155. }
  1156. .title-tip {
  1157. min-width: 134rpx;
  1158. height: 38rpx;
  1159. margin-left: 8rpx;
  1160. padding: 8rpx 12rpx;
  1161. box-sizing: border-box;
  1162. background: #FCF0E7;
  1163. border-radius: 24rpx 24rpx 24rpx 24rpx;
  1164. font-family: PingFang SC, PingFang SC;
  1165. font-weight: 400;
  1166. font-size: 22rpx;
  1167. color: #FF5C03;
  1168. }
  1169. .task-footer {
  1170. margin-top: 32rpx;
  1171. margin-left: 80rpx;
  1172. @include u-flex(row, center, flex-start);
  1173. &-btn {
  1174. width: 252rpx;
  1175. height: 80rpx;
  1176. margin: 0;
  1177. @include u-flex(row, center, center);
  1178. background: #F5F7FA;
  1179. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1180. font-family: PingFang SC, PingFang SC;
  1181. font-weight: 500;
  1182. font-size: 26rpx;
  1183. color: #222222;
  1184. position: relative;
  1185. &::after {
  1186. border: none;
  1187. }
  1188. image {
  1189. flex-shrink: 0;
  1190. width: 48rpx;
  1191. height: 48rpx;
  1192. margin-right: 8rpx;
  1193. }
  1194. }
  1195. }
  1196. .task{
  1197. &-box {
  1198. padding: 24rpx;
  1199. margin-top: 20rpx;
  1200. background: #fff;
  1201. border-radius: 16rpx 16rpx 16rpx 16rpx;
  1202. border: 2rpx solid #F5F7FA;
  1203. &:first-of-type {
  1204. margin-top: 36rpx;
  1205. }
  1206. .invitation-code {
  1207. margin-left: 100rpx;
  1208. margin-top: 22rpx;
  1209. margin-bottom: 16rpx;
  1210. width: 496rpx;
  1211. height: 80rpx;
  1212. padding: 8rpx 8rpx 8rpx 24rpx;
  1213. box-sizing: border-box;
  1214. background: #ECECEC;
  1215. border-radius: 40rpx 40rpx 40rpx 40rpx;
  1216. @include u-flex(row, center, space-between);
  1217. }
  1218. .input {
  1219. font-family: PingFang SC, PingFang SC;
  1220. font-weight: 400;
  1221. font-size: 26rpx;
  1222. color: #222;
  1223. }
  1224. }
  1225. &-list {
  1226. @include u-flex(row, center, space-between);
  1227. &-icon {
  1228. width: 54rpx;
  1229. height: 54rpx;
  1230. margin-right: 24rpx;
  1231. }
  1232. &-r {
  1233. flex: 1;
  1234. @include u-flex(row, center, space-between);
  1235. font-weight: 400;
  1236. font-size: 24rpx;
  1237. color: #999999;
  1238. }
  1239. }
  1240. &-title {
  1241. margin-bottom: 8rpx;
  1242. font-weight: 500;
  1243. font-size: 32rpx;
  1244. color: #222222;
  1245. line-height: 38rpx;
  1246. }
  1247. &-btn {
  1248. flex-shrink: 0;
  1249. min-width: 132rpx;
  1250. height: 64rpx;
  1251. margin: 0 0 0 12rpx;
  1252. padding:0 14rpx;
  1253. background: #FF5C03 !important;
  1254. border-radius: 32rpx 32rpx 32rpx 32rpx;
  1255. text-align: center;
  1256. @include u-flex(row, center, center);
  1257. font-weight: 500;
  1258. font-size: 28rpx;
  1259. color: #FFFFFF !important;
  1260. &::after {
  1261. border: none;
  1262. }
  1263. &-disable {
  1264. background-color: #FDAB8D !important;
  1265. }
  1266. &-finish {
  1267. background:#FAFAFA !important;
  1268. color:#FF5C03 !important;
  1269. }
  1270. }
  1271. }
  1272. </style>