| 1234567891011121314151617181920212223242526272829303132333435 |
- export default {
- data() {
- return {
- station: '',
- name: '',
- phone: ''
- }
- },
- onShow() {
- this.loadSuccessData();
- },
- methods: {
- loadSuccessData() {
- try {
- const stored = uni.getStorageSync('recruit_form_data');
- if (stored) {
- const data = JSON.parse(stored);
- this.station = data.station || '未设置';
- this.name = data.name || '未设置';
- this.phone = data.mobile || '未设置';
- }
- } catch (e) {
- console.error('加载成功页数据失败', e);
- }
- },
- goHome() {
- // 清理缓存的数据
- uni.removeStorageSync('recruit_form_data');
- // 返回首页或登录页
- uni.reLaunch({
- url: '/pages/login/login'
- });
- }
- }
- }
|