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 @@
"modules" : {
"Camera" : {},
"Record" : {},
"VideoPlayer" : {}
"VideoPlayer" : {},
"AudioPlayer" : {}
},
/* 应用发布信息 */
"distribute" : {
......
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
<view class="back" @click="back">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
车主详情
</view>
......@@ -17,10 +10,7 @@
<view class="title">车主信息</view>
<view class="customer-info">
<template v-for="(item, index) in customerForm">
<view
class="item flex"
:key="index"
>
<view class="item flex" :key="index">
<view class="label">{{ item.label }}</view>
<view class="value text-hide">{{ customerInfo[item.key] }}</view>
</view>
......@@ -29,32 +19,18 @@
</view>
<view class="case-box box">
<view class="title flex">推荐套餐</view>
<scroll-view
class="case-scroll-box"
scroll-y
@scrolltolower="pageonReachBottom"
>
<scroll-view class="case-scroll-box" scroll-y @scrolltolower="pageonReachBottom">
<view class="case-list">
<template v-if="flag">
<template v-if="list.length && list[0] && list[0].length">
<template v-for="i in list">
<template v-for="item in i">
<view
class="case-item"
:key="item.id"
@click="jumpDetail(item)"
>
<image
class="img"
:src="item.cover"
></image>
<view class="case-item" :key="item.id" @click="jumpDetail(item)">
<image class="img" :src="item.cover"></image>
<view class="case-info">
<view class="case-name text-hide">{{ item.title }}</view>
<template v-for="(j, ind) in caseInfo">
<view
class="case-text flex"
:key="ind"
>
<view class="case-text flex" :key="ind">
<view class="case-label">{{ j.label }}:</view>
<view :class="['case-value', j.class]">
<template v-if="j.format">
......@@ -73,10 +49,7 @@
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="@/assets/images/home/nothing.webp"
/>
<image class="icon" src="@/assets/images/home/nothing.webp" />
暂无推荐套餐
</view>
</template>
......@@ -272,7 +245,7 @@ export default {
// }
// })
// 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}`
}
......
......@@ -5,64 +5,42 @@
<view class="title">登录</view>
<view class="sub-title">手机号码登录</view>
<view class="input">
<input
type="tel"
:value="mobile"
placeholder="请输入手机号"
maxlength="11"
@blur="input($event, 'mobile')"
:key="dateKey.mobile"
/>
<input type="tel" :value="mobile" placeholder="请输入手机号" maxlength="11" @blur="input($event, 'mobile')" :key="dateKey.mobile" />
<template v-if="mobile">
<view class="icon" @click="mobile = ''">
<icon type="clear" size="16" color="#000"> </icon>
<icon type="clear" size="16" color="#000"></icon>
</view>
</template>
</view>
<view class="input" >
<input
type="number"
:value="code"
placeholder="请输入验证码"
maxlength="4"
@blur="input($event, 'code')"
:key="dateKey.code"
/>
<view class="input">
<input type="number" :value="code" placeholder="请输入验证码" maxlength="4" @blur="input($event, 'code')" :key="dateKey.code" />
<template v-if="code">
<view class="icon" @click="code = ''">
<icon type="clear" size="16" color="#000"> </icon>
<icon type="clear" size="16" color="#000"></icon>
</view>
</template>
<view
:class="['code-btn', `${count ? 'code-disabled' : ''}`]"
@click="getSmsCode"
>{{ count ? `重新发送(${count}s)` : "获取验证码" }}</view
>
<view :class="['code-btn', `${count ? 'code-disabled' : ''}`]" @click="getSmsCode">{{ count ? `重新发送(${count}s)` : '获取验证码' }}</view>
</view>
<button class="btn" @click="login">登录</button>
<view class="form-footer">
<view class="autoLogin" @click="readingStatus = !readingStatus">
<uni-icons
:type="`${readingStatus ? 'checkbox-filled' : 'circle'}`"
:size="18"
:color="`${readingStatus ? '#2C66F7' : '#858A94'}`"
></uni-icons>
我已阅读并同意<text @click.stop="jumpUrl()">《用户隐私协议》</text>
<uni-icons :type="`${readingStatus ? 'checkbox-filled' : 'circle'}`" :size="18" :color="`${readingStatus ? '#2C66F7' : '#858A94'}`"></uni-icons>
我已阅读并同意
<text @click.stop="jumpUrl()">《用户隐私协议》</text>
</view>
<view class="autoLogin" @click="noSignIn = !noSignIn">
<uni-icons
:type="`${noSignIn ? 'checkbox-filled' : 'circle'}`"
:size="18"
:color="`${noSignIn ? '#2C66F7' : '#858A94'}`"
></uni-icons>
<uni-icons :type="`${noSignIn ? 'checkbox-filled' : 'circle'}`" :size="18" :color="`${noSignIn ? '#2C66F7' : '#858A94'}`"></uni-icons>
30天内免登录
</view>
</view>
</view>
<view class="app-code flex">
APP编码:{{ deviceId }}
<view class="sprite-icon icon-clone" @click="copyText"></view>
</view>
<update-box />
</view>
</template>
<script type="text/ecmascript-6">
const phoneRex = /^[1]([3-9])[0-9]{9}$/;
export default {
......@@ -83,8 +61,23 @@ export default {
if (options.mobile) this.mobile = options.mobile
const noSignInUuid = uni.$storage.get('noSignInUuid')
if (noSignInUuid) this.autoLogin(noSignInUuid)
},
methods: {
const {
deviceId
} = uni.getDeviceInfo()
this.deviceId = deviceId
},
methods: {
copyText() {
uni.setClipboardData({
data: this.deviceId,
success: function() {
uni.showToast({
title: '复制成功',
icon: 'success'
});
}
});
},
async autoLogin (noSignInUuid) {
uni.showLoading({
mask: true
......@@ -165,7 +158,6 @@ export default {
});
}
}, 200),
// 获取登录账号下园区店列表
getAccountLoginList (loginUserInfoList) {
let stepIndex = loginUserInfoList?.length == 1 ? 1 : 0
......@@ -205,7 +197,6 @@ export default {
},
};
</script>
<style lang="scss" scoped>
.bg {
position: fixed;
......@@ -213,7 +204,7 @@ export default {
height: 100%;
left: 0;
top: 0;
background-image: url("../../assets/images/login/bg.webp");
background-image: url('../../assets/images/login/bg.webp');
background-size: 100% 100%;
}
.login {
......@@ -281,7 +272,7 @@ export default {
color: #ffffff;
}
.btn[disabled]:not([type]),
.btn[disabled][type="default"] {
.btn[disabled][type='default'] {
background: #c9c9c9 !important;
}
.form-footer {
......@@ -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>
<!--
* @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>
<web-view :src="url"></web-view>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
import report from "@/mixin/report.js";
export default {
name: '',
mixins:[report],
data () {
return {
url: '',
......@@ -25,5 +35,4 @@ export default {
}
</script>
<style scoped lang='scss'>
</style>
\ 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!