You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
3.4 KiB
2 lines
3.4 KiB
"use strict";const e=require("../../common/vendor.js"),g=require("../../sheep/index.js"),o=require("../../sheep/config/index.js");require("../../sheep/url/index.js");require("../../sheep/store/index.js");require("../../sheep/store/app.js");require("../../sheep/platform/index.js");require("../../sheep/platform/provider/wechat/index.js");require("../../sheep/platform/provider/wechat/miniProgram.js");require("../../sheep/api/member/auth.js");require("../../sheep/request/index.js");require("../../sheep/helper/index.js");require("../../sheep/helper/test.js");require("../../sheep/helper/digit.js");require("../../sheep/api/member/social.js");require("../../sheep/api/member/user.js");require("../../sheep/platform/provider/apple/index.js");require("../../sheep/platform/share.js");require("../../sheep/router/index.js");require("../../sheep/hooks/useModal.js");require("../../sheep/helper/throttle.js");require("../../sheep/platform/pay.js");require("../../sheep/api/pay/order.js");require("../../sheep/store/user.js");require("../../sheep/store/cart.js");require("../../sheep/api/trade/cart.js");require("../../sheep/api/pay/wallet.js");require("../../sheep/api/trade/order.js");require("../../sheep/store/sys.js");require("../../sheep/store/modal.js");require("../../sheep/config/zIndex.js");Array||e.resolveComponent("uni-nav-bar")();const q=()=>"../../uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.js";Math||(x+q)();const x=()=>"../components/header_tops_tips.js",b={__name:"personinfo",setup(d){e.ref({hobbySelect:""});const r=e.ref({});e.ref([{text:"男",value:1},{text:"女",value:2}]);const u=e.ref(["男","女","未知"]);e.ref("");const i=e.ref(0);e.onLoad(a=>{r.value=JSON.parse(a.information),i.value=r.value.sex});function p(){e.index.navigateBack()}function _(a){switch(a){case 0:e.index.navigateTo({url:"/pages/index/authentication"});break;case 1:return e.index.showToast({title:"已认证...",icon:"success"})}}function s(a){g.sheep.$router.go("/pages/home/updatepassword",{date:JSON.stringify(r.value),type:a})}function h(){e.index.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(a){let t=a.tempFilePaths;e.index.uploadFile({url:`${o.baseUrl+o.apiPath}/infra/file/upload`,filePath:t[0],name:"file",method:"post",header:{"tenant-id":1,Authorization:e.index.getStorageSync("token")},success:n=>{const l=JSON.parse(n.data);let m={avatar:l.data};c(m),r.value.avatar=l.data}})}})}function c(a){e.index.request({url:`${o.baseUrl+o.apiPath}/member/user/update`,method:"PUT",data:a,header:{"tenant-id":1,Authorization:e.index.getStorageSync("token")},success:t=>{t.data.code==0?e.index.showToast({title:"修改成功",icon:"success"}):e.index.showToast({title:t.data.msg,icon:"error"})},fail:t=>{console.log(t,"error")}})}function v(a){i.value=a.detail.value;let t={sex:parseInt(i.value)+1};c(t)}function f(){e.index.clearStorageSync(),e.index.reLaunch({url:"/pages/subpackages/login"})}return(a,t)=>({a:e.o(p),b:e.p({["left-icon"]:"left",title:"个人信息",backgroundColor:"#e6eafa"}),c:r.value.avatar,d:e.o(h),e:e.t(r.value.creditPoint),f:e.t(r.value.name),g:e.t(u.value[i.value]),h:u.value,i:e.o(v),j:i.value,k:e.t(r.value.birthday),l:e.t(r.value.mobile),m:e.o(n=>s(1)),n:e.o(n=>s(2)),o:e.t(r.value.realNameAuthFlag==1?"已认证":"未认证"),p:e.o(n=>_(r.value.realNameAuthFlag)),q:e.o(f)})}},y=e._export_sfc(b,[["__scopeId","data-v-f7cfc45b"],["__file","D:/xiangmu/佰安出行/app/s-applet/pages/home/personinfo.vue"]]);wx.createPage(y);
|