index.vue 22 KB

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