|
@@ -56,10 +56,7 @@
|
|
|
</picker>
|
|
</picker>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="form-item">
|
|
|
|
|
- <text class="label">电话号码</text>
|
|
|
|
|
- <input class="input" v-model="form.phone2" placeholder="请输入电话号码" type="number" />
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
<view class="submit-section">
|
|
<view class="submit-section">
|
|
|
<button class="submit-btn" @click="onSubmit" :disabled="submitting">{{ submitting ? '提交中...' : '提交' }}</button>
|
|
<button class="submit-btn" @click="onSubmit" :disabled="submitting">{{ submitting ? '提交中...' : '提交' }}</button>
|
|
@@ -86,6 +83,7 @@ const region = ref<string[]>([])
|
|
|
const submitting = ref(false)
|
|
const submitting = ref(false)
|
|
|
const isChoosing = ref(false)
|
|
const isChoosing = ref(false)
|
|
|
|
|
|
|
|
|
|
+
|
|
|
const onChooseAvatar = (e: any) => {
|
|
const onChooseAvatar = (e: any) => {
|
|
|
console.log('onChooseAvatar called with event:', e)
|
|
console.log('onChooseAvatar called with event:', e)
|
|
|
try {
|
|
try {
|
|
@@ -135,6 +133,8 @@ const startChooseAvatar = () => {
|
|
|
}, 3000)
|
|
}, 3000)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
const onRegionChange = (e: any) => {
|
|
const onRegionChange = (e: any) => {
|
|
|
region.value = e.detail.value
|
|
region.value = e.detail.value
|
|
|
form.value.address = region.value.join(' ')
|
|
form.value.address = region.value.join(' ')
|
|
@@ -150,7 +150,7 @@ const onSubmit = async () => {
|
|
|
try {
|
|
try {
|
|
|
const token = uni.getStorageSync('token')
|
|
const token = uni.getStorageSync('token')
|
|
|
const response = await uni.request({
|
|
const response = await uni.request({
|
|
|
- url: 'http://127.0.0.1:8080/update_user_info',
|
|
|
|
|
|
|
+ url: 'http://10.20.30.111:8080/update_user_info',
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
header: {
|
|
header: {
|
|
|
'Content-Type': 'application/json',
|
|
'Content-Type': 'application/json',
|
|
@@ -267,6 +267,25 @@ const onSubmit = async () => {
|
|
|
font-size: 32rpx;
|
|
font-size: 32rpx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+.phone-section {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.get-phone-btn {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ height: 80rpx;
|
|
|
|
|
+ background: linear-gradient(135deg, #07C160 0%, #00A854 100%);
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ border-radius: 8rpx;
|
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
|
+ border: none;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.get-phone-btn:disabled {
|
|
|
|
|
+ opacity: 0.5;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.radio-group {
|
|
.radio-group {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
gap: 40rpx;
|
|
gap: 40rpx;
|