|
|
@@ -30,17 +30,17 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { mapGetters } from 'vuex';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- pageInfo:{},
|
|
|
- userInfo: {}
|
|
|
+ pageInfo:{}
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
this.init()
|
|
|
- this.userInfo = this.$store.state.userInfo
|
|
|
},
|
|
|
+ computed: { ...mapGetters(['userInfo']) },
|
|
|
methods: {
|
|
|
init(){
|
|
|
var self = this
|
|
|
@@ -86,6 +86,22 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
addJL() {
|
|
|
+ console.log(this.userInfo,66)
|
|
|
+ if (this.userInfo.oneInchPhotos ==null||this.userInfo.oneInchPhotos ==undefined) {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '请先上传一寸照片',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages2/wd/info'
|
|
|
+ });
|
|
|
+ } else if (res.cancel) {
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$navTo.togo('/pages2/resume/addResume', {});
|
|
|
},
|
|
|
getYears(strBirthday) {
|