index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918
  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 { chooseWXPayApi,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. if (options.orderNo) {
  187. this.orderNo = options.orderNo;
  188. setTimeout(() => {
  189. this.payEnsure();
  190. }, 200);
  191. }
  192. if (options && options.tName) {
  193. this.scaleName = options.tName;
  194. this.currentScale = this.scaleList[options.tName];
  195. }
  196. if (options && options.resultId) {
  197. this.resultId = options.resultId;
  198. }
  199. this.userInfo = uni.getStorageSync("user");
  200. this.getPeople();
  201. this.queryPromotion();
  202. },
  203. computed: {
  204. // 是否有折扣
  205. hasDiscount() {
  206. let timeSpan = new Date().getTime();
  207. let endTime = this.promotionEndTime - timeSpan;
  208. return this.residueNum > 0 && endTime > 0;
  209. },
  210. },
  211. methods: {
  212. payHandle() {
  213. // #ifdef H5
  214. this.is_wx();
  215. if (this.is_wx()) {
  216. //在微信中的h5 处理方法
  217. this.getOrderWx();
  218. } else {
  219. this.getH5Pay();
  220. }
  221. // #endif
  222. // #ifdef MP-TOUTIAO
  223. this.createOrder();
  224. // #endif
  225. },
  226. //微信支付
  227. getOrderWx() {
  228. this.orderInfo.total = this.hasDiscount ? this.promotionPrice : this.price;
  229. this.$request
  230. .post({
  231. url: `api/wx-pay/jsapiPay`,
  232. loadingTip: "加载中...",
  233. data: {
  234. productId: this.orderInfo.productId,
  235. userId: this.orderInfo.userId,
  236. resultId: this.orderInfo.resultId,
  237. description: this.orderInfo.description,
  238. total: this.orderInfo.total,
  239. openId: uni.getStorageSync("openId"),
  240. },
  241. })
  242. .then((res) => {
  243. console.log("初始订单返回的信息");
  244. console.log(res);
  245. this.orderNo = res.data.orderNo;
  246. if (res.code == 200) {
  247. // JSON.parse(aa.data.codeUrl)
  248. let par = JSON.parse(res.data.codeUrl);
  249. //将数据传输到调用支付的接口
  250. chooseWXPayApi(par).then((res) => {
  251. if (res == "已取消支付") {
  252. uni.showToast({
  253. icon: "none",
  254. title: "已取消支付",
  255. });
  256. //提示用户取消了
  257. return;
  258. } else if (res == "支付失败了") {
  259. uni.showToast({
  260. icon: "none",
  261. title: "支付失败了",
  262. });
  263. //弹出框提示
  264. return;
  265. } else {
  266. if (res.errMsg == "chooseWXPay:ok") {
  267. this.queryWXh5();
  268. }
  269. }
  270. });
  271. }
  272. uni.hideLoading();
  273. });
  274. },
  275. //支付成功后
  276. //查询订单是否成功
  277. queryWXh5() {
  278. let _this = this;
  279. _this.$request
  280. .get({
  281. url: `api/wx-pay/queryOrder/${_this.orderNo}`,
  282. loadingTip: "加载中...",
  283. data: {},
  284. })
  285. .then((res) => {
  286. uni.hideLoading();
  287. let resultInfo = JSON.parse(res.data.body);
  288. if (resultInfo.trade_state === "SUCCESS") {
  289. //提示支付成功
  290. uni.showToast({
  291. icon: "none",
  292. title: "支付成功",
  293. });
  294. uni.navigateTo({
  295. url: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  296. });
  297. } else {
  298. uni.showToast({
  299. icon: "none",
  300. title: "支付失败",
  301. });
  302. }
  303. });
  304. },
  305. is_wx() {
  306. let en = window.navigator.userAgent.toLowerCase();
  307. // 匹配en中是否含有MicroMessenger字符串
  308. if (en.match(/MicroMessenger/i) == "micromessenger") {
  309. return true;
  310. } else {
  311. return false;
  312. }
  313. },
  314. // 检查订单支付状态
  315. checkOrder(type) {
  316. let _this = this;
  317. if (_this.orderNo) {
  318. _this.$request
  319. .get({
  320. url: `api/wx-pay/queryOrder/${_this.orderNo}`,
  321. loadingTip: "加载中...",
  322. data: {},
  323. })
  324. .then((res) => {
  325. uni.hideLoading();
  326. let resultInfo = JSON.parse(res.data.body);
  327. if (resultInfo.trade_state === "SUCCESS") {
  328. uni.navigateTo({
  329. url: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  330. });
  331. } else {
  332. if (type == 0) {
  333. return;
  334. } else {
  335. this.payHandle();
  336. }
  337. }
  338. });
  339. } else {
  340. this.payHandle();
  341. }
  342. },
  343. // 拉起微信支付
  344. getH5Pay(params) {
  345. this.orderInfo.total = this.hasDiscount ? this.promotionPrice : this.price;
  346. if (this.orderInfo.total === 0) {
  347. uni.navigateTo({
  348. url: `/newScale/${this.scaleName}/testResult?resultId=${this.resultId}&messageShare=1`,
  349. });
  350. } else if (this.orderInfo.total > 0) {
  351. let _this = this;
  352. _this.$request
  353. .get({
  354. url: `api/orderInfo/queryOrderByResultIdAndUserId/${this.orderInfo.userId}/${this.orderInfo.resultId}`,
  355. loadingTip: "加载中...",
  356. data: {},
  357. })
  358. .then((res) => {
  359. uni.hideLoading();
  360. if (res.data && res.data.orderStatus === "支付成功") {
  361. uni.navigateTo({
  362. url: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  363. });
  364. } else {
  365. _this.$request
  366. .post({
  367. url: "api/wx-pay/h5Pay",
  368. loadingTip: "加载中...",
  369. data: _this.orderInfo,
  370. })
  371. .then((res) => {
  372. let redirect_url = encodeURIComponent(
  373. `https://hnhong-duo.com/webo/newScale/paymentPage/index?orderNo=${res.data.orderNo}&tName=${_this.scaleName}&resultId=${this.resultId}`
  374. );
  375. window.location.href = `${res.data.codeUrl}&redirect_url=${redirect_url}`;
  376. });
  377. }
  378. });
  379. }
  380. },
  381. createOrder() {
  382. let _this = this;
  383. this.orderInfo.total = this.hasDiscount ? this.promotionPrice : this.price;
  384. let params = {
  385. resultId: _this.orderInfo.resultId,
  386. subject: _this.orderInfo.description,
  387. body: _this.orderInfo.description,
  388. total_amount: _this.orderInfo.total * 100,
  389. msgPage: "",
  390. };
  391. _this.$request
  392. .post({
  393. url: "api/douyin/createOrder",
  394. loadingTip: "加载中...",
  395. data: params,
  396. })
  397. .then((res) => {
  398. _this.orderNo = res.data.orderNo;
  399. let imageUrl =
  400. "https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/banner1.png";
  401. _this.syncOrder({
  402. resultId: params.resultId,
  403. total_amount: params.total_amount,
  404. subject: params.subject,
  405. path: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  406. orderNo: _this.orderNo,
  407. openId: uni.getStorageSync("openId"),
  408. orderStatus: "1",
  409. imgPath: imageUrl,
  410. });
  411. _this.payToutiao(res.data.orderId, res.data.orderToken, res.data.orderNo);
  412. });
  413. },
  414. payToutiao(orderId, orderToken, orderNo) {
  415. let _this = this;
  416. tt.pay({
  417. orderInfo: {
  418. order_id: orderId,
  419. order_token: orderToken,
  420. },
  421. service: 5,
  422. success: (response) => {
  423. _this.timer = setInterval(() => {
  424. _this.getQueryOrder(orderNo);
  425. }, 1000);
  426. },
  427. fail: (err) => {
  428. uni.showToast({
  429. icon: "none",
  430. title: "支付失败",
  431. });
  432. },
  433. });
  434. },
  435. // 订单状态
  436. getQueryOrder(orderNo) {
  437. let _this = this;
  438. _this.$request
  439. .get({
  440. url: `api/douyin/queryOrder/${orderNo}`,
  441. loadingTip: "加载中...",
  442. data: {},
  443. })
  444. .then((res) => {
  445. if (res.code == "200") {
  446. if (res.data.statusCode == "SUCCESS") {
  447. let imageUrl =
  448. "https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/banner1.png";
  449. _this.syncOrder({
  450. resultId: this.orderInfo.resultId,
  451. total_amount: _this.orderInfo.total * 100,
  452. subject: _this.orderInfo.description,
  453. path: `/newScale/${this.scaleName}/testResult?resultId=${this.orderInfo.resultId}&messageShare=1`,
  454. orderNo: orderNo,
  455. openId: uni.getStorageSync("openId"),
  456. orderStatus: "2",
  457. imgPath: imageUrl,
  458. });
  459. uni.navigateTo({
  460. url: `/newScale/${this.scaleName}/testResult?resultId=${_this.orderInfo.resultId}&messageShare=1`,
  461. });
  462. clearInterval(_this.timer);
  463. uni.showToast({
  464. title: "支付成功",
  465. });
  466. } else if (res.data.statusCode == "CLOSED") {
  467. // console.log("订单支付回调成功===========CLOSED》", _this.trade_state_closed );
  468. } else {
  469. clearInterval(_this.timer);
  470. // console.log("订单支付回调成功CLOSED===========》", _this.trade_state_closed);
  471. }
  472. } else {
  473. uni.showToast({
  474. title: "支付失败",
  475. });
  476. }
  477. });
  478. },
  479. // 查询测试人数
  480. getPeople() {
  481. let _this = this;
  482. _this.$request
  483. .get({
  484. url: `record/countByFlag?flag=${this.currentScale.flag}`,
  485. loadingTip: "加载中...",
  486. })
  487. .then((res) => {
  488. _this.peopleNum = res.data + 57000;
  489. });
  490. },
  491. payEnsure() {
  492. // console.log(11111)
  493. this.$refs.popup.open();
  494. },
  495. uncompleteHandle() {
  496. this.$refs.popup.close();
  497. },
  498. completeHandle() {
  499. uni.showLoading({
  500. title: "",
  501. });
  502. this.checkOrder(0);
  503. },
  504. // 查询优惠信息
  505. queryPromotion() {
  506. let _this = this;
  507. _this.$request
  508. .get({
  509. url: `api/promotionInfo/queryPromotionDetail/${this.currentScale.flag}`,
  510. loadingTip: "加载中...",
  511. data: {},
  512. })
  513. .then((res) => {
  514. let { price, name, residueNum, promotionPrice, promotionEndTime } = res.data;
  515. let params = {
  516. productId: this.currentScale.flag,
  517. userId: this.userInfo?.id,
  518. resultId: this.resultId,
  519. description: name,
  520. total: price,
  521. sceneType: uni.getSystemInfoSync().platform == "android" ? "Android" : "iOS",
  522. };
  523. this.orderInfo = params;
  524. uni.setStorageSync("orderInfo", params);
  525. this.residueNum = residueNum;
  526. this.price = price;
  527. this.promotionPrice = promotionPrice;
  528. this.promotionEndTime = new Date(promotionEndTime).getTime();
  529. this.getDhms();
  530. uni.hideLoading();
  531. });
  532. },
  533. // 获取天时分秒
  534. getDhms() {
  535. let timeSpan = this.promotionEndTime - new Date().getTime();
  536. let time = timestampFormatter(timeSpan);
  537. this.testHour = time.h;
  538. this.testMinute = time.m;
  539. this.testSecond = time.s;
  540. this.start = true;
  541. },
  542. getPriceMod(p1, p2) {
  543. let p = p1 * 1000 - p2 * 1000;
  544. return (p / 1000).toFixed(2);
  545. },
  546. // 同步订单
  547. syncOrder(params) {
  548. this.$request
  549. .post({
  550. url: "api/douyin/pushOrder",
  551. loadingTip: "加载中...",
  552. data: params,
  553. })
  554. .then((res) => {
  555. console.log(res);
  556. })
  557. .catch((err) => {
  558. console.log(err);
  559. });
  560. },
  561. },
  562. };
  563. </script>
  564. <style scoped>
  565. .payment_bg {
  566. width: 100%;
  567. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/payment_bg.png)
  568. no-repeat top;
  569. background-size: 100% auto;
  570. overflow: hidden;
  571. padding-bottom: 311rpx;
  572. }
  573. .payment_info {
  574. width: 750rpx;
  575. height: 531rpx;
  576. position: relative;
  577. margin-top: 143rpx;
  578. overflow: hidden;
  579. }
  580. .payment_info image {
  581. width: 100%;
  582. height: auto;
  583. margin-top: 134rpx;
  584. }
  585. .payment_info .pay_btn_sm {
  586. width: 640rpx;
  587. height: 73rpx;
  588. line-height: 73rpx;
  589. position: absolute;
  590. left: 55rpx;
  591. bottom: 73rpx;
  592. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_button.png)
  593. no-repeat center;
  594. background-size: 100% auto;
  595. font-family: "Alibaba PuHuiTi 2.0";
  596. font-weight: bold;
  597. font-size: 36rpx;
  598. color: #ffffff;
  599. text-shadow: 0rpx 0rpx 5rpx rgba(168, 63, 90, 0.5);
  600. text-align: center;
  601. }
  602. .payment_desc image {
  603. width: 750rpx;
  604. }
  605. .pay_btn_lg {
  606. width: 640rpx;
  607. height: 73rpx;
  608. line-height: 73rpx;
  609. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_button.png)
  610. no-repeat center;
  611. background-size: 100% auto;
  612. font-family: "Alibaba PuHuiTi 2.0";
  613. font-weight: bold;
  614. font-size: 36rpx;
  615. color: #ffffff;
  616. text-shadow: 0rpx 0rpx 5rpx rgba(168, 63, 90, 0.5);
  617. text-align: center;
  618. margin: 20rpx auto 20rpx;
  619. }
  620. .pay_dialog {
  621. width: 594rpx;
  622. height: 360rpx;
  623. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/dialog_bg.png)
  624. no-repeat top;
  625. background-size: cover;
  626. position: fixed;
  627. top: 540rpx;
  628. left: 50%;
  629. transform: translate(-50%, -50%);
  630. }
  631. .btn_area {
  632. margin: 240rpx 0 0 96rpx;
  633. }
  634. .btn_area image {
  635. width: 160rpx;
  636. }
  637. .btn_area image:active {
  638. border: 1rpx solid #999999;
  639. opacity: 0.8;
  640. border-radius: 28rpx;
  641. }
  642. .people_num {
  643. margin-top: 197rpx;
  644. }
  645. .people_num text {
  646. min-width: 157rpx;
  647. height: 44rpx;
  648. padding: 0 10rpx;
  649. background: #ffedf1;
  650. border-radius: 22rpx;
  651. font-family: "Alibaba PuHuiTi 2.0";
  652. font-size: 28rpx;
  653. color: #fc716d;
  654. line-height: 44rpx;
  655. text-align: center;
  656. margin-left: 373rpx;
  657. }
  658. .price_num {
  659. margin-top: 62rpx;
  660. }
  661. .price_num text {
  662. min-width: 74rpx;
  663. font-family: "Alibaba PuHuiTi 2.0";
  664. font-weight: normal;
  665. font-size: 32rpx;
  666. color: #fc716d;
  667. line-height: 24rpx;
  668. margin-left: 374rpx;
  669. }
  670. .top_footer {
  671. width: 750rpx;
  672. background: #ffffff;
  673. padding-bottom: 20rpx;
  674. position: fixed;
  675. bottom: 0;
  676. }
  677. .pay_price {
  678. box-sizing: border-box;
  679. display: flex;
  680. justify-content: space-between;
  681. align-items: center;
  682. width: 100%;
  683. padding: 10px 50rpx 0 50rpx;
  684. }
  685. .pay_price_y {
  686. font-family: "Alibaba PuHuiTi 2.0";
  687. font-weight: normal;
  688. font-size: 24rpx;
  689. color: #ff2f29;
  690. line-height: 16rpx;
  691. }
  692. .pay_price_p {
  693. width: 100%;
  694. display: flex;
  695. justify-content: space-between;
  696. }
  697. .price_left {
  698. display: flex;
  699. }
  700. .yh_title {
  701. font-family: "Alibaba PuHuiTi 2.0";
  702. font-weight: normal;
  703. font-size: 35rpx;
  704. color: #ff2f29;
  705. margin-top: 21rpx;
  706. }
  707. .yh_yj {
  708. font-family: "Alibaba PuHuiTi 2.0";
  709. font-weight: normal;
  710. font-size: 24rpx;
  711. color: #999999;
  712. text-decoration-line: line-through;
  713. }
  714. .price_center {
  715. font-family: "Alibaba PuHuiTi 2.0";
  716. font-weight: bold;
  717. font-size: 78rpx;
  718. color: #ff2f29;
  719. margin-top: 7rpx;
  720. }
  721. .price_right {
  722. width: 176rpx;
  723. height: 70rpx;
  724. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/MarriageQuality/lijian.png)
  725. no-repeat;
  726. background-size: cover;
  727. padding-top: 50rpx;
  728. }
  729. .price_right text {
  730. font-family: "Alibaba PuHuiTi 2.0";
  731. font-weight: bold;
  732. font-size: 32rpx;
  733. color: #ffffff;
  734. margin-left: 35rpx;
  735. }
  736. .radio_class {
  737. display: flex;
  738. background-color: #ffffff;
  739. margin-bottom: 10px;
  740. padding-left: 10px;
  741. padding-right: 10px;
  742. padding-top: 5px;
  743. border-radius: 5px;
  744. padding-bottom: 5px;
  745. align-items: center;
  746. }
  747. .radio_class_1 {
  748. display: flex;
  749. justify-content: space-around;
  750. }
  751. .pay_title {
  752. text-align: center;
  753. /* margin-top:38px; */
  754. font-size: 20px;
  755. font-family: AlibabaPuHuiTi-Heavy, AlibabaPuHuiTi;
  756. font-weight: 900;
  757. color: #500000;
  758. line-height: 101px;
  759. }
  760. .top_page_yh {
  761. font-size: 14px;
  762. font-family: Source Han Sans-Regular, Source Han Sans;
  763. font-weight: 400;
  764. color: #656c74;
  765. line-height: 20px;
  766. }
  767. .main_scale_gmcp {
  768. display: flex;
  769. justify-content: center;
  770. align-items: center;
  771. }
  772. .main_scale_font_gmcp {
  773. font-size: 16px;
  774. font-family: Source Han Sans-Medium, Source Han Sans;
  775. font-weight: 700;
  776. color: #040000;
  777. }
  778. .main_xing_left {
  779. height: 30px;
  780. width: 20px;
  781. margin-right: 20px;
  782. }
  783. .main_xing_right {
  784. height: 30px;
  785. width: 20px;
  786. margin-left: 20px;
  787. }
  788. .scale_gmcp_connent {
  789. margin-top: 10px;
  790. background-color: #ffffff;
  791. border-radius: 10px 10px 10px 10px;
  792. opacity: 1;
  793. padding: 24px 15px;
  794. margin-bottom: 200px;
  795. overflow-y: scroll;
  796. }
  797. .pub_time {
  798. margin-top: 5px;
  799. font-size: 12px;
  800. font-family: Source Han Sans-Regular, Source Han Sans;
  801. font-weight: 400;
  802. color: #c4c4c4;
  803. line-height: 17px;
  804. }
  805. .pub_connnet {
  806. font-size: 14px;
  807. font-family: Source Han Sans-Regular, Source Han Sans;
  808. font-weight: 400;
  809. color: #3d3d3d;
  810. line-height: 20px;
  811. }
  812. .people_sy {
  813. font-size: 14px;
  814. font-family: Source Han Sans-Regular, Source Han Sans;
  815. font-weight: 400;
  816. color: #656c74;
  817. line-height: 20px;
  818. margin-left: 4px;
  819. }
  820. .people_sy_time {
  821. font-family: "Alibaba PuHuiTi 2.0";
  822. font-weight: normal;
  823. font-size: 32rpx;
  824. color: #333333;
  825. line-height: 16rpx;
  826. display: flex;
  827. margin-right: 4px;
  828. display: flex;
  829. justify-content: center;
  830. align-items: center;
  831. }
  832. .time_ol {
  833. background: linear-gradient(270deg, #ff9d41 0%, #fc3c3c 100%);
  834. border-radius: 4px 4px 4px 4px;
  835. padding: 2px;
  836. color: #ffffff;
  837. }
  838. .time_mao {
  839. color: #ff9d41;
  840. }
  841. .pro_tag {
  842. height: 62rpx;
  843. padding: 0 20rpx;
  844. background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paymentPage/price_bg.png)
  845. no-repeat center;
  846. border-radius: 40rpx 40rpx 40rpx 40rpx;
  847. margin-left: 16rpx;
  848. color: #ffffff;
  849. display: flex;
  850. align-items: center;
  851. font-family: "Alibaba PuHuiTi 2.0";
  852. font-weight: normal;
  853. font-size: 24rpx;
  854. color: #ffffff;
  855. .price {
  856. font-family: "Alibaba PuHuiTi 2.0";
  857. font-weight: bold;
  858. font-size: 40rpx;
  859. color: #ffffff;
  860. line-height: 16rpx;
  861. }
  862. }
  863. </style>