shish 4 лет назад
Родитель
Сommit
d3fee8cc47

+ 0 - 40
hdPad/src/common/pageSuccess.vue

@@ -1,40 +0,0 @@
-<template>
-  <appResult :title="title?title:'成功'">
-    <button class="admin-button-com big" @click="goBackHome">返回首页</button>
-  </appResult>
-  <!-- 这个页面在安卓端会卡住,请不要再使用 -->
-</template>
-<script>
-import appResult from "@/components/app-result";
-export default {
-  name: "pageSuccess",
-  components: {
-    appResult,
-  },
-	data() {
-		return {
-			title:'',
-		};
-	},
-	onLoad(e){
-  	this.title = e.title
-	},
-	onUnload(){
-		uni.navigateBack({delta:2})
-	},
-		methods: {
-    closeLayer() {
-		uni.navigateBack({delta: 3});
-    },
-	goBackHome() {
-      this.$util.pageTo({ url: "/pages/home/cash", type: 4, query: { tabIndex: 0 }, })
-    },
-  },
-};
-</script>
-<style lang="scss" scoped>
-.admin-button-com {
-  margin-bottom: 20upx;
-  width: 100%;
-}
-</style>

+ 0 - 65
hdPad/src/common/redirect.vue

@@ -1,65 +0,0 @@
-<template>
-    <div class="app-content">
-		<!-- <div class="prompt-text">加载中 . . .</div> -->
-	</div>
-</template>
-<script>
-import { mapGetters, mapState, mapActions } from 'vuex'
-import { getWxQrCodeQuery } from '@/api/common'
-export default {
-	data() {
-		return {
-		}
-	},
-	computed: {
-		// ...mapGetters({ userInfo: 'getSelfInfo' })
-	},
-	onLoad(options) {
-		uni.showLoading({
-			title: '加载中...'
-		})
-		if (options.redirectUrl) {
-			this.compatible()
-		}
-		// this._getWxQrCodeQuery(options.scene)
-	},
-	methods: {
-		// _getWxQrCodeQuery(scene) {
-		// 	getWxQrCodeQuery({ scene: scene }).then(res => {
-		// 		uni.hideLoading()
-		// 		if (res.data.url.indexOf('https://') > -1) {
-		// 			const returnUrl = encodeURIComponent(res.data.url)
-		// 			uni.navigateTo({
-		// 				url: `/common/webview?returnUrl=${returnUrl}`
-		// 			})
-		// 		} else {
-		// 			uni.redirectTo({
-		// 				url: res.data.url
-		// 			})
-		// 		}
-		// 	}).catch((e) => {
-		// 		this.compatible()
-		// 	})
-		// },
-		// 兼容,如果小程序码或者接口返回有误时进入登录页
-		compatible() {
-			uni.hideLoading()
-			if (this.option.type == 'invite') {
-				// #ifdef H5
-				location.href = decodeURIComponent(this.option.redirectUrl)
-				// #endif
-			}
-			// uni.redirectTo({
-			// 	url: `/pages/page/login/index`
-			// })
-		}
-	}
-}
-
-</script>
-<style lang="scss" scoped>
-.prompt-text {
-	padding-top: 200upx;
-	text-align: center;
-}
-</style>

+ 0 - 47
hdPad/src/common/success.vue

@@ -1,47 +0,0 @@
-<template>
-  <appResult :title="title">
-	<button class="admin-button-com big blue" style="width:80%;margin-top:50upx;" @click="goBackHome">返回首页</button>
-  </appResult>
-</template>
-<script>
-import appResult from "@/components/app-result";
-export default {
-  name: "commonSuccess",
-  components: {
-    appResult
-  },
-	data() {
-		return {
-			title:'操作成功',
-		};
-	},
-	onShow(){
-
-	},
-	onLoad(e){
-        let titleType = e.titleType || 1
-        if(titleType == 1){
-            this.title = '操作成功'
-        }
-        if(titleType == 2){
-            this.title = '结账成功'
-        }
-        if(titleType == 3){
-            this.title = '收款成功'
-        }
-	},
-	onUnload(){
-	},
-	methods: {
-        goBackHome() {
-            this.$util.pageTo({ url: "/pages/home/cash", type: 3, query: { tabIndex: 0 }})
-        }
-  },
-};
-</script>
-<style lang="scss" scoped>
-.admin-button-com {
-	margin-bottom: 20upx;
-	width: 100%;
-}
-</style>

+ 0 - 36
hdPad/src/common/webview.vue

@@ -1,36 +0,0 @@
-<template>
-	<web-view :src="src"></web-view>
-</template>
-
-<script>
-import { mapGetters } from 'vuex'
-// import { getSelfInfo } from '@/utils/auth'
-
-export default {
-	data() {
-		return {
-			src: '',
-			roleName: ''
-		}
-	},
-	computed: {
-		// ...mapGetters({ userInfo: 'getSelfInfo' })
-	},
-	onLoad(option) {
-	},
-	/**
-		 * 用户点击右上角分享
-		 */
-	onShareAppMessage: function(option) {
-		let shareObj = {}
-		shareObj = {
-			title: this.userInfo.nick_name + this.userInfo.role_name,
-			path: `/pages/design/designCompany/indexNew?${params}`
-		}
-		return shareObj
-	}
-}
-</script>
-
-<style lang="scss" scoped>
-</style>