zouling 2 сар өмнө
parent
commit
0996985b47

+ 0 - 0
user_ui/pages/mine/avatar/index.vue → user_ui/mine/pages/avatar/index.vue


+ 1 - 1
user_ui/pages/mine/info.vue → user_ui/mine/pages/info.vue

@@ -117,7 +117,7 @@
 				if(this.isdisabled){
 				if(this.isdisabled){
 					return
 					return
 				}
 				}
-				this.$tab.navigateTo('/pages/mine/avatar/index')
+				this.$tab.navigateTo('/mine/pages/avatar/index')
 			},
 			},
 			statusFormats(data, list,type) {
 			statusFormats(data, list,type) {
 				var aite=selectValueKey(list, data);
 				var aite=selectValueKey(list, data);

+ 0 - 0
user_ui/pages/mine/info/edit.vue → user_ui/mine/pages/info/edit.vue


+ 0 - 0
user_ui/pages/mine/info/index.vue → user_ui/mine/pages/info/index.vue


+ 1 - 1
user_ui/pages/mine/pwd/forgetpwd.vue → user_ui/mine/pages/pwd/forgetpwd.vue

@@ -90,7 +90,7 @@
 			that.$toast("请输入正确的手机号")
 			that.$toast("请输入正确的手机号")
 			return
 			return
 		}
 		}
-		this.$tab.navigateTo(`/pages/mine/pwd/resetpwd?phone=`+this.phonenumber+'&code='+this.code)
+		this.$tab.navigateTo(`/mine/pages/pwd/resetpwd?phone=`+this.phonenumber+'&code='+this.code)
       }
       }
     }
     }
   }
   }

+ 0 - 0
user_ui/pages/mine/pwd/index.vue → user_ui/mine/pages/pwd/index.vue


+ 0 - 0
user_ui/pages/mine/pwd/resetpwd.vue → user_ui/mine/pages/pwd/resetpwd.vue


+ 1 - 1
user_ui/pages/register.vue → user_ui/mine/pages/register.vue

@@ -94,7 +94,7 @@
 	
 	
 	methods:{
 	methods:{
 		getlogin(){
 		getlogin(){
-			this.$tab.redirectTo(`/pages/tlogin`)
+			this.$tab.redirectTo(`/mine/pages/tlogin`)
 		},
 		},
 		handlePrivacy(){
 		handlePrivacy(){
 			this.$tab.navigateTo(`/pages/agreement`)  
 			this.$tab.navigateTo(`/pages/agreement`)  

+ 1 - 6
user_ui/pages/tlogin.vue → user_ui/mine/pages/tlogin.vue

@@ -151,14 +151,9 @@
 		},
 		},
 		getForget(){
 		getForget(){
 			this.$tab.navigateTo(`/pages/mine/pwd/forgetpwd`)
 			this.$tab.navigateTo(`/pages/mine/pwd/forgetpwd`)
-		},
-		getSchoolFn(){
-			this.$tab.navigateTo(`/mine/pages/mine/school?id=`+this.loginForm.school)
 		},
 		},
 		 getregister(){
 		 getregister(){
-			 this.$tab.redirectTo(`/pages/register`)
-			 // this.$tab.navigateTo(`/mine/pages/mine/applyregister`)
-			 // this.$tab.navigateTo(`/mine/pages/mine/auth`)
+			 this.$tab.redirectTo(`/mine/pages/register`)
 		 },
 		 },
 		 getLogin(){
 		 getLogin(){
 			 if(!this.loginForm.username||!this.loginForm.password||(!this.tucode&& this.captchaEnabled)){
 			 if(!this.loginForm.username||!this.loginForm.password||(!this.tucode&& this.captchaEnabled)){

+ 18 - 4
user_ui/news/components/popup/voice.vue

@@ -27,7 +27,12 @@
 				<view v-if="!sendLock" class="tipbox">{{voicetext}}</view>
 				<view v-if="!sendLock" class="tipbox">{{voicetext}}</view>
 				<view v-html="text" class="txt" style="color: #8e8d9a;"></view>
 				<view v-html="text" class="txt" style="color: #8e8d9a;"></view>
 				<view v-if="!sendLock" class="prompt-loader">
 				<view v-if="!sendLock" class="prompt-loader">
-					<view class="em" :style="randomRgb()" v-for="(item,index) in 30" :key="index"></view>
+					<!-- #ifndef MP-WEIXIN -->
+					<view class="em"  :style="randomRgb()" v-for="(item,index) in 30" :key="index"></view>
+					<!-- #endif -->
+					<!-- #ifdef MP-WEIXIN -->
+						<view class="em" :style="'background-color:' +colors[index]+';'" v-for="(item,index) in 30" :key="index"></view>
+					<!-- #endif -->
 				</view>
 				</view>
 				<view v-else class="prompt-loader"></view>
 				<view v-else class="prompt-loader"></view>
 			</view>
 			</view>
@@ -102,8 +107,18 @@
 				voicetext:'',
 				voicetext:'',
 				options: {}, // 语音转文字的设置
 				options: {}, // 语音转文字的设置
 				partialResult:'',//临时语音
 				partialResult:'',//临时语音
+				colors: [],
 			}
 			}
 		},
 		},
+		onLoad: function() {
+		    const colors = [];
+		    for (let i = 0; i < 30; i++) { // 假设你想为30个元素生成颜色
+		      colors.push(this.randomRgb());
+		    }
+		    this.setData({
+		      colors: colors
+		    });
+		  },
 		mounted() {
 		mounted() {
 			// if(!this.xmmc){
 			// if(!this.xmmc){
 			// 	this.xmmc=this.name
 			// 	this.xmmc=this.name
@@ -209,9 +224,8 @@
 				let R = Math.floor(Math.random() * 130 + 110);
 				let R = Math.floor(Math.random() * 130 + 110);
 				let G = Math.floor(Math.random() * 130 + 110);
 				let G = Math.floor(Math.random() * 130 + 110);
 				let B = Math.floor(Math.random() * 130 + 110);
 				let B = Math.floor(Math.random() * 130 + 110);
-				return {
-					background: `rgb(${R},${G},${B}, 1)`
-				};
+				return `rgb(${R},${G},${B}, 1)`
+				// background: `rgb(${R},${G},${B}, 1)`
 			},
 			},
 			// 语音转文字
 			// 语音转文字
 			getSeep(){
 			getSeep(){

+ 52 - 72
user_ui/pages.json

@@ -7,17 +7,6 @@
 	      "navigationStyle": "custom"
 	      "navigationStyle": "custom"
 	    }
 	    }
 	  },
 	  },
-	  {
-	  	  "path": "pages/mine/pwd/forgetpwd",
-	  	  "style": {
-	  	    "navigationBarTitleText": "忘记密码"
-	  	  }
-	  	}, {
-	  	  "path": "pages/mine/pwd/resetpwd",
-	  	  "style": {
-	  	    "navigationBarTitleText": "重置密码"
-	  	  }
-	  },
 	  {
 	  {
 	    "path": "pages/health/index",
 	    "path": "pages/health/index",
 	    "style": {
 	    "style": {
@@ -39,84 +28,23 @@
 	  "navigationStyle": "custom"
 	  "navigationStyle": "custom"
     }
     }
   }, 
   }, 
-  {
-    "path": "pages/tlogin",
-    "style": {
-      "navigationBarTitleText": "登录",
-  	  "navigationStyle": "custom"
-    }
-  }, 
-  {
-    "path": "pages/register",
-    "style": {
-      "navigationBarTitleText": "注册",
-	  "navigationStyle": "custom"
-    }
-  },  
   {
   {
     "path": "pages/agreement",
     "path": "pages/agreement",
     "style": {
     "style": {
       "navigationBarTitleText": "用户协议及隐私条款"
       "navigationBarTitleText": "用户协议及隐私条款"
     }
     }
   },
   },
-  {
-    "path": "pages/mine/info",
-    "style": {
-      "navigationBarTitleText": "个人信息",
-  	  "h5":{"titleNView":false}
-    }
-  },
  {
  {
     "path": "pages/mine/index",
     "path": "pages/mine/index",
     "style": {
     "style": {
       "navigationBarTitleText": "我的",
       "navigationBarTitleText": "我的",
 	  "navigationStyle": "custom"
 	  "navigationStyle": "custom"
     }
     }
-  }, {
-    "path": "pages/mine/avatar/index",
-    "style": {
-      "navigationBarTitleText": "修改头像"
-    }
-  }, {
-    "path": "pages/mine/info/index",
-    "style": {
-      "navigationBarTitleText": "个人信息"
-    }
-  }, {
-    "path": "pages/mine/info/edit",
-    "style": {
-      "navigationBarTitleText": "编辑资料"
-    }
-  }, {
-    "path": "pages/mine/pwd/index",
-    "style": {
-      "navigationBarTitleText": "修改密码"
-    }
-  }, {
-    "path": "pages/mine/setting/index",
-    "style": {
-      "navigationBarTitleText": "应用设置"
-    }
-  }, {
-    "path": "pages/mine/help/index",
-    "style": {
-      "navigationBarTitleText": "常见问题"
-    }
-  }, {
-    "path": "pages/mine/about/index",
-    "style": {
-      "navigationBarTitleText": "关于我们"
-    }
   }, {
   }, {
     "path": "pages/common/webview/index",
     "path": "pages/common/webview/index",
     "style": {
     "style": {
       "navigationBarTitleText": "浏览网页"
       "navigationBarTitleText": "浏览网页"
     }
     }
-  }, {
-    "path": "pages/common/textview/index",
-    "style": {
-      "navigationBarTitleText": "浏览文本"
-    }
   }],
   }],
   "subPackages": [
   "subPackages": [
 	  {"root": "health",
 	  {"root": "health",
@@ -328,6 +256,58 @@
 	{
 	{
 		"root": "mine",
 		"root": "mine",
 		"pages": [
 		"pages": [
+			{
+			  "path": "pages/tlogin",
+			  "style": {
+			    "navigationBarTitleText": "登录",
+				  "navigationStyle": "custom"
+			  }
+			}, 
+			{
+			  "path": "pages/register",
+			  "style": {
+			    "navigationBarTitleText": "注册",
+				  "navigationStyle": "custom"
+			  }
+			},
+			{
+				  "path": "pages/pwd/forgetpwd",
+				  "style": {
+				    "navigationBarTitleText": "忘记密码"
+				  }
+			}, {
+				  "path": "pages/pwd/resetpwd",
+				  "style": {
+				    "navigationBarTitleText": "重置密码"
+				  }
+			},
+			{
+			  "path": "pages/info",
+			  "style": {
+			    "navigationBarTitleText": "个人信息",
+				  "h5":{"titleNView":false}
+			  }
+			},{
+			  "path": "pages/avatar/index",
+			  "style": {
+			    "navigationBarTitleText": "修改头像"
+			  }
+			}, {
+			  "path": "pages/info/index",
+			  "style": {
+			    "navigationBarTitleText": "个人信息"
+			  }
+			}, {
+			  "path": "pages/info/edit",
+			  "style": {
+			    "navigationBarTitleText": "编辑资料"
+			  }
+			}, {
+			  "path": "pages/pwd/index",
+			  "style": {
+			    "navigationBarTitleText": "修改密码"
+			  }
+			},
 			{
 			{
 			  "path": "pages/house/index",
 			  "path": "pages/house/index",
 			  "style": {
 			  "style": {

+ 0 - 43
user_ui/pages/common/textview/index.vue

@@ -1,43 +0,0 @@
-<template>
-  <view>
-    <uni-card class="view-title" :title="title">
-      <text class="uni-body view-content">{{ content }}</text>
-    </uni-card>
-  </view>
-</template>
-
-<script>
-  export default {
-    data() {
-      return {
-        title: '',
-        content: ''
-      }
-    },
-    onLoad(options) {
-      this.title = options.title
-      this.content = options.content
-      uni.setNavigationBarTitle({
-        title: options.title
-      })
-    }
-  }
-</script>
-
-<style scoped>
-  page {
-    background-color: #ffffff;
-  }
-
-  .view-title {
-    font-weight: bold;
-  }
-
-  .view-content {
-    font-size: 26rpx;
-    padding: 12px 5px 0;
-    color: #333;
-    line-height: 24px;
-    font-weight: normal;
-  }
-</style>

+ 0 - 88
user_ui/pages/indexs.vue

@@ -1,88 +0,0 @@
-<template>
-	<view>
-		
-	<loading></loading>	
-	</view>
-</template>
-
-<script>
-	import config from '@/config'
-	const baseUrl = config.baseUrl
-	import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
-	export default{
-		components:{},
-		data(){
-			return{
-				hrimg:require('@/static/logo.png'),
-				list:[],
-				pageSize: 10,
-				pageNum: 1,
-				reachflag: true,
-				wtdt:'',
-			}
-		},
-		onLoad: function() {
-		
-		},
-		onPageScroll(e) {
-			var scrollTop = Number(e.scrollTop);
-			// var listTop=Number(this.listTop)-Number(this.nvaHeight)
-			if(scrollTop>2){
-				this.scroflag=true
-			}else{
-				this.scroflag=false
-			}
-		},
-		// 上拉触底加载更多触发事件
-		onReachBottom() {
-			if (this.reachflag) {
-				this.pageNum++
-				this.getDataFn()
-			}
-		},
-		methods:{
-			checkPermi, checkRole,
-			// getNextFn(){
-			// 	this.$tab.navigateTo("/work/pages/business/add")
-			// },
-			getDataFn(){
-				var params={
-					pageSize:this.pageSize,
-					pageNum: this.pageNum,
-				}
-				params.noticeType=this.tabidx
-				getNoticeList(params).then(res=>{
-					if(res.code==200){
-						if (res.rows.length < this.pageSize) {
-							this.reachflag = false
-							this.wtdt = '到底了~';
-						} else {
-							var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum -	1)
-							if (num < res.total) {
-								this.reachflag = true
-								this.wtdt = ''
-							} else {
-								this.reachflag = false
-								this.wtdt = '到底了~';
-							}
-						}
-						if (this.pageNum == 1) {
-							this.list = res.rows;
-						} else {
-							this.list = this.list.concat(res.rows)
-						}
-					}else{
-						this.$toast(res.msg)
-					}
-				})
-				
-			},
-		}
-	}
-</script>
-<style>
-	page{background: #F3F3F0;}
-</style>
-<style lang="scss" scoped>
-
-</style>

+ 2 - 2
user_ui/pages/login.vue

@@ -59,10 +59,10 @@
 				this.$tab.navigateTo(`/pages/agreement`)
 				this.$tab.navigateTo(`/pages/agreement`)
 			},
 			},
 			getlogin(){
 			getlogin(){
-				this.$tab.navigateTo(`/pages/tlogin`)
+				this.$tab.navigateTo(`/mine/pages/tlogin`)
 			},
 			},
 			getregister(){
 			getregister(){
-				this.$tab.navigateTo(`/pages/register`)
+				this.$tab.navigateTo(`/mine/pages/register`)
 			},
 			},
 			async getuserinfo(e) {
 			async getuserinfo(e) {
 				// if(!this.checkflag){
 				// if(!this.checkflag){

+ 0 - 75
user_ui/pages/mine/about/index.vue

@@ -1,75 +0,0 @@
-<template>
-  <view class="about-container">
-    <view class="header-section text-center">
-      <image style="width: 150rpx;height: 150rpx;" src="/static/logo200.png" mode="widthFix">
-      </image>
-      <uni-title type="h2" title="智慧社区用户端"></uni-title>
-    </view>
-
-    <view class="content-section">
-      <view class="menu-list">
-        <view class="list-cell list-cell-arrow">
-          <view class="menu-item-box">
-            <view>版本信息</view>
-            <view class="text-right">v{{version}}</view>
-          </view>
-        </view>
-        <view class="list-cell list-cell-arrow">
-          <view class="menu-item-box">
-            <view>官方邮箱</view>
-            <view class="text-right">ruoyi@xx.com</view>
-          </view>
-        </view>
-        <view class="list-cell list-cell-arrow">
-          <view class="menu-item-box">
-            <view>服务热线</view>
-            <view class="text-right">400-999-9999</view>
-          </view>
-        </view>
-        <view class="list-cell list-cell-arrow">
-          <view class="menu-item-box">
-            <view>公司网站</view>
-            <view class="text-right">
-              <uni-link :href="url" :text="url" showUnderLine="false"></uni-link>
-            </view>
-          </view>
-        </view>
-      </view>
-    </view>
-
-    <view class="copyright">
-      <view>Copyright &copy; 2022 ruoyi.vip All Rights Reserved.</view>
-    </view>
-  </view>
-</template>
-
-<script>
-  export default {
-    data() {
-      return {
-        url: getApp().globalData.config.appInfo.site_url,
-        version: getApp().globalData.config.appInfo.version
-      }
-    }
-  }
-</script>
-
-<style lang="scss">
-  page {
-    background-color: #f8f8f8;
-  }
-
-  .copyright {
-    margin-top: 50rpx;
-    text-align: center;
-    line-height: 60rpx;
-    color: #999;
-  }
-
-  .header-section {
-    display: flex;
-    padding: 30rpx 0 0;
-    flex-direction: column;
-    align-items: center;
-  }
-</style>

+ 0 - 112
user_ui/pages/mine/help/index.vue

@@ -1,112 +0,0 @@
-<template>
-  <view class="help-container">
-    <view v-for="(item, findex) in list" :key="findex" :title="item.title" class="list-title">
-      <view class="text-title">
-        <view :class="item.icon"></view>{{ item.title }}
-      </view>
-      <view class="childList">
-        <view v-for="(child, zindex) in item.childList" :key="zindex" class="question" hover-class="hover"
-          @click="handleText(child)">
-          <view class="text-item">{{ child.title }}</view>
-          <view class="line" v-if="zindex !== item.childList.length - 1"></view>
-        </view>
-      </view>
-    </view>
-  </view>
-</template>
-
-<script>
-  export default {
-    data() {
-      return {
-        list: [{
-            icon: 'iconfont icon-github',
-            title: '若依问题',
-            childList: [{
-              title: '若依开源吗?',
-              content: '开源'
-            }, {
-              title: '若依可以商用吗?',
-              content: '可以'
-            }, {
-              title: '若依官网地址多少?',
-              content: 'http://ruoyi.vip'
-            }, {
-              title: '若依文档地址多少?',
-              content: 'http://doc.ruoyi.vip'
-            }]
-          },
-          {
-            icon: 'iconfont icon-help',
-            title: '其他问题',
-            childList: [{
-              title: '如何退出登录?',
-              content: '请点击[我的] - [应用设置] - [退出登录]即可退出登录',
-            }, {
-              title: '如何修改用户头像?',
-              content: '请点击[我的] - [选择头像] - [点击提交]即可更换用户头像',
-            }, {
-              title: '如何修改登录密码?',
-              content: '请点击[我的] - [应用设置] - [修改密码]即可修改登录密码',
-            }]
-          }
-        ]
-      }
-    },
-    methods: {
-      handleText(item) {
-        this.$tab.navigateTo(`/pages/common/textview/index?title=${item.title}&content=${item.content}`)
-      }
-    }
-  }
-</script>
-
-<style lang="scss" scoped>
-  page {
-    background-color: #f8f8f8;
-  }
-
-  .help-container {
-    margin-bottom: 100rpx;
-    padding: 30rpx;
-  }
-
-  .list-title {
-    margin-bottom: 30rpx;
-  }
-
-  .childList {
-    background: #ffffff;
-    box-shadow: 0px 0px 10rpx rgba(193, 193, 193, 0.2);
-    border-radius: 16rpx;
-    margin-top: 10rpx;
-  }
-
-  .line {
-    width: 100%;
-    height: 1rpx;
-    background-color: #F5F5F5;
-  }
-
-  .text-title {
-    color: #303133;
-    font-size: 32rpx;
-    font-weight: bold;
-    margin-left: 10rpx;
-
-    .iconfont {
-      font-size: 16px;
-      margin-right: 10rpx;
-    }
-  }
-
-  .text-item {
-    font-size: 28rpx;
-    padding: 24rpx;
-  }
-
-  .question {
-    color: #606266;
-    font-size: 28rpx;
-  }
-</style>

+ 3 - 4
user_ui/pages/mine/index.vue

@@ -257,7 +257,6 @@
 			},
 			},
 			// 设置
 			// 设置
 			handleToSetting() {
 			handleToSetting() {
-			  this.$tab.navigateTo('/pages/mine/setting/index')
 			},
 			},
 			handleRepair(){//我的报修
 			handleRepair(){//我的报修
 				this.$tab.navigateTo(`/work/pages/service/warranty`)  
 				this.$tab.navigateTo(`/work/pages/service/warranty`)  
@@ -268,7 +267,7 @@
 			
 			
 			// 修改密码
 			// 修改密码
 			handleUpassword(){
 			handleUpassword(){
-				this.$tab.navigateTo(`/pages/mine/pwd/index`)  
+				this.$tab.navigateTo(`/mine/pages/pwd/index`)  
 			},
 			},
 			getPlShFn(){//评论审核
 			getPlShFn(){//评论审核
 				this.$tab.navigateTo('/mine/pages/news/sh')
 				this.$tab.navigateTo('/mine/pages/news/sh')
@@ -284,13 +283,13 @@
 			},
 			},
 			// 账号信息
 			// 账号信息
 			handleToInfo() {
 			handleToInfo() {
-				this.$tab.navigateTo('/pages/mine/info')
+				this.$tab.navigateTo('/mine/pages/info')
 			},
 			},
 			handleToLogin() {
 			handleToLogin() {
 				this.$tab.reLaunch('/pages/login')
 				this.$tab.reLaunch('/pages/login')
 			},
 			},
 			handleToAvatar() {
 			handleToAvatar() {
-				this.$tab.navigateTo('/pages/mine/avatar/index')
+				this.$tab.navigateTo('/mine/pages/avatar/index')
 			},
 			},
 			handleLogout() {
 			handleLogout() {
 				this.$modal.confirm('确定注销并退出系统吗?').then(() => {
 				this.$modal.confirm('确定注销并退出系统吗?').then(() => {

+ 0 - 78
user_ui/pages/mine/setting/index.vue

@@ -1,78 +0,0 @@
-<template>
-  <view class="setting-container" :style="{height: `${windowHeight}px`}">
-    <view class="menu-list">
-      <view class="list-cell list-cell-arrow" @click="handleToPwd">
-        <view class="menu-item-box">
-          <view class="iconfont icon-password menu-icon"></view>
-          <view>修改密码</view>
-        </view>
-      </view>
-      <view class="list-cell list-cell-arrow" @click="handleToUpgrade">
-        <view class="menu-item-box">
-          <view class="iconfont icon-refresh menu-icon"></view>
-          <view>检查更新</view>
-        </view>
-      </view>
-      <view class="list-cell list-cell-arrow" @click="handleCleanTmp">
-        <view class="menu-item-box">
-          <view class="iconfont icon-clean menu-icon"></view>
-          <view>清理缓存</view>
-        </view>
-      </view>
-    </view>
-    <view class="cu-list menu">
-      <view class="cu-item item-box">
-        <view class="content text-center" @click="handleLogout">
-          <text class="text-black">退出登录</text>
-        </view>
-      </view>
-    </view>
-  </view>
-</template>
-
-<script>
-  export default {
-    data() {
-      return {
-        windowHeight: uni.getSystemInfoSync().windowHeight
-      }
-    },
-    methods: {
-      handleToPwd() {
-        this.$tab.navigateTo('/pages/mine/pwd/index')
-      },
-      handleToUpgrade() {
-        this.$modal.showToast('模块建设中~')
-      },
-      handleCleanTmp() {
-        this.$modal.showToast('模块建设中~')
-      },
-      handleLogout() {
-        this.$modal.confirm('确定注销并退出系统吗?').then(() => {
-          this.$store.dispatch('LogOut').then(() => {
-            this.$tab.reLaunch('/pages/index/index')
-          })
-        })
-      }
-    }
-  }
-</script>
-
-<style lang="scss" scoped>
-  .page {
-    background-color: #f8f8f8;
-  }
-
-  .item-box {
-    background-color: #FFFFFF;
-    margin: 30rpx;
-    display: flex;
-    flex-direction: row;
-    justify-content: center;
-    align-items: center;
-    padding: 10rpx;
-    border-radius: 8rpx;
-    color: #303133;
-    font-size: 32rpx;
-  }
-</style>

+ 1 - 1
user_ui/permission.js

@@ -5,7 +5,7 @@ const loginPage = "/pages/login"
   
   
 // 页面白名单
 // 页面白名单
 const whiteList = ['/pages/index/index','/pages/agreement',
 const whiteList = ['/pages/index/index','/pages/agreement',
-  '/pages/login','/pages/tlogin', '/pages/register', '/pages/common/webview/index','/pages/mine/pwd/resetpwd','/pages/mine/pwd/forgetpwd',
+  '/pages/login','/mine/pages/tlogin', '/mine/pages/register', '/pages/common/webview/index','/mine/pages/pwd/resetpwd','/mine/pages/pwd/forgetpwd',
 ]
 ]
 
 
 // 检查地址白名单
 // 检查地址白名单

+ 3 - 4
user_ui/utils/request.js

@@ -4,7 +4,6 @@ import config from '@/config'
 import { getToken } from '@/utils/auth'
 import { getToken } from '@/utils/auth'
 import errorCode from '@/utils/errorCode'
 import errorCode from '@/utils/errorCode'
 import { toast, showConfirm, tansParams } from '@/utils/common'
 import { toast, showConfirm, tansParams } from '@/utils/common'
-import vues from '@/main.js'
 let timeout = 60000
 let timeout = 60000
 const baseUrl = config.baseUrl
 const baseUrl = config.baseUrl
 var confirmflag = config.confirmflag
 var confirmflag = config.confirmflag
@@ -34,7 +33,7 @@ const request = config => {
   	  	title:"加载中"
   	  	title:"加载中"
   	  })
   	  })
   }else{
   }else{
-  	vues.$loading(true)  
+  	store.commit("switch_loading",true);
   }
   }
   return new Promise((resolve, reject) => {
   return new Promise((resolve, reject) => {
     uni.request({
     uni.request({
@@ -46,7 +45,7 @@ const request = config => {
         dataType: 'json'
         dataType: 'json'
       }).then(response => {
       }).then(response => {
 		uni.hideLoading()
 		uni.hideLoading()
-		vues.$loading(false)
+		store.commit("switch_loading",false);
         let [error, res] = response
         let [error, res] = response
         if (error) {
         if (error) {
           toast('后端接口连接异常')
           toast('后端接口连接异常')
@@ -137,7 +136,7 @@ const request = config => {
       .catch(error => {
       .catch(error => {
 		if(config.lhide){
 		if(config.lhide){
 		}else{
 		}else{
-		vues.$loading(false)  
+			store.commit("switch_loading",false);
 		}
 		}
 		uni.hideLoading()
 		uni.hideLoading()
         let { message } = error
         let { message } = error