hookehuyr

发送验证码调整,首页滚动功能调整

1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-12-22 09:44:20 4 + * @LastEditTime: 2023-12-22 15:07:20
5 * @FilePath: /meihuaApp/src/pages/auth/index.vue 5 * @FilePath: /meihuaApp/src/pages/auth/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -35,8 +35,8 @@ export default { ...@@ -35,8 +35,8 @@ export default {
35 title: '授权中', 35 title: '授权中',
36 }) 36 })
37 request.post('/srv/?a=openid', { 37 request.post('/srv/?a=openid', {
38 - // code: res.code 38 + code: res.code
39 - openid: '0002' 39 + // openid: '0002'
40 // openid: 'o5NFZ5cFQtLRy3aVHaZMLkjHFusI' 40 // openid: 'o5NFZ5cFQtLRy3aVHaZMLkjHFusI'
41 // openid: 'o5NFZ5TpgG4FwYursGCLjcUJH2ak' 41 // openid: 'o5NFZ5TpgG4FwYursGCLjcUJH2ak'
42 // openid: 'o5NFZ5cqroPYwawCp8FEOxewtgnw' 42 // openid: 'o5NFZ5cqroPYwawCp8FEOxewtgnw'
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-12-22 11:18:47 4 + * @LastEditTime: 2023-12-22 16:13:17
5 * @FilePath: /meihuaApp/src/pages/bind/index.vue 5 * @FilePath: /meihuaApp/src/pages/bind/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -132,7 +132,7 @@ const resetDisplay = () => { ...@@ -132,7 +132,7 @@ const resetDisplay = () => {
132 132
133 const getCode = async () => { 133 const getCode = async () => {
134 if (isValidTel(tel.value)) { 134 if (isValidTel(tel.value)) {
135 - const { code } = await sendSmsCodeAPI({ phone: tel.value }); 135 + const { code } = await sendSmsCodeAPI({ mobile: tel.value });
136 if (code) { 136 if (code) {
137 Taro.showToast({ 137 Taro.showToast({
138 title: '验证码已发送', 138 title: '验证码已发送',
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-12-21 14:52:06 4 + * @LastEditTime: 2023-12-22 13:29:20
5 * @FilePath: /meihuaApp/src/pages/book/index.vue 5 * @FilePath: /meihuaApp/src/pages/book/index.vue
6 * @Description: 订房页面 6 * @Description: 订房页面
7 --> 7 -->
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
12 <calendar-select @on-dates-change="onDatesChange"></calendar-select> 12 <calendar-select @on-dates-change="onDatesChange"></calendar-select>
13 </view> 13 </view>
14 <view class="book-type"> 14 <view class="book-type">
15 - <nut-tabs v-model="value" @click="onTabClick" title-scroll title-gutter="10" name="tabName" background="#FFF" color="#4C2E08" animated-time="0"> 15 + <!-- <nut-tabs v-model="value" @click="onTabClick" title-scroll title-gutter="10" name="tabName" background="#FFF" color="#4C2E08" animated-time="0">
16 <nut-tab-pane v-for="item in tabList" :title="item.title" :pane-key="item.key"> 16 <nut-tab-pane v-for="item in tabList" :title="item.title" :pane-key="item.key">
17 </nut-tab-pane> 17 </nut-tab-pane>
18 - </nut-tabs> 18 + </nut-tabs> -->
19 <view v-if="showContent" class="book-list"> 19 <view v-if="showContent" class="book-list">
20 <scroll-view ref="refScrollView" :style="scrollStyle" :scroll-y="true" :scroll-with-animation="true" @scrolltolower="onScrollToLower"> 20 <scroll-view ref="refScrollView" :style="scrollStyle" :scroll-y="true" :scroll-with-animation="true" @scrolltolower="onScrollToLower">
21 <view v-for="(item, index) in bookList" :key="index"> 21 <view v-for="(item, index) in bookList" :key="index">
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
119 this.$nextTick(async () => { 119 this.$nextTick(async () => {
120 const navHeight = await $('#navbar-page').height(); 120 const navHeight = await $('#navbar-page').height();
121 const calHeight = await $('#book-cal').height(); 121 const calHeight = await $('#book-cal').height();
122 - this.indexCoverHeight = windowHeight - navHeight - calHeight - 50; 122 + this.indexCoverHeight = windowHeight - navHeight - calHeight;
123 if (this.$refs.refScrollView) { 123 if (this.$refs.refScrollView) {
124 Taro.hideLoading(); 124 Taro.hideLoading();
125 console.warn('加载完成'); 125 console.warn('加载完成');
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-12-22 10:16:02 4 + * @LastEditTime: 2023-12-22 15:31:12
5 * @FilePath: /meihuaApp/src/pages/index/index.vue 5 * @FilePath: /meihuaApp/src/pages/index/index.vue
6 * @Description: 首页 6 * @Description: 首页
7 --> 7 -->
...@@ -184,11 +184,7 @@ export default { ...@@ -184,11 +184,7 @@ export default {
184 // } 184 // }
185 // } 185 // }
186 }, 186 },
187 - async onArrowDown () { 187 + onArrowDown () {
188 - Taro.pageScrollTo({
189 - scrollTop: this.indexCoverHeight, // 滚动到的位置
190 - duration: 300 // 滚动动画的时长
191 - });
192 this.scrollTop = this.indexCoverHeight; // 调整滚动控件高度 188 this.scrollTop = this.indexCoverHeight; // 调整滚动控件高度
193 } 189 }
194 }, 190 },
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-12-22 11:16:07 4 + * @LastEditTime: 2023-12-22 16:11:24
5 * @FilePath: /meihuaApp/src/pages/login/index.vue 5 * @FilePath: /meihuaApp/src/pages/login/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -114,8 +114,8 @@ const login = async () => { ...@@ -114,8 +114,8 @@ const login = async () => {
114 return; 114 return;
115 } else { 115 } else {
116 // TODO: 等待正式接口环境调整 116 // TODO: 等待正式接口环境调整
117 - // const { code, data } = await bindPhoneAPI({ phone: tel.value, sms_code: code.value }); 117 + const { code, data } = await bindPhoneAPI({ phone: tel.value, sms_code: code.value });
118 - const { code } = await bindPhoneAPI({ phone: tel.value, sms_code: 'debug_sms_code_1805' }); 118 + // const { code } = await bindPhoneAPI({ phone: tel.value, sms_code: 'debug_sms_code_1805' });
119 if (code) { 119 if (code) {
120 Taro.showToast({ 120 Taro.showToast({
121 title: '登录成功', 121 title: '登录成功',
...@@ -156,7 +156,7 @@ const resetDisplay = () => { ...@@ -156,7 +156,7 @@ const resetDisplay = () => {
156 156
157 const getCode = async () => { 157 const getCode = async () => {
158 if (isValidTel(tel.value)) { 158 if (isValidTel(tel.value)) {
159 - const { code } = await sendSmsCodeAPI({ phone: tel.value }); 159 + const { code } = await sendSmsCodeAPI({ mobile: tel.value });
160 if (code) { 160 if (code) {
161 Taro.showToast({ 161 Taro.showToast({
162 title: '验证码已发送', 162 title: '验证码已发送',
......
1 /* 1 /*
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2023-12-21 17:16:34 4 + * @LastEditTime: 2023-12-22 15:05:08
5 * @FilePath: /meihuaApp/src/utils/config.js 5 * @FilePath: /meihuaApp/src/utils/config.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
8 // TAG:服务器环境配置 8 // TAG:服务器环境配置
9 -const BASE_URL = "http://oa-dev.onwall.cn"; // 测试服务器 9 +const BASE_URL = "https://oa-dev.onwall.cn"; // 测试服务器
10 // const BASE_URL = "https://oa.onwall.cn"; // 正式服务器 10 // const BASE_URL = "https://oa.onwall.cn"; // 正式服务器
11 11
12 export default BASE_URL 12 export default BASE_URL
......