7.10 增加登录页面,事件详情接口对接,我的点赞,关注收藏页面搭建,接口对接

This commit is contained in:
尚政杰
2025-07-10 18:08:16 +08:00
parent c4267a0e27
commit 58b3414bdd
356 changed files with 7710 additions and 978 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"login.js","sources":["pages/login/login.vue","pages/login/login.vue?type=page"],"sourcesContent":["<template>\n\t<view>\n\t\t<navBar leftText=\"登录\" :hideNavBg=\"true\" :backBlack=\"true\"></navBar>\n\t\t<image class=\"logo\" :style=\"'margin-top:'+contentTop+'px;'\" src=\"/static/image/login/logo.png\" mode=\"widthFix\"></image>\n\t\t<view class=\"loginTitle\">欢迎登录价值前沿平台</view>\n\t\t<view class=\"btn oneClickLogin\" @click=\"clickOneClickLogin()\">授权手机号一键登录</view>\n\t\t<view class=\"btn codeLogin\" @click=\"clickCodeLogin()\">使用短信验证登录</view>\n\t\t<view class=\"agreeProtocolC fixed flexCenter\">\n\t\t\t<view class=\"agreeC\" @click=\"clickAgree()\">\n\t\t\t\t<image class=\"icon\" src=\"\" mode=\"widthFix\"></image>\n\t\t\t</view>\n\t\t\t阅读并同意我们的<text class=\"protocol\" @click=\"clickProtocol()\">《用户服务协议》</text>和<text class=\"protocol\"@click=\"clickProtocol()\">《隐私政策》</text>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\timport { inject } from 'vue';\n\timport { loginByWx } from '@/request/api';\n\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tcontentTop:''\n\t\t\t}\n\t\t},\n\t\tonLoad() {\n\t\t\tthis.contentTop = inject('navHeight')+230/750*inject('windowWidth')\n\t\t},\n\t\tmethods: {\n\t\t\t/**\n\t\t\t * 点击一键登录\n\t\t\t */\n\t\t\tclickOneClickLogin()\n\t\t\t{\n\t\t\t\tuni.login({\n\t\t\t\t\tprovider:'weixin',\n\t\t\t\t\tsuccess(res) {\n\t\t\t\t\t\tlet param = {code:res.code,isJson:1}\n\t\t\t\t\t\tloginByWx(param).then(res=>{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}).catch(error=>{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tfail() {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t\n\t\t\t},\n\t\t\t/**\n\t\t\t * 点击验证码登录\n\t\t\t */\n\t\t\tclickCodeLogin()\n\t\t\t{\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:'/pages/login/codeLogin/codeLogin'\n\t\t\t\t})\n\t\t\t},\n\t\t\t/**\n\t\t\t * 点击同意\n\t\t\t */\n\t\t\tclickAgree()\n\t\t\t{\n\t\t\t\t\n\t\t\t},\n\t\t\t/**\n\t\t\t * 点击查看协议\n\t\t\t */\n\t\t\tclickProtocol()\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"less\">\n.logo \n{\n\tmargin-left: calc((100% - 144rpx)/2);\n\twidth: 144rpx;\n\theight: auto;\n}\n.loginTitle \n{\n\tmargin: 40rpx 80rpx 0;\n\tfont-size: 40rpx;\n\tfont-weight: bold;\n\ttext-align: center;\n}\n.btn \n{\n\tmargin: 0 75rpx;\n\tline-height: 80rpx;\n\tborder-radius: 20rpx;\n\tfont-size: 26rpx;\n\tfont-weight: 500;\n\ttext-align: center;\n}\n.btn.oneClickLogin\n{\n\tbackground-color: #F97316;\n\tmargin-top: 60rpx;\n\tcolor: white;\n}\n.btn.codeLogin \n{\n\tbackground-color: #FFF1E8;\n\tmargin-top: 28rpx;\n\tcolor: #F97316;\n}\n.agreeProtocolC\n{\n\tleft: 0;\n\tright: 0;\n\tbottom: calc(120rpx + env(safe-area-inset-bottom));\n\tfont-size: 26rpx;\n\tfont-weight: 500;\n\t.agreeC \n\t{\n\t\tpadding: 14rpx;\n\t\t.icon \n\t\t{\n\t\t\twidth: 28rpx;\n\t\t\theight: auto;\n\t\t}\n\t}\n\t.protocol \n\t{\n\t\tcolor: #F97316;\n\t}\n}\n</style>\n","import MiniProgramPage from '/Users/shangzhengjie/Desktop/JiaZhiQianYan/pages/login/login.vue'\nwx.createPage(MiniProgramPage)"],"names":["inject","uni","loginByWx","res"],"mappings":";;;;AAoBC,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,YAAW;AAAA,IACZ;AAAA,EACA;AAAA,EACD,SAAS;AACR,SAAK,aAAaA,cAAAA,OAAO,WAAW,IAAE,MAAI,MAAIA,cAAM,OAAC,aAAa;AAAA,EAClE;AAAA,EACD,SAAS;AAAA;AAAA;AAAA;AAAA,IAIR,qBACA;AACCC,oBAAAA,MAAI,MAAM;AAAA,QACT,UAAS;AAAA,QACT,QAAQ,KAAK;AACZ,cAAI,QAAQ,EAAC,MAAK,IAAI,MAAK,QAAO,EAAC;AACnCC,sBAAAA,UAAU,KAAK,EAAE,KAAK,CAAAC,SAAK;AAAA,UAE3B,CAAC,EAAE,MAAM,WAAO;AAAA,WAEf;AAAA,QACD;AAAA,QACD,OAAO;AAAA,QAEP;AAAA,OACA;AAAA,IAED;AAAA;AAAA;AAAA;AAAA,IAID,iBACA;AACCF,oBAAAA,MAAI,WAAW;AAAA,QACd,KAAI;AAAA,OACJ;AAAA,IACD;AAAA;AAAA;AAAA;AAAA,IAID,aACA;AAAA,IAEC;AAAA;AAAA;AAAA;AAAA,IAID,gBACA;AAAA,IAEA;AAAA,EACD;AACD;;;;;;;;;;;;;;;;;;;;;;;;;;AC1ED,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"version":3,"file":"feedback.js","sources":["pages/mine/feedback/feedback.vue","pages/mine/feedback/feedback.vue?type=page"],"sourcesContent":["<template>\n\t<view>\n\t\t<navBar leftText=\"意见反馈\"></navBar>\n\t\t<image class=\"topBg absolute\" src=\"/static/image/mine/myTopBg.png\" mode=\"widthFix\"></image>\n\t\t<view class=\"feedbackC fixed\" :style=\"'top:'+navH+'px;'\">\n\t\t\t<view class=\"textareaC\">\n\t\t\t\t<textarea placeholder=\"请输入您要反馈的问题200 字以内)\" placeholder-style=\"color:#C5C5C5\" maxlength=\"200\"></textarea>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"submit fixed\">提交</view>\n\t</view>\n</template>\n\n<script>\n\timport { inject } from 'vue';\n\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tnavH:inject('navHeight'),\n\t\t\t\t\n\t\t\t}\n\t\t},\n\t\tonLoad() {\n\t\t\t\n\t\t},\n\t\tmethods: {\n\t\t\t\n\t\t}\n\t}\n</script>\n\n<style lang=\"less\">\n.topBg\n{\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: auto;\n}\n.feedbackC\n{\n\tbackground-color: white;\n\tmargin-top: 10rpx;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tpadding: 43rpx 25rpx 0;\n\tborder-radius: 20rpx 20rpx 0 0;\n\t.textareaC\n\t{\n\t\tbackground-color: #F3F6F9;\n\t\tborder-radius: 20rpx;\n\t\tpadding: 20rpx 27rpx;\n\t\ttextarea \n\t\t{\n\t\t\twidth: 100%;\n\t\t\theight: 400rpx;\n\t\t\tfont-size: 24rpx;\n\t\t\tfont-weight: 500;\n\t\t}\n\t}\n}\n.submit \n{\n\tbackground-color: #F97316;\n\tleft: 0;\n\tright: 0;\n\tbottom: 73rpx;\n\tmargin: 0 25rpx;\n\tline-height: 80rpx;\n\tborder-radius: 20rpx;\n\tfont-size: 26rpx;\n\tfont-weight: 500;\n\tcolor: white;\n\ttext-align: center;\n}\n</style>\n","import MiniProgramPage from '/Users/shangzhengjie/Desktop/JiaZhiQianYan/pages/mine/feedback/feedback.vue'\nwx.createPage(MiniProgramPage)"],"names":["inject"],"mappings":";;;AAgBC,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,MAAKA,cAAM,OAAC,WAAW;AAAA,IAExB;AAAA,EACA;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS,CAET;AACD;;;;;;;;;;;;;;;;;;;AC5BD,GAAG,WAAW,eAAe;"}
{"version":3,"file":"feedback.js","sources":["pages/mine/feedback/feedback.vue","pages/mine/feedback/feedback.vue?type=page"],"sourcesContent":["<template>\n\t<view>\n\t\t<navBar leftText=\"意见反馈\"></navBar>\n\t\t<image class=\"topBg absolute\" src=\"/static/image/mine/myTopBg.png\" mode=\"widthFix\"></image>\n\t\t<view class=\"feedbackC fixed\" :style=\"'top:'+navH+'px;'\">\n\t\t\t<view class=\"textareaC\">\n\t\t\t\t<textarea v-model=\"content\" placeholder=\"请输入您要反馈的问题200 字以内)\" placeholder-style=\"color:#C5C5C5\" maxlength=\"200\"></textarea>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"submit fixed\" @click=\"clickSubmit()\">提交</view>\n\t</view>\n</template>\n\n<script>\n\timport { inject } from 'vue';\n\timport { feedback } from '@/request/api';\n\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tnavH:inject('navHeight'),\n\t\t\t\tcontent:'',\n\t\t\t\t\n\t\t\t}\n\t\t},\n\t\tonLoad() {\n\t\t\t\n\t\t},\n\t\tmethods: {\n\t\t\tclickSubmit()\n\t\t\t{\n\t\t\t\tif(!this.content)\n\t\t\t\t{\n\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\ttitle:'请输入您要反馈的问题',\n\t\t\t\t\t\ticon:'none'\n\t\t\t\t\t})\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tlet param = {content:this.content,isJson:1}\n\t\t\t\tfeedback(param).then(res=>{\n\t\t\t\t\tif(res.code==200)\n\t\t\t\t\t{\n\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\ttitle:res.message,\n\t\t\t\t\t\t\ticon:'none'\n\t\t\t\t\t\t})\n\t\t\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t\t\tuni.navigateBack()\n\t\t\t\t\t\t}, 1000);\n\t\t\t\t\t}else \n\t\t\t\t\t\tuni.showToast({\n\t\t\t\t\t\t\ttitle:res.message,\n\t\t\t\t\t\t\ticon:'none'\n\t\t\t\t\t\t})\n\t\t\t\t}).catch(error=>{\n\t\t\t\t\t\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"less\">\n.topBg\n{\n\ttop: 0;\n\tleft: 0;\n\twidth: 100%;\n\theight: auto;\n}\n.feedbackC\n{\n\tbackground-color: white;\n\tmargin-top: 10rpx;\n\tleft: 0;\n\tright: 0;\n\tbottom: 0;\n\tpadding: 43rpx 25rpx 0;\n\tborder-radius: 20rpx 20rpx 0 0;\n\t.textareaC\n\t{\n\t\tbackground-color: #F3F6F9;\n\t\tborder-radius: 20rpx;\n\t\tpadding: 20rpx 27rpx;\n\t\ttextarea \n\t\t{\n\t\t\twidth: 100%;\n\t\t\theight: 400rpx;\n\t\t\tfont-size: 24rpx;\n\t\t\tfont-weight: 500;\n\t\t}\n\t}\n}\n.submit \n{\n\tbackground-color: #F97316;\n\tleft: 0;\n\tright: 0;\n\tbottom: 73rpx;\n\tmargin: 0 25rpx;\n\tline-height: 80rpx;\n\tborder-radius: 20rpx;\n\tfont-size: 26rpx;\n\tfont-weight: 500;\n\tcolor: white;\n\ttext-align: center;\n}\n</style>\n","import MiniProgramPage from '/Users/shangzhengjie/Desktop/JiaZhiQianYan/pages/mine/feedback/feedback.vue'\nwx.createPage(MiniProgramPage)"],"names":["inject","uni","feedback"],"mappings":";;;;AAiBC,MAAK,YAAU;AAAA,EACd,OAAO;AACN,WAAO;AAAA,MACN,MAAKA,cAAM,OAAC,WAAW;AAAA,MACvB,SAAQ;AAAA,IAET;AAAA,EACA;AAAA,EACD,SAAS;AAAA,EAER;AAAA,EACD,SAAS;AAAA,IACR,cACA;AACC,UAAG,CAAC,KAAK,SACT;AACCC,sBAAAA,MAAI,UAAU;AAAA,UACb,OAAM;AAAA,UACN,MAAK;AAAA,SACL;AACD;AAAA,MACD;AACA,UAAI,QAAQ,EAAC,SAAQ,KAAK,SAAQ,QAAO,EAAC;AAC1CC,kBAAAA,SAAS,KAAK,EAAE,KAAK,SAAK;AACzB,YAAG,IAAI,QAAM,KACb;AACCD,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAM,IAAI;AAAA,YACV,MAAK;AAAA,WACL;AACD,qBAAW,WAAW;AACrBA,0BAAAA,MAAI,aAAa;AAAA,UACjB,GAAE,GAAI;AAAA,QACP;AACAA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAM,IAAI;AAAA,YACV,MAAK;AAAA,WACL;AAAA,MACH,CAAC,EAAE,MAAM,WAAO;AAAA,OAEf;AAAA,IACF;AAAA,EACD;AACD;;;;;;;;;;;;;;;;;;;;;;AC3DD,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long