index.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <template>
  2. <view class="payment_bg">
  3. <view
  4. class="payment_info"
  5. :style="{
  6. background: `url(${currentScale.infoImg}) no-repeat center`,
  7. 'background-size': 'cover',
  8. }"
  9. >
  10. <view class="people_num"
  11. ><text>{{ peopleNum }}人已测</text></view
  12. >
  13. <view class="price_num"
  14. ><text>¥{{ price }}</text></view
  15. >
  16. <view class="pay_btn_sm" @click="checkOrder(1)"
  17. >{{ hasDiscount ? promotionPrice : price }}元解锁专属测试报告</view
  18. >
  19. </view>
  20. <view v-if="currentScale.showDesc" class="payment_desc">
  21. <image v-if="currentScale" :src="currentScale.descImg" mode="widthFix"></image>
  22. </view>
  23. <view class="top_footer">
  24. <template v-if="hasDiscount">
  25. <view class="pay_price">
  26. <view class="pay_price_p">
  27. <view class="price_left">
  28. <view class="yh">
  29. <view class="yh_title">限时优惠</view>
  30. <view class="yh_yj"
  31. ><text>原价</text><text>¥{{ price }}</text></view
  32. >
  33. </view>
  34. <view class="price_center"
  35. ><text style="font-size: 40rpx; margin-left: 10rpx">¥</text
  36. ><text>{{ promotionPrice }}</text>
  37. </view>
  38. </view>
  39. <view class="price_right">
  40. <text>{{ getPriceMod(price, promotionPrice) }}</text>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <view class="pay_btn_lg" @click="checkOrder(1)">
  46. {{ hasDiscount ? promotionPrice : price }}元解锁专属测试报告
  47. </view>
  48. <view
  49. v-if="hasDiscount"
  50. style="
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. margin: 20rpx 0;
  55. "
  56. >
  57. <!-- <view class="people_sy"> 本次优惠剩余名额:{{residueNum}} </view> -->
  58. <view class="people_sy_time">
  59. <!-- <uni-countdown :show-day="false" :hour="testHour" :minute="testMinute" :second="testSecond" /> -->
  60. <text>优惠倒计时:</text
  61. ><uni-countdown
  62. :show-day="true"
  63. background-color="#FF9D41"
  64. color="#ffffff"
  65. :start="start"
  66. :hour="testHour"
  67. :minute="testMinute"
  68. :second="testSecond"
  69. />
  70. </view>
  71. </view>
  72. </view>
  73. <uni-popup ref="popup" type="center">
  74. <view class="pay_dialog">
  75. <view class="btn_area">
  76. <image
  77. style="margin-right: 89rpx"
  78. @click="completeHandle"
  79. src="https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/complete_btn.png"
  80. mode="widthFix"
  81. ></image>
  82. <image
  83. @click="uncompleteHandle"
  84. src="https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/uncomplete_btn.png"
  85. mode="widthFix"
  86. ></image>
  87. </view>
  88. </view>
  89. </uni-popup>
  90. </view>
  91. </template>
  92. <script>
  93. import { timestampFormatter } from "../../utils/util.js";
  94. import { photoUrl } from "@/common/config.js";
  95. import chooseImageApi from '../../utils/js_sdk_utils'
  96. const photoUrls = `${photoUrl}/api/show?filePath=./webo`;
  97. export default {
  98. data() {
  99. return {
  100. scaleList: {
  101. MarriageQuality: {
  102. infoImg: `${photoUrls}/MarriageQuality/pay_scale_info.png`,
  103. descImg: `${photoUrls}/MarriageQuality/pay_scale_desc.png`,
  104. flag: "20220124203027",
  105. showDesc: true,
  106. },
  107. Burnout: {
  108. infoImg: `${photoUrls}/Burnout/pay_scale_info.png`,
  109. descImg: `${photoUrls}/Burnout/pay_scale_desc.png`,
  110. flag: "20210804162506",
  111. showDesc: true,
  112. },
  113. Career: {
  114. infoImg: `${photoUrls}/Career/pay_scale_info.png`,
  115. descImg: `${photoUrls}/Career/pay_scale_desc.png`,
  116. flag: "20210714221054",
  117. showDesc: true,
  118. },
  119. Charm: {
  120. infoImg: `${photoUrls}/Charm/paymentPage/pay_scale_info.png`,
  121. descImg: `${photoUrls}/Charm/paymentPage/pay_scale_desc.png`,
  122. flag: "20210804164957",
  123. showDesc: true,
  124. },
  125. EQtest: {
  126. infoImg: `${photoUrls}/EQtest/paymentPage/pay_scale_info.png`,
  127. descImg: `${photoUrls}/EQtest/paymentPage/pay_scale_desc.png`,
  128. flag: "20210820143117",
  129. showDesc: true,
  130. },
  131. Family: {
  132. infoImg: `${photoUrls}/Family/pay_scale_info.png`,
  133. descImg: `${photoUrls}/Family/pay_scale_desc.png`,
  134. flag: "20210622214416",
  135. showDesc: true,
  136. },
  137. Marriage: {
  138. infoImg: `${photoUrls}/Marriage/pay_scale_info.png`,
  139. descImg: `${photoUrls}/Marriage/pay_scale_desc.png`,
  140. flag: "20210714220600",
  141. showDesc: true,
  142. },
  143. Mbti: {
  144. infoImg: `${photoUrls}/Mbti/paymentPage/pay_scale_info.png`,
  145. descImg: `${photoUrls}/Mbti/paymentPage/pay_scale_desc.png`,
  146. flag: "20211020113914",
  147. showDesc: true,
  148. },
  149. Mental: {
  150. infoImg: `${photoUrls}/Mental/paymentPage/pay_scale_info.png`,
  151. descImg: `${photoUrls}/Mental/paymentPage/pay_scale_desc.png`,
  152. flag: "20210616235331",
  153. showDesc: true,
  154. },
  155. Senile: {
  156. infoImg: `${photoUrls}/Senile/paymentPage/pay_scale_info.png`,
  157. descImg: `${photoUrls}/Senile/paymentPage/pay_scale_desc.png`,
  158. flag: "20210804165314",
  159. showDesc: true,
  160. },
  161. Sleep: {
  162. infoImg: `${photoUrls}/Sleep/paymentPage/pay_scale_info.png`,
  163. descImg: `${photoUrls}/Sleep/paymentPage/pay_scale_desc.png`,
  164. flag: "20210725100704",
  165. showDesc: true,
  166. },
  167. },
  168. scaleName: "",
  169. currentScale: null,
  170. orderNo: "",
  171. orderInfo: {},
  172. peopleNum: 0,
  173. residueNum: 0, // 剩余名额
  174. price: 0, // 正常价格
  175. promotionPrice: 0, // 优惠价格
  176. promotionEndTime: 0, // 结束时间(时间戳)
  177. testHour: 0, // 时
  178. testMinute: 0, // 分
  179. testSecond: 0, // 秒
  180. start: false,
  181. userInfo: {},
  182. checkType: 0,
  183. };
  184. },
  185. onLoad(options) {
  186. debugger;
  187. if (options.orderNo) {
  188. this.orderNo = options.orderNo;
  189. setTimeout(() => {
  190. this.payEnsure();
  191. }, 200);
  192. }
  193. if (options && options.tName) {
  194. this.scaleName = options.tName;
  195. this.currentScale = this.scaleList[options.tName];
  196. }
  197. if (options && options.resultId) {
  198. this.resultId = options.resultId;
  199. }
  200. this.userInfo = uni.getStorageSync("user");
  201. this.getPeople();
  202. this.queryPromotion();
  203. },
  204. computed: {
  205. // 是否有折扣
  206. hasDiscount() {
  207. let timeSpan = new Date().getTime();
  208. let endTime = this.promotionEndTime - timeSpan;
  209. return this.residueNum > 0 && endTime > 0;
  210. },
  211. },
  212. methods: {
  213. payHandle() {
  214. // #ifdef H5
  215. this.is_wx();
  216. if (this.is_wx()) {
  217. //在微信中的h5 处理方法
  218. this.getOrderWx();
  219. } else {
  220. this.getH5Pay();
  221. }
  222. // #endif
  223. // #ifdef MP-TOUTIAO
  224. this.createOrder();
  225. // #endif
  226. },
  227. //微信支付
  228. getOrderWx() {
  229. //调用生成订单接口
  230. //生成后开始调用支付接口
  231. //至此支付已完成
  232. //生成订单
  233. console.log(this.orderInfo);
  234. this.orderInfo.total = this.hasDiscount ? this.promotionPrice : this.price;
  235. this.$request
  236. .post({
  237. url: `api/wx-pay/jsapiPay`,
  238. loadingTip: "加载中...",
  239. data: {
  240. productId: this.orderInfo.productId,
  241. userId: this.orderInfo.userId,
  242. resultId: this.orderInfo.resultId,
  243. description: this.orderInfo.description,
  244. total: this.orderInfo.total,
  245. openId: uni.getStorageSync("openId"),
  246. },
  247. })
  248. .then((res) => {
  249. //根据返回的信息查询出得出支付需要的
  250. // "prepay_id" : "wx201410272009395522657a690389285100"
  251. //调用查询出支付需要的参数
  252. //调用方法
  253. chooseImageApi()
  254. uni.hideLoading();
  255. });
  256. },
  257. is_wx() {
  258. let en = window.navigator.userAgent.toLowerCase();
  259. // 匹配en中是否含有MicroMessenger字符串
  260. if (en.match(/MicroMessenger/i) == "micromessenger") {
  261. return true;
  262. } else {
  263. return false;
  264. }
  265. },
  266. // 检查订单支付状态
  267. checkOrder(type) {
  268. let _this = this;
  269. if (_this.orderNo) {
  270. _this.$request
  271. .get({
  272. url: `api/wx-pay/queryOrder/${_this.orderNo}`,
  273. loadingTip: "加载中...",
  274. data: {},
  275. })
  276. .then((res) => {
  277. uni.hideLoading();
  278. let resultInfo = JSON.parse(res.data.body);
  279. if (resultInfo.trade_state === "SUCCESS") {
  280. uni.navigateTo({
  281. url: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  282. });
  283. } else {
  284. if (type == 0) {
  285. return;
  286. } else {
  287. this.payHandle();
  288. }
  289. }
  290. });
  291. } else {
  292. this.payHandle();
  293. }
  294. },
  295. // 拉起微信支付
  296. getH5Pay(params) {
  297. this.orderInfo.total = this.hasDiscount ? this.promotionPrice : this.price;
  298. if (this.orderInfo.total === 0) {
  299. uni.navigateTo({
  300. url: `/newScale/${this.scaleName}/testResult?resultId=${this.resultId}&messageShare=1`,
  301. });
  302. } else if (this.orderInfo.total > 0) {
  303. let _this = this;
  304. _this.$request
  305. .get({
  306. url: `api/orderInfo/queryOrderByResultIdAndUserId/${this.orderInfo.userId}/${this.orderInfo.resultId}`,
  307. loadingTip: "加载中...",
  308. data: {},
  309. })
  310. .then((res) => {
  311. uni.hideLoading();
  312. if (res.data && res.data.orderStatus === "支付成功") {
  313. uni.navigateTo({
  314. url: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  315. });
  316. } else {
  317. _this.$request
  318. .post({
  319. url: "api/wx-pay/h5Pay",
  320. loadingTip: "加载中...",
  321. data: _this.orderInfo,
  322. })
  323. .then((res) => {
  324. let redirect_url = encodeURIComponent(
  325. `https://hnhong-duo.com/webo/newScale/paymentPage/index?orderNo=${res.data.orderNo}&tName=${_this.scaleName}&resultId=${this.resultId}`
  326. );
  327. window.location.href = `${res.data.codeUrl}&redirect_url=${redirect_url}`;
  328. });
  329. }
  330. });
  331. }
  332. },
  333. createOrder() {
  334. let _this = this;
  335. this.orderInfo.total = this.hasDiscount ? this.promotionPrice : this.price;
  336. let params = {
  337. resultId: _this.orderInfo.resultId,
  338. subject: _this.orderInfo.description,
  339. body: _this.orderInfo.description,
  340. total_amount: _this.orderInfo.total * 100,
  341. msgPage: "",
  342. };
  343. _this.$request
  344. .post({
  345. url: "api/douyin/createOrder",
  346. loadingTip: "加载中...",
  347. data: params,
  348. })
  349. .then((res) => {
  350. _this.orderNo = res.data.orderNo;
  351. let imageUrl =
  352. "https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/banner1.png";
  353. _this.syncOrder({
  354. resultId: params.resultId,
  355. total_amount: params.total_amount,
  356. subject: params.subject,
  357. path: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  358. orderNo: _this.orderNo,
  359. openId: uni.getStorageSync("openId"),
  360. orderStatus: "1",
  361. imgPath: imageUrl,
  362. });
  363. _this.payToutiao(res.data.orderId, res.data.orderToken, res.data.orderNo);
  364. });
  365. },
  366. payToutiao(orderId, orderToken, orderNo) {
  367. let _this = this;
  368. tt.pay({
  369. orderInfo: {
  370. order_id: orderId,
  371. order_token: orderToken,
  372. },
  373. service: 5,
  374. success: (response) => {
  375. _this.timer = setInterval(() => {
  376. _this.getQueryOrder(orderNo);
  377. }, 1000);
  378. },
  379. fail: (err) => {
  380. uni.showToast({
  381. icon: "none",
  382. name: "支付失败",
  383. });
  384. },
  385. });
  386. },
  387. // 订单状态
  388. getQueryOrder(orderNo) {
  389. let _this = this;
  390. _this.$request
  391. .get({
  392. url: `api/douyin/queryOrder/${orderNo}`,
  393. loadingTip: "加载中...",
  394. data: {},
  395. })
  396. .then((res) => {
  397. if (res.code == "200") {
  398. if (res.data.statusCode == "SUCCESS") {
  399. let imageUrl =
  400. "https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/banner1.png";
  401. _this.syncOrder({
  402. resultId: this.orderInfo.resultId,
  403. total_amount: _this.orderInfo.total * 100,
  404. subject: _this.orderInfo.description,
  405. path: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  406. orderNo: orderNo,
  407. openId: uni.getStorageSync("openId"),
  408. orderStatus: "2",
  409. imgPath: imageUrl,
  410. });
  411. uni.navigateTo({
  412. url: `/newScale/${this.scaleName}/testResult?resultId=${_this.orderInfo.resultId}&messageShare=1`,
  413. });
  414. clearInterval(_this.timer);
  415. uni.showToast({
  416. title: "支付成功",
  417. });
  418. } else if (res.data.statusCode == "CLOSED") {
  419. // console.log("订单支付回调成功===========CLOSED》", _this.trade_state_closed );
  420. } else {
  421. clearInterval(_this.timer);
  422. // console.log("订单支付回调成功CLOSED===========》", _this.trade_state_closed);
  423. }
  424. } else {
  425. uni.showToast({
  426. title: "支付失败",
  427. });
  428. }
  429. });
  430. },
  431. // 查询测试人数
  432. getPeople() {
  433. let _this = this;
  434. _this.$request
  435. .get({
  436. url: `record/countByFlag?flag=${this.currentScale.flag}`,
  437. loadingTip: "加载中...",
  438. })
  439. .then((res) => {
  440. _this.peopleNum = res.data + 57000;
  441. });
  442. },
  443. payEnsure() {
  444. // console.log(11111)
  445. this.$refs.popup.open();
  446. },
  447. uncompleteHandle() {
  448. this.$refs.popup.close();
  449. },
  450. completeHandle() {
  451. uni.showLoading({
  452. title: "",
  453. });
  454. this.checkOrder(0);
  455. },
  456. // 查询优惠信息
  457. queryPromotion() {
  458. let _this = this;
  459. _this.$request
  460. .get({
  461. url: `api/promotionInfo/queryPromotionDetail/${this.currentScale.flag}`,
  462. loadingTip: "加载中...",
  463. data: {},
  464. })
  465. .then((res) => {
  466. let { price, name, residueNum, promotionPrice, promotionEndTime } = res.data;
  467. let params = {
  468. productId: this.currentScale.flag,
  469. userId: this.userInfo?.id,
  470. resultId: this.resultId,
  471. description: name,
  472. total: price,
  473. sceneType: uni.getSystemInfoSync().platform == "android" ? "Android" : "iOS",
  474. };
  475. this.orderInfo = params;
  476. debugger;
  477. uni.setStorageSync("orderInfo", params);
  478. this.residueNum = residueNum;
  479. this.price = price;
  480. this.promotionPrice = promotionPrice;
  481. this.promotionEndTime = new Date(promotionEndTime).getTime();
  482. this.getDhms();
  483. uni.hideLoading();
  484. });
  485. },
  486. // 获取天时分秒
  487. getDhms() {
  488. let timeSpan = this.promotionEndTime - new Date().getTime();
  489. let time = timestampFormatter(timeSpan);
  490. this.testHour = time.h;
  491. this.testMinute = time.m;
  492. this.testSecond = time.s;
  493. this.start = true;
  494. },
  495. getPriceMod(p1, p2) {
  496. let p = p1 * 1000 - p2 * 1000;
  497. return (p / 1000).toFixed(2);
  498. },
  499. // 同步订单
  500. syncOrder(params) {
  501. this.$request
  502. .post({
  503. url: "api/douyin/pushOrder",
  504. loadingTip: "加载中...",
  505. data: params,
  506. })
  507. .then((res) => {
  508. console.log(res);
  509. })
  510. .catch((err) => {
  511. console.log(err);
  512. });
  513. },
  514. },
  515. };
  516. </script>
  517. <style scoped>
  518. .payment_bg {
  519. width: 100%;
  520. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/payment_bg.png)
  521. no-repeat top;
  522. background-size: 100% auto;
  523. overflow: hidden;
  524. padding-bottom: 311rpx;
  525. }
  526. .payment_info {
  527. width: 750rpx;
  528. height: 531rpx;
  529. position: relative;
  530. margin-top: 143rpx;
  531. overflow: hidden;
  532. }
  533. .payment_info image {
  534. width: 100%;
  535. height: auto;
  536. margin-top: 134rpx;
  537. }
  538. .payment_info .pay_btn_sm {
  539. width: 640rpx;
  540. height: 73rpx;
  541. line-height: 73rpx;
  542. position: absolute;
  543. left: 55rpx;
  544. bottom: 73rpx;
  545. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_button.png)
  546. no-repeat center;
  547. background-size: 100% auto;
  548. font-family: "Alibaba PuHuiTi 2.0";
  549. font-weight: bold;
  550. font-size: 36rpx;
  551. color: #ffffff;
  552. text-shadow: 0rpx 0rpx 5rpx rgba(168, 63, 90, 0.5);
  553. text-align: center;
  554. }
  555. .payment_desc image {
  556. width: 750rpx;
  557. }
  558. .pay_btn_lg {
  559. width: 640rpx;
  560. height: 73rpx;
  561. line-height: 73rpx;
  562. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_button.png)
  563. no-repeat center;
  564. background-size: 100% auto;
  565. font-family: "Alibaba PuHuiTi 2.0";
  566. font-weight: bold;
  567. font-size: 36rpx;
  568. color: #ffffff;
  569. text-shadow: 0rpx 0rpx 5rpx rgba(168, 63, 90, 0.5);
  570. text-align: center;
  571. margin: 20rpx auto 20rpx;
  572. }
  573. .pay_dialog {
  574. width: 594rpx;
  575. height: 360rpx;
  576. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/dialog_bg.png)
  577. no-repeat top;
  578. background-size: cover;
  579. position: fixed;
  580. top: 540rpx;
  581. left: 50%;
  582. transform: translate(-50%, -50%);
  583. }
  584. .btn_area {
  585. margin: 240rpx 0 0 96rpx;
  586. }
  587. .btn_area image {
  588. width: 160rpx;
  589. }
  590. .btn_area image:active {
  591. border: 1rpx solid #999999;
  592. opacity: 0.8;
  593. border-radius: 28rpx;
  594. }
  595. .people_num {
  596. margin-top: 197rpx;
  597. }
  598. .people_num text {
  599. min-width: 157rpx;
  600. height: 44rpx;
  601. padding: 0 10rpx;
  602. background: #ffedf1;
  603. border-radius: 22rpx;
  604. font-family: "Alibaba PuHuiTi 2.0";
  605. font-size: 28rpx;
  606. color: #fc716d;
  607. line-height: 44rpx;
  608. text-align: center;
  609. margin-left: 373rpx;
  610. }
  611. .price_num {
  612. margin-top: 62rpx;
  613. }
  614. .price_num text {
  615. min-width: 74rpx;
  616. font-family: "Alibaba PuHuiTi 2.0";
  617. font-weight: normal;
  618. font-size: 32rpx;
  619. color: #fc716d;
  620. line-height: 24rpx;
  621. margin-left: 374rpx;
  622. }
  623. .top_footer {
  624. width: 750rpx;
  625. background: #ffffff;
  626. padding-bottom: 20rpx;
  627. position: fixed;
  628. bottom: 0;
  629. }
  630. .pay_price {
  631. box-sizing: border-box;
  632. display: flex;
  633. justify-content: space-between;
  634. align-items: center;
  635. width: 100%;
  636. padding: 10px 50rpx 0 50rpx;
  637. }
  638. .pay_price_y {
  639. font-family: "Alibaba PuHuiTi 2.0";
  640. font-weight: normal;
  641. font-size: 24rpx;
  642. color: #ff2f29;
  643. line-height: 16rpx;
  644. }
  645. .pay_price_p {
  646. width: 100%;
  647. display: flex;
  648. justify-content: space-between;
  649. }
  650. .price_left {
  651. display: flex;
  652. }
  653. .yh_title {
  654. font-family: "Alibaba PuHuiTi 2.0";
  655. font-weight: normal;
  656. font-size: 35rpx;
  657. color: #ff2f29;
  658. margin-top: 21rpx;
  659. }
  660. .yh_yj {
  661. font-family: "Alibaba PuHuiTi 2.0";
  662. font-weight: normal;
  663. font-size: 24rpx;
  664. color: #999999;
  665. text-decoration-line: line-through;
  666. }
  667. .price_center {
  668. font-family: "Alibaba PuHuiTi 2.0";
  669. font-weight: bold;
  670. font-size: 78rpx;
  671. color: #ff2f29;
  672. margin-top: 7rpx;
  673. }
  674. .price_right {
  675. width: 176rpx;
  676. height: 70rpx;
  677. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/MarriageQuality/lijian.png)
  678. no-repeat;
  679. background-size: cover;
  680. padding-top: 50rpx;
  681. }
  682. .price_right text {
  683. font-family: "Alibaba PuHuiTi 2.0";
  684. font-weight: bold;
  685. font-size: 32rpx;
  686. color: #ffffff;
  687. margin-left: 35rpx;
  688. }
  689. .radio_class {
  690. display: flex;
  691. background-color: #ffffff;
  692. margin-bottom: 10px;
  693. padding-left: 10px;
  694. padding-right: 10px;
  695. padding-top: 5px;
  696. border-radius: 5px;
  697. padding-bottom: 5px;
  698. align-items: center;
  699. }
  700. .radio_class_1 {
  701. display: flex;
  702. justify-content: space-around;
  703. }
  704. .pay_title {
  705. text-align: center;
  706. /* margin-top:38px; */
  707. font-size: 20px;
  708. font-family: AlibabaPuHuiTi-Heavy, AlibabaPuHuiTi;
  709. font-weight: 900;
  710. color: #500000;
  711. line-height: 101px;
  712. }
  713. .top_page_yh {
  714. font-size: 14px;
  715. font-family: Source Han Sans-Regular, Source Han Sans;
  716. font-weight: 400;
  717. color: #656c74;
  718. line-height: 20px;
  719. }
  720. .main_scale_gmcp {
  721. display: flex;
  722. justify-content: center;
  723. align-items: center;
  724. }
  725. .main_scale_font_gmcp {
  726. font-size: 16px;
  727. font-family: Source Han Sans-Medium, Source Han Sans;
  728. font-weight: 700;
  729. color: #040000;
  730. }
  731. .main_xing_left {
  732. height: 30px;
  733. width: 20px;
  734. margin-right: 20px;
  735. }
  736. .main_xing_right {
  737. height: 30px;
  738. width: 20px;
  739. margin-left: 20px;
  740. }
  741. .scale_gmcp_connent {
  742. margin-top: 10px;
  743. background-color: #ffffff;
  744. border-radius: 10px 10px 10px 10px;
  745. opacity: 1;
  746. padding: 24px 15px;
  747. margin-bottom: 200px;
  748. overflow-y: scroll;
  749. }
  750. .pub_time {
  751. margin-top: 5px;
  752. font-size: 12px;
  753. font-family: Source Han Sans-Regular, Source Han Sans;
  754. font-weight: 400;
  755. color: #c4c4c4;
  756. line-height: 17px;
  757. }
  758. .pub_connnet {
  759. font-size: 14px;
  760. font-family: Source Han Sans-Regular, Source Han Sans;
  761. font-weight: 400;
  762. color: #3d3d3d;
  763. line-height: 20px;
  764. }
  765. .people_sy {
  766. font-size: 14px;
  767. font-family: Source Han Sans-Regular, Source Han Sans;
  768. font-weight: 400;
  769. color: #656c74;
  770. line-height: 20px;
  771. margin-left: 4px;
  772. }
  773. .people_sy_time {
  774. font-family: "Alibaba PuHuiTi 2.0";
  775. font-weight: normal;
  776. font-size: 32rpx;
  777. color: #333333;
  778. line-height: 16rpx;
  779. display: flex;
  780. margin-right: 4px;
  781. display: flex;
  782. justify-content: center;
  783. align-items: center;
  784. }
  785. .time_ol {
  786. background: linear-gradient(270deg, #ff9d41 0%, #fc3c3c 100%);
  787. border-radius: 4px 4px 4px 4px;
  788. padding: 2px;
  789. color: #ffffff;
  790. }
  791. .time_mao {
  792. color: #ff9d41;
  793. }
  794. .pro_tag {
  795. height: 62rpx;
  796. padding: 0 20rpx;
  797. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paymentPage/price_bg.png)
  798. no-repeat center;
  799. border-radius: 40rpx 40rpx 40rpx 40rpx;
  800. margin-left: 16rpx;
  801. color: #ffffff;
  802. display: flex;
  803. align-items: center;
  804. font-family: "Alibaba PuHuiTi 2.0";
  805. font-weight: normal;
  806. font-size: 24rpx;
  807. color: #ffffff;
  808. .price {
  809. font-family: "Alibaba PuHuiTi 2.0";
  810. font-weight: bold;
  811. font-size: 40rpx;
  812. color: #ffffff;
  813. line-height: 16rpx;
  814. }
  815. }
  816. </style>