index.vue 23 KB

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