rechargeCenter.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <template>
  2. <view class="default_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='PERILL团队发展动态评估' bgColor="transparent"></cus-header>
  4. <view class="info adfac">
  5. <view class="info-left">
  6. <image :src="userInfo.headUrl||avatar"></image>
  7. </view>
  8. <view class="info-right">
  9. <view class="info-right-name adfac">
  10. <view class="text">{{userInfo.realName||'游客'}}</view>
  11. <view class="version">{{headData.userBriefText||'普通用户'}}</view>
  12. </view>
  13. <view class="info-right-tip">可用次数:基础版{{headData.basicCount||0}}次,专业版{{headData.proCount||0}}次</view>
  14. </view>
  15. </view>
  16. <view class="box adffc">
  17. <view class="box-tab adfacjb">
  18. <view class="box-tab-pre" :class="{'active':tindex===index}"
  19. v-for="(item,index) in tabList" :key="index" @click="changeTab(index)">{{item}}</view>
  20. </view>
  21. <template v-if="tindex===0">
  22. <template v-if="priceData">
  23. <view style="flex: 1;overflow-y: auto;margin-top: 20rpx;">
  24. <div class="box-yhj">
  25. <div class="box-yhj-top">
  26. <div class="box-yhj-top-xs">限时优惠价</div>
  27. <div class="box-yhj-top-nr adffcac">
  28. <div class="box-yhj-top-nr-title">PERILL团队发展动态评估(基础版)</div>
  29. <div class="box-yhj-top-nr-price">¥{{priceData.discountPrice||priceData.price}}</div>
  30. <div class="box-yhj-top-nr-yj" v-if="priceData.discountPrice">原价 ¥{{priceData.price}}/次</div>
  31. <div class="box-yhj-top-nr-yj" style="margin-top: 50rpx;" v-else></div>
  32. </div>
  33. <div class="box-yhj-top-tip" v-if="priceData.discountPrice">活动有效期:{{priceData.startDate||''}} ~ {{priceData.endDate||''}}</div>
  34. <div class="box-yhj-top-tip" v-else></div>
  35. </div>
  36. <div class="box-yhj-title">内容配置对比</div>
  37. <div class="box-yhj-table">
  38. <div class="box-yhj-table-pre adf">
  39. <div class="box-yhj-table-pre-qy qy1"></div>
  40. <div class="box-yhj-table-pre-qy qy2 active title adfacjc">基础版(个人版)</div>
  41. <div class="box-yhj-table-pre-qy qy3 title adfacjc">专业版(团队版-36)</div>
  42. </div>
  43. <div class="box-yhj-table-pre adf">
  44. <div class="box-yhj-table-pre-qy qy1">评估人数</div>
  45. <div class="box-yhj-table-pre-qy qy2 adfacjc active nr">仅限个人角度进行评估</div>
  46. <div class="box-yhj-table-pre-qy qy3 adffcac nr">团队整体评估<br>成员人数可多至20人</div>
  47. </div>
  48. <div class="box-yhj-table-pre adf">
  49. <div class="box-yhj-table-pre-qy qy1">陈述</div>
  50. <div class="box-yhj-table-pre-qy qy2 active nr">36道专业陈述</div>
  51. <div class="box-yhj-table-pre-qy qy3 adffcac nr">36道专业陈述</div>
  52. </div>
  53. <div class="box-yhj-table-pre adf">
  54. <div class="box-yhj-table-pre-qy qy1">评估状态</div>
  55. <div class="box-yhj-table-pre-qy qy2 active nr">评估团队当前状态</div>
  56. <div class="box-yhj-table-pre-qy qy3 adffcac nr">评估团队当前状态</div>
  57. </div>
  58. <div class="box-yhj-table-pre adf">
  59. <div class="box-yhj-table-pre-qy qy1">未来发展</div>
  60. <div class="box-yhj-table-pre-qy qy2 active nr">6个维度整体评估报告</div>
  61. <div class="box-yhj-table-pre-qy qy3 adffcac nr">评估团队未来发展容量</div>
  62. </div>
  63. <div class="box-yhj-table-pre adf">
  64. <div class="box-yhj-table-pre-qy qy1">评估结果</div>
  65. <div class="box-yhj-table-pre-qy qy2 active nr">——</div>
  66. <div class="box-yhj-table-pre-qy qy3 adffcac nr">每个维度独立评估结果</div>
  67. </div>
  68. <div class="box-yhj-table-pre adf">
  69. <div class="box-yhj-table-pre-qy qy1">评估建议</div>
  70. <div class="box-yhj-table-pre-qy qy2 active nr">——</div>
  71. <div class="box-yhj-table-pre-qy qy3 adffcac nr">每个维度独立评估建议</div>
  72. </div>
  73. <div class="box-yhj-table-pre adf">
  74. <div class="box-yhj-table-pre-qy qy1">计划</div>
  75. <div class="box-yhj-table-pre-qy qy2 active nr">——</div>
  76. <div class="box-yhj-table-pre-qy qy3 adffcac nr">团队发展计划</div>
  77. </div>
  78. <div class="box-yhj-table-pre adf">
  79. <div class="box-yhj-table-pre-qy qy1">教练建议</div>
  80. <div class="box-yhj-table-pre-qy qy2 active nr">——</div>
  81. <div class="box-yhj-table-pre-qy qy3 adffcac nr">教练专业建议(书面)</div>
  82. </div>
  83. <div class="box-yhj-table-pre adf">
  84. <div class="box-yhj-table-pre-qy qy1">发送报告</div>
  85. <div class="box-yhj-table-pre-qy qy2 active nr">——</div>
  86. <div class="box-yhj-table-pre-qy qy3 adffcac nr">可向指定人员发送报告</div>
  87. </div>
  88. <div class="box-yhj-table-pre adf">
  89. <div class="box-yhj-table-pre-qy qy1">线上课</div>
  90. <div class="box-yhj-table-pre-qy qy2 active nr">——</div>
  91. <div class="box-yhj-table-pre-qy qy3 adffcac nr">送1节小鹅通团队教练线上课</div>
  92. </div>
  93. </div>
  94. </div>
  95. </view>
  96. </template>
  97. <template v-else>
  98. <view class="box-empty adffcacjc">
  99. <image :src="imgBase+'recharge_empty.png'"></image>
  100. <p>暂无定价,请等待相关人员配置~</p>
  101. </view>
  102. </template>
  103. </template>
  104. <template v-if="tindex===1">
  105. <template v-if="priceData">
  106. <view style="flex: 1;overflow-y: auto;margin-top: 20rpx;">
  107. <div class="box-yhj">
  108. <div class="box-yhj-top">
  109. <div class="box-yhj-top-xs">限时优惠价</div>
  110. <div class="box-yhj-top-nr adffcac">
  111. <div class="box-yhj-top-nr-title">PERILL团队发展动态评估(专业版)</div>
  112. <div class="box-yhj-top-nr-price">¥{{priceData.discountPrice||priceData.price}}</div>
  113. <div class="box-yhj-top-nr-yj" v-if="priceData.discountPrice">原价 ¥{{priceData.price}}/次</div>
  114. <div class="box-yhj-top-nr-yj" style="margin-top: 50rpx;" v-else></div>
  115. </div>
  116. <div class="box-yhj-top-tip" v-if="priceData.discountPrice">活动有效期:{{priceData.startDate||''}} ~ {{priceData.endDate||''}}</div>
  117. <div class="box-yhj-top-tip" v-else></div>
  118. </div>
  119. <div class="box-yhj-title">内容配置对比</div>
  120. <div class="box-yhj-table">
  121. <div class="box-yhj-table-pre adf">
  122. <div class="box-yhj-table-pre-qy qy1"></div>
  123. <div class="box-yhj-table-pre-qy qy2 title adfacjc">基础版(个人版)</div>
  124. <div class="box-yhj-table-pre-qy qy3 active title adfacjc">专业版(团队版-36)</div>
  125. </div>
  126. <div class="box-yhj-table-pre adf">
  127. <div class="box-yhj-table-pre-qy qy1">评估人数</div>
  128. <div class="box-yhj-table-pre-qy qy2 adfacjc nr">仅限个人角度进行评估</div>
  129. <div class="box-yhj-table-pre-qy qy3 adffcac active nr">团队整体评估<br>成员人数可多至20人</div>
  130. </div>
  131. <div class="box-yhj-table-pre adf">
  132. <div class="box-yhj-table-pre-qy qy1">陈述</div>
  133. <div class="box-yhj-table-pre-qy qy2 nr">36道专业陈述</div>
  134. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">36道专业陈述</div>
  135. </div>
  136. <div class="box-yhj-table-pre adf">
  137. <div class="box-yhj-table-pre-qy qy1">评估状态</div>
  138. <div class="box-yhj-table-pre-qy qy2 nr">评估团队当前状态</div>
  139. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">评估团队当前状态</div>
  140. </div>
  141. <div class="box-yhj-table-pre adf">
  142. <div class="box-yhj-table-pre-qy qy1">未来发展</div>
  143. <div class="box-yhj-table-pre-qy qy2 nr">6个维度整体评估报告</div>
  144. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">评估团队未来发展容量</div>
  145. </div>
  146. <div class="box-yhj-table-pre adf">
  147. <div class="box-yhj-table-pre-qy qy1">评估结果</div>
  148. <div class="box-yhj-table-pre-qy qy2 nr">——</div>
  149. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">每个维度独立评估结果</div>
  150. </div>
  151. <div class="box-yhj-table-pre adf">
  152. <div class="box-yhj-table-pre-qy qy1">评估建议</div>
  153. <div class="box-yhj-table-pre-qy qy2 nr">——</div>
  154. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">每个维度独立评估建议</div>
  155. </div>
  156. <div class="box-yhj-table-pre adf">
  157. <div class="box-yhj-table-pre-qy qy1">计划</div>
  158. <div class="box-yhj-table-pre-qy qy2 nr">——</div>
  159. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">团队发展计划</div>
  160. </div>
  161. <div class="box-yhj-table-pre adf">
  162. <div class="box-yhj-table-pre-qy qy1">教练建议</div>
  163. <div class="box-yhj-table-pre-qy qy2 nr">——</div>
  164. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">教练专业建议(书面)</div>
  165. </div>
  166. <div class="box-yhj-table-pre adf">
  167. <div class="box-yhj-table-pre-qy qy1">发送报告</div>
  168. <div class="box-yhj-table-pre-qy qy2 nr">——</div>
  169. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">可向指定人员发送报告</div>
  170. </div>
  171. <div class="box-yhj-table-pre adf">
  172. <div class="box-yhj-table-pre-qy qy1">线上课</div>
  173. <div class="box-yhj-table-pre-qy qy2 nr">——</div>
  174. <div class="box-yhj-table-pre-qy qy3 active adffcac nr">送1节小鹅通团队教练线上课</div>
  175. </div>
  176. </div>
  177. </div>
  178. </view>
  179. </template>
  180. <template v-else>
  181. <view class="box-empty adffcacjc">
  182. <image :src="imgBase+'recharge_empty.png'"></image>
  183. <p>暂无定价,请等待相关人员配置~</p>
  184. </view>
  185. </template>
  186. </template>
  187. <template v-if="tindex<2">
  188. <view class="box-btn adfacjb">
  189. <view class="box-btn-left adfac">
  190. <view class="box-btn-left-text">实付</view>
  191. <view class="box-btn-left-money adfac"><span>¥</span>{{sumPrice}}</view>
  192. </view>
  193. <view class="box-btn-right" @click="confirmBuy">确认协议并购买</view>
  194. </view>
  195. </template>
  196. <template v-else>
  197. <view class="box-empty adffcacjc">
  198. <image :src="imgBase+'recharge_empty.png'"></image>
  199. <p>专家版正在开发中</p>
  200. <text>敬请期待</text>
  201. </view>
  202. </template>
  203. </view>
  204. <WechatPay ref="wxPay" @confirmPay="toPay" @cancelPay="cancelPay"></WechatPay>
  205. </view>
  206. </template>
  207. <script>
  208. import CusNumberBox from '@/components/CusNumberBox/index.vue'
  209. import WechatPay from '@/components/wechatPay/index.vue'
  210. export default {
  211. components:{ CusNumberBox, WechatPay },
  212. data(){
  213. return {
  214. userInfo:null,
  215. headData:null,
  216. avatar:this.$imgBase+'my_avatar.png',
  217. tabList:['基础版','专业版','专家版'],
  218. typeCfg:{
  219. 1:'基础版',
  220. 2:'专业版',
  221. 0:'专家版',
  222. },
  223. tindex:0,
  224. pindex:'',
  225. frequency:0,
  226. priceList:[],
  227. priceList2:[],
  228. min:11,
  229. otherTimes:11,
  230. price:0,
  231. times:0,
  232. sumPrice:0,
  233. productId:'',
  234. orderNo:'',
  235. priceData:null,
  236. }
  237. },
  238. onLoad(options) {
  239. if(uni.getStorageSync('userInfo')){
  240. this.userInfo = JSON.parse(uni.getStorageSync('userInfo'));
  241. this.getMyInfo(this.userInfo.id);
  242. if(options.type) this.tindex = Number(options.type)||0
  243. this.getList(this.tindex+1)
  244. }
  245. },
  246. methods:{
  247. getTeamScaleData(){
  248. return new Promise(resolve=>{
  249. this.$api.get('/getListByType/user_brief').then(({data:res})=>{
  250. if(res.code!==0) return this.$showToast(res.msg)
  251. resolve(res.data.map(d=>({name:d.dictLabel,id:d.dictValue})))
  252. })
  253. })
  254. },
  255. async getMyInfo(userId){
  256. const userBrief = await this.getTeamScaleData()
  257. this.$api.get(`/wx/myCount/${userId}`,this.params).then(({data:res})=>{
  258. if(res.code!==0) return this.$showToast(res.msg)
  259. this.headData = res.data;
  260. this.$set(this.headData,'userBriefText',userBrief.find(u=>u.id==this.headData.userBrief).name||'普通用户')
  261. })
  262. },
  263. changeTab(index){
  264. this.tindex = index;
  265. this.pindex = '';
  266. this.otherTimes = 11;
  267. this.price = 0;
  268. this.times = 0;
  269. this.sumPrice = 0;
  270. this.getList(this.tindex+1)
  271. },
  272. getList(type){
  273. this.$api.get(`/core/v2/queproduct/listByType/${type}`).then(({data:res})=>{
  274. if(res.code!==0) return this.$showToast(res.msg)
  275. this.priceData = res.data[0]||null
  276. if(this.priceData){
  277. this.priceData.startDate = this.priceData.beginAt?new Date(this.priceData.beginAt).Format('yyyy年MM月dd日'):'';
  278. this.priceData.endDate = this.priceData.endAt?new Date(this.priceData.endAt).Format('yyyy年MM月dd日'):'';
  279. this.sumPrice = this.priceData.discountPrice||this.priceData.price||0;
  280. }
  281. })
  282. },
  283. changePrice(item,index){
  284. this.productId = item.id;
  285. this.pindex = index;
  286. this.frequency = item.frequency;
  287. this.price = item.price;
  288. this.times = item.frequency;
  289. if(this.frequency>10){
  290. this.otherTimes = 11;
  291. this.sumPrice = this.price*this.otherTimes;
  292. } else this.sumPrice = this.price;
  293. },
  294. valueChange(val){
  295. this.otherTimes = val;
  296. this.times = this.otherTimes;
  297. this.sumPrice = this.price*this.otherTimes;
  298. },
  299. confirmBuy(){
  300. this.$api.post('/que/order/createOrder',{
  301. payAmount:this.sumPrice,
  302. productId:this.productId,
  303. totalAmount:this.sumPrice,
  304. totalFrequency:this.times,
  305. type:this.tindex+1,
  306. userId:this.userInfo.id
  307. }).then(({data:res})=>{
  308. if(res.code!==0) return this.$showToast(res.msg)
  309. this.orderNo = res.data;
  310. this.$refs.wxPay.payShow = true;
  311. })
  312. },
  313. toPay(){
  314. this.$api.post('/pay/createOrder',{
  315. orderNo:this.orderNo,
  316. openId:this.userInfo.openId
  317. }).then(({data:res})=>{
  318. if(!res.hasOwnProperty('paySign')) return this.$showToast('支付失败')
  319. this.$refs.wxPay.payShow = false;
  320. this.$wxPay(res).then(result => {
  321. uni.navigateTo({
  322. url:'/pagesPublish/payResult'
  323. })
  324. })
  325. })
  326. }
  327. }
  328. }
  329. </script>
  330. <style scoped lang="scss">
  331. .default_page{
  332. padding: 0;
  333. background: #F9F6EE;
  334. box-sizing: border-box;
  335. .info{
  336. padding: 40rpx 36rpx 37rpx;
  337. &-left{
  338. width: 98rpx;
  339. height: 98rpx;
  340. image{
  341. width: 100%;
  342. height: 100%;
  343. border-radius: 50%;
  344. }
  345. }
  346. &-right{
  347. width: calc(100% - 98rpx);
  348. padding-left: 20rpx;
  349. box-sizing: border-box;
  350. &-name{
  351. .text{
  352. font-family: PingFang-SC, PingFang-SC;
  353. font-weight: bold;
  354. font-size: 36rpx;
  355. color: #795021;
  356. line-height: 32rpx;
  357. }
  358. .version{
  359. width: 160rpx;
  360. height: 40rpx;
  361. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/my_version_bg2.png') no-repeat;
  362. background-size: 100% 100%;
  363. padding-left: 45rpx;
  364. box-sizing: border-box;
  365. font-family: PingFang-SC, PingFang-SC;
  366. font-weight: bold;
  367. font-size: 22rpx;
  368. color: #795021;
  369. line-height: 40rpx;
  370. margin-left: 12rpx;
  371. }
  372. }
  373. &-tip{
  374. font-family: PingFangSC, PingFang SC;
  375. font-weight: 400;
  376. font-size: 26rpx;
  377. color: #667E90;
  378. line-height: 24rpx;
  379. margin-top: 22rpx;
  380. }
  381. }
  382. }
  383. .box{
  384. flex: 1;
  385. overflow-y: auto;
  386. background: #FFFFFF;
  387. border-radius: 36rpx 36rpx 3rpx 3rpx;
  388. padding: 32rpx 30rpx 60rpx;
  389. &-tab{
  390. &-pre{
  391. width: calc(100% / 3);
  392. position: relative;
  393. font-family: PingFang-SC, PingFang-SC;
  394. font-weight: bold;
  395. font-size: 32rpx;
  396. color: #667E90;
  397. line-height: 45rpx;
  398. text-align: center;
  399. &.active{
  400. font-weight: bold;
  401. color: #002846;
  402. &::after{
  403. content: '';
  404. width: 48rpx;
  405. height: 6rpx;
  406. background: #002846;
  407. border-radius: 3rpx;
  408. position: absolute;
  409. left: 50%;
  410. margin-left: -24rpx;
  411. bottom: -15rpx;
  412. }
  413. }
  414. }
  415. }
  416. &-yhj{
  417. margin-top: 29rpx;
  418. &-top{
  419. width: 100%;
  420. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/bug_yhj_box_bg.png') no-repeat;
  421. background-size: 100% 100%;
  422. position: relative;
  423. border-radius: 16rpx;
  424. &-xs{
  425. width: 144rpx;
  426. height: 40rpx;
  427. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/buy_yhj_bg.png') no-repeat;
  428. background-size: 100% 100%;
  429. font-family: PingFangSC, PingFang SC;
  430. font-weight: 400;
  431. font-size: 24rpx;
  432. color: #FFFFFF;
  433. line-height: 40rpx;
  434. text-align: center;
  435. position: absolute;
  436. left: 0;
  437. top: -6rpx;
  438. }
  439. &-nr{
  440. padding: 34rpx 0 26rpx;
  441. &-title{
  442. font-family: PingFangSC, PingFang SC;
  443. font-weight: 400;
  444. font-size: 24rpx;
  445. color: #955A1D;
  446. line-height: 30rpx;
  447. text-align: center;
  448. }
  449. &-price{
  450. font-family: D-DINCondensed, D-DINCondensed;
  451. font-weight: bold;
  452. font-size: 54rpx;
  453. color: #795021;
  454. line-height: 59rpx;
  455. text-align: center;
  456. margin-top: 10rpx;
  457. }
  458. &-yj{
  459. font-family: PingFangSC, PingFang SC;
  460. font-weight: 400;
  461. font-size: 24rpx;
  462. color: #955A1D;
  463. line-height: 30rpx;
  464. text-align: center;
  465. margin-top: 8rpx;
  466. text-decoration: line-through;
  467. }
  468. }
  469. &-tip{
  470. width: 100%;
  471. padding: 11rpx 16rpx;
  472. min-height: 50rpx;
  473. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/buy_yhj_tip_bg.png') no-repeat;
  474. font-family: PingFangSC, PingFang SC;
  475. font-weight: 400;
  476. font-size: 24rpx;
  477. color: #795021;
  478. line-height: 33rpx;
  479. border-radius: 0 0 16rpx 16rpx;
  480. box-sizing: border-box;
  481. }
  482. }
  483. &-title{
  484. font-family: PingFang-SC, PingFang-SC;
  485. font-weight: bold;
  486. font-size: 32rpx;
  487. color: #002846;
  488. line-height: 40rpx;
  489. margin-top: 49rpx;
  490. }
  491. &-table{
  492. width: 100%;
  493. margin-top: 39rpx;
  494. border-radius: 24rpx 24rpx 0 0;
  495. border: 1rpx solid #E2E2E2;
  496. &-pre{
  497. border-bottom: 1rpx solid #E2E2E2;
  498. &:last-child{
  499. border: none;
  500. }
  501. &-qy{
  502. padding: 25rpx 16rpx;
  503. box-sizing: border-box;
  504. border-right: 1rpx solid #E2E2E2;
  505. font-family: PingFangSC, PingFang SC;
  506. font-weight: 400;
  507. font-size: 24rpx;
  508. line-height: 40rpx;
  509. &:last-child{
  510. border: none;
  511. }
  512. &.qy1{
  513. flex: 1;
  514. display: flex;
  515. align-items: center;
  516. }
  517. &.qy2,&.qy3{
  518. width: 283rpx;
  519. }
  520. &.title{
  521. font-weight: bold;
  522. font-size: 28rpx;
  523. }
  524. &.nr{
  525. font-weight: bold;
  526. font-size: 24rpx;
  527. text-align: center;
  528. }
  529. &.active{
  530. background: #FFFBEE;
  531. }
  532. }
  533. }
  534. }
  535. }
  536. &-price{
  537. margin-top: 34rpx;
  538. justify-content: space-between;
  539. flex-wrap: wrap;
  540. flex: 1;
  541. overflow-y: auto;
  542. &-pre{
  543. width: calc(50% - 10rpx);
  544. margin-top: 16rpx;
  545. background: #FFFFFF;
  546. border-radius: 24rpx;
  547. border: 2rpx solid #FBEBCB;
  548. position: relative;
  549. &-once{
  550. width: 121rpx;
  551. height: 35rpx;
  552. background: linear-gradient( 270deg, #EF923B 0%, #EA4F27 100%);
  553. border-radius: 10rpx;
  554. font-family: PingFangSC, PingFang SC;
  555. font-weight: 400;
  556. font-size: 24rpx;
  557. color: #FFFFFF;
  558. line-height: 35rpx;
  559. text-align: center;
  560. position: absolute;
  561. left: 0;
  562. top: 0;
  563. }
  564. &-times{
  565. font-family: PingFang-SC, PingFang-SC;
  566. font-weight: bold;
  567. font-size: 30rpx;
  568. color: #002846;
  569. line-height: 30rpx;
  570. text-align: center;
  571. margin-top: 36rpx;
  572. }
  573. &-money{
  574. font-family: D-DINCondensed, D-DINCondensed;
  575. font-weight: bold;
  576. font-size: 53rpx;
  577. color: #002846;
  578. line-height: 87rpx;
  579. margin-top: 20rpx;
  580. span{
  581. font-size: 54rpx;
  582. line-height: 59rpx;
  583. }
  584. }
  585. &-bottom{
  586. width: 100%;
  587. height: 56rpx;
  588. background: #FFF3CB;
  589. border-radius: 0rpx 0rpx 24rpx 24rpx;
  590. font-family: PingFangSC, PingFang SC;
  591. font-weight: 400;
  592. font-size: 24rpx;
  593. color: #95581C;
  594. line-height: 56rpx;
  595. text-align: center;
  596. margin-top: 31rpx;
  597. }
  598. &.active{
  599. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/price_bg.png') no-repeat;
  600. background-size: 100% 100%;
  601. .box-price-pre-times,.box-price-pre-money{
  602. color: #955A1D;
  603. }
  604. .box-price-pre-bottom{
  605. background: url('https://gitee.com/hw_0302/chuang-heng-wechat-images/raw/master/price_bottom2.png') no-repeat;
  606. color: #795021;
  607. }
  608. }
  609. }
  610. }
  611. &-other{
  612. margin-top: 51rpx;
  613. &-left{
  614. font-family: PingFang-SC, PingFang-SC;
  615. font-weight: bold;
  616. font-size: 30rpx;
  617. color: #002846;
  618. line-height: 42rpx;
  619. }
  620. }
  621. &-memo{
  622. margin-top: 48rpx;
  623. &-title{
  624. font-family: PingFang-SC, PingFang-SC;
  625. font-weight: bold;
  626. font-size: 28rpx;
  627. color: #667E90;
  628. line-height: 40rpx;
  629. }
  630. &-p{
  631. font-family: PingFangSC, PingFang SC;
  632. font-weight: 400;
  633. font-size: 24rpx;
  634. color: #95A5B1;
  635. line-height: 40rpx;
  636. margin-top: 16rpx;
  637. }
  638. }
  639. &-btn{
  640. margin-top: 40rpx;
  641. width: 100%;
  642. height: 100rpx;
  643. background: linear-gradient(to right, #242424 0%, #575757 50%);
  644. border-radius: 24rpx;
  645. &-left{
  646. padding-left: 30rpx;
  647. align-items: baseline;
  648. &-text{
  649. font-family: PingFangSC, PingFang SC;
  650. font-weight: 400;
  651. font-size: 24rpx;
  652. color: #FFFFFF;
  653. line-height: 33rpx;
  654. }
  655. &-money{
  656. font-family: D-DINCondensed, D-DINCondensed;
  657. font-weight: bold;
  658. font-size: 36rpx;
  659. color: #FCEED2;
  660. line-height: 52rpx;
  661. margin-left: 9rpx;
  662. align-items: baseline;
  663. span{
  664. font-family: D-DINCondensed, D-DINCondensed;
  665. font-weight: bold;
  666. font-size: 24rpx;
  667. color: #FCEED2;
  668. line-height: 26rpx;
  669. }
  670. }
  671. }
  672. &-right{
  673. width: 365rpx;
  674. height: 100rpx;
  675. background: #11120F;
  676. border-radius: 24rpx;
  677. font-family: PingFang-SC, PingFang-SC;
  678. font-weight: bold;
  679. font-size: 32rpx;
  680. color: #FCEED2;
  681. line-height: 100rpx;
  682. text-align: center;
  683. letter-spacing: 2rpx;
  684. }
  685. }
  686. &-empty{
  687. flex: 1;
  688. image{
  689. width: 370rpx;
  690. height: 284rpx;
  691. }
  692. p{
  693. font-family: PingFangSC, PingFang SC;
  694. font-weight: 400;
  695. font-size: 30rpx;
  696. color: #667E90;
  697. line-height: 40rpx;
  698. text-align: center;
  699. margin-top: 21rpx;
  700. }
  701. text{
  702. font-family: PingFangSC, PingFang SC;
  703. font-weight: 400;
  704. font-size: 36rpx;
  705. color: #667E90;
  706. line-height: 40rpx;
  707. text-align: center;
  708. margin-top: 16rpx;
  709. }
  710. }
  711. }
  712. }
  713. </style>