shish 2 лет назад
Родитель
Сommit
d3b5e2f430

+ 27 - 1
hdApp/src/admin/ghs/pay.vue

@@ -16,6 +16,11 @@
 			<div class="btn-wrap">
 				<!-- #ifdef MP-WEIXIN -->
 				<button class="button-com green" @click="wexinPayFn">微信支付</button>
+				<div style="text-align:center;margin-top:10upx;">
+					<image :src="imgUrl" mode="widthFix" style="width:230upx;height:230upx;margin:0 auto;"></image>
+					<button @click="downloadImg()" class="button-com red" style="margin:0 auto;width:560upx;">保存二维码,用支付宝付款</button>
+					<div style="margin-top:30upx;font-size:26upx;" @click="teachPayFn()">不会用支付宝付款?点这里教您</div>
+				</div>
 				<!-- #endif -->
 				<!-- #ifdef H5 -->
 				<button class="button-com red" @click="aliPayFn">支付宝支付</button>
@@ -53,7 +58,8 @@
 				id:0,
 				salt:'',
 				ghsInfo:[],
-				customInfo:[]
+				customInfo:[],
+				imgUrl:''
 			}
 		},
 		computed: {
@@ -67,6 +73,25 @@
 		},
 		mounted() {},
 		methods: {
+			teachPayFn() {
+				this.pageTo({ url: "/admin/ghs/teachPay"})
+			},
+			downloadImg(){
+				let that = this
+				uni.downloadFile({
+					url:that.imgUrl,
+					success: (res) => {
+						if (res.statusCode === 200) {
+							uni.saveImageToPhotosAlbum({
+							filePath: res.tempFilePath,
+							success: function (data) {
+								uni.showToast({title:'下载成功'})
+							}
+							});
+						}
+					}
+				});
+			},
 			init(){
 				this.specialInit();
 			},
@@ -105,6 +130,7 @@
 						if (res.data && res.data.ghs && !this.$util.isEmpty(res.data.ghs)){
 							that.ghsInfo = res.data.ghs
 							that.customInfo = res.data.custom?res.data.custom:[]
+							that.imgUrl = res.data.imgUrl ? res.data.imgUrl : ''
 						}
 					}
 				})

+ 70 - 0
hdApp/src/admin/ghs/teachPay.vue

@@ -0,0 +1,70 @@
+<template>
+	<view class="app-content">
+		<view class="list">
+			<view>
+				<view class="video">
+                    <video id="myVideo" :src="`${constant.imgUrl}/teachPay.mp4`" :autoplay="true" object-fit="contain" style="width:700upx;height:1100upx;"></video>
+                </view>
+			</view>
+		</view>
+		<view style="text-align:center;margin-top:30upx;">
+			<button class="admin-button-com big blue go-back" @click="goBack()">返回</button>
+		</view>
+	</view>
+</template>
+<script>
+export default {
+	name: "teachPay",
+	components: {
+	},
+	mixins: [],
+	data() {
+		return {
+		};
+	},
+	methods: {
+		init(){
+
+		},
+		goBack(){
+			uni.navigateBack()
+		}
+	},
+};
+</script>
+<style lang="scss" scoped>
+.app-content{
+	padding:20upx 20upx 60upx 20upx;
+    .title{
+		font-weight: bold;
+		font-size:40upx;
+		margin-bottom:22upx;
+	}
+	.smallTitle{
+		font-weight: bold;
+		font-size:30upx;
+		font-weight: bold;
+		margin:25upx 0 25upx 0;
+	}
+	.info{
+    	font-size:30upx;
+		margin-bottom:20upx;
+	}
+	.image{
+		width:100%;
+		margin-bottom:20upx;
+	}
+	.video{
+		margin:0 auto;
+        text-align: center;
+		margin-bottom:10upx;
+	}
+	.book-button{
+		margin-bottom:15upx;
+	}
+	.go-back{
+		margin:0 auto;
+		width:260upx;
+	}
+}
+</style>

+ 1 - 0
hdApp/src/pages.json

@@ -167,6 +167,7 @@
 			"pages": [
 				{ "path": "shop", "style": {"navigationBarTitleText": "供货商"}},
 				{ "path": "pay", "style": {"navigationBarTitleText": "收银台"}},
+				{ "path": "teachPay", "style": {"navigationBarTitleText": "教程"}},
 				{ "path": "result", "style": {"navigationBarTitleText": "付款成功"}},
 				{ "path": "addGhs", "style": {"navigationBarTitleText": "添加"}},
 				{ "path": "debtChange", "style": {"navigationBarTitleText": "欠款变动明细"}},

+ 10 - 0
hdApp/src/pagesPurchase/order.vue

@@ -115,6 +115,8 @@
 
       <uni-popup ref="toShowMore" background-color="#fff" type="center" :animation="true" class="class-popup-style">
 			<view style="display:flex;width:100vw;padding:20upx 20upx 40upx 20upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
+        <view style="width:100vw;margin-top:8upx;"><button @click="recharge()">充值销账</button></view>
+        <view style="width:100vw;margin-top:8upx;"><button @click="rechargeChange()">充值记录</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="balanceChange()">余额变动记录</button></view>
 				<view style="width:100vw;margin-top:8upx;"><button @click="bpSj()">屏蔽此商家</button></view>
 				<view style="width:100vw;margin-top:30upx;"><button @click="closeToShow()">取消</button></view>
@@ -183,6 +185,14 @@ export default {
       this.closeToShow()
       this.pageTo({url: '/admin/ghs/balanceChange?ghsId='+info.id})
     },
+    rechargeChange(){
+      this.closeToShow()
+      this.pageTo({url: '/admin/ghs/rechargeChange?ghsId='+this.currentGhs.id})
+    },
+    recharge(){
+      this.closeToShow()
+      this.pageTo({url: '/admin/ghs/pay?id='+this.currentGhs.id+'&salt='+this.currentGhs.salt})
+    },
     balanceChange(){
       this.closeToShow()
       this.pageTo({url: '/admin/ghs/balanceChange?ghsId='+this.currentGhs.id})