index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770
  1. <template>
  2. <view style="padding-bottom: 80upx;">
  3. <view class=" u-flex padding-lr bg padding-top">
  4. <view class="u-m-r-10">
  5. <image :src="avatar" style="width: 100rpx;height: 100rpx;border-radius: 100rpx;"
  6. @click="goNav('/my/store/index')"></image>
  7. </view>
  8. <view class="u-flex-1 u-m-l-10" v-if="!isLogin">
  9. <view class="u-font-18 text-bold">
  10. <view class="margin-left-sm margin-top-xs">
  11. <view class="flex align-end">{{userName}}
  12. <view class="margin-left-sm" v-if="shop" @click="changePutaWayFlag">
  13. <image
  14. :src="shop.putawayFlag==0?'../../static/images/index/shangban.png':'../../static/images/index/dayang.png'"
  15. style="width: 30rpx;height: 30rpx;"></image>
  16. </view>
  17. <!-- <view>
  18. <image src="../../static/images/index/dayang.png" style="width: 30rpx;height: 30rpx;"></image>
  19. </view> -->
  20. </view>
  21. <!-- <text @click="changePutaWayFlag"
  22. :style="shop.putawayFlag==0?'margin-left: 16upx;font-size: 28upx;color: #E10A07;':'margin-left: 16upx;font-size: 28upx;color: #999999;'"
  23. v-if="shop">{{shop.putawayFlag==0?'上班中':'打烊啦'}}
  24. </text> -->
  25. </view>
  26. </view>
  27. </view>
  28. <view v-else class="text-xl u-p-l-20 text-bold" @click="goLogin('/pages/my/loginphone')">
  29. 登录
  30. </view>
  31. </view>
  32. <view class="flex align-center padding-left">
  33. <image src="../../static/images/img/data.png" style="width: 26upx;height: 26upx;"></image>
  34. <view class="margin-left-xs flex align-center" style="color: #999999;">
  35. <view @click="bindData(1)">{{startTime?startTime:'开始时间'}}</view>
  36. <view @click="bindData(2)">{{endTime?endTime:'结束时间'}}</view>
  37. </view>
  38. </view>
  39. <view class="flex align-center box justify-between text-center">
  40. <view @click="goNav('/my/other/cashList')">
  41. ¥<text class="text-bold text-xl">{{allMoney?allMoney:'0'}}</text>
  42. <view>总收益</view>
  43. </view>
  44. <view class="">
  45. <text class="text-bold text-xl">{{allCount?allCount:'0'}}</text>
  46. <view>总销量</view>
  47. </view>
  48. <view @click="goNav('/my/store/pingjia')">
  49. <text class="text-bold text-xl">{{countTakingByUserId?countTakingByUserId:'0'}}</text>
  50. <view>用户评价</view>
  51. </view>
  52. <!-- <view class="">
  53. <text class="text-bold text-xl">{{putaway+soldOut}}</text>
  54. <view>用户发布</view>
  55. </view> -->
  56. </view>
  57. <view class="padding">
  58. <view class="text-bold text-lg margin-bottom-sm">订单数据</view>
  59. <view class="orderbox ">
  60. <view class="">
  61. ¥<text class="text-bold text-xl">{{orderMoney?orderMoney:'0'}}</text>
  62. <view class="margin-top-xs">订单收入</view>
  63. </view>
  64. <view class="">
  65. <text class="text-bold text-xl">{{sumCountOrder?sumCountOrder:'0'}}</text>
  66. <view class="margin-top-xs">总订单数</view>
  67. </view>
  68. <view class="">
  69. ¥<text class="text-bold text-xl">{{refundMoney?refundMoney:'0'}}</text>
  70. <view class="margin-top-xs">退款金额</view>
  71. </view>
  72. <view class="">
  73. <text class="text-bold text-xl">{{countByUserId?countByUserId:'0'}}</text>
  74. <view class="margin-top-xs">访客人数</view>
  75. </view>
  76. </view>
  77. </view>
  78. <view style="padding: 0upx 30upx;">
  79. <view class="text-bold text-lg margin-bottom-sm flex justify-between">
  80. <view>订单管理</view>
  81. <view @click="goDetail(1)">
  82. <text style="color: #666666;font-size: 26upx;margin-right: 10upx;">查看全部</text>
  83. <image src="../../static/images/my/right.png" style="width: 12upx;height: 20upx;"></image>
  84. </view>
  85. </view>
  86. <view class="orderbox ">
  87. <!-- <view class="">
  88. <text class="text-bold text-xl">{{i1}}</text>
  89. <view class="margin-top-xs">待付款</view>
  90. </view> -->
  91. <view class="">
  92. <text class="text-bold text-xl">{{i5}}</text>
  93. <view class="margin-top-xs">待接单</view>
  94. </view>
  95. <view class="">
  96. <text class="text-bold text-xl">{{i2}}</text>
  97. <view class="margin-top-xs">制作中</view>
  98. </view>
  99. <view class="">
  100. <text class="text-bold text-xl">{{i3}}</text>
  101. <view class="margin-top-xs">待取餐</view>
  102. </view>
  103. <view class="">
  104. <text class="text-bold text-xl">{{i4}}</text>
  105. <view class="margin-top-xs">已完成</view>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="padding">
  110. <view class="text-bold text-lg margin-bottom-sm flex justify-between">
  111. <view>我的商品</view>
  112. <view @click="goDetail(2)">
  113. <text style="color: #666666;font-size: 26upx;margin-right: 10upx;">查看全部</text>
  114. <image src="../../static/images/my/right.png" style="width: 12upx;height: 20upx;"></image>
  115. </view>
  116. </view>
  117. <view class="orderbox ">
  118. <view class="">
  119. <text class="text-bold text-xl">{{putawayCount}}</text>
  120. <view class="margin-top-sm">上架中</view>
  121. </view>
  122. <view class="">
  123. <text class="text-bold text-xl">{{soldoutCount}}</text>
  124. <view class="margin-top-sm">已下架</view>
  125. </view>
  126. <view @click="bindFb()">
  127. <image src="../../static/images/index/add.png" style="width: 46upx;height: 46upx;"></image>
  128. <view class="margin-top-xs">添加商品</view>
  129. </view>
  130. </view>
  131. </view>
  132. <u-popup v-model="Authorization" mode="center" close-icon="close-circle" close-icon-pos="top-right"
  133. close-icon-color="#8f9298" close-icon-size="50">
  134. <view class="contentview">
  135. <view class="title">隐私保护指引</view>
  136. <view class="des" @click="openPrivacyContract">
  137. 在使用当前小程序服务之前,请仔细阅读<text
  138. style="color: #FF7F00;">{{privacyContractName}}</text>。如你同意{{privacyContractName}},请点击“同意”开始使用。
  139. </view>
  140. <view class="btns">
  141. <button class="item reject" @click="exitMiniProgram">拒绝</button>
  142. <button id="agree-btn" class="item agree" open-type="agreePrivacyAuthorization"
  143. @agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
  144. </view>
  145. </view>
  146. </u-popup>
  147. <!-- 开始时间 -->
  148. <u-picker v-model="startshow" mode="time" :params="paramsStart" @confirm="startData"></u-picker>
  149. <!-- 结束时间 -->
  150. <u-picker v-model="endshow" mode="time" :params="paramsEnd" @confirm="endData"></u-picker>
  151. </view>
  152. </template>
  153. <script>
  154. export default {
  155. data() {
  156. return {
  157. Authorization: false,
  158. privacyContractName: '',
  159. avatar: '../../static/logo.png',
  160. isLogin: true,
  161. userName: '匿名',
  162. startshow: false,
  163. endshow: false,
  164. paramsStart: {
  165. year: true,
  166. month: true,
  167. day: true,
  168. hour: false,
  169. minute: false,
  170. second: false
  171. },
  172. paramsEnd: {
  173. year: true,
  174. month: true,
  175. day: true,
  176. hour: false,
  177. minute: false,
  178. second: false
  179. },
  180. startTime: '',
  181. endTime: '',
  182. allMoney: 0, //总收益
  183. allCount: 0, //总销量
  184. countTakingByUserId: 0, //用户评价数
  185. orderMoney: 0, //订单收入
  186. sumCountOrder: 0, //总订单数
  187. refundMoney: 0, //退款金额
  188. countByUserId: 0, //访客人数
  189. i1: 0, //待付款
  190. i2: 0, //制作中
  191. i3: 0, //待取餐
  192. i4: 0, //已完成
  193. i5: 0, //商家待接单
  194. putawayCount: 0, //上架中
  195. soldoutCount: 0, //下架中
  196. page: 1,
  197. limit: 10,
  198. longitude: '',
  199. latitude: '',
  200. userId: '',
  201. shop: '',
  202. arr:[],
  203. errCount: 0
  204. }
  205. },
  206. onLoad() {
  207. this.userId = uni.getStorageSync('userId')
  208. if (this.userId) {
  209. this.getFb()
  210. }
  211. this.$Request.getT('/app/common/type/354').then(res => { //订单取消通知
  212. if (res.code == 0) {
  213. if (res.data && res.data.value) {
  214. this.arr.push(res.data.value)
  215. }
  216. }
  217. })
  218. this.$Request.getT('/app/common/type/353').then(res => { //订单取消通知
  219. if (res.code == 0) {
  220. if (res.data && res.data.value) {
  221. this.arr.push(res.data.value)
  222. }
  223. }
  224. })
  225. this.$Request.getT('/app/common/type/352').then(res => { //新订单通知
  226. if (res.code == 0) {
  227. if (res.data && res.data.value) {
  228. this.arr.push(res.data.value)
  229. }
  230. }
  231. })
  232. // #ifdef MP-WEIXIN
  233. try {
  234. let that = this;
  235. wx.getPrivacySetting({
  236. success: res => {
  237. console.log("是否需要授权:", res.needAuthorization, "隐私协议的名称为:", res.privacyContractName)
  238. if (res.needAuthorization) {
  239. that.privacyContractName = res.privacyContractName;
  240. // this.$refs.popusAuthorization.open();
  241. that.Authorization = true;
  242. }
  243. },
  244. fail: () => {},
  245. complete: () => {},
  246. })
  247. } catch (e) {
  248. //TODO handle the exception
  249. }
  250. // #endif
  251. },
  252. onShow() {
  253. this.userId = uni.getStorageSync('userId')
  254. if (this.userId) {
  255. this.isLogin = false
  256. this.getUserInfo()
  257. this.getFb()
  258. // this.getTodayOrder()
  259. this.getcity()
  260. this.getShopInfo();
  261. // #ifdef MP-WEIXIN
  262. //订阅
  263. if (!uni.getStorageSync('sendindexMsg')) {
  264. this.openMsg();
  265. }
  266. // #endif
  267. } else {
  268. this.isLogin = true
  269. // this.userName = '匿名'
  270. this.avatar = '../../static/logo.png'
  271. this.allMoney = 0 //总收益
  272. this.putawayCount = 0 //上架中
  273. this.soldoutCount = 0 //下架中
  274. this.allCount = 0 //总销量
  275. this.countTakingByUserId = 0 //用户评价
  276. this.orderMoney = 0 //订单收入
  277. this.sumCountOrder = 0 //总订单数
  278. this.refundMoney = 0 //退款金额
  279. this.countByUserId = 0 //访客人数
  280. this.i1 = 0 //待付款
  281. this.i3 = 0 //待取餐
  282. this.i2 = 0 //制作中
  283. this.i4 = 0 //已完成
  284. this.i5 = 0 //商家待接单
  285. }
  286. let that = this
  287. if (that.userId) {
  288. setInterval(function() {
  289. // 订单消息提醒
  290. // newsSelect() {
  291. let data = {
  292. shopIds: that.$queue.getData("shopId")
  293. }
  294. that.$Request.post('/admin/ordermessage/selectReadFlagCount', data).then(res => {
  295. if (res.code === 0) {
  296. // that.errCount = res.data
  297. if (res.data > 0) {
  298. if (that.errCount != res.data) {
  299. that.errCount = res.data
  300. that.aplayAudio()
  301. uni.showModal({
  302. title: '消息',
  303. content: '有' + res.data + '条订单,请前往订单中心处理。',
  304. success: (ret) => {
  305. if (ret.confirm) {
  306. uni.switchTab({
  307. url: '/pages/order/index'
  308. })
  309. } else {
  310. console.log('else', ret)
  311. that.defineCallBack()
  312. }
  313. }
  314. });
  315. // this.chatNum = data.data
  316. }
  317. } else {
  318. that.errCount = 0
  319. }
  320. }
  321. });
  322. }, 10000)
  323. }
  324. },
  325. methods: {
  326. // 打开隐私协议页面
  327. openPrivacyContract() {
  328. let that = this;
  329. wx.openPrivacyContract({
  330. fail: () => {
  331. that.$queue.showToast('遇到错误无法打开!');
  332. }
  333. })
  334. },
  335. // 拒绝隐私协议
  336. exitMiniProgram() {
  337. // 直接退出小程序
  338. wx.exitMiniProgram()
  339. },
  340. // 同意隐私协议
  341. handleAgreePrivacyAuthorization() {
  342. this.Authorization = false;
  343. },
  344. openMsg() {
  345. var that = this
  346. wx.getSetting({
  347. withSubscriptions: true, //是否获取用户订阅消息的订阅状态,默认false不返回
  348. success(ret) {
  349. if (ret.subscriptionsSetting.itemSettings) {
  350. uni.setStorageSync('sendindexMsg', true)
  351. uni.openSetting({ // 打开设置页
  352. success(rea) {
  353. console.log(rea.authSetting)
  354. }
  355. });
  356. } else { // 用户没有点击“总是保持以上,不再询问”则每次都会调起订阅消息
  357. uni.setStorageSync('sendindexMsg', false)
  358. uni.showModal({
  359. title: '提示',
  360. content: '为了更好的体验,请绑定消息推送',
  361. confirmText: '确定',
  362. cancelText: '取消',
  363. success: function(res) {
  364. if (res.confirm) {
  365. uni.requestSubscribeMessage({
  366. tmplIds: that.arr,
  367. success(re) {
  368. // console.log(re,'**********')
  369. var datas = JSON.stringify(re);
  370. if (datas.indexOf("accept") != -1) {
  371. console.log(re)
  372. }
  373. },
  374. fail: (res) => {
  375. console.log(res)
  376. }
  377. })
  378. that.showModal = false
  379. } else if (res.cancel) {
  380. that.showModal = true
  381. }
  382. }
  383. })
  384. }
  385. }
  386. })
  387. },
  388. //切换店铺状态
  389. changePutaWayFlag() {
  390. if (this.shop.putawayFlag == 0) {
  391. uni.showModal({
  392. title: '提示',
  393. content: '确定要打烊了吗?',
  394. showCancel: true,
  395. cancelText: '取消',
  396. confirmText: '确定',
  397. success: res => {
  398. if (res.confirm) {
  399. this.shop.putawayFlag = 1
  400. this.updateShopInfo();
  401. }
  402. },
  403. fail: () => {},
  404. complete: () => {}
  405. });
  406. } else {
  407. this.shop.putawayFlag = 0
  408. this.updateShopInfo();
  409. }
  410. },
  411. updateShopInfo() {
  412. this.$Request.postJsonA("/app/shop/updateShopMessage", this.shop).then(res => {
  413. if (res.code == 0) {
  414. this.getShopInfo()
  415. } else {
  416. this.shop.putawayFlag = 1
  417. uni.showToast({
  418. title: res.msg,
  419. icon: 'none'
  420. })
  421. }
  422. });
  423. },
  424. getShopInfo() {
  425. if (this.$queue.getData('shopId')) {
  426. let data = {
  427. shopId: this.$queue.getData('shopId')
  428. }
  429. this.$Request.getA("/app/shop/selectShopMessage", data).then(res => {
  430. if (res.code == 0) {
  431. uni.hideLoading()
  432. this.shop = res.data
  433. }
  434. });
  435. }
  436. },
  437. aplayAudio() {
  438. // const audio = document.getElementById('audio')
  439. // audio.play()
  440. // console.log('语音提示')
  441. const innerAudioContext = uni.createInnerAudioContext();
  442. innerAudioContext.autoplay = true;
  443. // innerAudioContext.src ='../../static/mpc/order.mp3';
  444. innerAudioContext.src =
  445. 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/0753211f78d718d44ee6372e33eae9ee.mp3';
  446. innerAudioContext.onPlay(() => {
  447. console.log('开始播放');
  448. });
  449. innerAudioContext.onError((res) => {
  450. console.log(res.errMsg);
  451. console.log(res.errCode);
  452. });
  453. },
  454. defineCallBack() {
  455. let that = this
  456. let data = {
  457. shopIds: that.$queue.getData("shopId")
  458. }
  459. that.$Request.post('/admin/ordermessage/allcheckOrderMessage', data).then(res => {
  460. if (res.code === 0) {
  461. that.errCount = 0
  462. }
  463. });
  464. },
  465. getcity() {
  466. let that = this
  467. uni.getLocation({
  468. type: 'wgs84',
  469. success: function(res) {
  470. // console.log('当前位置的经度:' + res.longitude);
  471. // console.log('当前位置的纬度:' + res.latitude);
  472. that.latitude = res.latitude
  473. that.longitude = res.longitude
  474. }
  475. });
  476. },
  477. //获取用户发布
  478. getFb() {
  479. let data = {
  480. startTime: this.startTime,
  481. endTime: this.endTime,
  482. shopId: this.$queue.getData("shopId")
  483. }
  484. this.$Request.getA("/app/shop/shopHomePage", data).then(res => {
  485. if (res.code == 0) {
  486. this.allMoney = res.data.allMoney //总收益
  487. this.putawayCount = res.data.putawayCount //上架中
  488. this.soldoutCount = res.data.soldoutCount //下架中
  489. this.allCount = res.data.allCount //总销量
  490. this.countTakingByUserId = res.data.countTakingByUserId //用户评价
  491. this.orderMoney = res.data.orderMoney //订单收入
  492. this.sumCountOrder = res.data.sumCountOrder //总订单数
  493. this.refundMoney = res.data.refundMoney //退款金额
  494. this.countByUserId = res.data.countByUserId //访客人数
  495. this.i1 = res.data.i1 //待付款
  496. this.i3 = res.data.i3 //待取餐
  497. this.i2 = res.data.i2 //制作中
  498. this.i4 = res.data.i4 //已完成
  499. this.i5 = res.data.i5 //商家待接单
  500. }
  501. })
  502. },
  503. goDetail(index) {
  504. // #ifdef MP-WEIXIN
  505. if (uni.getStorageSync('sendindexMsg')) {
  506. uni.requestSubscribeMessage({
  507. tmplIds: this.arr,
  508. success(re) {
  509. // console.log(re,'**********')
  510. var datas = JSON.stringify(re);
  511. if (datas.indexOf("accept") != -1) {
  512. console.log(re)
  513. }
  514. },
  515. fail: (res) => {
  516. console.log(res)
  517. }
  518. })
  519. }
  520. // #endif
  521. if (index == 1) {
  522. uni.switchTab({
  523. url: '/pages/order/index'
  524. })
  525. } else if (index == 2) {
  526. uni.navigateTo({
  527. url: '/my/store/addgood'
  528. })
  529. }
  530. },
  531. bindFb() {
  532. let userId = uni.getStorageSync('userId')
  533. if (userId) {
  534. uni.navigateTo({
  535. url: '/my/publish/goods'
  536. })
  537. } else {
  538. uni.showModal({
  539. title: '提示',
  540. content: '您还未登录,请先登录',
  541. success: function(res) {
  542. if (res.confirm) {
  543. // console.log('用户点击确定');
  544. uni.navigateTo({
  545. url: '/pages/my/loginphone'
  546. })
  547. } else if (res.cancel) {
  548. // console.log('用户点击取消');
  549. }
  550. }
  551. })
  552. }
  553. },
  554. //时间弹框开关
  555. bindData(index) {
  556. if (index == 1) {
  557. this.startshow = true
  558. } else if (index == 2) {
  559. this.endshow = true
  560. }
  561. },
  562. //开始时间
  563. startData(e) {
  564. this.startTime = e.year + '-' + e.month + '-' + e.day
  565. },
  566. // 结束时间
  567. endData(e) {
  568. this.endTime = e.year + '-' + e.month + '-' + e.day
  569. this.getFb()
  570. },
  571. goNav(e, name) {
  572. if (this.userId) {
  573. // #ifdef MP-WEIXIN
  574. if (uni.getStorageSync('sendindexMsg')) {
  575. uni.requestSubscribeMessage({
  576. tmplIds: this.arr,
  577. success(re) {
  578. // console.log(re,'**********')
  579. var datas = JSON.stringify(re);
  580. if (datas.indexOf("accept") != -1) {
  581. console.log(re)
  582. }
  583. },
  584. fail: (res) => {
  585. console.log(res)
  586. }
  587. })
  588. }
  589. // #endif
  590. uni.navigateTo({
  591. url: e
  592. })
  593. } else {
  594. uni.showModal({
  595. title: '提示',
  596. content: '您还未登录,请先登录',
  597. success: function(res) {
  598. if (res.confirm) {
  599. console.log('用户点击确定');
  600. uni.navigateTo({
  601. url: '/pages/my/loginphone'
  602. })
  603. } else if (res.cancel) {
  604. console.log('用户点击取消');
  605. }
  606. }
  607. })
  608. }
  609. },
  610. getUserInfo() {
  611. this.$Request.getA("/sys/user/info").then(res => {
  612. if (res.code == 0) {
  613. // this.userName = res.user.userEntity.userName
  614. this.userName = res.user.shopList[0].shopName
  615. // this.avatar = res.user.userEntity.avatar ? res.user.userEntity.avatar : '../../static/logo.png'
  616. this.avatar = res.user.shopList[0].shopCover ? res.user.shopList[0].shopCover :
  617. '../../static/logo.png'
  618. this.$queue.setData("userId", res.user.userId);
  619. this.$queue.setData("shopId", res.user.shopList[0].shopId);
  620. this.$queue.setData("mobile", res.user.mobile);
  621. if (res.user.userEntity) {
  622. this.$queue.setData("shopUserName", res.user.userEntity.userName);
  623. }
  624. }
  625. });
  626. },
  627. goLogin(e) {
  628. uni.navigateTo({
  629. url: e
  630. })
  631. },
  632. }
  633. }
  634. </script>
  635. <style lang="scss">
  636. page {
  637. background-color: #FFFFFF;
  638. }
  639. .bg {
  640. background-color: #FFFFFF;
  641. }
  642. .box {
  643. width: 690upx;
  644. margin: 0 auto;
  645. height: 120rpx;
  646. background: rgba(255, 141, 26, 0.6);
  647. border-radius: 16upx 16upx 0px 0px;
  648. color: #333333;
  649. padding: 0upx 30upx;
  650. margin-top: 20upx;
  651. }
  652. .orderbox {
  653. width: 690upx;
  654. margin: 0 auto;
  655. height: 153upx;
  656. background: #FAFAFA;
  657. border-radius: 16upx;
  658. display: flex;
  659. align-items: center;
  660. justify-content: space-between;
  661. text-align: center;
  662. padding: 0upx 30upx;
  663. }
  664. .privacy {
  665. position: fixed;
  666. top: 0;
  667. right: 0;
  668. bottom: 0;
  669. left: 0;
  670. background: rgba(0, 0, 0, .5);
  671. z-index: 9999999;
  672. display: flex;
  673. align-items: center;
  674. justify-content: center;
  675. }
  676. .contentview {
  677. width: 632rpx;
  678. padding: 48rpx;
  679. box-sizing: border-box;
  680. background: #fff;
  681. border-radius: 16rpx;
  682. }
  683. .contentview .title {
  684. text-align: center;
  685. color: #333;
  686. font-weight: bold;
  687. font-size: 32rpx;
  688. }
  689. .contentview .des {
  690. font-size: 26rpx;
  691. color: #666;
  692. margin-top: 40rpx;
  693. text-align: justify;
  694. line-height: 1.6;
  695. }
  696. .contentview .des .link {
  697. color: #07c160;
  698. text-decoration: underline;
  699. }
  700. button::after {
  701. border: none;
  702. }
  703. .btns {
  704. margin-top: 48rpx;
  705. display: flex;
  706. }
  707. .btns .item {
  708. justify-content: space-between;
  709. width: 244rpx;
  710. height: 80rpx;
  711. display: flex;
  712. align-items: center;
  713. justify-content: center;
  714. border-radius: 16rpx;
  715. box-sizing: border-box;
  716. border: none;
  717. }
  718. .btns .reject {
  719. background: #f4f4f5;
  720. color: #909399;
  721. }
  722. .btns .agree {
  723. background: #07c160;
  724. color: #fff;
  725. }
  726. </style>