Browse Source

feat: bug修复;

pull/1/head
Fox-33 3 weeks ago
parent
commit
d4d4937264
41 changed files with 114 additions and 189 deletions
  1. +0
    -169
      components/config/PrivacyAgreementPoup.vue
  2. +94
    -0
      components/home/popupAuditMsg.vue
  3. +5
    -13
      pages/index/index.vue
  4. +2
    -2
      pages_order/auth/wxLogin.vue
  5. +2
    -2
      pages_order/auth/wxUserInfo.vue
  6. +1
    -1
      pages_order/mine/wallet.vue
  7. +2
    -1
      pages_order/record/groupSharing.vue
  8. +3
    -1
      pages_order/record/videoSharing.vue
  9. +5
    -0
      pages_order/sharing/group.vue
  10. BIN
      pages_order/static/center/temp-qrcode.png
  11. BIN
      pages_order/static/center/temp.png
  12. BIN
      pages_order/static/record/icon-camera.png
  13. BIN
      static/image/PrivacyAgreementPoup/icon.png
  14. BIN
      static/image/center/activate-code.png
  15. BIN
      static/image/center/activate.png
  16. BIN
      static/image/center/agent-icon.png
  17. BIN
      static/image/center/btn-activate-again.png
  18. BIN
      static/image/center/btn-activate.png
  19. BIN
      static/image/center/cancel.png
  20. BIN
      static/image/center/confirm.png
  21. BIN
      static/image/center/notice.png
  22. BIN
      static/image/center/play.png
  23. BIN
      static/image/center/service.png
  24. BIN
      static/image/center/temp-qrcode.png
  25. BIN
      static/image/center/temp.png
  26. BIN
      static/image/center/tool-activate.png
  27. BIN
      static/image/center/tool-share.png
  28. BIN
      static/image/center/tool-team.png
  29. BIN
      static/image/center/tool-wallet.png
  30. BIN
      static/image/center/tools-bg.png
  31. BIN
      static/image/home/0.png
  32. BIN
      static/image/home/1.png
  33. BIN
      static/image/home/2.png
  34. BIN
      static/image/home/3.png
  35. BIN
      static/image/home/address-icon.png
  36. BIN
      static/image/home/arrow-icon.png
  37. BIN
      static/image/home/bg-audit-pass.png
  38. BIN
      static/image/home/cancel.png
  39. BIN
      static/image/home/go.png
  40. BIN
      static/image/home/search-icon.png
  41. BIN
      static/image/home/text-share.png

+ 0
- 169
components/config/PrivacyAgreementPoup.vue View File

@ -1,169 +0,0 @@
<template>
<uv-popup ref="popup" z-index="99999" :closeOnClickOverlay="false" :customStyle="{ backgroundColor: 'transparent' }">
<view class="privacyPopup">
<view class="icon">
<image src="/static/image/PrivacyAgreementPoup/icon.png"
mode=""></image>
</view>
<view class="title">
<view>协议与隐私政策</view>
</view>
<view class="content_pri">
<view class="text">
欢迎来到酒店布草!我们根据最新的法律法规监管政策要求更新了用户协议隐私政策,请您认真阅读
</view>
</view>
<view class="config">
<uv-checkbox-group v-model="checkboxValue" shape="circle">
<view class="content">
<view style="display: flex;">
<!-- <uv-checkbox size="30rpx" :name="1"></uv-checkbox> -->
同意<text @click="goToPrivacy">酒店布草隐私政策</text>
</view>
<view class="">
以及<text @click="goToPrivacy">用户协议</text>
</view>
</view>
</uv-checkbox-group>
</view>
<view class="pri_btn">
<button class="confuse_btn" @click="confusePrivacy">拒绝</button>
<button
class="confirm_btn" id="agree-btn"
open-type="agreePrivacyAuthorization"
@agreeprivacyauthorization="handleAgreePrivacyAuthorization">同意</button>
</view>
</view>
</uv-popup>
</template>
<script>
export default {
name: 'PrivacyAgreementPoup',
data() {
return {
resolvePrivacyAuthorization: {},
checkboxValue : false
}
},
mounted() {
if(wx.getPrivacySetting){
wx.getPrivacySetting({
success: res => {
console.log(res)
if (res.needAuthorization) {
//
this.init()
}
},
fail: () => {}
})
}
},
methods: {
//
init(resolve) {
this.$refs.popup.open('center')
this.resolvePrivacyAuthorization = resolve
},
//
goToPrivacy() {
wx.openPrivacyContract({
success: () => {
console.log('打开成功');
}, //
fail: () => {
uni.showToast({
title: '打开失败,稍后重试',
icon: 'none'
})
} //
})
},
//
confusePrivacy() {
this.$refs.popup.close()
// this.resolvePrivacyAuthorization({
// event: 'disagree'
// })
},
//
handleAgreePrivacyAuthorization() {
// id
// this.resolvePrivacyAuthorization({
// buttonId: 'agree-btn',
// event: 'agree'
// })
this.$refs.popup.close()
}
}
}
</script>
<style lang="scss" scoped>
.privacyPopup {
width: 90%;
margin: 0rpx auto;
background: white;
border-radius: 20rpx;
box-sizing: border-box;
padding: 40rpx 30rpx;
.icon{
display: flex;
justify-content: center;
align-items: center;
padding-bottom: 30rpx;
image{
width: 90rpx;
height: 90rpx;
}
}
.title {
text-align: center;
font-size: 36rpx;
}
.content_pri {
padding: 30rpx 0rpx;
font-size: 28rpx;
}
.config {
font-size: 28rpx;
text-align: center;
line-height: 40rpx;
margin-bottom: 30rpx;
text {
color: $uni-color;
}
.content{
display: flex;
}
}
.pri_btn {
display: flex;
.confuse_btn{
background-color: #F2F2F2;
color: #BDBDBD;
}
button {
margin: 10rpx;
flex: 1;
background: $uni-color;
outline: none;
color: white;
font-size: 30rpx;
}
}
}
</style>

+ 94
- 0
components/home/popupAuditMsg.vue View File

@ -0,0 +1,94 @@
<template>
<uv-popup
ref="popup"
:overlayOpacity="0.8"
:customStyle="{
backgroundColor: 'transparent',
}"
>
<view class="popup">
<image class="popup-bg" src="@/static/image/home/bg-audit-pass.png"></image>
<view class="popup-content flex">
<text class="value">{{ count }}</text>
<image class="unit" src="@/static/image/home/text-share.png"></image>
</view>
<view class="flex popup-btns">
<button plain class="btn-simple" @click="close">
<image class="popup-btn" src="@/static/image/home/cancel.png"></image>
</button>
<button plain class="btn-simple" @click="go">
<image class="popup-btn" src="@/static/image/home/go.png"></image>
</button>
</view>
</view>
</uv-popup>
</template>
<script>
export default {
props: {
count: {
type: Number,
default: 15
}
},
data() {
return {
}
},
methods: {
open() {
this.$refs.popup.open();
},
close() {
this.$refs.popup.close();
},
go() {
uni.navigateTo({
url: `/pages/index/record`
})
},
},
}
</script>
<style scoped lang="scss">
.popup {
position: relative;
width: 578rpx;
&-bg {
width: 578rpx; height: 317rpx;
}
&-content {
position: absolute;
top: 123rpx;
left: 50%;
transform: translateX(-50%);
.value {
color: #FF2323;
font-size: 102rpx;
font-weight: 700;
line-height: 125rpx;
}
.unit {
width: 299rpx;
height: 77rpx;
margin-left: 9rpx;
}
}
&-btns {
justify-content: space-between;
margin-top: 56rpx;
}
&-btn {
width: 265rpx;
height: 84rpx;
}
}
</style>

+ 5
- 13
pages/index/index.vue View File

@ -18,6 +18,8 @@
</button>
</view>
</view>
<popupAuditMsg ref="popupAuditMsgRef"></popupAuditMsg>
<tabber select="home"/>
@ -27,10 +29,12 @@
<script>
import { mapState } from 'vuex'
import tabber from '@/components/base/tabbar.vue'
import popupAuditMsg from '@/components/home/popupAuditMsg.vue'
export default {
components : {
tabber,
popupAuditMsg,
},
data() {
return {
@ -52,15 +56,11 @@
path: '/pages_order/record/articleSharing'
},
],
bgUrl: null,
}
},
computed: {
...mapState(['userInfo']),
},
onShow() {
this.fetchBg()
},
onLoad(option) {
const { state, shareId } = option
@ -86,14 +86,6 @@
}
},
methods: {
async fetchBg() {
try {
// todo: check
this.bgUrl = (await this.$fetch('getBanner'))?.[0]?.image
} catch (err) {
}
},
onClick(url) {
if (!uni.getStorageSync('token')) {
uni.navigateTo({
@ -125,7 +117,7 @@
grid-row-gap: 34rpx;
grid-template-columns: repeat(2, 1fr);
position: absolute;
bottom: 466rpx;
bottom: 360rpx;
width: 100%;
padding: 0 58rpx;
box-sizing: border-box;


+ 2
- 2
pages_order/auth/wxLogin.vue View File

@ -4,10 +4,10 @@
<view class="flex flex-column" style="justify-content: flex-start;">
<image class="logo" :src="userInfo.headImage" mode=""></image>
<image class="logo" :src="configList.logo_image" mode=""></image>
<view class="title">
{{ userInfo.nickName }}
{{ configList.logo_name }}
</view>
<view class="operation">


+ 2
- 2
pages_order/auth/wxUserInfo.vue View File

@ -1,10 +1,10 @@
<template>
<view class="page flex flex-column">
<image class="logo" :src="userInfo.headImage" mode=""></image>
<image class="logo" :src="configList.logo_image" mode=""></image>
<view class="title">
{{ userInfo.nickName }}
{{ configList.logo_name }}
</view>
<view class="desc">


+ 1
- 1
pages_order/mine/wallet.vue View File

@ -36,7 +36,7 @@
<view class="detail-tools">
<uv-calendars ref="calendars" @confirm="onSelectDate" />
<button plain class="flex btn-calendar" @click="openCalendars">
<text>日期选择</text>
<text>{{ queryParams.time || '日期选择' }}</text>
<image class="btn-calendar-arrow" src="../static/center/down.png"></image>
</button>
</view>


+ 2
- 1
pages_order/record/groupSharing.vue View File

@ -152,7 +152,7 @@
'headImage': {
type: 'string',
required: true,
message: '请选择群封面图',
message: '请选择群头像',
},
'headTitle': {
type: 'string',
@ -192,6 +192,7 @@
const { id } = option
if (!id) {
this.form.headImage = this.configList.index_sign
return
}


+ 3
- 1
pages_order/record/videoSharing.vue View File

@ -46,7 +46,7 @@
:show-center-play-btn="false"
></video>
<view v-else class="flex flex-column" style="width: 344rpx; height: 344rpx;">
<uv-icon name="camera" color="#000000" size="129rpx"></uv-icon>
<image src="../static/record/icon-camera.png" style="width: 130rpx; height: 105rpx;" ></image>
<text class="upload-video-text">上传视频</text>
</view>
</template>
@ -317,6 +317,8 @@
&-text {
color: #1B1B1B;
font-size: 32rpx;
font-weight: 700;
margin-top: 35rpx;
}
}


+ 5
- 0
pages_order/sharing/group.vue View File

@ -5,6 +5,7 @@
<view class="content">
<image class="avatar" :src="detail.headImage"></image>
<text class="nick-name">{{ detail.headTitle || '' }}</text>
<text class="desc">{{ `群人数:${detail.memberNum || 0}` }}</text>
<template v-if="isLocked">
<button class="btn" type="success" @click="onAdd">加入</button>
@ -161,6 +162,10 @@
margin-top: 30rpx;
}
.desc {
margin-top: 30rpx;
}
.btn, .group-info {
position: absolute;
}


BIN
pages_order/static/center/temp-qrcode.png View File

Before After
Width: 316  |  Height: 316  |  Size: 8.6 KiB

BIN
pages_order/static/center/temp.png View File

Before After
Width: 673  |  Height: 252  |  Size: 138 KiB

BIN
pages_order/static/record/icon-camera.png View File

Before After
Width: 261  |  Height: 210  |  Size: 9.3 KiB

BIN
static/image/PrivacyAgreementPoup/icon.png View File

Before After
Width: 39  |  Height: 39  |  Size: 1007 B

BIN
static/image/center/activate-code.png View File

Before After
Width: 1028  |  Height: 710  |  Size: 102 KiB

BIN
static/image/center/activate.png View File

Before After
Width: 530  |  Height: 168  |  Size: 12 KiB

BIN
static/image/center/agent-icon.png View File

Before After
Width: 344  |  Height: 126  |  Size: 27 KiB

BIN
static/image/center/btn-activate-again.png View File

Before After
Width: 344  |  Height: 160  |  Size: 22 KiB

BIN
static/image/center/btn-activate.png View File

Before After
Width: 344  |  Height: 160  |  Size: 20 KiB

BIN
static/image/center/cancel.png View File

Before After
Width: 265  |  Height: 84  |  Size: 3.6 KiB

BIN
static/image/center/confirm.png View File

Before After
Width: 530  |  Height: 168  |  Size: 8.6 KiB

BIN
static/image/center/notice.png View File

Before After
Width: 98  |  Height: 90  |  Size: 3.7 KiB

BIN
static/image/center/play.png View File

Before After
Width: 194  |  Height: 194  |  Size: 5.5 KiB

BIN
static/image/center/service.png View File

Before After
Width: 298  |  Height: 316  |  Size: 62 KiB

BIN
static/image/center/temp-qrcode.png View File

Before After
Width: 316  |  Height: 316  |  Size: 8.6 KiB

BIN
static/image/center/temp.png View File

Before After
Width: 673  |  Height: 252  |  Size: 138 KiB

BIN
static/image/center/tool-activate.png View File

Before After
Width: 176  |  Height: 176  |  Size: 6.0 KiB

BIN
static/image/center/tool-share.png View File

Before After
Width: 176  |  Height: 176  |  Size: 5.9 KiB

BIN
static/image/center/tool-team.png View File

Before After
Width: 176  |  Height: 176  |  Size: 5.8 KiB

BIN
static/image/center/tool-wallet.png View File

Before After
Width: 176  |  Height: 176  |  Size: 4.1 KiB

BIN
static/image/center/tools-bg.png View File

Before After
Width: 1480  |  Height: 812  |  Size: 146 KiB

BIN
static/image/home/0.png View File

Before After
Width: 116  |  Height: 118  |  Size: 14 KiB

BIN
static/image/home/1.png View File

Before After
Width: 117  |  Height: 117  |  Size: 13 KiB

BIN
static/image/home/2.png View File

Before After
Width: 114  |  Height: 114  |  Size: 12 KiB

BIN
static/image/home/3.png View File

Before After
Width: 114  |  Height: 114  |  Size: 11 KiB

BIN
static/image/home/address-icon.png View File

Before After
Width: 38  |  Height: 38  |  Size: 1.4 KiB

BIN
static/image/home/arrow-icon.png View File

Before After
Width: 39  |  Height: 39  |  Size: 296 B

BIN
static/image/home/bg-audit-pass.png View File

Before After
Width: 1156  |  Height: 633  |  Size: 99 KiB

BIN
static/image/home/cancel.png View File

Before After
Width: 530  |  Height: 168  |  Size: 9.5 KiB

BIN
static/image/home/go.png View File

Before After
Width: 530  |  Height: 168  |  Size: 7.2 KiB

BIN
static/image/home/search-icon.png View File

Before After
Width: 38  |  Height: 38  |  Size: 1.8 KiB

BIN
static/image/home/text-share.png View File

Before After
Width: 598  |  Height: 154  |  Size: 17 KiB

Loading…
Cancel
Save