vipCard.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907
  1. <template>
  2. <view class="box">
  3. <!-- <view class="headerBox">
  4. <view class="vip">
  5. <view class="headerTop">
  6. <image src="http://dmsphoto.66km.com.cn/thFiles/785A657B-2FA6-4B22-A356-D555BFE2E18D.png" mode="" style="width: 80rpx;height: 80rpx;"></image>
  7. <view class="headerRight">
  8. <view class="nameBox">
  9. <view class="name">{{vipData.name}}</view>
  10. <image src="../../static/img/icon_vip.png" mode=""
  11. style="width: 112rpx;height: 34rpx;margin-left: 10rpx;"></image>
  12. </view>
  13. <view class="phone">{{userInfo.mobilePhone}}</view>
  14. </view>
  15. </view>
  16. <view class="kahaoBox">
  17. <image src="../../static/img/icon_kahao.png" mode=""
  18. style="width: 28rpx;height: 28rpx;margin-right: 10rpx;"></image>
  19. <view class="kahao">卡号 {{vipData.cardCode}}</view>
  20. </view>
  21. </view>
  22. <view class="tab">
  23. <view>
  24. <view class="tabLine" :class="{tabActive:tabIndex==1}" @click="tabClick(1)">计次</view>
  25. <view :class="{line:tabIndex==1}"></view>
  26. </view>
  27. <viw>
  28. <view class="tabLine" :class="{tabActive:tabIndex==2}" @click="tabClick(2)">储值</view>
  29. <view :class="{line:tabIndex==2}"></view>
  30. </viw>
  31. </view>
  32. </view> -->
  33. <view class="newTop">
  34. <view class="newTopCont" v-if="vipData.cardCode">
  35. <image src="../../static/timg/icon_vip.png" mode="" class="topVipIcon"></image>
  36. <span style="padding-right: 10rpx;padding-left: 10rpx;">卡号</span>
  37. <span>{{vipData.cardCode}}</span>
  38. </view>
  39. </view>
  40. <view class="btnBox" @click="dis=!dis">
  41. <image v-if="dis" src="../../static/img/icon_selectY.png" mode="" style="width: 36rpx;height: 36rpx;">
  42. </image>
  43. <image v-else src="../../static/img/icon_selectN.png" mode="" style="width: 36rpx;height: 36rpx;">
  44. </image>
  45. <view style="margin-left: 10rpx;color: #3C3C3C;font-size: 24rpx;">不展示剩余为0项</view>
  46. </view>
  47. <!-- 计次 -->
  48. <view class="mainBox" ><!-- v-if="tabIndex==1" -->
  49. <!-- 卡制度 -->
  50. <view v-for="(item,index) in vipData.f2ccard" class="ftwoccard">
  51. <view class="itemBox" v-if="AmountQtyJsFcard(item.detail)">
  52. <view class="itemTop">
  53. <view class="itemName">
  54. <span class="titleType2" >卡</span>
  55. {{item.card.cardName}}
  56. </view>
  57. <view class="fcardJt" v-if="item.detail.length>0" :class="{active:item.open}" @click="changeState(item)">
  58. <image v-if="item.open==false" src="../../static/img/icon_arrow_down.png"
  59. mode="" style="width: 34rpx;height: 22rpx;"></image>
  60. <image v-if="item.open==true" src="../../static/img/icon_arrow_up.png"
  61. mode="" style="width: 34rpx;height: 22rpx;"></image>
  62. </view>
  63. </view>
  64. <view class="fcardBottom" :class="{fcardBottomactive:item.open}">
  65. <view class="fcardCardCode">{{item.card.cardCode}}</view>
  66. <view class="fcardCardCode">{{item.card.expireTime.slice(0,10)}}</view>
  67. </view>
  68. <view v-if="item.open">
  69. <!-- 不展示剩余为0项 -->
  70. <view class="itemBg " v-if="dis&&v.lastCount!=0" v-for="(v,index2) in item.detail" :key="index2">
  71. <view class="nameTop" v-if="v.type==2"><span class="type">项目</span> {{v.bizName}}</view>
  72. <view class="nameTop" v-if="v.type==1"><span class="type">商品</span> {{v.bizName}}</view>
  73. <view class="itemBgFcard">
  74. <view class="discountTypeBox">
  75. <view class="fcardType" v-if="v.discountType==2">会员价</view>
  76. <view class="fcardType" v-if="v.discountType==1">折扣</view>
  77. <view class="discountNum" v-if="v.discountType==2">{{v.discountNum}}</view>
  78. <view class="discountNum" v-if="v.discountType==1">{{v.discountNum}}折</view>
  79. </view>
  80. <view class="timeBottom">
  81. <view>剩余/总:<span
  82. style="color: #FF3B30;">{{v.lastCount}}</span>/{{v.useCount}}
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 展示所有 -->
  88. <view class="itemBg " v-if="!dis" v-for="(v,index2) in item.detail" :key="index2">
  89. <view class="nameTop" v-if="v.type==2"><span class="type">项目</span> {{v.bizName}}</view>
  90. <view class="nameTop" v-if="v.type==1"><span class="type">商品</span> {{v.bizName}}</view>
  91. <view class="itemBgFcard">
  92. <view class="discountTypeBox">
  93. <view class="fcardType" v-if="v.discountType==2">会员价</view>
  94. <view class="fcardType" v-if="v.discountType==1">折扣</view>
  95. <view class="discountNum" v-if="v.discountType==2">{{v.discountNum}}</view>
  96. <view class="discountNum" v-if="v.discountType==1">{{v.discountNum}}折</view>
  97. </view>
  98. <view class="timeBottom">
  99. <view>剩余/总:<span
  100. style="color: #FF3B30;">{{v.lastCount}}</span>/{{v.useCount}}
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view v-for="(item,index) in vipData.cardTimeList">
  109. <view v-if="AmountQtyJs(item.list)" class="itemBox">
  110. <view class="itemTop">
  111. <view class="itemName">
  112. <span class="titleType">计次</span>
  113. {{item.PackName}}
  114. </view>
  115. <view class="tiaokuan" @click="useCl(item.useComment)">使用条款</view>
  116. </view>
  117. <view class="itemBottom" :class="{active:item.open}" @click="changeState(item)">
  118. <view class="shopName">{{item.shopName}}</view>
  119. <image v-if="item.open==false" src="../../static/img/icon_arrow_down.png"
  120. mode="" style="width: 34rpx;height: 22rpx;"></image>
  121. <image v-if="item.open==true" src="../../static/img/icon_arrow_up.png"
  122. mode="" style="width: 34rpx;height: 22rpx;"></image>
  123. </view>
  124. <view v-if="item.open">
  125. <!-- 不展示剩余为0项 -->
  126. <view class="itemBg" v-if="dis&&v.AmountQty!=0" v-for="(v,index2) in item.list" :key="index2">
  127. <view class="nameTop" v-if="v.FlowType==2"><span class="type">项目</span> {{v.FlowName}}</view>
  128. <view class="nameTop" v-if="v.FlowType==1"><span class="type">商品</span> {{v.FlowName}}</view>
  129. <view class="timeBottom">
  130. <view class="time" v-if="v.ExpireTime">有效期:{{v.ExpireTime.slice(0,10)}}</view>
  131. <view class="time" v-else>有效期:永久</view>
  132. <view>剩余/总:<span
  133. style="color: #FF3B30;">{{v.AmountQty}}</span>/{{v.TotalQty}}
  134. </view>
  135. </view>
  136. </view>
  137. <!-- 展示所有 -->
  138. <view class="itemBg" v-if="!dis" v-for="(v,index2) in item.list" :key="index2">
  139. <view class="nameTop" v-if="v.FlowType==2"><span class="type">项目</span> {{v.FlowName}}</view>
  140. <view class="nameTop" v-if="v.FlowType==1"><span class="type">商品</span> {{v.FlowName}}</view>
  141. <view class="timeBottom">
  142. <view class="time" v-if="v.ExpireTime">有效期:{{v.ExpireTime.slice(0,10)}}</view>
  143. <view class="time" v-else>有效期:永久</view>
  144. <view>剩余/总:<span
  145. style="color: #FF3B30;">{{v.AmountQty}}</span>/{{v.TotalQty}}
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. <!-- 无数据空白页 -->
  153. <!-- nodata v-if="vipData.cardTimeList.length==0"></nodata> -->
  154. <!-- 使用条款-->
  155. <view class="shiyongBox" v-if="shiyongShow" @click="shiyongShow=false">
  156. <view class="shiyongCont" @click.stop="">
  157. <view class="shiyongContTop">
  158. <view class="shiyongContTopTitle">使用条款</view>
  159. <image src="../../static/img/icon_close.png" alt="" class="shiyongContTopX"
  160. @click="shiyongShowHlde"></image>
  161. </view>
  162. <view class="shiyonghtml">
  163. <view v-html="useComment" v-if="useComment"></view>
  164. <view v-else class="shiyongno">使用条款暂无内容</view>
  165. </view>
  166. </view>
  167. </view>
  168. <!-- 储值 -->
  169. <view v-for="(item,index) in vipData.carMoneyList">
  170. <!-- 不展示剩余为0项 -->
  171. <view v-if="disCz&&item.Money!=0" class="itemBox">
  172. <view class="itemTop">
  173. <view class="itemName">
  174. <span class="titleType">储值</span>
  175. {{item.PacKName}}
  176. </view>
  177. <view class="tiaokuan" @click="useCl(item.useComment)">使用条款</view>
  178. </view>
  179. <view class="moneyBox"><span style="font-size: 24rpx; color: #FF3B30; padding-top: 2rpx;">¥</span><span class="money">{{item.Money}}</span> <span
  180. style="color: #3C3C3C;font-size: 24rpx;">(充{{item.ChargeMoney}}送{{item.GiftMoney}})</span>
  181. </view>
  182. <view class="itemBottom" :class="{active:item.open}" @click="changeState(item)">
  183. <view class="shopName">{{item.ShopName}}</view>
  184. <image v-if="item.open==false" src="../../static/img/icon_arrow_down.png"
  185. mode="" style="width: 34rpx;height: 22rpx;"></image>
  186. <image v-if="item.open==true" src="../../static/img/icon_arrow_up.png"
  187. mode="" style="width: 34rpx;height: 22rpx;"></image>
  188. </view>
  189. <view class="itemBg" v-if="item.open" v-for="(v,index2) in item.payList" :key="index2">
  190. <view class="timeBottom">
  191. <view class="time" style="color: #666666;" v-if="v.CreateTime">{{v.CreateTime}}</view>
  192. <view style="color: #3C3C3C;font-weight: 500;" v-if="v.Type==2">-{{v.Money}}</view>
  193. <view class="count" style="font-weight: 500;" v-else>+{{v.Money}}</view>
  194. </view>
  195. </view>
  196. </view>
  197. <!-- 展示所有 -->
  198. <view v-if="!disCz" class="itemBox">
  199. <view class="itemTop">
  200. <view class="itemName">{{item.PacKName}}</view>
  201. <view class="tiaokuan" @click="useCl(item.useComment)">使用条款</view>
  202. </view>
  203. <view class="moneyBox"><span style="font-size: 24rpx; color: #FF3B30; padding-top: 2rpx;">¥</span><span class="money">{{item.Money}}</span> <span
  204. style="color: #3C3C3C;font-size: 24rpx;">(充{{item.ChargeMoney}}送{{item.GiftMoney}})</span>
  205. </view>
  206. <view class="itemBottom" :class="{active:item.open}" @click="changeState(item)">
  207. <view class="shopName">{{item.ShopName}}</view>
  208. <image v-if="item.open==false" src="../../static/img/icon_arrow_down.png"
  209. mode="" style="width: 34rpx;height: 22rpx;"></image>
  210. <image v-if="item.open==true" src="../../static/img/icon_arrow_up.png"
  211. mode="" style="width: 34rpx;height: 22rpx;"></image>
  212. </view>
  213. <view class="itemBg" v-if="item.open" v-for="(v,index2) in item.payList" :key="index2">
  214. <view class="timeBottom">
  215. <view class="time" style="color: #666666;" v-if="v.CreateTime">{{v.CreateTime}}</view>
  216. <view v-if="v.Type==2" style="font-weight: 500;color: #3C3C3C;">-{{v.Money}}</view>
  217. <view class="count" style="font-weight: 500;" v-else>+{{v.Money}}</view>
  218. </view>
  219. </view>
  220. </view>
  221. </view>
  222. </view>
  223. <!-- 储值 -->
  224. <view class="mainBox" v-if="tabIndex==2"><!-- -->
  225. <view class="btnBox" @click="disCz=!disCz">
  226. <image v-if="disCz" src="../../static/img/icon_selectY.png" mode="" style="width: 36rpx;height: 36rpx;">
  227. </image>
  228. <image v-else src="../../static/img/icon_selectN.png" mode="" style="width: 36rpx;height: 36rpx;">
  229. </image>
  230. <view style="margin-left: 10rpx;color: #3C3C3C;font-size: 24rpx;">不展示剩余为0项</view>
  231. </view>
  232. <!-- 无数据空白页 -->
  233. <!-- <nodata v-if="vipData.carMoneyList.length==0"></nodata> -->
  234. <!-- 使用条款-->
  235. <view class="shiyongBox" v-if="shiyongShow" @click="shiyongShow=false">
  236. <view class="shiyongCont" @click.stop="">
  237. <view class="shiyongContTop">
  238. <view class="shiyongContTopTitle">使用条款</view>
  239. <image src="../../static/img/icon_close.png" alt="" class="shiyongContTopX"
  240. @click="shiyongShowHlde"></image>
  241. </view>
  242. <view class="shiyonghtml">
  243. <view v-html="useComment" v-if="useComment"></view>
  244. <view v-else class="shiyongno">使用条款暂无内容</view>
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. <!-- 手机号授权 -->
  250. <view class="authorizBox" v-if="authorizShow" @click="authorizShow=false">
  251. <view class="authorizCont" @click.stop="">
  252. <view class="authorizName">{{wxOpenData.miniAppName}}</view>
  253. <view class="authorizMs">您好,欢迎访问本店,授权手机号登录能获取我们最新的促销活动哦~</view>
  254. <button class="authorizContbutton" type="default" open-type="getPhoneNumber" @getphonenumber="decryptPhoneNumber">授权</button>
  255. </view>
  256. <view style="text-align: center;padding-top: 56rpx;">
  257. <image src="../../static/timg/icon_guanbi@2x.png" mode="" class="authorizCloseImg"></image>
  258. </view>
  259. </view>
  260. </view>
  261. </template>
  262. <script>
  263. import nodata from '../../components/nodata/nodata.vue'
  264. export default {
  265. components: {
  266. nodata,
  267. },
  268. data() {
  269. return {
  270. tabIndex: '1',
  271. vipData: {},
  272. userInfo: '',
  273. shiyongShow: false,
  274. useComment: '',
  275. dis: true,
  276. disCz: true,
  277. authorizShow:false,
  278. userInfo:'',
  279. ext:'',
  280. wxOpenData:'',
  281. }
  282. },
  283. onLoad() {
  284. //this.userInfo = uni.getStorageSync("userInfo");
  285. this.userInfo=this.$store.state.userInfo;
  286. this.ext=this.$common.getExtStoreId();
  287. if(this.userInfo){
  288. this.myOrderCoupon();
  289. }else{
  290. this.$common.automaticlogin().then(val => {
  291. this.userInfo=this.$store.state.userInfo;
  292. this.wxOpenData=this.$store.state.wxOpenData;
  293. this.themeColor = uni.getStorageSync("themeColor");
  294. if(!this.userInfo){
  295. this.authorizShow=true
  296. }
  297. this.myOrderCoupon();
  298. })
  299. }
  300. },
  301. methods: {
  302. shiyongShowHlde(){
  303. this.shiyongShow=false;
  304. },
  305. AmountQtyJs (item) {
  306. var state = false
  307. if (this.dis) {
  308. item.forEach(v => {
  309. if (v.AmountQty != 0) {
  310. state = true
  311. }
  312. })
  313. } else {
  314. state = true
  315. }
  316. return state
  317. },
  318. AmountQtyJsFcard (item) {
  319. var state = false
  320. if (this.dis) {
  321. item.forEach(v => {
  322. if (v.lastCount != 0) {
  323. state = true
  324. }
  325. })
  326. } else {
  327. state = true
  328. }
  329. return state
  330. },
  331. useCl(useComment) {
  332. this.useComment = useComment;
  333. this.shiyongShow = true;
  334. },
  335. myOrderCoupon() {
  336. uni.showLoading({
  337. title: '加载中'
  338. })
  339. this.$http('openweiXinCardInfoController/queryCardTimeAndMondyList', {
  340. // page: this.page,
  341. // limit: 10,
  342. }, 'POST').then(res => {
  343. uni.hideLoading();
  344. // var list = res.data.Items
  345. var list = res.data
  346. list.cardTimeList.forEach((item, index) => {
  347. for (const key in item) {
  348. item['open'] = false
  349. }
  350. })
  351. list.carMoneyList.forEach((item, index) => {
  352. for (const key in item) {
  353. item['open'] = false
  354. }
  355. })
  356. list.f2ccard.forEach((item, index) => {
  357. for (const key in item) {
  358. item['open'] = false
  359. }
  360. })
  361. this.vipData = list
  362. })
  363. },
  364. tabClick(tag) {
  365. this.tabIndex = tag
  366. },
  367. changeState(item) {
  368. item.open = !item.open
  369. },
  370. gonavigateTo(url) {
  371. uni.navigateTo({
  372. url: url
  373. })
  374. },
  375. decryptPhoneNumber: function(e) {
  376. console.log(e);
  377. this.code=e.detail.code
  378. this.wxPhoneLogin()
  379. this.authorizShow=false;
  380. },
  381. wxPhoneLogin(){
  382. var that=this;
  383. this.$http('miniApp2/sys/wxPhoneLogin', {
  384. appId:this.ext.appId,
  385. unionId:this.ext.unionId,
  386. code:this.code,
  387. openId:this.wxOpenData.openid
  388. },'POST').then(res => {
  389. var data = res.data;
  390. if(data.loginInfo){
  391. this.userInfo=data.loginInfo.openUser;
  392. this.wxOpenData=data.loginInfo;
  393. this.$store.commit('mutationswxOpenData', data)
  394. this.$store.commit('mutationsuserInfo', this.userInfo)
  395. this.myOrderCoupon()
  396. }
  397. })
  398. },
  399. },
  400. // 下拉刷新
  401. onPullDownRefresh() {
  402. // this.page = 1
  403. this.myOrderCoupon()
  404. setTimeout(function() {
  405. uni.stopPullDownRefresh();
  406. }, 1000);
  407. },
  408. }
  409. </script>
  410. <style scoped>
  411. .ftwoccard .active{
  412. margin-bottom: 0rpx;
  413. }
  414. .fcardBottomactive{
  415. padding-bottom: 20rpx;
  416. }
  417. .titleType2{
  418. width: 32rpx;height: 32rpx; color: #FFFFFF;font-size: 24rpx;background: #FF8113;
  419. border-radius: 4rpx;margin-right: 8rpx;text-align: center;line-height: 32rpx;
  420. display: inline-block;font-weight: 400;
  421. }
  422. .titleType{
  423. color: #FFFFFF;font-size: 24rpx;font-weight: 400;height: 32rpx;
  424. padding:0px 4rpx;background: #FF8113;line-height: 32rpx;
  425. border-radius: 4rpx;margin-right: 8rpx;
  426. }
  427. .discountTypeBox{
  428. display: flex;line-height: 30rpx;
  429. }
  430. .fcardType{
  431. background: #fff1ea;color: #FF4F00;
  432. border-radius: 5rpx;
  433. line-height: 32rpx;
  434. padding: 0 6rpx;
  435. font-size: 22rpx;
  436. height: 30rpx;
  437. display: block;
  438. }
  439. .discountNum{
  440. font-weight: 500;
  441. color: #FF4F00;
  442. font-size: 26rpx;
  443. padding-left: 10rpx;
  444. }
  445. .fcardBottom{
  446. display: flex;justify-content: space-between;color: #999999;font-size: 24rpx;
  447. padding-top: 12rpx;
  448. }
  449. .topVipIcon{
  450. width: 41rpx;height: 40rpx;
  451. }
  452. .newTopCont{
  453. border-radius: 16rpx;line-height: 40rpx;
  454. border: 1px solid #EAC799;font-size: 28rpx;
  455. padding: 19rpx 26rpx;color: #F7D4B5;
  456. display: flex;
  457. }
  458. .newTop{
  459. background-color: #171723;
  460. padding: 10rpx 24rpx;
  461. padding-bottom: 50rpx;
  462. }
  463. .box {
  464. min-height: 100vh;
  465. padding-bottom: 60rpx;
  466. }
  467. .headerBox {
  468. background-color: #171723;
  469. height: 525rpx;
  470. width: 100vw;
  471. padding: 30rpx 0rpx;
  472. /* position: fixed;
  473. left: 0;
  474. top: 0;
  475. z-index: 999; */
  476. }
  477. .vip {
  478. background: url(http://dmsphoto.66km.com.cn/thFiles/0EEEE7DB-02ED-41B4-A633-2F2669E0DF7E.png);
  479. background-size: 100% 100%;
  480. height: 320rpx;
  481. /* width: 100vw; */
  482. margin: 0rpx 24rpx;
  483. padding: 48rpx 30rpx;
  484. display: flex;
  485. flex-direction: column;
  486. justify-content: space-between;
  487. }
  488. .headerTop {
  489. display: flex;
  490. justify-content: flex-start;
  491. }
  492. .headerRight {
  493. padding-left: 18rpx;
  494. }
  495. .nameBox {
  496. display: flex;
  497. justify-content: flex-start;
  498. align-items: center;
  499. }
  500. .name {
  501. font-size: 30rpx;
  502. font-weight: bold;
  503. color: #523509;
  504. line-height: 42rpx;
  505. }
  506. .phone {
  507. margin-top: 12rpx;
  508. font-size: 24rpx;
  509. font-weight: bold;
  510. color: #523509;
  511. line-height: 33rpx;
  512. }
  513. .kahaoBox {
  514. display: flex;
  515. justify-content: flex-start;
  516. align-items: center;
  517. }
  518. .kahao {
  519. font-size: 24rpx;
  520. font-weight: bold;
  521. color: #523509;
  522. line-height: 33rpx;
  523. }
  524. .tab {
  525. background: #FFFFFF;
  526. margin-top: 30rpx;
  527. display: flex;
  528. justify-content: space-around;
  529. line-height: 60rpx;
  530. height: 60rpx;
  531. border-radius: 26rpx 26rpx 0rpx 0rpx;
  532. padding: 28rpx;
  533. }
  534. .tabLine {
  535. font-size: 30rpx;
  536. line-height: 42rpx;
  537. color: #3C3C3C;
  538. text-align: center;
  539. }
  540. .line{
  541. width: 40rpx;
  542. margin: 0rpx 10rpx;
  543. height: 4rpx;
  544. background: #FF0000;
  545. margin-top: 8rpx;
  546. }
  547. .tabActive {
  548. color: #3C3C3C;
  549. font-weight: bold;
  550. }
  551. .mainBox {
  552. /* margin-top: 590rpx; */
  553. background-color: #F4F5F7;
  554. padding: 24rpx;
  555. min-height: 100vh;
  556. padding-top: 1rpx;
  557. }
  558. .btnBox {
  559. display: flex;background: #FFFFFF;
  560. border-radius: 24rpx 24rpx 0rpx 0rpx;
  561. padding: 26rpx 24rpx;
  562. margin-top: -24rpx;
  563. }
  564. .itemBox {
  565. background-color: #FFFFFF;
  566. border-radius: 10rpx;
  567. padding: 24rpx 20rpx;
  568. margin-top: 20rpx;
  569. }
  570. .itemTop {
  571. display: flex;
  572. justify-content: space-between;
  573. align-items: baseline;
  574. }
  575. .itemBottom {
  576. display: flex;
  577. justify-content: space-between;
  578. align-items: center;
  579. margin-top: 15rpx;
  580. }
  581. .active {
  582. margin-bottom: 30rpx;
  583. }
  584. .itemName {
  585. font-size: 28rpx;
  586. font-weight: bold;
  587. color: #333333;
  588. line-height: 42rpx;
  589. }
  590. .tiaokuan {
  591. width: 136rpx;
  592. height: 52rpx;
  593. background: #FFFFFF;
  594. border-radius: 28rpx;
  595. border: 1rpx solid #DDDDDD;
  596. color: #3C3C3C;
  597. font-size: 24rpx;
  598. text-align: center;
  599. line-height: 52rpx;
  600. }
  601. .shopName {
  602. border-radius: 5rpx;
  603. /* border: 1rpx solid #DDDDDD; */
  604. color: #999999;
  605. font-size: 24rpx;
  606. padding: 2rpx 12rpx;
  607. padding-left: 0rpx;
  608. /* max-width: 300rpx;
  609. overflow: hidden;
  610. white-space: nowrap;
  611. text-overflow: ellipsis;
  612. -o-text-overflow: ellipsis; */
  613. }
  614. .itemBg {
  615. padding: 30rpx 0rpx;
  616. border-top: 1rpx solid #EEEEEE;
  617. }
  618. .itemBgFcard{
  619. display: flex;
  620. justify-content: space-between;
  621. }
  622. .itemBg:last-child{
  623. padding-bottom: 0;
  624. }
  625. .nameTop {
  626. display: flex;
  627. font-size: 28rpx;
  628. font-weight: 400;
  629. color: #333333;
  630. line-height: 34rpx;
  631. margin-bottom: 20rpx;
  632. }
  633. .type {
  634. height: 26rpx;
  635. border-radius: 5rpx;
  636. border: 1rpx solid #F19D01;
  637. margin-right: 10rpx;
  638. font-size: 24rpx;
  639. color: #F19D01;
  640. line-height: 30rpx;
  641. padding: 2rpx 0;
  642. text-align: center;
  643. width: 60rpx;
  644. }
  645. .timeBottom {
  646. display: flex;
  647. justify-content: space-between;
  648. color: #999999;
  649. font-size: 24rpx;
  650. }
  651. .money {
  652. font-size: 36rpx;
  653. font-weight: bold;
  654. color: #FF0000;
  655. line-height: 50rpx;
  656. }
  657. .moneyBox{
  658. flex-grow: 1;
  659. display: flex;
  660. /* justify-content: flex-end; */
  661. margin-right: 10rpx;
  662. align-items: center;
  663. }
  664. .count {
  665. color: #FF0000;
  666. }
  667. .shiyongBox {
  668. width: 100%;
  669. height: 100vh;
  670. background: rgba(0, 0, 0, 0.4);
  671. position: fixed;
  672. left: 0;
  673. top: 0;
  674. z-index: 9999;
  675. }
  676. .shiyongCont {
  677. width: 100%;
  678. height: 70vh;
  679. background: #ffffff;
  680. left: 0;
  681. bottom: 0;
  682. position: absolute;
  683. border-radius: 24rpx 24rpx 0rpx 0rpx;
  684. }
  685. .shiyongContTopX {
  686. width: 36rpx;
  687. height: 36rpx;
  688. padding: 10rpx;
  689. }
  690. .shiyongContTop {
  691. display: flex;
  692. justify-content: space-between;
  693. padding: 24rpx;
  694. color: #3C3C3C;
  695. font-size: 30rpx;
  696. border-bottom: 1rpx solid #EEEEEE;
  697. align-items: center;
  698. }
  699. .shiyongContTopTitle {
  700. font-size: 30rpx;
  701. color: #3C3C3C;
  702. font-weight: bold;
  703. }
  704. .shiyonghtml {
  705. padding: 24rpx;
  706. height: calc(70vh - 100px);
  707. overflow-y: scroll;
  708. }
  709. .shiyongno {
  710. color: #666666;
  711. font-size: 26rpx;
  712. }
  713. .authorizBox{
  714. width: 100vw;
  715. height: 100vh;
  716. background: rgba(0, 0, 0, 0.5);
  717. position: fixed;
  718. top: 0;
  719. left: 0;
  720. }
  721. .authorizCont{
  722. margin-top: 30vh;
  723. width: 564rpx;
  724. height: 408rpx;
  725. background: #FFFFFF;
  726. border-radius: 24rpx;
  727. margin-left: 93rpx;
  728. position: relative;
  729. }
  730. .authorizCloseImg{
  731. width: 62rpx;
  732. height: 62rpx;
  733. }
  734. .sqLogoBox{
  735. width: 180rpx;
  736. height: 180rpx;
  737. background: #FFFFFF;
  738. border-radius: 90rpx;
  739. text-align: center;
  740. position: absolute;
  741. top: -50rpx;
  742. left: 192rpx;
  743. }
  744. .authorizName{
  745. color: #333333;
  746. line-height: 42rpx;
  747. font-size: 30rpx;
  748. text-align: center;
  749. padding-top: 58rpx;
  750. }
  751. .authorizMs{
  752. color: #999999;
  753. line-height: 36rpx;
  754. font-size: 26rpx;
  755. width: 452rpx;
  756. padding-top: 24rpx;
  757. text-align: center;
  758. margin-left: 56rpx;
  759. }
  760. .authorizContbutton{
  761. width: 422rpx;
  762. height: 88rpx;
  763. background: #D53533;
  764. border-radius: 44rpx;
  765. line-height: 88rpx;
  766. text-align: center;
  767. font-size:30rpx;
  768. color: #FFFFFF;
  769. margin-top: 62rpx;
  770. margin-left:71rpx;
  771. }
  772. </style>