1 line
19 KiB
Plaintext
1 line
19 KiB
Plaintext
{"version":3,"sources":["webpack:///E:/云商会/云商会/pages/index/user.vue?0801","webpack:///E:/云商会/云商会/pages/index/user.vue?b12e","uni-app:///pages/index/user.vue","uni-app:///main.js","webpack:///E:/云商会/云商会/pages/index/user.vue?6327","webpack:///E:/云商会/云商会/pages/index/user.vue?7696"],"names":["data","topCurrent","login","loginMod","userInfo","apiImgUrl","loginData","openid","phone","password","association_id","mounted","methods","msg","getUserInfo","member_b_id","member_id","then","console","catch","uni","title","icon","duration","submitLogin","loginAut","content","success","that","tn","url","wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,kRAEN;AACP,KAAK;AACL;AACA,aAAa,oSAEN;AACP,KAAK;AACL;AACA,aAAa,4QAEN;AACP,KAAK;AACL;AACA,aAAa,4QAEN;AACP,KAAK;AACL;AACA,aAAa,gNAEN;AACP,KAAK;AACL;AACA,aAAa,oSAEN;AACP,KAAK;AACL;AACA,aAAa,4QAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AClFA;AAAA;AAAA;AAAA;AAAguB,CAAgB,qvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACoJpvB;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEA;EACAA;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;MACA;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MAAA;MACA;QACAC;QACAC;MACA,GACAC;QACAC;QACA;UACA;UACA;QACA;MACA,GACAC;QACAC;UACAC;UACAC;UACAC;QACA;MACA;IACA;IACAC;MAAA;MACA;MACA,kCACAP;QACAC;QACA;UACAE;YACAC;YACAC;YACAC;UACA;UACAH;UACA;UACA;UACA;QACA;UACAA;YACAC;YACAC;YACAC;UACA;QACA;MACA,GACAJ;QACAC;UACAC;UACAC;UACAC;QACA;MACA;IACA;IACAE;MACA;MACAL;QACAC;QACAK;QACAC;UACA;YACAP;YACAQ;UACA;QACA;MACA;IACA;IACAC;MACA;MACA;QACA;QACA;MACA;MACAT;QACAU;MACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;;;;AC9PA;AAGA;AACA;AAHA;AACAC,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;;;AAGnD;AAC+L;AAC/L,gBAAgB,wMAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","file":"pages/index/user.js","sourcesContent":["var components\ntry {\n components = {\n tnButton: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-button/tn-button\" */ \"@/tuniao-ui/components/tn-button/tn-button.vue\"\n )\n },\n tnListCell: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-list-cell/tn-list-cell\" */ \"@/tuniao-ui/components/tn-list-cell/tn-list-cell.vue\"\n )\n },\n tnBadge: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-badge/tn-badge\" */ \"@/tuniao-ui/components/tn-badge/tn-badge.vue\"\n )\n },\n tnModal: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-modal/tn-modal\" */ \"@/tuniao-ui/components/tn-modal/tn-modal.vue\"\n )\n },\n tnForm: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-form/tn-form\" */ \"@/tuniao-ui/components/tn-form/tn-form.vue\"\n )\n },\n tnFormItem: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-form-item/tn-form-item\" */ \"@/tuniao-ui/components/tn-form-item/tn-form-item.vue\"\n )\n },\n tnInput: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-input/tn-input\" */ \"@/tuniao-ui/components/tn-input/tn-input.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var m0 = _vm.msg()\n var m1 = m0 > 0 ? _vm.msg() : null\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.loginMod = true\n }\n _vm.e1 = function ($event) {\n _vm.loginMod = false\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n m0: m0,\n m1: m1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view style=\"background-color: #EBF4F7;letter-spacing: 1rpx;\">\r\n\t\t<view :style=\"{paddingTop: vuex_custom_bar_height +40+ 'rpx'}\"\r\n\t\t\tstyle=\"background: linear-gradient(50deg, #034EF9 0%, #05ACFF 99%);height: 400rpx;\">\r\n\r\n\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\" style=\"padding: 30rpx;width: 100%;\">\r\n\t\t\t\t<view v-if=\"login\">\r\n\t\t\t\t\t<image :src=\"apiImgUrl+userInfo.photo_image\"\r\n\t\t\t\t\t\tstyle=\"width: 100rpx;height: 100rpx;border-radius: 50%;\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-if=\"!login\">\r\n\t\t\t\t\t<image src=\"/static/def.png\" style=\"width: 100rpx;height: 100rpx;border-radius: 50%;\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"width: 100%;\">\r\n\t\t\t\t\t<view v-if=\"login\" class=\"tn-flex tn-flex-col-center tn-flex-row-between\">\r\n\t\t\t\t\t\t<view style=\"margin-left: 20rpx;color: #fff\">\r\n\t\t\t\t\t\t\t<view style=\"font-size: 35rpx;\">{{ userInfo.nikename }}</view>\r\n\t\t\t\t\t\t\t<view style=\"font-size: 24rpx;margin-top: 10rpx;\" v-if=\"userInfo.status==1\">接口返回商会+职位</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<!--\t\t\t\t\t\t<view @click=\"tn('/pages/index/my_edit')\">-->\r\n\t\t\t\t\t\t<!--\t\t\t\t\t\t\t<image src=\"/static/ico13.png\" style=\"width: 40rpx ;\" mode=\"widthFix\"></image>-->\r\n\t\t\t\t\t\t<!--\t\t\t\t\t\t</view>-->\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-if=\"!login\" class=\"tn-flex tn-flex-col-center tn-flex-row-between\">\r\n\t\t\t\t\t\t<view style=\"margin-left: 20rpx;color: #fff\">\r\n\t\t\t\t\t\t\t<tn-button @click=\"loginMod = true\">点击登陆</tn-button>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<!-- <view @click=\"tn('/pages/index/my_edit')\">-->\r\n\t\t\t\t\t\t<!-- <image src=\"/static/ico13.png\" style=\"width: 40rpx ;\" mode=\"widthFix\"></image>-->\r\n\t\t\t\t\t\t<!-- </view>-->\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view>\r\n\t\t\t<view style=\"padding: 30rpx;margin-top:-115rpx;background-color: transparent;\">\r\n\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between\"\r\n\t\t\t\t\tstyle=\"text-align: center;padding: 30rpx;background-color: #FFF;border-radius: 20rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);\">\r\n\t\t\t\t\t<view @click=\"tn('/pages/index/pizz_info?id='+userInfo.association_id)\">\r\n\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t<image src=\"/static/ico5.png\" style=\"width: 50rpx;height: 50rpx;\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t\t\t<text>所在商/协会</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @click=\"tn('/pages/index/events_my')\">\r\n\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t<image src=\"/static/ico1.png\" style=\"width: 50rpx;height: 50rpx;\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t\t\t<text>参与活动</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @click=\"tn('/pages/index/my_desc')\">\r\n\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t<image src=\"/static/02_2.png\" style=\"width: 50rpx;height: 50rpx;\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t\t\t<text>协会服务</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @click=\"tn('/pages/index/my_card?id='+userInfo.member_id)\">\r\n\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t<image src=\"/static/ico6.png\" style=\"width: 50rpx;height: 50rpx;\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t\t\t<text>我的名片</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view style=\"background-color: #fff;\">\r\n\t\t\t\t<view style=\"padding:0px 20rpx;\">\r\n\t\t\t\t\t<!--\t\t\t\t\t<tn-list-cell :arrow=\"true\" @click=\"tn('/pages/index/my_pizz')\">-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\">-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t\t<image src=\"/static/ico7.png\" style=\"width: 50rpx;height: 50rpx\"></image>-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">所在商/协会</view>-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t</view>-->\r\n\t\t\t\t\t<!--\t\t\t\t\t</tn-list-cell>-->\r\n\t\t\t\t\t<tn-list-cell :arrow=\"true\" @click=\"tn('/pages/index/my_apply')\">\r\n\t\t\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\">\r\n\t\t\t\t\t\t\t<image src=\"/static/ico8.png\" style=\"width: 50rpx;height: 50rpx\"></image>\r\n\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">入会申请记录</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</tn-list-cell>\r\n\t\t\t\t\t<tn-list-cell :arrow=\"true\" @click=\"tn('/pages/index/my_msg')\">\r\n\t\t\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\" style=\"position: relative;\">\r\n\t\t\t\t\t\t\t<image src=\"/static/ico9.png\" style=\"width: 50rpx;height: 50rpx\"></image>\r\n\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">我的消息</view>\r\n\t\t\t\t\t\t\t<tn-badge v-if=\"msg()>0\" style=\"position: absolute;right: 40rpx;\" backgroundColor=\"#E83A30\"\r\n\t\t\t\t\t\t\t\tfontColor=\"#ffffff\">{{msg()}}</tn-badge>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</tn-list-cell>\r\n <tn-list-cell :arrow=\"true\" @click=\"tn('/pages/index/my_invite')\">\r\n <view class=\"tn-flex tn-flex-center tn-flex-col-center\">\r\n <image src=\"/static/ico12.png\" style=\"width: 50rpx;height: 50rpx\"></image>\r\n <view style=\"margin-left: 20rpx;\">邀请入会</view>\r\n </view>\r\n </tn-list-cell>\r\n\t\t\t\t\t<!--\t\t\t\t\t<tn-list-cell :arrow=\"true\" @click=\"tn('/pages/index/my_assist')\">-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\">-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t\t<image src=\"/static/ico10.png\" style=\"width: 50rpx;height: 50rpx\"></image>-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">常见问题</view>-->\r\n\t\t\t\t\t<!--\t\t\t\t\t\t</view>-->\r\n\t\t\t\t\t<!--\t\t\t\t\t</tn-list-cell>-->\r\n\r\n\t\t\t\t\t<tn-list-cell :arrow=\"true\" @click=\"tn('/pages/index/my_idea')\">\r\n\t\t\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\">\r\n\t\t\t\t\t\t\t<image src=\"/static/ico12.png\" style=\"width: 50rpx;height: 50rpx\"></image>\r\n\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">意见反馈</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</tn-list-cell>\r\n\t\t\t\t\t<tn-list-cell :arrow=\"true\" @click=\"loginAut\">\r\n\t\t\t\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center\">\r\n\t\t\t\t\t\t\t<image src=\"/static/ico11.png\" style=\"width: 50rpx;height: 50rpx\"></image>\r\n\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">退出帐号</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</tn-list-cell>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<tn-modal v-model=\"loginMod\" :custom=\"true\">\r\n\t\t\t<view class=\"custom-modal-content\">\r\n\t\t\t\t<view style=\"text-align: center;font-size: 34rpx;\">会员登陆</view>\r\n\t\t\t\t<view class=\"text\">\r\n\t\t\t\t\t<tn-form ref=\"form\" :labelWidth=\"120\">\r\n\t\t\t\t\t\t<tn-form-item label=\"手机号\" prop=\"phone\">\r\n\t\t\t\t\t\t\t<tn-input v-model=\"loginData.phone\" />\r\n\t\t\t\t\t\t</tn-form-item>\r\n\t\t\t\t\t\t<tn-form-item label=\"密码\" prop=\"password\">\r\n\t\t\t\t\t\t\t<tn-input v-model=\"loginData.password\" type=\"password\" />\r\n\t\t\t\t\t\t</tn-form-item>\r\n\t\t\t\t\t</tn-form>\r\n\t\t\t\t\t<view style=\"text-align: center;margin-top: 30rpx;\">\r\n\t\t\t\t\t\t<tn-button backgroundColor=\"#E6E6E6\" fontColor=\"#ffffff\"\r\n\t\t\t\t\t\t\t@click=\"loginMod = false\">取消</tn-button>\r\n\t\t\t\t\t\t<tn-button backgroundColor=\"tn-bg-blue\" fontColor=\"tn-color-white\" style=\"margin-left: 30rpx\"\r\n\t\t\t\t\t\t\t@click=\"submitLogin\">确定\r\n\t\t\t\t\t\t</tn-button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</tn-modal>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tgetUserIndex,\r\n\t\tloginDo\r\n\t} from \"@/util/api\";\r\n\timport store from \"@/store\";\r\n\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttopCurrent: 0,\r\n\t\t\t\tlogin: false,\r\n\t\t\t\tloginMod: false,\r\n\t\t\t\tuserInfo: {},\r\n\t\t\t\tapiImgUrl: this.$store.state.imgUrl,\r\n\t\t\t\tloginData: {\r\n\t\t\t\t\topenid: '',\r\n\t\t\t\t\tphone: '',\r\n\t\t\t\t\tpassword: '',\r\n\t\t\t\t\tassociation_id: store.state.Gid\r\n\t\t\t\t},\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tvar uid = uni.getStorageSync('uid');\r\n\t\t\tthis.uid = uid;\r\n\t\t\tthis.getUserInfo();\r\n\t\t},\r\n\t\tmethods: {\r\n msg() {\r\n return this.$store.state.msgCount;\r\n },\r\n\t\t\tgetUserInfo() {\r\n\t\t\t\tgetUserIndex({\r\n\t\t\t\t\t\tmember_b_id: this.uid,\r\n\t\t\t\t\t\tmember_id: this.uid\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\tif (res.code == 1) {\r\n\t\t\t\t\t\t\tthis.userInfo = res.data;\r\n\t\t\t\t\t\t\tthis.login = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: error,\r\n\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tsubmitLogin() {\r\n\t\t\t\tthis.loginData.openid = uni.getStorageSync('openid');\r\n\t\t\t\tloginDo(this.loginData)\r\n\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\tif (res.code == 1) {\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '登陆成功!',\r\n\t\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tuni.setStorageSync('uid', res.data.id);\r\n\t\t\t\t\t\t\tthis.userInfo = res.data;\r\n\t\t\t\t\t\t\tthis.login = true;\r\n\t\t\t\t\t\t\tthis.loginMod = false;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\t\ttitle: '帐号或密码错误!',\r\n\t\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: error,\r\n\t\t\t\t\t\t\ticon: 'none',\r\n\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tloginAut() {\r\n\t\t\t\tvar that = this;\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\tcontent: '确定要退出吗?',\r\n\t\t\t\t\tsuccess: function(res) {\r\n\t\t\t\t\t\tif (res.confirm) {\r\n\t\t\t\t\t\t\tuni.removeStorageSync('uid');\r\n\t\t\t\t\t\t\tthat.login = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\ttn(e) {\r\n\t\t\t\tvar uid = uni.getStorageSync('uid');\r\n\t\t\t\tif (!uid) {\r\n\t\t\t\t\tthis.loginMod = true;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: e\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\r\n</style>\r\n","import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/user.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./user.vue?vue&type=template&id=21bf4c21&\"\nvar renderjs\nimport script from \"./user.vue?vue&type=script&lang=js&\"\nexport * from \"./user.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/user.vue\"\nexport default component.exports","export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./user.vue?vue&type=template&id=21bf4c21&\""],"sourceRoot":""} |