|
@ -3,7 +3,7 @@ |
|
|
<view class="containers po-r"> |
|
|
<view class="containers po-r"> |
|
|
<image src="" mode="" class="mainBg"></image> |
|
|
<image src="" mode="" class="mainBg"></image> |
|
|
<view class="w-100 po-a content"> |
|
|
<view class="w-100 po-a content"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<stepProgress :step="3"></stepProgress> |
|
|
<stepProgress :step="3"></stepProgress> |
|
|
|
|
|
|
|
|
<view class="step mt24"> |
|
|
<view class="step mt24"> |
|
@ -77,7 +77,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="info color-777 size-22 flex-rowl"> |
|
|
<view class="info color-777 size-22 flex-rowl"> |
|
|
<text class="size-22 color-777">微信二维码</text> |
|
|
<text class="size-22 color-777">微信二维码</text> |
|
|
<image :src="configList.wx_image.paramValueImage" mode="widthFix" style="width: 150rpx;height: 150rpx;"></image> |
|
|
|
|
|
|
|
|
<image :src="configList.wx_image.paramValueImage" mode="widthFix" |
|
|
|
|
|
style="width: 150rpx;height: 150rpx;"></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -96,22 +97,36 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="size-22 flex-rowr" @click="openToolsInfoModal"> |
|
|
<view class="size-22 flex-rowr" @click="openToolsInfoModal"> |
|
|
<text>查看工具包</text> |
|
|
<text>查看工具包</text> |
|
|
<up-icon name="arrow-down" color="#7F7F7F" size="17rpx" style="margin-left: 5rpx;"></up-icon> |
|
|
|
|
|
|
|
|
<up-icon name="arrow-down" color="#7F7F7F" size="17rpx" |
|
|
|
|
|
style="margin-left: 5rpx;"></up-icon> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="info color-777 size-22"> |
|
|
|
|
|
|
|
|
<!-- <view class="info color-777 size-22"> |
|
|
<view class="flex-between"> |
|
|
<view class="flex-between"> |
|
|
<text class="size-22">所在地区:</text> |
|
|
<text class="size-22">所在地区:</text> |
|
|
<view plain class="flex-rowr" @click="selectAddr"> |
|
|
|
|
|
|
|
|
<view plain class="flex-rowr" @click="selectAddr"> |
|
|
<text>{{ form.area ? form.area : '请选择' }}</text> |
|
|
<text>{{ form.area ? form.area : '请选择' }}</text> |
|
|
<up-icon style="margin-left: 22rpx;" name="arrow-down" color="#7F7F7F" size="21rpx"></up-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<up-icon style="margin-left: 22rpx;" name="arrow-down" color="#7F7F7F" |
|
|
|
|
|
size="21rpx"></up-icon> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> --> |
|
|
|
|
|
<view class="info color-777 size-22 mt20"> |
|
|
|
|
|
<view class="flex-between"> |
|
|
|
|
|
<text class="size-22">姓名:</text> |
|
|
|
|
|
<input v-model="form.name" type="text" placeholder="请输入姓名" /> |
|
|
|
|
|
</view> |
|
|
|
|
|
</view> |
|
|
|
|
|
<view class="info color-777 size-22 mt20"> |
|
|
|
|
|
<view class="flex-between"> |
|
|
|
|
|
<text class="size-22">电话:</text> |
|
|
|
|
|
<input v-model="form.phone" type="text" placeholder="请输入道路、小区、门牌号等" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="info color-777 size-22 mt20"> |
|
|
<view class="info color-777 size-22 mt20"> |
|
|
<view class="flex-between"> |
|
|
<view class="flex-between"> |
|
|
<text class="size-22">详细地址:</text> |
|
|
|
|
|
<input v-model="form.address" type="text" placeholder="请输入道路、小区、门牌号等" /> |
|
|
|
|
|
|
|
|
<text class="size-22">地址:</text> |
|
|
|
|
|
<input v-model="form.address" type="text" placeholder="请输入收货地址" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -127,13 +142,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<up-modal |
|
|
|
|
|
:show="showToolsInfoModal" |
|
|
|
|
|
:showConfirmButton="false" |
|
|
|
|
|
:showCancelButton="false" |
|
|
|
|
|
:closeOnClickOverlay="true" |
|
|
|
|
|
@close="closeToolsInfoModal" |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<up-modal :show="showToolsInfoModal" :showConfirmButton="false" :showCancelButton="false" |
|
|
|
|
|
:closeOnClickOverlay="true" @close="closeToolsInfoModal"> |
|
|
<up-parse class="size-28" :content="configList.pet_tools.paramValueArea"></up-parse> |
|
|
<up-parse class="size-28" :content="configList.pet_tools.paramValueArea"></up-parse> |
|
|
</up-modal> |
|
|
</up-modal> |
|
|
|
|
|
|
|
@ -145,10 +155,21 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { ref, reactive, computed } from "vue"; |
|
|
|
|
|
import { onShow } from '@dcloudio/uni-app' |
|
|
|
|
|
import { useStore } from 'vuex' |
|
|
|
|
|
import { udpateUser, getUserOne } from '@/api/userTeacher' |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
ref, |
|
|
|
|
|
reactive, |
|
|
|
|
|
computed |
|
|
|
|
|
} from "vue"; |
|
|
|
|
|
import { |
|
|
|
|
|
onShow |
|
|
|
|
|
} from '@dcloudio/uni-app' |
|
|
|
|
|
import { |
|
|
|
|
|
useStore |
|
|
|
|
|
} from 'vuex' |
|
|
|
|
|
import { |
|
|
|
|
|
udpateUser, |
|
|
|
|
|
getUserOne |
|
|
|
|
|
} from '@/api/userTeacher' |
|
|
|
|
|
|
|
|
import stepProgress from '../components/stepProgress.vue'; |
|
|
import stepProgress from '../components/stepProgress.vue'; |
|
|
|
|
|
|
|
@ -173,7 +194,7 @@ |
|
|
address: null, |
|
|
address: null, |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const initData = async () => { |
|
|
const initData = async () => { |
|
|
console.log('--initData') |
|
|
console.log('--initData') |
|
|
try { |
|
|
try { |
|
@ -244,6 +265,8 @@ |
|
|
latitude, |
|
|
latitude, |
|
|
longitude, |
|
|
longitude, |
|
|
address, |
|
|
address, |
|
|
|
|
|
name, |
|
|
|
|
|
phone, |
|
|
} = form |
|
|
} = form |
|
|
|
|
|
|
|
|
const data = { |
|
|
const data = { |
|
@ -252,10 +275,12 @@ |
|
|
latitude, |
|
|
latitude, |
|
|
longitude, |
|
|
longitude, |
|
|
address, |
|
|
address, |
|
|
|
|
|
name, |
|
|
|
|
|
phone, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
await udpateUser(data) |
|
|
await udpateUser(data) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: '提交成功!', |
|
|
title: '提交成功!', |
|
|
icon: "none" |
|
|
icon: "none" |
|
@ -268,7 +293,7 @@ |
|
|
}, 1000) |
|
|
}, 1000) |
|
|
|
|
|
|
|
|
} catch (err) { |
|
|
} catch (err) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|