| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | 
							- <!--  -->
 
- <template>
 
-   <view style="padding: 20rpx 30rpx;">
 
-     <textarea
 
-       placeholder-style="color:#F76260"
 
-       placeholder="请填写您的个人优势..."
 
-       auto-focus
 
-       maxlength="300"
 
-       v-model="advantage"
 
-       style="border: 1rpx solid gray; width: 100%; min-height: 300px;"
 
-     ></textarea>
 
-     <view class="f-horizon-center">
 
-       <button type="primary" size="default" class="send-button"  @click="submit">提 交</button>
 
-     </view>
 
-   </view>
 
- </template>
 
- <script setup>
 
- import { saveResumeAdvantage } from '@/api/user'
 
- import { ref } from 'vue'
 
- import { userStore } from '@/store/user'; const useUserStore = userStore()
 
- const advantage = ref('')
 
- // 获取基础信息-
 
- function getBaseInfo () {
 
-   const baseInfo = useUserStore.baseInfo
 
-   advantage.value = baseInfo?.advantage || ''
 
- }
 
- // 获取基础信息
 
- getBaseInfo()
 
- // 提交
 
- const submit = async () => {
 
-   if (!advantage.value) {
 
-     uni.showToast({ title: '请填写您的个人优势', icon: 'none' })
 
-     return
 
-   }
 
-   await saveResumeAdvantage({ content: advantage.value })
 
-   uni.showToast({ title: '编辑成功', icon: 'success' })
 
-   await useUserStore.getInfo()
 
-   //
 
-   setTimeout(() => {
 
- 		uni.navigateBack({
 
- 			delta: 1,
 
- 		})
 
- 	}, 1000);
 
- }
 
- </script>
 
- <style lang="scss" scoped>
 
- </style>
 
 
  |