作者 芦瑞泽

更新

@@ -310,6 +310,7 @@ export default defineComponent({ @@ -310,6 +310,7 @@ export default defineComponent({
310 watch(messages, (newVal: any, oldVal: any) => { 310 watch(messages, (newVal: any, oldVal: any) => {
311 // 下拉刷新不滑动 todo 优化 311 // 下拉刷新不滑动 todo 优化
312 nextTick(() => { 312 nextTick(() => {
  313 + scrollbottomHandler()
313 // const newLastMessage = newVal[newVal.length - 1] 314 // const newLastMessage = newVal[newVal.length - 1]
314 // const oldLastMessage = oldVal ? oldVal[oldVal.length - 1] : {} 315 // const oldLastMessage = oldVal ? oldVal[oldVal.length - 1] : {}
315 // data.oldMessageTime = messages.value[0].time 316 // data.oldMessageTime = messages.value[0].time
@@ -57,9 +57,13 @@ const [countdown, startCountdown] = useTimeHandler() @@ -57,9 +57,13 @@ const [countdown, startCountdown] = useTimeHandler()
57 57
58 const phone = ref('') 58 const phone = ref('')
59 59
60 -const clickGetCodeHandler = async () => await getChangePhonePwdCode({ type: { editphone: 1, editpassword: 2 }[Event.value?.type as string | number] as string | number }) 60 +const clickGetCodeHandler = async () => await getChangePhonePwdCode({ phoneNum:phone.value,type: { editphone: 1, editpassword: 2 }[Event.value?.type as string | number] as string | number })
61 61
62 -const sendCodeHandler = DebounceBy(() => startCountdown(clickGetCodeHandler), 2000) 62 +const sendCodeHandler = DebounceBy(() => {
  63 + if ([null, undefined, ''].includes(phone.value)) return uni.$u.toast('请输入手机号')
  64 + if (!/^1[3-9][0-9]{9}$/.test(phone.value)) return uni.$u.toast('请输入正确的手机号')
  65 + startCountdown(clickGetCodeHandler)
  66 +}, 2000)
63 67
64 const loginAgainHandler = () => { 68 const loginAgainHandler = () => {
65 uni.clearStorageSync() 69 uni.clearStorageSync()
@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 </view> 48 </view>
49 <view class="flexJ mb24" style="margin-top: 24rpx"> 49 <view class="flexJ mb24" style="margin-top: 24rpx">
50 <view class="text">总金额</view> 50 <view class="text">总金额</view>
51 - <view class="blacktext">¥{{ parseFloat(props.PrescriptionDetail?.amount).toFixed(2) || '0.00' }}</view> 51 + <view class="blacktext">¥{{ parseFloat(PrescriptionDetail?.amount).toFixed(2) || '0.00' }}</view>
52 </view> 52 </view>
53 53
54 <!-- <view class="flexJ mb24"> 54 <!-- <view class="flexJ mb24">
  1 +[
  2 + {
  3 + "IndexName": "index_device_id",
  4 + "MgoKeySchema": {
  5 + "MgoIndexKeys": [
  6 + {
  7 + "Name": "device_id",
  8 + "Direction": "1"
  9 + }
  10 + ],
  11 + "MgoIsUnique": true
  12 + }
  13 + }
  14 +]
  1 +{
  2 + "bsonType": "object",
  3 + "required": [],
  4 + "permission": {
  5 + "read": false,
  6 + "create": false,
  7 + "update": false,
  8 + "delete": false
  9 + },
  10 + "properties": {
  11 + "_id": {
  12 + "description": "ID,系统自动生成"
  13 + },
  14 + "appid": {
  15 + "bsonType": "string",
  16 + "description": "DCloud appid"
  17 + },
  18 + "device_id": {
  19 + "bsonType": "string",
  20 + "description": "设备唯一标识"
  21 + },
  22 + "vendor": {
  23 + "bsonType": "string",
  24 + "description": "设备厂商"
  25 + },
  26 + "push_clientid": {
  27 + "bsonType": "string",
  28 + "description": "推送设备客户端标识"
  29 + },
  30 + "imei": {
  31 + "bsonType": "string",
  32 + "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)"
  33 + },
  34 + "oaid": {
  35 + "bsonType": "string",
  36 + "description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)"
  37 + },
  38 + "idfa": {
  39 + "bsonType": "string",
  40 + "description": "iOS平台配置应用使用广告标识(IDFA)"
  41 + },
  42 + "imsi": {
  43 + "bsonType": "string",
  44 + "description": "国际移动用户识别码(International Mobile Subscriber Identification Number)"
  45 + },
  46 + "model": {
  47 + "bsonType": "string",
  48 + "description": "设备型号"
  49 + },
  50 + "platform": {
  51 + "bsonType": "string",
  52 + "description": "平台类型"
  53 + },
  54 + "uni_platform": {
  55 + "bsonType": "string",
  56 + "description": "uni-app 运行平台,与条件编译平台相同。"
  57 + },
  58 + "os_name": {
  59 + "bsonType": "string",
  60 + "description": "ios|android|windows|mac|linux "
  61 + },
  62 + "os_version": {
  63 + "bsonType": "string",
  64 + "description": "操作系统版本号 "
  65 + },
  66 + "os_language": {
  67 + "bsonType": "string",
  68 + "description": "操作系统语言 "
  69 + },
  70 + "os_theme": {
  71 + "bsonType": "string",
  72 + "description": "操作系统主题 light|dark"
  73 + },
  74 + "pixel_ratio": {
  75 + "bsonType": "string",
  76 + "description": "设备像素比 "
  77 + },
  78 + "network_model": {
  79 + "bsonType": "string",
  80 + "description": "设备网络型号wifi/3G/4G/"
  81 + },
  82 + "window_width": {
  83 + "bsonType": "string",
  84 + "description": "设备窗口宽度 "
  85 + },
  86 + "window_height": {
  87 + "bsonType": "string",
  88 + "description": "设备窗口高度"
  89 + },
  90 + "screen_width": {
  91 + "bsonType": "string",
  92 + "description": "设备屏幕宽度"
  93 + },
  94 + "screen_height": {
  95 + "bsonType": "string",
  96 + "description": "设备屏幕高度"
  97 + },
  98 + "rom_name": {
  99 + "bsonType": "string",
  100 + "description": "rom 名称"
  101 + },
  102 + "rom_version": {
  103 + "bsonType": "string",
  104 + "description": "rom 版本"
  105 + },
  106 + "location_latitude": {
  107 + "bsonType": "double",
  108 + "description": "纬度"
  109 + },
  110 + "location_longitude": {
  111 + "bsonType": "double",
  112 + "description": "经度"
  113 + },
  114 + "location_country": {
  115 + "bsonType": "string",
  116 + "description": "国家"
  117 + },
  118 + "location_province": {
  119 + "bsonType": "string",
  120 + "description": "省份"
  121 + },
  122 + "location_city": {
  123 + "bsonType": "string",
  124 + "description": "城市"
  125 + },
  126 + "create_date": {
  127 + "bsonType": "timestamp",
  128 + "description": "创建时间",
  129 + "forceDefaultValue": {
  130 + "$env": "now"
  131 + }
  132 + },
  133 + "last_update_date": {
  134 + "bsonType": "timestamp",
  135 + "description": "最后一次修改时间",
  136 + "forceDefaultValue": {
  137 + "$env": "now"
  138 + }
  139 + }
  140 + },
  141 + "version": "0.0.1"
  142 +}
  1 +{
  2 + "bsonType": "object",
  3 + "required": [
  4 + "value",
  5 + "expired"
  6 + ],
  7 + "permission": {
  8 + "read": false,
  9 + "create": false,
  10 + "update": false,
  11 + "delete": false
  12 + },
  13 + "properties": {
  14 + "_id": {
  15 + "description": "ID,系统自动生成"
  16 + },
  17 + "value": {
  18 + "description": "值"
  19 + },
  20 + "expired": {
  21 + "description": "过期时间",
  22 + "bsonType": "timestamp"
  23 + }
  24 + },
  25 + "version": "0.0.1"
  26 +}
  1 +[
  2 + {
  3 + "IndexName": "device_id",
  4 + "MgoKeySchema": {
  5 + "MgoIndexKeys": [
  6 + {
  7 + "Name": "device_id",
  8 + "Direction": "1"
  9 + }
  10 + ],
  11 + "MgoIsUnique": false
  12 + }
  13 + },
  14 + {
  15 + "IndexName": "oaid",
  16 + "MgoKeySchema": {
  17 + "MgoIndexKeys": [
  18 + {
  19 + "Name": "oaid",
  20 + "Direction": "1"
  21 + }
  22 + ],
  23 + "MgoIsUnique": false
  24 + }
  25 + },
  26 + {
  27 + "IndexName": "imei",
  28 + "MgoKeySchema": {
  29 + "MgoIndexKeys": [
  30 + {
  31 + "Name": "imei",
  32 + "Direction": "1"
  33 + }
  34 + ],
  35 + "MgoIsUnique": false
  36 + }
  37 + }
  38 +]
  1 +{
  2 + "bsonType": "object",
  3 + "required": [
  4 + "user_id"
  5 + ],
  6 + "properties": {
  7 + "_id": {
  8 + "description": "ID,系统自动生成"
  9 + },
  10 + "user_id": {
  11 + "bsonType": "string",
  12 + "description": "用户id,参考uni-id-users表"
  13 + },
  14 + "ua": {
  15 + "bsonType": "string",
  16 + "description": "userAgent"
  17 + },
  18 + "uuid": {
  19 + "bsonType": "string",
  20 + "description": "设备唯一标识(需要加密存储)"
  21 + },
  22 + "os_name": {
  23 + "bsonType": "string",
  24 + "description": "ios|android|windows|mac|linux "
  25 + },
  26 + "os_version": {
  27 + "bsonType": "string",
  28 + "description": "操作系统版本号 "
  29 + },
  30 + "os_language": {
  31 + "bsonType": "string",
  32 + "description": "操作系统语言 "
  33 + },
  34 + "os_theme": {
  35 + "bsonType": "string",
  36 + "description": "操作系统主题 light|dark"
  37 + },
  38 + "vendor": {
  39 + "bsonType": "string",
  40 + "description": "设备厂商"
  41 + },
  42 + "push_clientid": {
  43 + "bsonType": "string",
  44 + "description": "推送设备客户端标识"
  45 + },
  46 + "device_id": {
  47 + "bsonType": "string",
  48 + "description": "设备id"
  49 + },
  50 + "imei": {
  51 + "bsonType": "string",
  52 + "description": "国际移动设备识别码IMEI(International Mobile Equipment Identity)"
  53 + },
  54 + "oaid": {
  55 + "bsonType": "string",
  56 + "description": "移动智能设备标识公共服务平台提供的匿名设备标识符(OAID)"
  57 + },
  58 + "idfa": {
  59 + "bsonType": "string",
  60 + "description": "iOS平台配置应用使用广告标识(IDFA)"
  61 + },
  62 + "model": {
  63 + "bsonType": "string",
  64 + "description": "设备型号"
  65 + },
  66 + "platform": {
  67 + "bsonType": "string",
  68 + "description": "平台类型"
  69 + },
  70 + "create_date": {
  71 + "bsonType": "timestamp",
  72 + "description": "创建时间",
  73 + "forceDefaultValue": {
  74 + "$env": "now"
  75 + }
  76 + },
  77 + "last_active_date": {
  78 + "bsonType": "timestamp",
  79 + "description": "最后登录时间"
  80 + },
  81 + "last_active_ip": {
  82 + "bsonType": "string",
  83 + "description": "最后登录IP"
  84 + }
  85 + },
  86 + "version": "0.0.1"
  87 +}