hwq 3 years ago
parent
commit
795876c8ea

+ 2 - 2
pages/index/infoDetail.vue

@@ -108,11 +108,11 @@ export default {
 			return i;
 		},
 		baodan(id) {
-			if (!this.userInfo.bank_card_no && !this.userInfo.bank_of_deposit) {
+			if ((!this.userInfo.bank_card_no && !this.userInfo.bank_of_deposit) && this.userInfo.ali == null && this.userInfo.wechat == null) {
 				console.log(this.userInfo, '11111');
 				uni.showModal({
 					title: '提示',
-					content: '您当前未填写银行卡信息和所属银行是否前往填写',
+					content: '您当前未填写收款信息,是否前往填写',
 					success: function(res) {
 						if (res.confirm) {
 							uni.navigateTo({

+ 21 - 2
pages/index/male.vue

@@ -5,11 +5,11 @@
 			<view class="detail">
 				<view class="detail-item">
 					银行账户:{{ userInfo.bank_card_no }}
-					<view class="copy" @click="copy()">复制账号</view>
+					<view class="copy" @click="copy(userInfo.bank_card_no)">复制账号</view>
 				</view>
 				<view class="detail-spe">
 					开户行:{{ userInfo.bank_of_deposit }}
-					<view class="copyband" @click="copy()">复制开户行</view>
+					<view class="copyband" @click="copy(userInfo.bank_of_deposit)">复制开户行</view>
 				</view>
 			</view>
 			<view class="title" v-if="userInfo.ali">2.支付宝扫码援助</view>
@@ -28,6 +28,25 @@ export default {
 	},
 	onLoad() {
 		console.log(this.userInfo);
+	},
+	methods: {
+		copy(text) {
+			uni.setClipboardData({
+				data: text,
+				success: e => {
+					uni.showToast({
+						title: '复制成功!'
+					});
+				},
+				fail(e) {
+					uni.showToast({
+						title: '复制失败',
+						icon: false
+					});
+					console.log(e);
+				}
+			});
+		}
 	}
 };
 </script>

+ 22 - 25
pages/index/video.vue

@@ -1,37 +1,34 @@
 <template>
-	<view class="center">
-		<image src="../../static/img/start.gif" mode=""></image>
-	</view>
+	<view class="center"><image src="../../static/img/start.gif" mode=""></image></view>
 </template>
 
 <script>
-	export default{
-		onLoad() {
-			
-			const innerAudioContext = uni.createInnerAudioContext();
-			innerAudioContext.autoplay = true;
-			innerAudioContext.startTime = 2;
-			innerAudioContext.src = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3';
-			innerAudioContext.onPlay(() => {
-			  console.log('开始播放');
+export default {
+	onLoad() {
+		// const innerAudioContext = uni.createInnerAudioContext();
+		// innerAudioContext.autoplay = true;
+		// innerAudioContext.startTime = 2;
+		// innerAudioContext.src = 'https://bjetxgzv.cdn.bspapp.com/VKCEYUGU-hello-uniapp/2cc220e0-c27a-11ea-9dfb-6da8e309e0d8.mp3';
+		// innerAudioContext.onPlay(() => {
+		//   console.log('开始播放');
+		// });
+		// innerAudioContext.stop()
+		setTimeout(() => {
+			uni.switchTab({
+				url: '/pages/index/index'
 			});
-			setTimeout(()=>{
-				innerAudioContext.stop()
-				uni.switchTab({
-					url:'/pages/index/index'
-				})()
-			},2500)
-		}
+		}, 2500);
 	}
+};
 </script>
 
 <style lang="scss">
-	.center{
+.center {
+	width: 100%;
+	height: 100vh;
+	image {
 		width: 100%;
-		height: 100vh;
-		image{
-			width: 100%;
-			height: 100%;
-		}
+		height: 100%;
 	}
+}
 </style>

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


Some files were not shown because too many files changed in this diff