当前位置: 首页 > news >正文

怎么做百度里面自己的网站如何导入旧网站数据库

怎么做百度里面自己的网站,如何导入旧网站数据库,吴江建设网站,郑州网站制作推广公司接uni-app写的微信小程序如何实现账号密码登录后获取token#xff0c;并且每天的第一次登录后都会直接获取参数而不是耀重新登录#xff08;1#xff09;#xff0c; 在main.js中 import App from ./App// #ifndef VUE3 import Vue from vue import ./uni.promisify.adap…接uni-app写的微信小程序如何实现账号密码登录后获取token并且每天的第一次登录后都会直接获取参数而不是耀重新登录1 在main.js中 import App from ./App// #ifndef VUE3 import Vue from vue import ./uni.promisify.adaptor Vue.config.productionTip false App.mpType appconst app new Vue({...App }) app.$mount() // #endif// #ifdef VUE3 import { createSSRApp } from vue export function createApp() {const app createSSRApp(App)return {app} } // #endifasync function checkAndLogin() {const token uni.getStorageSync(token);const username uni.getStorageSync(userName);const password uni.getStorageSync(userPassword);if (!token) {try {const response await request({url: /login,method: POST,data: { username, password }});if (response.token) {uni.setStorageSync(token, response.token);} else {throw new Error(用户名或密码不正确);}} catch (error) {uni.showModal({title: 登录失败,content: error.message || 用户名或密码不正确,showCancel: false,});}} }// 在 App.vue 或 main.js 中调用 checkAndLogin async function onLaunch() {await checkAndLogin(); }在pages.json 创建一个空的{             path: pages/login/login,             style: {                 navigationBarTitleText: 登录             }         }, 让路径为pages/login/login里面什么内容都没有这样保证每次进入的第一个页面都是空白页面 pages: [{path: pages/login/login,style: {navigationBarTitleText: 登录}},{path: pages/mine/mine,style: {navigationBarTitleText: 我的}},{path: pages/home/home,style: {navigationBarTitleText: 首页}},{path: pages/Operation/Operation,style: {navigationBarTitleText: 运维}},{path: pages/index/index,style: {navigationBarTitleText: 服务}},{path : pages/shebe/shebe,style : {navigationBarTitleText : 设备}}],globalStyle: {navigationBarTextStyle:black,navigationBarBackgroundColor: #fff,navigationBarTitleText: uni-app,backgroundColor: #F8F8F8,enablePullDownRefresh: true,navigationStyle: custom},uniIdRouter: {},tabBar: {custom: true,color: #7A7E83,selectedColor: #1296db,borderStyle: black,backgroundColor: #F8F8F8,list: [{pagePath: pages/home/home,text: 首页,iconPath: static/imgs/imgs55.png,selectedIconPath: static/imgs/imgs5.png},{pagePath: pages/Operation/Operation,text: 运维,iconPath: static/imgs/imgs66.png,selectedIconPath: static/imgs/imgs6.png},{pagePath: pages/shebe/shebe,text: 设备,iconPath: static/imgs/imgs66.png,selectedIconPath: static/imgs/imgs6.png},{pagePath: pages/index/index,text: 服务,iconPath: static/imgs/imgs11.png,selectedIconPath: static/imgs/imgs1.png},{pagePath: pages/mine/mine,text: 我的,iconPath: static/imgs/imgs44.png,selectedIconPath: static/imgs/imgs4.png}]},subPackages: true,noParse: [],subPackages: [{root: pagesA/,pages:[{path: login/login,style: {navigationBarTitleText: 登录,// 启⽤⾃定义导航栏navigationStyle: custom,// 将导航栏⽂字的颜⾊设置为⽩⾊navigationBarTextStyle: white}}]}]
http://www.w-s-a.com/news/919514/

相关文章:

  • 小语种服务网站公众号平台建设网站
  • 免费做mc皮肤网站企业网站建设合同模板
  • 做网站可以申请个体户么网站的定位分析
  • jsp做的零食网站下载wordpress侧边栏折叠
  • 帝国网站单页做301南京旅游网站建设公司
  • 网站sem优化怎么做网站建设推广安徽
  • 比较好的室内设计网站潍坊网络科技
  • 南宁网站建设公设计联盟网站
  • 多个图表统计的网站怎么做百度推广费2800元每年都有吗
  • 连江县住房和城乡建设局网站企业类网站模版
  • 临沂seo整站优化厂家网站建设 大公司排名
  • 网站开发有哪些方式百度导航怎么下载
  • 网站认证免费视频直播网站建设方案
  • 瀑布流分享网站源代码下载网站构建的一般流程是什么
  • wordpress 4.9 多站wordpress邮箱解析
  • 微信网站开发企业汽车网站设计模板
  • 如何提升网站转化率遵义市公共资源交易平台
  • 网站目录管理模板企业解决方案部
  • 建设网站上申请劳务资质吗珠海哪个公司建设网站好
  • c2c商城网站建设在微信怎么开发公众号
  • 美的公司网站建设的目的做个网站要钱吗
  • 和县建设局网站孟州网站建设
  • 网站与规划设计思路竞价培训课程
  • 网站建设设计视频专业设计企业网站
  • 湖南省建设工程网站cerntos wordpress
  • 主机屋的免费空间怎么上传网站广告公司的经营范围有哪些
  • 门户网站建设公司案例门户建设是什么意思
  • 深圳seo专家东莞网站关键词优化排名
  • 套用别人产品图片做网站如何在阿里云自主建网站
  • 网站开发需要用哪些东西wordpress页面参数