vipCard.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917
  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" v-if="item.card.expireTime">{{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-for="(v,index2) in item.detail" :key="index2"><!-- v-if="!dis" -->
  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&&item.list.length>0}" @click="changeState(item)">
  118. <view class="shopName">{{item.shopName}}</view>
  119. <image v-if="item.open==false&&item.list.length>0" src="../../static/img/icon_arrow_down.png"
  120. mode="" style="width: 34rpx;height: 22rpx;"></image>
  121. <image v-if="item.open==true&&item.list.length>0" 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!=null&&v.ExpireTime!='null'">有效期:{{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!=null&&v.ExpireTime!='null'">有效期:{{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&&item.payList.length>0" src="../../static/img/icon_arrow_down.png"
  185. mode="" style="width: 34rpx;height: 22rpx;"></image>
  186. <image v-if="item.open==true&&item.payList.length>0" 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. filter:{
  302. filter_formatId(value) {
  303. console.log(value)
  304. return value//.slice(0,10);
  305. }
  306. },
  307. methods: {
  308. shiyongShowHlde(){
  309. this.shiyongShow=false;
  310. },
  311. AmountQtyJs (item) {
  312. var state = false
  313. if (this.dis) {
  314. item.forEach(v => {
  315. if (v.AmountQty != 0) {
  316. state = true
  317. }
  318. })
  319. } else {
  320. state = true
  321. }
  322. return state
  323. },
  324. AmountQtyJsFcard (item) {
  325. var state = false
  326. if (this.dis) {
  327. item.forEach(v => {
  328. if (v.lastCount != 0) {
  329. state = true
  330. }
  331. })
  332. } else {
  333. state = true
  334. }
  335. return state
  336. },
  337. useCl(useComment) {
  338. this.useComment = useComment;
  339. this.shiyongShow = true;
  340. },
  341. myOrderCoupon() {
  342. uni.showLoading({
  343. title: '加载中'
  344. })
  345. this.$http('openweiXinCardInfoController/queryCardTimeAndMondyList', {
  346. // page: this.page,
  347. // limit: 10,
  348. }, 'POST').then(res => {
  349. uni.hideLoading();
  350. // var list = res.data.Items
  351. var list = res.data
  352. list.cardTimeList.forEach((item, index) => {
  353. for (const key in item) {
  354. item['open'] = false
  355. }
  356. })
  357. list.carMoneyList.forEach((item, index) => {
  358. for (const key in item) {
  359. item['open'] = false
  360. }
  361. })
  362. list.f2ccard.forEach((item, index) => {
  363. for (const key in item) {
  364. item['open'] = false
  365. }
  366. })
  367. this.vipData = list
  368. console.log(this.vipData)
  369. })
  370. },
  371. tabClick(tag) {
  372. this.tabIndex = tag
  373. },
  374. changeState(item) {
  375. item.open = !item.open
  376. },
  377. gonavigateTo(url) {
  378. uni.navigateTo({
  379. url: url
  380. })
  381. },
  382. decryptPhoneNumber: function(e) {
  383. console.log(e);
  384. this.code=e.detail.code
  385. this.wxPhoneLogin()
  386. this.authorizShow=false;
  387. },
  388. wxPhoneLogin(){
  389. var that=this;
  390. this.$http('miniApp2/sys/wxPhoneLogin', {
  391. appId:this.ext.appId,
  392. unionId:this.ext.unionId,
  393. code:this.code,
  394. openId:this.wxOpenData.openid
  395. },'POST').then(res => {
  396. var data = res.data;
  397. if(data.loginInfo){
  398. this.userInfo=data.loginInfo.openUser;
  399. this.wxOpenData=data.loginInfo;
  400. this.$store.commit('mutationswxOpenData', data)
  401. this.$store.commit('mutationsuserInfo', this.userInfo)
  402. this.myOrderCoupon()
  403. }
  404. })
  405. },
  406. },
  407. // 下拉刷新
  408. onPullDownRefresh() {
  409. // this.page = 1
  410. this.myOrderCoupon()
  411. setTimeout(function() {
  412. uni.stopPullDownRefresh();
  413. }, 1000);
  414. },
  415. }
  416. </script>
  417. <style scoped>
  418. .ftwoccard .active{
  419. margin-bottom: 0rpx;
  420. }
  421. .fcardBottomactive{
  422. padding-bottom: 20rpx;
  423. }
  424. .titleType2{
  425. width: 32rpx;height: 32rpx; color: #FFFFFF;font-size: 24rpx;background: #FF8113;
  426. border-radius: 4rpx;margin-right: 8rpx;text-align: center;line-height: 32rpx;
  427. display: inline-block;font-weight: 400;
  428. }
  429. .titleType{
  430. color: #FFFFFF;font-size: 24rpx;font-weight: 400;height: 32rpx;
  431. padding:0px 4rpx;background: #FF8113;line-height: 32rpx;
  432. border-radius: 4rpx;margin-right: 8rpx;
  433. }
  434. .discountTypeBox{
  435. display: flex;line-height: 30rpx;
  436. }
  437. .fcardType{
  438. background: #fff1ea;color: #FF4F00;
  439. border-radius: 5rpx;
  440. line-height: 32rpx;
  441. padding: 0 6rpx;
  442. font-size: 22rpx;
  443. height: 30rpx;
  444. display: block;
  445. }
  446. .discountNum{
  447. font-weight: 500;
  448. color: #FF4F00;
  449. font-size: 26rpx;
  450. padding-left: 10rpx;
  451. }
  452. .fcardBottom{
  453. display: flex;justify-content: space-between;color: #999999;font-size: 24rpx;
  454. padding-top: 12rpx;
  455. padding-right: 20rpx;
  456. }
  457. .topVipIcon{
  458. width: 41rpx;height: 40rpx;
  459. }
  460. .newTopCont{
  461. border-radius: 16rpx;line-height: 40rpx;
  462. border: 1px solid #EAC799;font-size: 28rpx;
  463. padding: 19rpx 26rpx;color: #F7D4B5;
  464. display: flex;
  465. }
  466. .newTop{
  467. background-color: #171723;
  468. padding: 10rpx 24rpx;
  469. padding-bottom: 50rpx;
  470. }
  471. .box {
  472. min-height: 100vh;
  473. padding-bottom: 60rpx;
  474. }
  475. .headerBox {
  476. background-color: #171723;
  477. height: 525rpx;
  478. width: 100vw;
  479. padding: 30rpx 0rpx;
  480. /* position: fixed;
  481. left: 0;
  482. top: 0;
  483. z-index: 999; */
  484. }
  485. .vip {
  486. background: url(http://dmsphoto.66km.com.cn/thFiles/0EEEE7DB-02ED-41B4-A633-2F2669E0DF7E.png);
  487. background-size: 100% 100%;
  488. height: 320rpx;
  489. /* width: 100vw; */
  490. margin: 0rpx 24rpx;
  491. padding: 48rpx 30rpx;
  492. display: flex;
  493. flex-direction: column;
  494. justify-content: space-between;
  495. }
  496. .headerTop {
  497. display: flex;
  498. justify-content: flex-start;
  499. }
  500. .headerRight {
  501. padding-left: 18rpx;
  502. }
  503. .nameBox {
  504. display: flex;
  505. justify-content: flex-start;
  506. align-items: center;
  507. }
  508. .name {
  509. font-size: 30rpx;
  510. font-weight: bold;
  511. color: #523509;
  512. line-height: 42rpx;
  513. }
  514. .phone {
  515. margin-top: 12rpx;
  516. font-size: 24rpx;
  517. font-weight: bold;
  518. color: #523509;
  519. line-height: 33rpx;
  520. }
  521. .kahaoBox {
  522. display: flex;
  523. justify-content: flex-start;
  524. align-items: center;
  525. }
  526. .kahao {
  527. font-size: 24rpx;
  528. font-weight: bold;
  529. color: #523509;
  530. line-height: 33rpx;
  531. }
  532. .tab {
  533. background: #FFFFFF;
  534. margin-top: 30rpx;
  535. display: flex;
  536. justify-content: space-around;
  537. line-height: 60rpx;
  538. height: 60rpx;
  539. border-radius: 26rpx 26rpx 0rpx 0rpx;
  540. padding: 28rpx;
  541. }
  542. .tabLine {
  543. font-size: 30rpx;
  544. line-height: 42rpx;
  545. color: #3C3C3C;
  546. text-align: center;
  547. }
  548. .line{
  549. width: 40rpx;
  550. margin: 0rpx 10rpx;
  551. height: 4rpx;
  552. background: #FF0000;
  553. margin-top: 8rpx;
  554. }
  555. .tabActive {
  556. color: #3C3C3C;
  557. font-weight: bold;
  558. }
  559. .mainBox {
  560. /* margin-top: 590rpx; */
  561. background-color: #F4F5F7;
  562. padding: 24rpx;
  563. min-height: 100vh;
  564. padding-top: 1rpx;
  565. }
  566. .btnBox {
  567. display: flex;background: #FFFFFF;
  568. border-radius: 24rpx 24rpx 0rpx 0rpx;
  569. padding: 26rpx 24rpx;
  570. margin-top: -24rpx;
  571. }
  572. .itemBox {
  573. background-color: #FFFFFF;
  574. border-radius: 10rpx;
  575. padding: 24rpx 20rpx;
  576. margin-top: 20rpx;
  577. padding-right: 0px;
  578. }
  579. .itemTop {
  580. display: flex;
  581. justify-content: space-between;
  582. align-items: baseline;
  583. padding-right: 20rpx;
  584. }
  585. .itemBottom {
  586. display: flex;
  587. justify-content: space-between;
  588. align-items: center;
  589. margin-top: 15rpx;
  590. padding-right: 20rpx;
  591. }
  592. .active {
  593. margin-bottom: 30rpx;
  594. }
  595. .itemName {
  596. font-size: 28rpx;
  597. font-weight: bold;
  598. color: #333333;
  599. line-height: 42rpx;
  600. }
  601. .tiaokuan {
  602. width: 136rpx;
  603. height: 52rpx;
  604. background: #FFFFFF;
  605. border-radius: 28rpx;
  606. border: 1rpx solid #DDDDDD;
  607. color: #3C3C3C;
  608. font-size: 24rpx;
  609. text-align: center;
  610. line-height: 52rpx;
  611. }
  612. .shopName {
  613. border-radius: 5rpx;
  614. /* border: 1rpx solid #DDDDDD; */
  615. color: #999999;
  616. font-size: 24rpx;
  617. padding: 2rpx 12rpx;
  618. padding-left: 0rpx;
  619. /* max-width: 300rpx;
  620. overflow: hidden;
  621. white-space: nowrap;
  622. text-overflow: ellipsis;
  623. -o-text-overflow: ellipsis; */
  624. }
  625. .itemBg {
  626. padding: 30rpx 0rpx;
  627. border-top: 1rpx solid #EEEEEE;
  628. padding-right: 20rpx;
  629. }
  630. .itemBgFcard{
  631. display: flex;
  632. justify-content: space-between;
  633. }
  634. .itemBg:last-child{
  635. padding-bottom: 0;
  636. }
  637. .nameTop {
  638. display: flex;
  639. font-size: 28rpx;
  640. font-weight: 400;
  641. color: #333333;
  642. line-height: 34rpx;
  643. margin-bottom: 20rpx;
  644. }
  645. .type {
  646. height: 26rpx;
  647. border-radius: 5rpx;
  648. border: 1rpx solid #F19D01;
  649. margin-right: 10rpx;
  650. font-size: 24rpx;
  651. color: #F19D01;
  652. line-height: 30rpx;
  653. padding: 2rpx 0;
  654. text-align: center;
  655. width: 60rpx;
  656. }
  657. .timeBottom {
  658. display: flex;
  659. justify-content: space-between;
  660. color: #999999;
  661. font-size: 24rpx;
  662. }
  663. .money {
  664. font-size: 36rpx;
  665. font-weight: bold;
  666. color: #FF0000;
  667. line-height: 50rpx;
  668. }
  669. .moneyBox{
  670. flex-grow: 1;
  671. display: flex;
  672. /* justify-content: flex-end; */
  673. margin-right: 10rpx;
  674. align-items: center;
  675. }
  676. .count {
  677. color: #FF0000;
  678. }
  679. .shiyongBox {
  680. width: 100%;
  681. height: 100vh;
  682. background: rgba(0, 0, 0, 0.4);
  683. position: fixed;
  684. left: 0;
  685. top: 0;
  686. z-index: 9999;
  687. }
  688. .shiyongCont {
  689. width: 100%;
  690. height: 70vh;
  691. background: #ffffff;
  692. left: 0;
  693. bottom: 0;
  694. position: absolute;
  695. border-radius: 24rpx 24rpx 0rpx 0rpx;
  696. }
  697. .shiyongContTopX {
  698. width: 36rpx;
  699. height: 36rpx;
  700. padding: 10rpx;
  701. }
  702. .shiyongContTop {
  703. display: flex;
  704. justify-content: space-between;
  705. padding: 24rpx;
  706. color: #3C3C3C;
  707. font-size: 30rpx;
  708. border-bottom: 1rpx solid #EEEEEE;
  709. align-items: center;
  710. }
  711. .shiyongContTopTitle {
  712. font-size: 30rpx;
  713. color: #3C3C3C;
  714. font-weight: bold;
  715. }
  716. .shiyonghtml {
  717. padding: 24rpx;
  718. height: calc(70vh - 100px);
  719. overflow-y: scroll;
  720. }
  721. .shiyongno {
  722. color: #666666;
  723. font-size: 26rpx;
  724. }
  725. .authorizBox{
  726. width: 100vw;
  727. height: 100vh;
  728. background: rgba(0, 0, 0, 0.5);
  729. position: fixed;
  730. top: 0;
  731. left: 0;
  732. }
  733. .authorizCont{
  734. margin-top: 30vh;
  735. width: 564rpx;
  736. height: 408rpx;
  737. background: #FFFFFF;
  738. border-radius: 24rpx;
  739. margin-left: 93rpx;
  740. position: relative;
  741. }
  742. .authorizCloseImg{
  743. width: 62rpx;
  744. height: 62rpx;
  745. }
  746. .sqLogoBox{
  747. width: 180rpx;
  748. height: 180rpx;
  749. background: #FFFFFF;
  750. border-radius: 90rpx;
  751. text-align: center;
  752. position: absolute;
  753. top: -50rpx;
  754. left: 192rpx;
  755. }
  756. .authorizName{
  757. color: #333333;
  758. line-height: 42rpx;
  759. font-size: 30rpx;
  760. text-align: center;
  761. padding-top: 58rpx;
  762. }
  763. .authorizMs{
  764. color: #999999;
  765. line-height: 36rpx;
  766. font-size: 26rpx;
  767. width: 452rpx;
  768. padding-top: 24rpx;
  769. text-align: center;
  770. margin-left: 56rpx;
  771. }
  772. .authorizContbutton{
  773. width: 422rpx;
  774. height: 88rpx;
  775. background: #D53533;
  776. border-radius: 44rpx;
  777. line-height: 88rpx;
  778. text-align: center;
  779. font-size:30rpx;
  780. color: #FFFFFF;
  781. margin-top: 62rpx;
  782. margin-left:71rpx;
  783. }
  784. </style>