Commit f83f3435 by 岑成威

fix: ios上架

1 parent 24bfd0be
...@@ -26,18 +26,15 @@ ...@@ -26,18 +26,15 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 业务类型选择器 -->
<business-type-selector ref="bizTypeSelector" @choose="chooseBusinessType" />
</view> </view>
</template> </template>
<script> <script>
import Material from '@/components/MaterialIndex.vue' import Material from '@/components/MaterialIndex.vue'
import BusinessTypeSelector from './BusinessTypeSelector.vue'
export default { export default {
name: 'HomeSlot', name: 'HomeSlot',
components: { Material, BusinessTypeSelector }, components: { Material },
props: { props: {
tabIndex: { tabIndex: {
type: Number, type: Number,
...@@ -58,12 +55,7 @@ export default { ...@@ -58,12 +55,7 @@ export default {
}, },
methods: { methods: {
changeType() { changeType() {
this.$refs.bizTypeSelector.open() this.$emit('changeType')
},
chooseBusinessType(item) {
this.currentType = item
uni.$storage.set('typeItem', item)
this.$emit('changeType', item)
} }
} }
} }
...@@ -75,7 +67,9 @@ export default { ...@@ -75,7 +67,9 @@ export default {
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
animation: show-box 0.15s forwards; animation: show-box 0.15s forwards;
overflow: hidden; // BusinessTypeSelector 使用 uni-popup,需要越过右侧内容区显示;
// iOS 下 overflow:hidden 会导致弹窗横向被裁切(看起来像被 left-side 挡住)
overflow: visible;
} }
@keyframes show-box { @keyframes show-box {
......
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
只需修改 @message 绑定的方法名即可无侵入切换 只需修改 @message 绑定的方法名即可无侵入切换
--> -->
<web-view ref="uploaderWebview" src="/hybrid/html/index.html" @message="handleUploadMessageNew" :webview-styles="webviewStyles"></web-view> <web-view ref="uploaderWebview" src="/hybrid/html/index.html" @message="handleUploadMessageNew" :webview-styles="webviewStyles"></web-view>
<!-- 业务类型选择弹窗(挂在 HomeFrame 根层,避免 iOS 下被右侧容器裁切) -->
<business-type-selector ref="bizTypeSelector" @choose="chooseBusinessType" />
<!-- 修改密码弹窗 --> <!-- 修改密码弹窗 -->
<change-password ref="changePasswordRef" /> <change-password ref="changePasswordRef" />
<!-- <web-view <!-- <web-view
...@@ -54,6 +56,7 @@ import LeftSide from './components/LeftSide.vue' ...@@ -54,6 +56,7 @@ import LeftSide from './components/LeftSide.vue'
import Material from '@/components/MaterialIndex.vue' import Material from '@/components/MaterialIndex.vue'
import HomeSlot from './components/HomeSlot.vue' import HomeSlot from './components/HomeSlot.vue'
import Order from './components/Order/index.vue' import Order from './components/Order/index.vue'
import BusinessTypeSelector from './components/BusinessTypeSelector.vue'
import ChangePassword from './components/ChangePassword.vue' import ChangePassword from './components/ChangePassword.vue'
// import UploadService from '@/utils/recordManager/UploadService.js' // import UploadService from '@/utils/recordManager/UploadService.js'
import { FileUploadManager, UploadService } from '@/utils/recordManager' import { FileUploadManager, UploadService } from '@/utils/recordManager'
...@@ -64,7 +67,7 @@ const TAB_COMPONENTS = { ...@@ -64,7 +67,7 @@ const TAB_COMPONENTS = {
} }
export default { export default {
mixins: [recorder, versionCheck], mixins: [recorder, versionCheck],
components: { LeftSide, Material, ReceptionCenter, FinishReceptionDialog, StoreAddress, HomeSlot, Order, ChangePassword }, components: { LeftSide, Material, ReceptionCenter, FinishReceptionDialog, StoreAddress, HomeSlot, Order, BusinessTypeSelector, ChangePassword },
props: { props: {
activeDetailId: [String, Number], activeDetailId: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -174,8 +177,7 @@ export default { ...@@ -174,8 +177,7 @@ export default {
this.$emit('start') this.$emit('start')
}, },
async changeType() { async changeType() {
// this.$refs.bizTypeSelector.open() this.$refs.bizTypeSelector?.open()
this.$emit('changeType')
}, },
chooseBusinessType(item) { chooseBusinessType(item) {
this.currentType = item this.currentType = item
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
:mask-background-color="maskBackgroundColor" :mask-background-color="maskBackgroundColor"
> >
<view <view
class="tips-wrapper" :class="['tips-wrapper', { 'with-footer': isFooter }]"
:style="{ width: (popupW || 750) + 'rpx', minHeight: popupH + 'rpx',maxHeight: maxHeight + 'rpx' }" :style="{ width: (popupW || 750) + 'rpx', minHeight: popupH + 'rpx',maxHeight: maxHeight + 'rpx' }"
> >
<view class="tips-content"> <view class="tips-content">
...@@ -146,11 +146,13 @@ export default { ...@@ -146,11 +146,13 @@ export default {
height: 100%; height: 100%;
box-shadow: 0 toRpx(12) toRpx(48) rgba(0, 0, 0, 0.16), 0 toRpx(4) toRpx(16) rgba(0, 0, 0, 0.08); box-shadow: 0 toRpx(12) toRpx(48) rgba(0, 0, 0, 0.16), 0 toRpx(4) toRpx(16) rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.06);
box-sizing: border-box;
.tips-content { .tips-content {
padding: toRpx(48); padding: toRpx(48);
box-sizing: border-box; box-sizing: border-box;
height: calc(100% - #{toRpx(100)});
position: relative; position: relative;
max-height: 100%;
overflow-y: auto;
.icon-close-box { .icon-close-box {
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -207,4 +209,11 @@ export default { ...@@ -207,4 +209,11 @@ export default {
font-weight: 500; font-weight: 500;
} }
} }
.tips-wrapper.with-footer {
.tips-content {
height: calc(100% - #{toRpx(100)});
overflow-y: auto;
}
}
</style> </style>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "广爱展业助手", "name" : "广爱展业助手",
"appid" : "__UNI__761633C", "appid" : "__UNI__761633C",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.1.0",
"versionCode" : "1000", "versionCode" : "1100",
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App特有相关 */ /* 5+App特有相关 */
...@@ -61,7 +61,15 @@ ...@@ -61,7 +61,15 @@
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios" : {
"dSYMs" : false, "dSYMs" : false,
"UIBackgroundModes" : "audio" "UIBackgroundModes" : "",
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "该应用需要读取你的相册,以便为你编辑车源信息并上传车辆照片",
"NSPhotoLibraryAddUsageDescription" : "该应用需要读取你的相册,以便为你编辑车源信息并上传车辆照片",
"NSCameraUsageDescription" : "该应用需要读取你的相机,以便为你拍摄并上传车源及展业现场照片",
"NSMicrophoneUsageDescription" : "该应用需要使用你的麦克风,以便为你录制定制化的车源讲解语音\"",
"NSLocationWhenInUseUsageDescription" : "该应用需要你的地理位置,以便在展业时为你自动匹配附近的合作门店以及推荐当地的车源数据",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "该应用需要你的地理位置,以便在展业时为你自动匹配附近的合作门店以及推荐当地的车源数据\""
}
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs" : {
...@@ -78,6 +86,30 @@ ...@@ -78,6 +86,30 @@
"hdpi" : "static/72.png", "hdpi" : "static/72.png",
"xhdpi" : "static/96.png", "xhdpi" : "static/96.png",
"xxhdpi" : "static/144.png" "xxhdpi" : "static/144.png"
},
"ios" : {
"appstore" : "static/icons/1024x1024.png",
"ipad" : {
"app" : "static/icons/76x76.png",
"app@2x" : "static/icons/152x152.png",
"notification" : "static/icons/20x20.png",
"notification@2x" : "static/icons/40x40.png",
"proapp@2x" : "static/icons/167x167.png",
"settings" : "static/icons/29x29.png",
"settings@2x" : "static/icons/58x58.png",
"spotlight" : "static/icons/40x40.png",
"spotlight@2x" : "static/icons/80x80.png"
},
"iphone" : {
"app@2x" : "static/icons/120x120.png",
"app@3x" : "static/icons/180x180.png",
"notification@2x" : "static/icons/40x40.png",
"notification@3x" : "static/icons/60x60.png",
"settings@2x" : "static/icons/58x58.png",
"settings@3x" : "static/icons/87x87.png",
"spotlight@2x" : "static/icons/80x80.png",
"spotlight@3x" : "static/icons/120x120.png"
}
} }
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!