浏览代码

修改支付宝和应用名称

潘超林 2 月之前
父节点
当前提交
b508e047a6
共有 4 个文件被更改,包括 7 次插入78 次删除
  1. 2 2
      app.config.js
  2. 1 1
      manifest.json
  3. 2 73
      pages/index/pay-zfb.vue
  4. 2 2
      unpackage/dist/build/web/index.html

+ 2 - 2
app.config.js

@@ -33,8 +33,8 @@ export const requestConfig = {
 	// zfb_request_url: "https://openauth-sandbox.dl.alipaydev.com/oauth2/publicAppAuthorize.htm",
 
 	//支付宝回调地址
-	zfb_redirect_uri: "http://192.168.3.183:80/#/pages/index/pay-zfb",
-	// zfb_redirect_uri: "https://ne.sxdirectpurchase.com/#/pages/index/pay-zfb",
+	// zfb_redirect_uri: "http://192.168.3.183:80/#/pages/index/pay-zfb",
+	zfb_redirect_uri: "https://ne.sxdirectpurchase.com/#/pages/index/pay-zfb",
 
 
 

+ 1 - 1
manifest.json

@@ -1,5 +1,5 @@
 {
-    "name" : "sacanPay",
+    "name" : "扫码支付",
     "appid" : "__UNI__793C1C8",
     "description" : "",
     "versionName" : "1.0.0",

+ 2 - 73
pages/index/pay-zfb.vue

@@ -28,7 +28,7 @@
 			<view class="popup">
 				<view class="header">
 					<h4>绑定手机号</h4>
-					<p class="tip">注意:首次登录,需绑定手机号才可成功领取农商网红包</p>
+					<p class="tip">提示:首次登陆请绑定于机号,连续奖励21次红包,最高可免单</p>
 				</view>
 				<view class="main">
 					<view style="height: 70rpx">
@@ -81,7 +81,7 @@
 				shopInfo: {},
 				zfbInfo: {},
 				shopId: "",
-				localUserInfo: {}
+				localUserInfo: {}   
 
 			};
 		},
@@ -247,77 +247,6 @@
 					uni.$u.toast('倒计时结束后再发送');
 				}
 			},
-			// async Pay() {
-			// 	uni.showLoading({
-			// 		title: '支付中'
-			// 	});
-			// 	// uni.hideLoading();
-			// 	// window.open(`${requestConfig.redirectOpen}pages/index/paySuccess`)
-
-			// 	if (!this.price) {
-			// 		uni.$u.toast('请输入支付金额!');
-			// 	}
-			// 	let res = await axios.get(`${requestConfig.BaseUrl}order/app/v1/buyer/order/createOfflineOrder
-			// 		?shopId=${this.shopId}&price=${this.price}`, {
-			// 		headers: {
-			// 			'token': `${this.userInfo.token}`
-			// 		}
-			// 	});
-			// 	if (res.data.code == 200) {
-			// 		//post请求
-			// 		let data = {
-			// 			"orderId": res.data.data, //订单id
-			// 			"orderType": 11, //订单类型  -1--其他 2-司机保证金 3-商品交易  4-线下交易
-			// 			"payKinds": 0, //支付类型  0-微信  1-支付宝
-			// 			"payMeth": 6 //5-微信小程序支付  6-微信H5支付 7-支付宝app支付
-			// 		}
-			// 		const pay = await axios.post(`${requestConfig.BaseUrl}order/app/v1/buyer/order/offlineOrderPay
-			// 			`, data, {
-			// 			headers: {
-			// 				'Token': `${this.userInfo.token}`
-			// 			}
-			// 		});
-			// 		if (pay.data.code == 200) {
-			// 			let res = JSON.parse(pay.data.data.result)
-			// 			console.log(res);
-			// 			WeixinJSBridge.invoke(
-			// 				"getBrandWCPayRequest", {
-			// 					// 公众号名称,由商户传入
-			// 					appId: res.appId,
-			// 					// 时间戳,自1970年以来的秒数
-			// 					timeStamp: res.timeStamp,
-			// 					// 随机串
-			// 					nonceStr: res.nonceStr,
-			// 					package: res.package,
-			// 					// 微信签名方式:
-			// 					signType: res.signType,
-			// 					// 微信签名
-			// 					paySign: res.paySign,
-			// 				},
-			// 				function(res) {
-			// 					if (res.err_msg == "get_brand_wcpay_request:ok") {
-			// 						// 使用以上方式判断前端返回,
-			// 						// 微信团队郑重提示:
-			// 						uni.hideLoading();
-			// 						window.location.href = requestConfig.redirectOpen
-			// 						// res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
-			// 					} else {
-			// 						uni.hideLoading();
-			// 						uni.$u.toast('支付失败!');
-			// 					}
-			// 				}
-			// 			);
-
-			// 		} else {
-			// 			uni.hideLoading();
-			// 			uni.$u.toast('支付失败!');
-			// 		}
-			// 	}
-			// },
-
-
-
-
 		},
 	};
 </script>

文件差异内容过多而无法显示
+ 2 - 2
unpackage/dist/build/web/index.html