activityOrderDetail.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247
  1. <template>
  2. <view class="box">
  3. <!-- 自定义导航 -->
  4. <!-- <view class="zdyNavBox">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback"></image>
  9. <image src="../../../static/img/nav_icon_home.png" mode="" class="homeImg" @click="gohome"></image>
  10. </view>
  11. <view class="zdyNavTitle">订单详情</view>
  12. <view style="width: 100px;"></view>
  13. </view>
  14. </view>
  15. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  16. <view style="height: 44px;"></view> -->
  17. <homenav :iStatusBarHeight="iStatusBarHeight" :title="'订单详情'" :cj="3"></homenav>
  18. <view class="top" :style="{background:'#'+themeColor}">
  19. <view class="orderState">
  20. <image src="../../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  21. <view class="SheetState" v-if="orderData.data.sheetState == 1">待付款</view>
  22. <view class="SheetState" v-if="orderData.data.sheetState == 2">待服务</view>
  23. <view class="SheetState" v-if="orderData.data.sheetState == 3">已完成</view>
  24. <view class="SheetState" v-if="orderData.data.sheetState == 4">已取消</view>
  25. <view class="SheetState" v-if="orderData.data.sheetState == 5">待成团</view>
  26. </view>
  27. </view>
  28. <!-- 拼团信息 -->
  29. <view class="ptCont" v-if="orderData.data.sheetState == 5">
  30. <view class="ptTimeBox">
  31. <view class="ptTimeTxt">拼团剩余</view>
  32. <view class="ptTime">{{dh}}</view>
  33. <view class="ptdd">:</view>
  34. <view class="ptTime">{{dm}}</view>
  35. <view class="ptdd">:</view>
  36. <view class="ptTime">{{ds}}</view>
  37. </view>
  38. <view class="ptmobilePhoneLine">
  39. <image src="../../../static/timg/icon_guan.png" mode="" class="vipIcon"></image>
  40. <view class="ptmobilePhone">{{orderData.openGroup.firstMobilePhone}}</view>
  41. </view>
  42. <view class="DiffBNumber">还差 <span style="#FF0000">{{orderData.openGroup.groupNumber - orderData.groupList.length}}</span> 人,赶快邀请好友来拼团吧</view>
  43. <view class="ptBtnBox">
  44. <view class="seeTy" @click="seeTyshowBtn">查看全部团员</view>
  45. <view class="yqhypt">邀请好友拼团</view>
  46. </view>
  47. </view>
  48. <!-- 店铺信息 -->
  49. <view class="shopBox" :class="{shopBoxpt:orderData.data.sheetState == 5}">
  50. <image src="../../../static/img/icon_store.png" mode="" class="shopBoximg"></image>
  51. <view class="shopCont">
  52. <view class="shopName">{{orderData.shopInfo.shopName}}</view>
  53. <view class="Address">
  54. {{orderData.shopInfo.provinceName}}{{orderData.shopInfo.cityName}}{{orderData.shopInfo.areaName}}{{orderData.shopInfo.address}}
  55. </view>
  56. </view>
  57. <view class="shopRightBox" @click="map">
  58. <image src="../../../static/img/icon_ditu.png" mode="" class="shopRightImg"></image>
  59. <view class="shopRihgtTxt">地图</view>
  60. </view>
  61. <view class="shopsx"></view>
  62. <view class="shopRightBox" @click="call">
  63. <image src="../../../static/img/icon_phone.png" mode="" class="shopRightImg"></image>
  64. <view class="shopRihgtTxt">电话</view>
  65. </view>
  66. </view>
  67. <!-- 订单内容 -->
  68. <view class="information">
  69. <view class="detailedTitle">订单内容</view>
  70. <view v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail" :key="index">
  71. <view class="informationLine2">
  72. <view class="goodsName">{{item.itemName}}</view>
  73. <view class="huodong" @click="goDetail(item.itemId)">
  74. <view class="goodsName3">活动详情</view>
  75. <image src="../../../static/img/little_rightArrow.png" mode="" style="width: 30rpx;height: 30rpx;"></image>
  76. </view>
  77. </view>
  78. <view class="salePrice"><span class="informationNum">¥</span>{{orderData.data.payType==1? item.salePrice:0}}</view>
  79. </view>
  80. <view v-if="orderData.data.sheetState != 1 && orderData.data.sheetState != 4" class="line"></view>
  81. <view v-if="orderData.data.sheetState != 1 && orderData.data.sheetState != 4">
  82. <view class="goodsName2">
  83. 券码信息({{quanMaList.length?quanMaList.length:0}}张可用)
  84. </view>
  85. <view class="detailedLine" v-for="(v,index) in orderData.OpenSheetQRCode">
  86. <view v-if="v.writeoffState==1" class="detailedName">
  87. <view class="redPoint"></view>
  88. <view class="code">{{v.qrCode}}</view>
  89. <view class="quanState">待使用</view>
  90. </view>
  91. <view v-if="v.writeoffState==3" class="detailedName">
  92. <view class="redPoint"></view>
  93. <view class="code old" >{{v.qrCode}}</view>
  94. <view class="quanState2">已使用</view>
  95. </view>
  96. <image src="../../../static/img/icon_erweima.png" mode="" style="width: 36rpx;height: 36rpx;"
  97. v-if="v.writeoffState==1" @click="isShowMaSHow "></image>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 实付款 -->
  102. <view class="money">
  103. <view class="informationNum">实付款:</view>
  104. <view class="informationNum" style="color: #FF0000;font-weight: bold;">¥{{orderData.data.payType==1?orderData.data.realMoney:0}}</view>
  105. </view>
  106. <!-- 订单信息 -->
  107. <view class="information">
  108. <view class="detailedTitle">订单信息</view>
  109. <view class="informationLine" v-if="orderData.data.plateNumber">
  110. <view class="informationTxt">车牌号:</view>
  111. <view class="informationNum">{{orderData.data.plateNumber}}</view>
  112. </view>
  113. <view class="informationLine" v-if="orderData.data.customerName">
  114. <view class="informationTxt">联系人:</view>
  115. <view class="informationNum">{{orderData.data.customerName}}</view>
  116. </view>
  117. <view class="informationLine" v-if="orderData.data.mobilePhone">
  118. <view class="informationTxt">手机号:</view>
  119. <view class="informationNum">{{orderData.data.mobilePhone}}</view>
  120. </view>
  121. <view class="informationLine" v-if="orderData.data.unit">
  122. <view class="informationTxt">单位:</view>
  123. <view class="informationNum">{{orderData.data.unit}}</view>
  124. </view>
  125. <view class="informationLine">
  126. <view class="informationTxt">报名时间:</view>
  127. <view class="informationNum">{{orderData.data.createTime}}</view>
  128. </view>
  129. <view class="informationLine">
  130. <view class="informationTxt">订单单号:</view>
  131. <view class="informationNum">{{orderData.data.code}}<span class="codeCopy"
  132. @click="copy(orderData.data.code)">复制</span></view>
  133. </view>
  134. </view>
  135. <!-- 支付信息 -->
  136. <view class="information">
  137. <view class="detailedTitle">支付信息</view>
  138. <view class="informationLine">
  139. <view class="informationTxt">支付状态:</view>
  140. <view class="informationNum" v-if="orderData.data.payState==1">未支付</view>
  141. <view class="informationNum" v-if="orderData.data.payState==2">已支付</view>
  142. </view>
  143. <view class="informationLine">
  144. <view class="informationTxt">支付方式:</view>
  145. <view class="informationNum" v-if="orderData.data.payType==1">在线支付</view>
  146. <view class="informationNum" v-if="orderData.data.payType==2">-</view>
  147. </view>
  148. <view class="informationLine">
  149. <view class="informationTxt">支付时间:</view>
  150. <view class="informationNum">{{orderData.data.payTime?orderData.data.payTime:'-'}}</view>
  151. </view>
  152. </view>
  153. <view style="height: 50rpx;background-color: #F4F5F7;"></view>
  154. <view class="bottom" v-if="orderData.data.sheetState == 1">
  155. <view class="cancel" @click="cancelBespeak">取消订单</view>
  156. <view class="defer" :style="{border:'1rpx solid #'+themeColor,color:'#'+themeColor}" @click="pay">立即支付</view>
  157. </view>
  158. <!-- 券码 -->
  159. <view class="maBox" v-if="isShowMa==true" @click="isShowMaHide">
  160. <view class="querenMa">
  161. <view class="maTop">
  162. <view class="maTitle">请到店出示券码即可开始服务</view>
  163. <image @click="isShowMa=false" src="../../../static/img/icon_delete.png" mode=""
  164. style="width: 26rpx;height: 26rpx;margin-left: 10rpx;"></image>
  165. </view>
  166. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  167. <swiper-item v-for="(item,index) in quanMaList">
  168. <view class="swiper-item">
  169. <view class="maCode">{{item}}</view>
  170. <view class="maBoximg">
  171. <tki-qrcode cid="qrcode1" ref="qrcode" :val="item" :size="400" :unit="unit"
  172. :pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
  173. :loadMake="loadMake" :usingComponents="true" @result="qrR" />
  174. </view>
  175. </view>
  176. </swiper-item>
  177. </swiper>
  178. </view>
  179. </view>
  180. <!-- 手机号授权 -->
  181. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  182. <view class="authorizCont" @click.stop="">
  183. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  184. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  185. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  186. </view>
  187. <view style="text-align: center;padding-top: 56rpx;">
  188. <image src="../../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  189. </view>
  190. </view>
  191. <!-- 全部团员 -->
  192. <view class="maBox" v-if="seeTyshow" @click="seeTyHide">
  193. <view class="grouptk" @click.stop="">
  194. <view class="maTop">
  195. <view class="maTitle">全部团员</view>
  196. <image src="../../../static/img/icon_delete.png" mode=""
  197. style="width: 26rpx;height: 26rpx;margin-left: 10rpx;" @click="seeTyHide"></image>
  198. </view>
  199. <view class="grouptkCobt">
  200. <view class="grouptkLIne" v-for="(item,index) in orderData.groupList">
  201. <view class="grouptkLIneLeft">
  202. <view class="groupTz" v-if="item.groupMemberLevel==1">团长</view>
  203. <view class="groupTy" v-else>团员</view>
  204. <view class="groupmobilePhone">{{item.mobilePhone}}</view>
  205. </view>
  206. <view class="grouptkLIneTime">{{item.payTime}}</view>
  207. </view>
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. </template>
  213. <script>
  214. import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
  215. import homenav from "@/components/homenav/nav.vue"
  216. export default {
  217. components: {
  218. tkiQrcode,homenav
  219. },
  220. data() {
  221. return {
  222. id: '',
  223. iStatusBarHeight:'',
  224. orderData: '',
  225. onval: true, // val值变化时自动重新生成二维码
  226. loadMake: true, // 组件加载完成后自动生成二维码
  227. size: 500,
  228. qrcodeShow: false,
  229. qrcodeTop: '-100vh',
  230. qrcodeTopVal: '',
  231. ifShow: false,
  232. val: '二维码', // 要生成的二维码值
  233. unit: 'upx', // 单位
  234. background: '#b4e9e2', // 背景色
  235. foreground: '#309286', // 前景色
  236. pdground: '#262637', // 角标色
  237. icon: '', // 二维码图标
  238. iconsize: 40, // 二维码图标大小
  239. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  240. src: '', // 二维码生成后的图片地址或base64
  241. isShowMa: false,
  242. quanMaList:[],
  243. themeColor:'',
  244. authorizShow:false,
  245. userInfo:'',
  246. ext:'',
  247. wxOpenData:'',
  248. dh:'',
  249. dm:'',
  250. ds:'',
  251. seeTyshow:false,
  252. }
  253. },
  254. onLoad(opt) {
  255. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  256. this.id = opt.id
  257. this.themeColor = uni.getStorageSync("themeColor");
  258. this.userInfo=this.$store.state.userInfo;
  259. this.ext=this.$common.getExtStoreId();
  260. if(this.userInfo){
  261. if (this.id) {
  262. this.getData()
  263. }
  264. }else{
  265. this.$common.automaticlogin().then(val => {
  266. this.userInfo=this.$store.state.userInfo;
  267. this.wxOpenData=this.$store.state.wxOpenData;
  268. this.themeColor = uni.getStorageSync("themeColor");
  269. if (this.id) {
  270. this.getData()
  271. }
  272. if(!this.userInfo){
  273. this.authorizShow=true
  274. }
  275. })
  276. }
  277. },
  278. methods: {
  279. seeTyHide(){
  280. this.seeTyshow=false;
  281. },
  282. seeTyshowBtn(){
  283. this.seeTyshow=true;
  284. },
  285. decryptPhoneNumber: function(e) {
  286. console.log(e);
  287. this.code=e.detail.code
  288. this.wxPhoneLogin()
  289. this.authorizShow=false;
  290. },
  291. wxPhoneLogin(){
  292. var that=this;
  293. this.$http('miniApp2/sys/wxPhoneLogin', {
  294. appId:this.ext.appId,
  295. unionId:this.ext.unionId,
  296. code:this.code,
  297. openId:this.wxOpenData.openid
  298. },'POST').then(res => {
  299. var data = res.data;
  300. if(data.loginInfo){
  301. this.userInfo=data.loginInfo.openUser;
  302. this.wxOpenData=data.loginInfo;
  303. this.$store.commit('mutationswxOpenData', data)
  304. this.$store.commit('mutationsuserInfo', this.userInfo)
  305. this.getData()
  306. }
  307. })
  308. },
  309. isShowMaSHow(){
  310. this.isShowMa=true
  311. },
  312. isShowMaHide(){
  313. this.isShowMa=false
  314. },
  315. goDetail(id) {
  316. console.log('id--',id);
  317. uni.navigateTo({
  318. url: '../../activity/jkDetail?id=' + id
  319. })
  320. },
  321. pay(){
  322. this.$http('openMallOrder/unifiedPay', {
  323. sheetId:this.id
  324. },'POST').then(res => {
  325. if(res.code==0){
  326. this.requestPayment(res.data)
  327. }else{
  328. uni.showToast({
  329. title: res.msg,
  330. icon: 'none',
  331. duration: 3000
  332. });
  333. }
  334. })
  335. },
  336. requestPayment(res){
  337. var payInfo=res;
  338. //console.log(payInfo)
  339. //console.log(String(Date.now()))
  340. var that=this;
  341. uni.requestPayment({
  342. provider: 'wxpay',
  343. //timeStamp: String(Date.now()),
  344. timeStamp: payInfo.timeStamp,
  345. nonceStr: payInfo.nonceStr,
  346. package:payInfo.package,
  347. signType: payInfo.signType,
  348. paySign: payInfo.paySign,
  349. appid:payInfo.appId,
  350. success: function (res) {
  351. console.log('success:' + JSON.stringify(res));
  352. uni.showToast({
  353. title: '支付成功',
  354. icon:'none',
  355. duration: 2000
  356. });
  357. that.getData()
  358. },
  359. fail: function (err) {
  360. console.log(err)
  361. uni.showToast({
  362. title: '支付失败',
  363. icon:'none',
  364. duration: 2000
  365. });
  366. }
  367. });
  368. },
  369. copy(txt) {
  370. uni.setClipboardData({
  371. data: txt,
  372. success: function() {
  373. uni.showToast({
  374. title: '复制成功',
  375. icon: 'none',
  376. duration: 2000
  377. });
  378. }
  379. });
  380. },
  381. upTime() {
  382. uni.showLoading({
  383. title: '加载中'
  384. })
  385. var that = this
  386. this.$http('openreservation/carOwner/updateTimeOfAppointment', {
  387. id: this.id,
  388. shopId: this.orderData.shopInfo.id,
  389. billDate: this.billDate
  390. }, 'POST').then(res => {
  391. uni.hideLoading();
  392. // var list = res.data.Items
  393. var list = res.data
  394. console.log("result+=", res.data);
  395. uni.showToast({
  396. title: '延期成功',
  397. icon: 'none',
  398. duration: 2000
  399. });
  400. setTimeout(function() {
  401. that.getData();
  402. }, 1000);
  403. })
  404. },
  405. cancelBespeak(){
  406. var that = this
  407. uni.showModal({
  408. title: '提示',
  409. content: '是否取消该订单',
  410. cancelText:'否',
  411. confirmText:'是',
  412. success: function (res) {
  413. if (res.confirm) {
  414. uni.showLoading({
  415. title: '加载中'
  416. })
  417. that.$http('openOrderManagement/updateSheetState', {
  418. id: that.id,
  419. }, 'POST').then(res => {
  420. uni.hideLoading();
  421. // var list = res.data.Items
  422. uni.showToast({
  423. title: '取消成功',
  424. icon: 'none',
  425. duration: 2000
  426. });
  427. setTimeout(function() {
  428. that.getData();
  429. }, 1000);
  430. })
  431. } else if (res.cancel) {
  432. }
  433. }
  434. });
  435. },
  436. map() {
  437. console.log("打开地图")
  438. var that = this;
  439. if (!that.orderData.shopInfo.lat || !that.orderData.shopInfo.lng) {
  440. uni.showToast({
  441. title: '该店铺未设置定位',
  442. icon: 'none',
  443. duration: 3000
  444. });
  445. } else {
  446. uni.openLocation({
  447. latitude: Number(that.orderData.shopInfo.lat),
  448. longitude: Number(that.orderData.shopInfo.lng),
  449. name: that.orderData.shopInfo.shopName,
  450. address: that.orderData.shopInfo.provinceName + that.orderData.shopInfo.cityName + that
  451. .orderData.shopInfo.areaName + that.orderData.shopInfo.address,
  452. success: function() {
  453. console.log('success');
  454. },
  455. fail(err) {
  456. console.log(err)
  457. }
  458. });
  459. }
  460. },
  461. call() {
  462. uni.makePhoneCall({
  463. phoneNumber: this.orderData.shopInfo.mobilePhone
  464. });
  465. },
  466. getData() {
  467. uni.showLoading({
  468. title: '加载中'
  469. });
  470. this.$http('openOrderManagement/queryOpenSheet', {
  471. id: this.id,
  472. }, 'GET').then(res => {
  473. uni.hideLoading();
  474. this.orderData = res.data;
  475. if (this.quanMaList) {
  476. this.quanMaList = [];
  477. }
  478. let maList = this.orderData.OpenSheetQRCode;
  479. if (maList) {
  480. maList.forEach(item =>{
  481. if (item.writeoffState==1) {
  482. this.quanMaList.push(item.qrCode);
  483. }
  484. })
  485. }
  486. this.clock()
  487. console.log('可用券码--',this.quanMaList);
  488. })
  489. },
  490. clock(){
  491. let _this = this
  492. let today = new Date() // 当前时间
  493. let h = today.getHours()
  494. let m = today.getMinutes()
  495. let s = today.getSeconds()
  496. let startTime = new Date(_this.orderData.openGroup.endTime.replace(/-/g, '/')) // 结束时间
  497. if (Number(new Date(_this.orderData.openGroup.endTime).getTime()) < Number(new Date().getTime())) {
  498. //this.activityNoOpen = true
  499. return
  500. }
  501. let stopH = startTime.getHours()
  502. let stopM = startTime.getMinutes()
  503. let stopS = startTime.getSeconds()
  504. let shenyu = startTime.getTime() - today.getTime() // 倒计时毫秒数
  505. let shengyuD = parseInt(shenyu / (60 * 60 * 24 * 1000)) // 转换为天
  506. // let D = parseInt(shenyu) - parseInt(shengyuD * 60 * 60 * 24 * 1000)// 除去天的毫秒数
  507. let D = parseInt(shenyu)
  508. let shengyuH = parseInt(D / (60 * 60 * 1000)) // 除去天的毫秒数转换成小时
  509. let H = D - shengyuH * 60 * 60 * 1000 // 除去天、小时的毫秒数
  510. let shengyuM = parseInt(H / (60 * 1000)) // 除去天的毫秒数转换成分钟
  511. let M = H - shengyuM * 60 * 1000// 除去天、小时、分的毫秒数
  512. let S = parseInt((shenyu - shengyuD * 60 * 60 * 24 * 1000 - shengyuH * 60 * 60 * 1000 - shengyuM * 60 * 1000) / 1000)// 除去天、小时、分的毫秒数转化为秒
  513. // this.daojishi = '报名倒计时:' + shengyuD + '天' + shengyuH + '小时' + shengyuM + '分' + S + '秒'
  514. // setTimeout("clock()",500);
  515. this.dh=shengyuH;
  516. this.dm=shengyuM;
  517. this.ds=s;
  518. setTimeout(_this.clock, 500)
  519. },
  520. goback() {
  521. uni.navigateBack({
  522. delta: 1
  523. })
  524. },
  525. gohome(){
  526. uni.switchTab({
  527. url:'../../index/index'
  528. })
  529. },
  530. },
  531. onPullDownRefresh() {
  532. this.getData()
  533. setTimeout(function() {
  534. uni.stopPullDownRefresh();
  535. }, 1000);
  536. },
  537. }
  538. </script>
  539. <style scoped>
  540. .grouptk{
  541. width: 638rpx;
  542. height: 750rpx;
  543. background: #FFFFFF;
  544. border-radius: 24rpx;
  545. margin-top: 300rpx;
  546. margin-left: 56rpx;
  547. }
  548. .grouptkLIneLeft{
  549. display: flex;
  550. }
  551. .groupTz{
  552. border-radius: 15rpx;padding: 0 10rpx;margin-right: 8rpx;
  553. border: 1rpx solid #FF9D00;color: #FF9D00;font-size: 22rpx;
  554. }
  555. .groupTy{
  556. border-radius: 15rpx;padding: 0 10rpx;margin-right: 8rpx;
  557. border: 1rpx solid #764D49;color: #764D49;font-size: 22rpx;
  558. }
  559. .grouptkLIne{
  560. display: flex;padding: 15rpx 24rpx;
  561. justify-content: space-between;font-weight: 400;
  562. color: #3C3C3C;font-size: 26rpx;line-height: 32rpx;
  563. }
  564. .grouptk .maTitle{
  565. padding-left: 24rpx;
  566. }
  567. .ptCont{
  568. width: 702rpx;
  569. height: 297rpx;
  570. background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
  571. border-radius: 10rpx;
  572. margin-left: 24rpx;
  573. margin-top: -60rpx;
  574. }
  575. .ptTimeBox{
  576. display: flex;font-weight: 400;justify-content: center;padding-top: 24rpx;
  577. }
  578. .ptTimeTxt{
  579. font-weight: 400;font-size: 24rpx;line-height: 42rpx;
  580. color: #764D49;padding-right: 18rpx;
  581. }
  582. .ptdd{
  583. font-size: 24rpx;padding:0 8rpx;
  584. line-height: 42rpx;
  585. font-weight: 400;
  586. color: #764D49;
  587. }
  588. .ptTime{
  589. width: 42rpx;font-size: 24rpx;
  590. height: 42rpx;text-align: center;line-height: 42rpx;
  591. background: #FF0000;
  592. border-radius: 6rpx;
  593. font-weight: 500;
  594. color: #FFFFFF;
  595. }
  596. .DiffBNumber{
  597. color: #764D49;font-size: 24rpx;text-align: center;padding-top:16rpx;padding-bottom: 30rpx;
  598. }
  599. .ptmobilePhoneLine{
  600. display: flex;font-weight: 400;justify-content: center;
  601. color: #764D49;font-size: 26rpx;padding-top:20rpx;
  602. }
  603. .vipIcon{
  604. width: 32rpx;height: 32rpx;
  605. }
  606. .seeTy{
  607. width: 260rpx;line-height: 62rpx;text-align: center;
  608. height: 62rpx;color: #FF0000;
  609. border-radius: 36rpx;font-size: 26rpx;
  610. border: 2rpx solid #FF0000;
  611. }
  612. .ptBtnBox{
  613. display: flex;
  614. justify-content: space-around;
  615. }
  616. .yqhypt{
  617. width: 260rpx;color: #FFFFFF;line-height: 66rpx;text-align: center;
  618. height: 66rpx;font-size: 26rpx;
  619. background: linear-gradient(132deg, #FD5C05 0%, #FD0323 100%);
  620. border-radius: 36rpx;
  621. }
  622. .box {
  623. min-height: 100vh;
  624. background: #F4F5F7;
  625. padding-bottom: 135rpx;
  626. }
  627. .zdyNavBox{
  628. width: 100vw;
  629. background: #FFFFFF;
  630. position: fixed;
  631. top: 0;
  632. left: 0;
  633. z-index: 9999999;
  634. }
  635. .zdyNav{
  636. height: 44px;
  637. display: flex;
  638. justify-content: space-between;
  639. align-items: center;
  640. }
  641. .backImg{
  642. width: 44rpx;
  643. height: 44rpx;
  644. margin-left: 10rpx;
  645. margin-right: 20rpx;
  646. }
  647. .homeImg{
  648. width: 44rpx;
  649. height: 44rpx;
  650. }
  651. .zdyNavLeft{
  652. display: flex;
  653. align-items: center;
  654. }
  655. .zdyNavTitle{
  656. width: 100vw;
  657. height: 44px;
  658. background: #FFFFFF;
  659. text-align: center;
  660. font-size: 34rpx;
  661. line-height: 44px;
  662. }
  663. .top {
  664. height: 190rpx;
  665. background: #FF0000;
  666. }
  667. .orderState {
  668. display: flex;
  669. justify-content: center;
  670. align-items: center;
  671. padding-top: 40rpx;
  672. }
  673. .SheetState {
  674. display: flex;
  675. justify-content: center;
  676. font-size: 36rpx;
  677. font-weight: 500;
  678. color: #FFFFFF;
  679. margin-left: 15rpx;
  680. }
  681. .timeEditImg {
  682. width: 25rpx;
  683. height: 25rpx;
  684. padding-left: 20rpx;
  685. }
  686. .shopBoximg {
  687. width: 40rpx;
  688. height: 40rpx;
  689. }
  690. .shopRightImg {
  691. width: 44rpx;
  692. height: 45rpx;
  693. }
  694. .shopsx {
  695. width: 1px;
  696. height: 50rpx;
  697. background: #EEEEEE;
  698. margin-top: 30rpx;
  699. margin-left: 28rpx;
  700. }
  701. .shopBox {
  702. display: flex;
  703. padding: 30rpx 20rpx;
  704. margin: 0rpx 24rpx;
  705. margin-top: -60rpx;
  706. background-color: #FFFFFF;
  707. border-radius: 10rpx;
  708. }
  709. .shopCont {
  710. width: 405rpx;
  711. padding-left: 20rpx;
  712. }
  713. .shopName {
  714. font-size: 30rpx;
  715. font-weight: bold;
  716. color: #3C3C3C;
  717. line-height: 42rpx;
  718. }
  719. .Address {
  720. color: #999999;
  721. font-size: 24rpx;
  722. margin-top: 10rpx;
  723. }
  724. .shopRihgtTxt {
  725. color: #999999;
  726. font-size: 24rpx;
  727. }
  728. .shopRightBox {
  729. padding-left: 28rpx;
  730. }
  731. .detailedTitle {
  732. padding: 23rpx 20rpx;
  733. display: flex;
  734. text-align: center;
  735. align-content: flex-start;
  736. border-bottom: 1rpx solid #EEEEEE;
  737. font-size: 30rpx;
  738. font-weight: bold;
  739. color: #3C3C3C;
  740. }
  741. .detailedLine {
  742. display: flex;
  743. padding: 16rpx 20rpx;
  744. justify-content: space-between;
  745. align-items: center;
  746. }
  747. .detailedImg {
  748. width: 120rpx;
  749. height: 120rpx;
  750. border-radius: 10rpx;
  751. }
  752. .detailedName {
  753. display: flex;
  754. align-items: center;
  755. }
  756. .code {
  757. font-size: 26rpx;
  758. color: #333333;
  759. font-weight: bold;
  760. width: 180rpx
  761. }
  762. .old {
  763. color: #999999;
  764. font-weight: 400;
  765. text-decoration: line-through;
  766. }
  767. .redPoint {
  768. width: 10rpx;
  769. height: 10rpx;
  770. background: #FF0000;
  771. border-radius: 10rpx;
  772. margin-right: 10rpx;
  773. }
  774. .quanState {
  775. font-size: 22rpx;
  776. color: #F19D01;
  777. padding: 0 10rpx;
  778. border: 1rpx solid #F19D01;
  779. border-radius: 4rpx;
  780. margin-left: 20rpx;
  781. }
  782. .quanState2{
  783. font-size: 22rpx;
  784. color: #999999;
  785. padding: 0 10rpx;
  786. border: 1rpx solid #DDDDDD;
  787. border-radius: 4rpx;
  788. margin-left: 20rpx;
  789. }
  790. .information {
  791. background: #FFFFFF;
  792. border-radius: 10rpx;
  793. margin: 20rpx 24rpx;
  794. padding-bottom: 15rpx;
  795. }
  796. .informationLine {
  797. display: flex;
  798. padding: 15rpx 20rpx;
  799. }
  800. .informationLine2 {
  801. display: flex;
  802. justify-content: space-between;
  803. font-size: 26rpx;
  804. padding: 20rpx;
  805. align-items: center;
  806. padding-bottom: 0;
  807. }
  808. .salePrice {
  809. padding-left: 20rpx;
  810. padding-top: 15rpx;
  811. font-size: 26rpx;
  812. font-weight: 500;
  813. color: #333333;
  814. line-height: 45rpx;
  815. }
  816. .money {
  817. background: #FFFFFF;
  818. border-radius: 10rpx;
  819. margin: 20rpx 24rpx;
  820. display: flex;
  821. justify-content: space-between;
  822. font-size: 26rpx;
  823. padding: 30rpx 20rpx;
  824. }
  825. .informationTxt {
  826. width: 190rpx;
  827. font-size: 26rpx;
  828. color: #999999;
  829. }
  830. .line {
  831. height: 20rpx;
  832. background-color: #FFFFFF;
  833. border-bottom: 1rpx solid #EEEEEE;
  834. }
  835. .goodsName {
  836. width: 70%;
  837. color: #333333;
  838. font-size: 26rpx;
  839. }
  840. .huodong{
  841. display: flex;
  842. align-items: center;
  843. }
  844. .goodsName3{
  845. color: #333333;
  846. font-size: 26rpx;
  847. }
  848. .goodsName2{
  849. padding: 20rpx 20rpx 15rpx;
  850. color: #333333;
  851. font-size: 26rpx;
  852. }
  853. .informationNum {
  854. color: #333333;
  855. font-size: 26rpx;
  856. }
  857. .codeCopy {
  858. width: 77rpx;
  859. height: 36rpx;
  860. background: #F4F5F7;
  861. border-radius: 22rpx;
  862. font-size: 24rpx;
  863. color: #333333;
  864. text-align: center;
  865. line-height: 33rpx;
  866. padding: 0 15rpx;
  867. margin-left: 20rpx;
  868. }
  869. .orderBottom {
  870. width: 750rpx;
  871. height: 98rpx;
  872. background: #FFFFFF;
  873. position: fixed;
  874. left: 0;
  875. bottom: 0;
  876. display: flex;
  877. justify-content: flex-end;
  878. }
  879. .bottom {
  880. display: flex;
  881. justify-content: flex-end;
  882. padding: 20rpx;
  883. background-color: #FFFFFF;
  884. align-items: center;
  885. height: 98rpx;
  886. width: 100vw;
  887. position: fixed;
  888. bottom: 0rpx;
  889. padding-bottom: constant(safe-area-inset-bottom);
  890. padding-bottom: env(safe-area-inset-bottom);
  891. }
  892. .cancel {
  893. color: #3C3C3C;
  894. font-size: 28rpx;
  895. width: 150rpx;
  896. height: 56rpx;
  897. border-radius: 36rpx;
  898. border: 1rpx solid #DDDDDD;
  899. text-align: center;
  900. line-height: 56rpx;
  901. margin-right: 40rpx;
  902. }
  903. .defer {
  904. color: #D53533;
  905. font-size: 28rpx;
  906. width: 150rpx;
  907. height: 56rpx;
  908. border-radius: 36rpx;
  909. border: 1rpx solid #D53533;
  910. text-align: center;
  911. line-height: 56rpx;
  912. margin-right: 40rpx;
  913. }
  914. .itemBox {
  915. margin: 20rpx;
  916. border-radius: 10rpx;
  917. border: 2rpx solid #EEEEEE;
  918. }
  919. .itemTop {
  920. padding: 18rpx 20rpx;
  921. padding-right: 0;
  922. background-color: #FFEFD5;
  923. display: flex;
  924. justify-content: space-between;
  925. align-content: center;
  926. }
  927. .topTitle {
  928. width: 104rpx;
  929. font-size: 26rpx;
  930. color: #333333;
  931. margin-right: 20rpx;
  932. text-align: right;
  933. }
  934. .leftItem {
  935. font-size: 26rpx;
  936. color: #333333;
  937. margin-right: 20rpx;
  938. flex-grow: 1;
  939. /* 隐藏文字显示 ...不换行 */
  940. overflow: hidden;
  941. text-overflow: ellipsis;
  942. white-space: nowrap;
  943. }
  944. .itemContent {
  945. padding: 20rpx;
  946. padding-right: 0;
  947. background-color: #FFFFFF;
  948. display: flex;
  949. justify-content: space-between;
  950. align-content: center;
  951. }
  952. .maBox {
  953. width: 100%;
  954. height: 100vh;
  955. background: rgba(0, 0, 0, 0.4);
  956. position: fixed;
  957. left: 0;
  958. top: 0;
  959. z-index: 9999;
  960. }
  961. .querenMa {
  962. width: 578;
  963. height: 640rpx;
  964. background: #ffffff;
  965. margin: 0 86rpx;
  966. margin-top: 50%;
  967. border-radius: 24rpx;
  968. }
  969. .maTop {
  970. display: flex;
  971. justify-content: space-between;
  972. align-items: center;
  973. padding: 30rpx 20rpx 15rpx;
  974. }
  975. .maTitle {
  976. color: #666666;
  977. font-size: 26rpx;
  978. text-align: center;
  979. padding-left: 100rpx;
  980. }
  981. .swiper{
  982. width: 100%;
  983. height: 85%;
  984. background: #FFFFFF;
  985. }
  986. .swiper-item{
  987. width: 100%;
  988. height: 100%;
  989. }
  990. .maCode {
  991. font-size: 30rpx;
  992. font-weight: 500;
  993. color: #333333;
  994. line-height: 42rpx;
  995. margin-bottom: 40rpx;
  996. text-align: center;
  997. }
  998. .maBoximg {
  999. width: 400rpx;
  1000. height: 400rpx;
  1001. margin-left: 86rpx;
  1002. }
  1003. .authorizBox{
  1004. width: 100vw;
  1005. height: 100vh;
  1006. background: rgba(0, 0, 0, 0.5);
  1007. position: fixed;
  1008. top: 0;
  1009. left: 0;
  1010. }
  1011. .authorizCont{
  1012. margin-top: 30vh;
  1013. width: 564rpx;
  1014. height: 408rpx;
  1015. background: #FFFFFF;
  1016. border-radius: 24rpx;
  1017. margin-left: 93rpx;
  1018. position: relative;
  1019. }
  1020. .authorizCloseImg{
  1021. width: 62rpx;
  1022. height: 62rpx;
  1023. }
  1024. .sqLogoBox{
  1025. width: 180rpx;
  1026. height: 180rpx;
  1027. background: #FFFFFF;
  1028. border-radius: 90rpx;
  1029. text-align: center;
  1030. position: absolute;
  1031. top: -50rpx;
  1032. left: 192rpx;
  1033. }
  1034. .authorizName{
  1035. color: #333333;
  1036. line-height: 42rpx;
  1037. font-size: 30rpx;
  1038. text-align: center;
  1039. padding-top: 58rpx;
  1040. }
  1041. .authorizMs{
  1042. color: #999999;
  1043. line-height: 36rpx;
  1044. font-size: 26rpx;
  1045. width: 452rpx;
  1046. padding-top: 24rpx;
  1047. text-align: center;
  1048. margin-left: 56rpx;
  1049. }
  1050. .authorizContbutton{
  1051. width: 422rpx;
  1052. height: 88rpx;
  1053. background: #D53533;
  1054. border-radius: 44rpx;
  1055. line-height: 88rpx;
  1056. text-align: center;
  1057. font-size:30rpx;
  1058. color: #FFFFFF;
  1059. margin-top: 62rpx;
  1060. margin-left:71rpx;
  1061. }
  1062. .shopBoxpt{
  1063. margin-top: 20rpx;
  1064. }
  1065. </style>