Commit 976f1d89 by 李伟康

Merge branch 'SAAS+V4.44.1' into 'SAAS+V4.45'

Saas+v4.44.1

See merge request !13
2 parents 61e14d2e 181a9e04
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
"modules" : { "modules" : {
"Camera" : {}, "Camera" : {},
"Record" : {}, "Record" : {},
"VideoPlayer" : {} "VideoPlayer" : {},
"AudioPlayer" : {}
}, },
/* 应用发布信息 */ /* 应用发布信息 */
"distribute" : { "distribute" : {
......
<template> <template>
<view class="detail-box"> <view class="detail-box">
<view class="nav-bar"> <view class="nav-bar">
<view <view class="back" @click="back">
class="back" <uni-icons type="left" :size="20" color="#000"></uni-icons>
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view> </view>
车主详情 车主详情
</view> </view>
...@@ -17,10 +10,7 @@ ...@@ -17,10 +10,7 @@
<view class="title">车主信息</view> <view class="title">车主信息</view>
<view class="customer-info"> <view class="customer-info">
<template v-for="(item, index) in customerForm"> <template v-for="(item, index) in customerForm">
<view <view class="item flex" :key="index">
class="item flex"
:key="index"
>
<view class="label">{{ item.label }}</view> <view class="label">{{ item.label }}</view>
<view class="value text-hide">{{ customerInfo[item.key] }}</view> <view class="value text-hide">{{ customerInfo[item.key] }}</view>
</view> </view>
...@@ -29,32 +19,18 @@ ...@@ -29,32 +19,18 @@
</view> </view>
<view class="case-box box"> <view class="case-box box">
<view class="title flex">推荐套餐</view> <view class="title flex">推荐套餐</view>
<scroll-view <scroll-view class="case-scroll-box" scroll-y @scrolltolower="pageonReachBottom">
class="case-scroll-box"
scroll-y
@scrolltolower="pageonReachBottom"
>
<view class="case-list"> <view class="case-list">
<template v-if="flag"> <template v-if="flag">
<template v-if="list.length && list[0] && list[0].length"> <template v-if="list.length && list[0] && list[0].length">
<template v-for="i in list"> <template v-for="i in list">
<template v-for="item in i"> <template v-for="item in i">
<view <view class="case-item" :key="item.id" @click="jumpDetail(item)">
class="case-item" <image class="img" :src="item.cover"></image>
:key="item.id"
@click="jumpDetail(item)"
>
<image
class="img"
:src="item.cover"
></image>
<view class="case-info"> <view class="case-info">
<view class="case-name text-hide">{{ item.title }}</view> <view class="case-name text-hide">{{ item.title }}</view>
<template v-for="(j, ind) in caseInfo"> <template v-for="(j, ind) in caseInfo">
<view <view class="case-text flex" :key="ind">
class="case-text flex"
:key="ind"
>
<view class="case-label">{{ j.label }}:</view> <view class="case-label">{{ j.label }}:</view>
<view :class="['case-value', j.class]"> <view :class="['case-value', j.class]">
<template v-if="j.format"> <template v-if="j.format">
...@@ -73,10 +49,7 @@ ...@@ -73,10 +49,7 @@
</template> </template>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
<image <image class="icon" src="@/assets/images/home/nothing.webp" />
class="icon"
src="@/assets/images/home/nothing.webp"
/>
暂无推荐套餐 暂无推荐套餐
</view> </view>
</template> </template>
...@@ -272,7 +245,7 @@ export default { ...@@ -272,7 +245,7 @@ export default {
// } // }
// }) // })
// return // return
url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}` url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}&id=${item.id}&visitsId=${this.visitsId}`
} }
if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&id=${item.id}&visitsId=${this.visitsId}` if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&id=${item.id}&visitsId=${this.visitsId}`
} }
......
...@@ -5,64 +5,42 @@ ...@@ -5,64 +5,42 @@
<view class="title">登录</view> <view class="title">登录</view>
<view class="sub-title">手机号码登录</view> <view class="sub-title">手机号码登录</view>
<view class="input"> <view class="input">
<input <input type="tel" :value="mobile" placeholder="请输入手机号" maxlength="11" @blur="input($event, 'mobile')" :key="dateKey.mobile" />
type="tel"
:value="mobile"
placeholder="请输入手机号"
maxlength="11"
@blur="input($event, 'mobile')"
:key="dateKey.mobile"
/>
<template v-if="mobile"> <template v-if="mobile">
<view class="icon" @click="mobile = ''"> <view class="icon" @click="mobile = ''">
<icon type="clear" size="16" color="#000"> </icon> <icon type="clear" size="16" color="#000"></icon>
</view> </view>
</template> </template>
</view> </view>
<view class="input" > <view class="input">
<input <input type="number" :value="code" placeholder="请输入验证码" maxlength="4" @blur="input($event, 'code')" :key="dateKey.code" />
type="number"
:value="code"
placeholder="请输入验证码"
maxlength="4"
@blur="input($event, 'code')"
:key="dateKey.code"
/>
<template v-if="code"> <template v-if="code">
<view class="icon" @click="code = ''"> <view class="icon" @click="code = ''">
<icon type="clear" size="16" color="#000"> </icon> <icon type="clear" size="16" color="#000"></icon>
</view> </view>
</template> </template>
<view <view :class="['code-btn', `${count ? 'code-disabled' : ''}`]" @click="getSmsCode">{{ count ? `重新发送(${count}s)` : '获取验证码' }}</view>
:class="['code-btn', `${count ? 'code-disabled' : ''}`]"
@click="getSmsCode"
>{{ count ? `重新发送(${count}s)` : "获取验证码" }}</view
>
</view> </view>
<button class="btn" @click="login">登录</button> <button class="btn" @click="login">登录</button>
<view class="form-footer"> <view class="form-footer">
<view class="autoLogin" @click="readingStatus = !readingStatus"> <view class="autoLogin" @click="readingStatus = !readingStatus">
<uni-icons <uni-icons :type="`${readingStatus ? 'checkbox-filled' : 'circle'}`" :size="18" :color="`${readingStatus ? '#2C66F7' : '#858A94'}`"></uni-icons>
:type="`${readingStatus ? 'checkbox-filled' : 'circle'}`" 我已阅读并同意
:size="18" <text @click.stop="jumpUrl()">《用户隐私协议》</text>
:color="`${readingStatus ? '#2C66F7' : '#858A94'}`"
></uni-icons>
我已阅读并同意<text @click.stop="jumpUrl()">《用户隐私协议》</text>
</view> </view>
<view class="autoLogin" @click="noSignIn = !noSignIn"> <view class="autoLogin" @click="noSignIn = !noSignIn">
<uni-icons <uni-icons :type="`${noSignIn ? 'checkbox-filled' : 'circle'}`" :size="18" :color="`${noSignIn ? '#2C66F7' : '#858A94'}`"></uni-icons>
:type="`${noSignIn ? 'checkbox-filled' : 'circle'}`"
:size="18"
:color="`${noSignIn ? '#2C66F7' : '#858A94'}`"
></uni-icons>
30天内免登录 30天内免登录
</view> </view>
</view> </view>
</view> </view>
<view class="app-code flex">
APP编码:{{ deviceId }}
<view class="sprite-icon icon-clone" @click="copyText"></view>
</view>
<update-box /> <update-box />
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
const phoneRex = /^[1]([3-9])[0-9]{9}$/; const phoneRex = /^[1]([3-9])[0-9]{9}$/;
export default { export default {
...@@ -83,8 +61,23 @@ export default { ...@@ -83,8 +61,23 @@ export default {
if (options.mobile) this.mobile = options.mobile if (options.mobile) this.mobile = options.mobile
const noSignInUuid = uni.$storage.get('noSignInUuid') const noSignInUuid = uni.$storage.get('noSignInUuid')
if (noSignInUuid) this.autoLogin(noSignInUuid) if (noSignInUuid) this.autoLogin(noSignInUuid)
}, const {
methods: { deviceId
} = uni.getDeviceInfo()
this.deviceId = deviceId
},
methods: {
copyText() {
uni.setClipboardData({
data: this.deviceId,
success: function() {
uni.showToast({
title: '复制成功',
icon: 'success'
});
}
});
},
async autoLogin (noSignInUuid) { async autoLogin (noSignInUuid) {
uni.showLoading({ uni.showLoading({
mask: true mask: true
...@@ -165,7 +158,6 @@ export default { ...@@ -165,7 +158,6 @@ export default {
}); });
} }
}, 200), }, 200),
// 获取登录账号下园区店列表 // 获取登录账号下园区店列表
getAccountLoginList (loginUserInfoList) { getAccountLoginList (loginUserInfoList) {
let stepIndex = loginUserInfoList?.length == 1 ? 1 : 0 let stepIndex = loginUserInfoList?.length == 1 ? 1 : 0
...@@ -205,7 +197,6 @@ export default { ...@@ -205,7 +197,6 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.bg { .bg {
position: fixed; position: fixed;
...@@ -213,7 +204,7 @@ export default { ...@@ -213,7 +204,7 @@ export default {
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
background-image: url("../../assets/images/login/bg.webp"); background-image: url('../../assets/images/login/bg.webp');
background-size: 100% 100%; background-size: 100% 100%;
} }
.login { .login {
...@@ -281,7 +272,7 @@ export default { ...@@ -281,7 +272,7 @@ export default {
color: #ffffff; color: #ffffff;
} }
.btn[disabled]:not([type]), .btn[disabled]:not([type]),
.btn[disabled][type="default"] { .btn[disabled][type='default'] {
background: #c9c9c9 !important; background: #c9c9c9 !important;
} }
.form-footer { .form-footer {
...@@ -305,4 +296,18 @@ export default { ...@@ -305,4 +296,18 @@ export default {
} }
} }
} }
.app-code {
position: fixed;
bottom: 20rpx;
left: 50%;
transform: translate(-50%);
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
.icon-clone {
width: 24rpx;
height: 24rpx;
margin-left: 20rpx;
}
}
</style> </style>
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-28 18:19:19
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-09-06 14:42:32
* @FilePath: \gl-tape\pages\common\webview.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template> <template>
<web-view :src="url"></web-view> <web-view :src="url"></web-view>
</template> </template>
<script type='text/ecmascript-6'> <script type="text/ecmascript-6">
import report from "@/mixin/report.js";
export default { export default {
name: '', name: '',
mixins:[report],
data () { data () {
return { return {
url: '', url: '',
...@@ -25,5 +35,4 @@ export default { ...@@ -25,5 +35,4 @@ export default {
} }
</script> </script>
<style scoped lang='scss'>
</style>
\ No newline at end of file \ No newline at end of file
<style scoped lang="scss"></style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!