抖音c端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

841 行
22 KiB

  1. const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px'
  2. let config = require("../../../config/config.js");
  3. let util = require("../../../utils/util");
  4. let Http = require("../../../utils/HttpBasics");
  5. let app = getApp();
  6. const imgurl = require("../../../utils/imgurl");
  7. const QR = require("../../../utils/memberqrcode.js");
  8. Page({
  9. /**
  10. * 页面的初始数据
  11. */
  12. data: {
  13. outOrderNo:'',//支付2.0继续支付id
  14. payOrderNo: "",//评价订单id
  15. evaluateFlag: false,//控制评价显隐藏
  16. serviceUrl: '',//客服外部链接
  17. dynamicRq: "",
  18. expiredSeconds: 0,
  19. showhieRq: false,
  20. mouldType: 0,
  21. showFlag: false,
  22. navigationBarHeight,
  23. upDataRqUrlF: imgurl.upDataRqF.url,
  24. succUrl: imgurl.succ.url,
  25. spcodeUrl: imgurl.spcode.url,
  26. chevronUrl: imgurl.chevron.url,
  27. teljpgUrl: imgurl.teljpg.url,
  28. newUrl: imgurl.new1.url,
  29. weixinTitle: imgurl.weixinTitle.url,
  30. lineUrl: imgurl.line.url,
  31. wm01Url: imgurl.wm01.url,
  32. wm02Url: imgurl.wm02.url,
  33. wm03Url: imgurl.wm03.url,
  34. wm04Url: imgurl.wm04.url,
  35. showModalStatus: false,
  36. flag: 0,
  37. order: null,
  38. orderId: null,
  39. //存储计时器
  40. setInter: "",
  41. mystatus: '',
  42. staticGamedata: {},
  43. showIf: false,
  44. showPage: false,
  45. showButton: false,
  46. cardDetail: null,
  47. supportTransfer: '',
  48. cardIf: false,
  49. contentType: 0,
  50. orderFlag: false, //判断是不是线上配送
  51. },
  52. copeCode(e) {
  53. let code = e.currentTarget.dataset.text
  54. tt.setClipboardData({
  55. data: code,
  56. success: function () {
  57. tt.showToast({
  58. title: '复制成功',
  59. icon: "none"
  60. })
  61. }
  62. })
  63. },
  64. gokuaidi(e) {
  65. let nu = e.currentTarget.dataset.nu
  66. tt.navigateToMiniProgram({
  67. appId: 'wx6885acbedba59c14',
  68. path: `pages/result/result?nu=${nu}&com=&querysource=third_xcx`
  69. })
  70. },
  71. setShow() {
  72. this.setData({
  73. showFlag: true
  74. })
  75. },
  76. hieShow() {
  77. this.setData({
  78. showFlag: false
  79. })
  80. },
  81. goDetail() {
  82. tt.navigateTo({
  83. url: `/pages/coupon/detail/index?couponChannelId=${this.data.order.couponChannelId}`,
  84. success: (res) => {
  85. },
  86. fail: (res) => {
  87. },
  88. });
  89. },
  90. refund() {//退款
  91. Http.post({
  92. url: config.api.refund,
  93. data: {
  94. orderId: this.data.order.id
  95. }
  96. }).then(res => {
  97. tt.navigateTo({
  98. url: `/pages/refund/refund?id=${this.data.order.id}`,
  99. success: (res) => {
  100. },
  101. fail: (res) => {
  102. },
  103. });
  104. }).catch(err => {
  105. tt.showToast({
  106. title: err.message ? err.message : err.data, // 内容
  107. icon: "none"
  108. });
  109. })
  110. },
  111. goRefund(e) {
  112. let this_ = this
  113. if (this_.data.order.couponOrderStatus == 0) {
  114. tt.showModal({
  115. title: "申请退款",
  116. content: "提交申请退款",
  117. confirmText: "确定",
  118. success(res) {
  119. if (res.confirm) {
  120. this_.refund()
  121. console.log("confirm, continued");
  122. } else if (res.cancel) {
  123. console.log("cancel, cold");
  124. } else {
  125. // what happend?
  126. }
  127. },
  128. fail(res) {
  129. console.log(`showModal调用失败`);
  130. },
  131. });
  132. } else if (this_.data.order.couponOrderStatus == 3) {//退款中
  133. tt.navigateTo({
  134. url: `/pages/refund/refund?id=${this.data.order.id}`,
  135. success: (res) => {
  136. },
  137. fail: (res) => {
  138. },
  139. });
  140. }
  141. },
  142. //刷新订单
  143. updetail() {
  144. let that = this
  145. let url = config.api.orderDetail
  146. Http.get({
  147. url: url,
  148. data: {
  149. orderId: this.data.orderId
  150. }
  151. }).then(res => {
  152. tt.hideLoading();
  153. var createDate = util.formatTime(res.data.orders[0].createDate, "yyyy-MM-dd hh:mm:ss");
  154. let tempData = res.data.orders[0]
  155. tempData.deliveryInfo = tempData.deliveryInfo ? JSON.parse(tempData.deliveryInfo) : ""
  156. tempData.itemGroup = tempData.itemGroup ? JSON.parse(tempData.itemGroup) : ""
  157. tempData.validStartDate = util.formatTime(tempData.validStartDate, "yyyy-MM-dd")
  158. tempData.validEndDate = util.formatTime(tempData.validEndDate, "yyyy-MM-dd")
  159. that.setData({
  160. outOrderNo:res.data.id,
  161. order: tempData,
  162. showPage: true,
  163. createDate: createDate,
  164. composeOrderType: tempData.composeOrderType,
  165. contentType: tempData.contentType ? tempData.contentType : 0,
  166. orderFlag: tempData.type == 11 ? true : false,//判断是不是线上配送
  167. })
  168. if (tempData.couponOrderId) { //0未付款 1已支付 2已取消 3退款中 4已退款
  169. that.setRq()
  170. // that.upStatus()
  171. let setInter = setInterval(() => {
  172. if (tempData.couponOrderStatus == 0) {
  173. Http.get({
  174. url: config.api.getStatus,
  175. data: {
  176. couponOrderId: tempData.couponOrderId
  177. }
  178. }).then(res => {
  179. console.log(res);
  180. that.setData({
  181. couponOrderStatus: res.data.CouponOrderStatus
  182. });
  183. if (res.data.CouponOrderStatus == 1 || res.data.CouponOrderStatus == 3) {
  184. /**
  185. * 动态改变上一级页面的核销状态
  186. */
  187. // that.getStaticGame()
  188. //直接调用上一个页面的setData()方法,把数据存到上一个页面中去
  189. clearInterval(that.data.setInter);
  190. clearInterval(that.data.templTiem);
  191. that.updetail()
  192. that.setData({
  193. mystatus: res.data.CouponOrderStatus
  194. });
  195. }
  196. })
  197. .catch(err => {
  198. tt.showToast({
  199. title: err.errMsg,
  200. icon: 'none',
  201. duration: 2000,
  202. mask: false
  203. });
  204. })
  205. }
  206. }, 2000);
  207. that.setData({
  208. setInter: setInter
  209. })
  210. }
  211. if (tempData.couponOrderStatus && tempData.couponOrderStatus == 1) {//核销后
  212. that.goIfEvaluate()//判断订单是否能评价
  213. }
  214. })
  215. .catch(error => {
  216. tt.hideLoading();
  217. tt.showModal({
  218. title: '提示',
  219. content: error.errMsg,
  220. showCancel: false
  221. })
  222. })
  223. },
  224. //确认收货
  225. verify() {
  226. Http.post({
  227. url: config.api.verify,
  228. data: {
  229. couponOrderId: this.data.order.couponOrderId
  230. }
  231. }).then(res => {
  232. tt.showToast({
  233. title: '签收成功',
  234. icon: "none"
  235. })
  236. this.updetail()
  237. }).catch(err => {
  238. tt.showModal({
  239. title: '提示',
  240. content: err.message ? err.message : err.data,
  241. showCancel: false
  242. })
  243. })
  244. },
  245. phone: function (e) {
  246. let that = this;
  247. console.log(e);
  248. tt.makePhoneCall({
  249. phoneNumber: e.currentTarget.dataset.merchantlinkphone
  250. });
  251. },
  252. /**
  253. * 跳转到门店列表的详情页面
  254. */
  255. gotoDetail(e) {
  256. tt.navigateTo({
  257. url: `/pages/index/searchbar/detail/index?id=${e.currentTarget.dataset.id}`
  258. })
  259. },
  260. getUserInfo: function () {
  261. let that = this;
  262. // 获取用户信息
  263. Http.get({
  264. url: config.api.getScore,
  265. data: {}
  266. })
  267. .then(res => {
  268. console.log(res)
  269. that.setData({
  270. userName: res.data.nickName,
  271. avatarUrl: res.data.avatarUrl
  272. })
  273. })
  274. },
  275. onShareAppMessage: function (res) {
  276. app.globalData.previewFlag = true
  277. if (res.from === 'button') {
  278. console.log(res, 3333333333333333333333)
  279. // 来自页面内转发按钮
  280. let _this = this;
  281. return {
  282. title: _this.data.userName + '赠送您一张' + _this.data.order.title,
  283. path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + this.data.order.productId + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate,
  284. imageUrl: this.data.order.coverImg,
  285. success: function (res) {
  286. // 转发成功
  287. },
  288. fail: function (res) {
  289. // 转发失败
  290. }
  291. }
  292. } else {
  293. console.log(res, 444444444444444444)
  294. }
  295. },
  296. createQrCode: function (url, canvasId, cavW, cavH) {
  297. //调用插件中的draw方法,绘制二维码图片
  298. let that = this;
  299. QR.api.draw(url, canvasId, cavW, cavH, function (res) {
  300. that.setData({
  301. tempFilePath: res
  302. })
  303. });
  304. },
  305. setRq() {
  306. let _this = this
  307. _this.setData({
  308. showhieRq: false,
  309. })
  310. Http.get({//获取动态二维码
  311. url: config.api.dynamicId,
  312. data: {
  313. couponOrderId: _this.data.order.couponOrderId
  314. }
  315. }).then(res => {
  316. console.log(res, "res")
  317. _this.setData({
  318. dynamicRq: res.data.dynamicId,
  319. expiredSeconds: res.data.expiredSeconds
  320. })
  321. let url = JSON.stringify({
  322. END: "C",
  323. TYPE: "couponorder",
  324. ID: _this.data.dynamicRq
  325. })
  326. if (res.data.expiredSeconds == 0) {
  327. //倒计时为零直接显示券码
  328. } else {
  329. let inre = setInterval(() => {
  330. if (_this.data.expiredSeconds > 1) {
  331. _this.setData({
  332. expiredSeconds: _this.data.expiredSeconds - 1
  333. })
  334. // console.log("有效", _this.data.expiredSeconds)
  335. } else {
  336. // console.log("无效", _this.data.expiredSeconds)
  337. clearInterval(_this.data.templTiem)
  338. _this.setData({
  339. showhieRq: true
  340. })
  341. }
  342. _this.setData({
  343. templTiem: inre
  344. })
  345. }, 1000)
  346. }
  347. _this.createQrCode(url, "qrcode", 350, 350);
  348. }).catch(err => {
  349. tt.showToast({
  350. title: err.message,
  351. icon: 'none',
  352. duration: 2000,
  353. mask: false
  354. });
  355. })
  356. },
  357. goPaySnapshoot(e) {
  358. let id = e.currentTarget.dataset.id;
  359. tt.navigateTo({
  360. url: `/pages/paySnapshoot/paySnapshoot?id=${id}`,
  361. success: (res) => {
  362. },
  363. fail: (res) => {
  364. },
  365. });
  366. },
  367. powerDrawer: function (e) {
  368. let that = this;
  369. console.log(e)
  370. // couponOrderStatus
  371. // 0 未使用
  372. // 1 已使用
  373. // 2 已过期
  374. // 3 已经退款
  375. if (that.data.mystatus == "" || that.data.mystatus == undefined) {
  376. tt.navigateTo({
  377. url: `/pages/orderquanma/index?quancode=${e.currentTarget.dataset.quancode
  378. }&title=${e.currentTarget.dataset.title}&subtitle=${e.currentTarget.dataset.subtitle
  379. }&remark=${e.currentTarget.dataset.remark}&couponorderstatus=${e.currentTarget.dataset.couponorderstatus}&validstatus=${e.currentTarget.dataset.validstatus}
  380. &contentType=${that.data.contentType}`
  381. });
  382. } else {
  383. tt.navigateTo({
  384. url: `/pages/orderquanma/index?quancode=${e.currentTarget.dataset.quancode
  385. }&title=${e.currentTarget.dataset.title}&subtitle=${e.currentTarget.dataset.subtitle
  386. }&remark=${e.currentTarget.dataset.remark}&couponorderstatus=${that.data.mystatus}&validstatus=${e.currentTarget.dataset.validstatus}
  387. &contentType=${that.data.contentType}`
  388. });
  389. }
  390. },
  391. gotogame: function () {
  392. let that = this;
  393. tt.redirectTo({
  394. url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId,
  395. })
  396. },
  397. // 买完卡跳转到立即使用页面
  398. gotoUse: function () {
  399. tt.navigateTo({
  400. url: '/pages/cardorder/index/index'
  401. })
  402. },
  403. // 获取游戏
  404. getStaticGame(token) {
  405. let _this = this;
  406. Http.get({
  407. url: config.api.getGame,
  408. data: {
  409. triggleAction: 3 // 购买触发
  410. }
  411. }).then(res => {
  412. if (res.data.id) {
  413. _this.setData({
  414. showIf: true
  415. })
  416. }
  417. _this.setData({
  418. staticGamedata: res.data
  419. })
  420. })
  421. .catch(err => {
  422. console.log(err);
  423. })
  424. },
  425. goEvaluate() {
  426. let _this = this
  427. tt.rateAwemeOrder({
  428. orderId: _this.data.payOrderNo,
  429. success({ result }) {
  430. console.log(result);
  431. if (result) {
  432. tt.navigateBack({
  433. delta: 1,
  434. success: (res) => {
  435. },
  436. fail: (res) => {
  437. },
  438. });
  439. // 用户已经评价的逻辑
  440. } else {
  441. // 用户没有评价的逻辑
  442. }
  443. },
  444. fail(err) {
  445. console.log(err);
  446. },
  447. });
  448. },
  449. goIfEvaluate() {
  450. let _this = this
  451. Http.get({
  452. url: config.api.getchanId,
  453. data: {
  454. id: _this.data.order.couponOrderId
  455. }
  456. }).then(res => {
  457. tt.canRateAwemeOrders({
  458. orderIds: [res.data.payOrderNo],
  459. success({ result }) {
  460. console.log("result", result);
  461. _this.setData({
  462. evaluateFlag: result[0],
  463. payOrderNo: res.data.payOrderNo
  464. })
  465. },
  466. fail(err) {
  467. console.log(err);
  468. },
  469. });
  470. }).catch(err => {
  471. tt.showToast({
  472. title: err.message ? err.message : err.data, // 内容
  473. icon: "none"
  474. });
  475. })
  476. },
  477. /**
  478. * 生命周期函数--监听页面加载
  479. */
  480. onLoad: function (options) {
  481. this.getSeUrl()
  482. this.setData({
  483. mouldType: app.globalData.mouldType
  484. })
  485. let that = this;
  486. // if (options.dingdan && options.dingdan == "order") {
  487. // }
  488. that.setData({
  489. orderId: options.orderId,
  490. });
  491. tt.hideShareMenu()
  492. if (options.cardIf) {//转赠 展示不需
  493. that.setData({
  494. cardIf: true
  495. })
  496. }
  497. tt.showLoading({
  498. title: "加载中"
  499. });
  500. },
  501. onShow: function () {
  502. let that = this;
  503. that.setData({
  504. showButton: false
  505. })
  506. that.updetail()
  507. },
  508. getSeUrl() {//获取客服链接
  509. const openId = tt.getStorageSync('openId');
  510. Http.post({
  511. url: config.api.getServiceUrl,
  512. data: {
  513. appid: app.globalData.appId,
  514. openid: openId
  515. }
  516. }).then(res => {
  517. this.setData({
  518. serviceUrl: res.data ? res.data : ''
  519. })
  520. if (res.data) {
  521. tt.setStorageSync('serviceData', res.data);
  522. }
  523. })
  524. },
  525. goWebView() {
  526. let _this = this
  527. tt.navigateTo({
  528. url: `/pages/serviceWebView/serviceWebView`,
  529. success: (res) => {
  530. },
  531. fail: (res) => {
  532. },
  533. });
  534. },
  535. /**
  536. * 去拼团
  537. */
  538. goToOrderGroup(orderId, orderGroupId, _this) {
  539. let that = this;
  540. // 支付成功
  541. Http.post({
  542. url: config.api.toOrderGroup,
  543. data: {
  544. id: orderGroupId,
  545. orderId,
  546. couponId: _this.data.order.productId
  547. }
  548. })
  549. .then(res => {
  550. tt.redirectTo({
  551. url: `/pages/spellDetail/index?orderId=${orderId}&couponId=${_this.data.order.productId}&orderGroupId=${res.data.orderGroupId}`
  552. });
  553. })
  554. .catch(err => {
  555. console.log(err);
  556. })
  557. // return;
  558. },
  559. /**
  560. * 发起支付
  561. */
  562. orderFunc(e) {
  563. var that = this;
  564. const orderId = "" + that.data.orderId;
  565. that.setData({
  566. showButton: true
  567. })
  568. tt.showLoading({
  569. title: "加载中..."
  570. });
  571. if (!tt.canIUse('createOrder')) {//兼容不支持支付2.0 js-api
  572. if (that.data.order.payment > 0) {
  573. // 支付金额不为0
  574. Http.post({
  575. url: config.api.payOrderCreate,
  576. data: {
  577. orderId: orderId,
  578. composeOrderType: that.data.composeOrderType
  579. }
  580. }).then(res => {
  581. var payOrderId = "" + res.data.outOrderNo;
  582. tt.hideLoading();
  583. tt.pay({
  584. service: 5,
  585. orderInfo: {
  586. order_id: res.data.orderId,
  587. order_token: res.data.token,
  588. },
  589. success: res => {
  590. tt.showLoading({
  591. title: '订单正在处理中...',
  592. })
  593. if (res.code == 0) {
  594. setTimeout(function () {
  595. tt.hideLoading()
  596. }, 5000)
  597. that.payOrderUpdate(that.data.orderId, payOrderId, 1, '', '', that); // 支付成功
  598. if (res.errMsg == "requestPayment:ok") {
  599. if (that.data.order.type == 100) {
  600. tt.setStorage({
  601. key: 'couponNum2',
  602. data: "couponNum2"
  603. })
  604. } else if (that.data.order.type != 5) {
  605. tt.setStorage({
  606. key: 'couponNum',
  607. data: "couponNum"
  608. })
  609. }
  610. }
  611. } else if (res.code === 1) {
  612. that.setData({
  613. showButton: false
  614. })
  615. tt.hideLoading();
  616. tt.showToast({
  617. title: '支付超时', // 内容
  618. icon: "none"
  619. });
  620. } else if (res.code === 2) {
  621. that.setData({
  622. showButton: false
  623. })
  624. tt.hideLoading();
  625. tt.showToast({
  626. title: '支付失败', // 内容
  627. icon: "none"
  628. });
  629. } else if (res.code === 3) {
  630. that.setData({
  631. showButton: false
  632. })
  633. tt.hideLoading();
  634. tt.showToast({
  635. title: '支付关闭', // 内容
  636. icon: "none"
  637. });
  638. } else if (res.code === 4) {
  639. that.setData({
  640. showButton: false
  641. })
  642. tt.hideLoading();
  643. tt.showToast({
  644. title: '支付取消', // 内容
  645. icon: "none"
  646. });
  647. } else if (res.code === 9) {
  648. that.setData({
  649. showButton: false
  650. })
  651. tt.hideLoading();
  652. tt.showToast({
  653. title: '订单状态开发者自行获取', // 内容
  654. icon: "none"
  655. });
  656. }
  657. },
  658. fail: res => {
  659. that.setData({
  660. showButton: false
  661. })
  662. that.payOrderUpdate(that.data.orderId, payOrderId, 2, '', 'fail', that);
  663. return;
  664. },
  665. });
  666. }).catch(err => {
  667. tt.hideLoading();
  668. that.setData({
  669. showButton: false
  670. })
  671. tt.showModal({
  672. title: "抱歉",
  673. content: err.message,
  674. showCancel: false
  675. })
  676. });
  677. } else {
  678. // 免费券
  679. that.payOrderUpdate(orderId, "0", 1, '', 'free') // 支付成功
  680. if (that.data.order.type == 100) {
  681. tt.setStorage({
  682. key: 'couponNum2',
  683. data: "couponNum2"
  684. })
  685. } else if (that.data.order.type != "5") {
  686. tt.setStorage({
  687. key: 'couponNum',
  688. data: "couponNum"
  689. })
  690. }
  691. tt.showToast({
  692. title: "支付成功",
  693. duration: 2000,
  694. image: imgurl.success.url,
  695. });
  696. }
  697. }else{//支持 支付2.0 js-api
  698. const outOrderNo = that.data.outOrderNo
  699. console.log(outOrderNo,"outOrderNo");
  700. tt.continueToPay({
  701. outOrderNo: outOrderNo, // 外部订单号 2个订单号必填一个
  702. success: res => {
  703. const { orderId, outOrderNo } = res;
  704. console.log('success res', res);
  705. console.log('orderId', orderId, 'outOrderNo', outOrderNo);
  706. that.setData({
  707. showButton: false
  708. })
  709. tt.hideLoading();
  710. that.payOrderUpdate(outOrderNo, outOrderNo, 1, '', '', that); // 支付成功
  711. },
  712. fail: res => {
  713. const { orderId, outOrderNo, errNo, errMsg, errLogId } = res;
  714. if(errLogId){
  715. console.log('查询订单信息失败',errNo, errMsg, errLogId);
  716. that.setData({
  717. showButton: false
  718. })
  719. tt.hideLoading();
  720. }
  721. if( orderId || outOrderNo){
  722. console.log('支付失败',errNo, errMsg , orderId, outOrderNo);
  723. that.payOrderUpdate(outOrderNo, outOrderNo, 2, '', 'fail', that);
  724. that.setData({
  725. showButton: false
  726. })
  727. tt.hideLoading();
  728. }
  729. },
  730. });
  731. }
  732. },
  733. /**
  734. * 支付订单更新
  735. */
  736. payOrderUpdate: (orderId, payOrderId, status, reason, type, _this) => {
  737. // 支付成功
  738. Http.post({
  739. url: config.api.payOrderUpdate,
  740. data: {
  741. payOrderId: payOrderId,
  742. composeOrderId: orderId,
  743. status: status,
  744. reason: reason
  745. }
  746. })
  747. .then(res => {
  748. tt.hideLoading();
  749. _this.setData({
  750. showButton: false
  751. })
  752. if (!type && type != 'free') {
  753. tt.showToast({
  754. title: "购买成功",
  755. duration: 2000,
  756. image: imgurl.success.url,
  757. mask: false,
  758. success: function () {
  759. tt.showLoading({
  760. title: "加载中..."
  761. });
  762. setTimeout(function () {
  763. tt.hideLoading();
  764. }, 1600);
  765. setTimeout(() => {
  766. let url = ""
  767. if (_this.data.orderFlag) {
  768. tt.redirectTo({
  769. url: `/pages/order/detail/index?orderId=${orderId}&dingdan=order`
  770. });
  771. } else {
  772. tt.redirectTo({
  773. url: `/pages/order/detail/index?orderId=${orderId}`
  774. });
  775. }
  776. }, 1600);
  777. }
  778. });
  779. } else if (type == 'free') {
  780. tt.redirectTo({
  781. url: `/pages/order/detail/index?orderId=${orderId}`
  782. });
  783. }
  784. })
  785. .catch(err => {
  786. console.log(err)
  787. if (!type) {
  788. setTimeout(function () {
  789. _this.payOrderUpdate(orderId, payOrderId, status, reason, type, _this);
  790. }, 1500)
  791. }
  792. });
  793. },
  794. onUnload: function () {
  795. let that = this;
  796. clearInterval(that.data.setInter);
  797. clearInterval(that.data.templTiem);
  798. },
  799. onHide: function () {
  800. let that = this;
  801. clearInterval(that.data.setInter);
  802. clearInterval(that.data.templTiem);
  803. },
  804. });