lhl 3 years ago
parent
commit
2177339309

+ 8 - 0
components/payment/index.vue

@@ -153,6 +153,14 @@
 							});
 							break;
 						case 'alipay':
+						// #ifdef APP-PLUS
+						console.log(res,'付款++++')
+						plus.runtime.openURL('alipays://platformapi/startapp?saId=10000007&qrcode=' + res.data.result.config.jsConfig.expend.pay_info,function(res) {
+							console.log(res,'没有调起')
+							// uni.hideLoading();
+						});
+						break
+						// #endif
 						case 'alipayQr':
 							uni.hideLoading();
 							this.$emit('onChangeFun', {

+ 1 - 1
components/productWindow/index.vue

@@ -44,7 +44,7 @@
 						-
 					</view>
 					<view class='item num'>
-						<input type="number" v-model="attr.productSelect.cart_num" data-name="productSelect.cart_num" @input="bindCode(attr.productSelect.cart_num)" @keydown.native="btKeyDown" @keyup.native="btKeyUp"></input>
+						<input type="number" v-model="attr.productSelect.cart_num" data-name="productSelect.cart_num" @input="bindCode(attr.productSelect.cart_num)" @keydown="btKeyDown" @keyup="btKeyUp"></input>
 					</view>
 					<view v-if="iSplus" class="item plus" :class=" attr.productSelect.cart_num >= attr.productSelect.stock || destri ? 'on' : ''"
 					 @click="CartNumAdd">+</view>

+ 5 - 0
config/app.js

@@ -7,7 +7,12 @@ let openPlantGrass = '-openPlantGrass-'
 // 网络接口修改此字符 小程序域名要求https
 
 // let httpApi = 'https://www.sxczdz.com'
+// #ifdef MP-WEIXIN
+let httpApi = 'https://ygs.hqgjsmc.com' //测试
+// #endif
+// #ifndef MP-WEIXIN
 let httpApi = 'http://ygs.hqgjsmc.com' //测试
+// #endif
 // let httpApi = 'https://mer1.crmeb.net' //生产
 
 

+ 5 - 4
manifest.json

@@ -1,9 +1,9 @@
 {
-    "name" : "易博优购",
+    "name" : "环球优购",
     "appid" : "__UNI__F8C6120",
     "description" : "",
-    "versionName" : "1.3.7",
-    "versionCode" : 137,
+    "versionName" : "1.4.0",
+    "versionCode" : 140,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {
@@ -48,7 +48,8 @@
                     "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
                     "<uses-permission android:name=\"android.permission.BLUETOOTH\"/>",
                     "<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>"
-                ]
+                ],
+                "schemes" : "ybyg"
             },
             /* ios打包配置 */
             "ios" : {

+ 2 - 2
pages.json

@@ -412,7 +412,7 @@
 				{
 					"path": "user_spread_user/index",
 					"style": {
-						"navigationBarTitleText": "我的推广"
+						"navigationBarTitleText": "我的会员"
 						//,
 						//"navigationBarBackgroundColor": "#e93323"
 						// #ifdef MP || APP-PLUS
@@ -526,7 +526,7 @@
 				{
 					"path": "promoter-list/index",
 					"style": {
-						"navigationBarTitleText": "我的推广",
+						"navigationBarTitleText": "我的会员",
 						"navigationStyle": "custom"
 						// #ifdef MP || APP-PLUS
 						//	,

File diff suppressed because it is too large
+ 0 - 1144
pages/index/index.vue


+ 2 - 2
pages/user/index.vue

@@ -175,7 +175,7 @@
 					<view class="tool-img">
 						<image src="../../static/icon/gn1.png" mode=""></image>
 					</view>
-					<view class="tool-name">我的推广</view>
+					<view class="tool-name">我的会员</view>
 				</view>
 				<!-- #endif -->
 				<!-- #ifdef APP-PLUS -->
@@ -183,7 +183,7 @@
 					<view class="tool-img">
 						<image src="../../static/icon/gn1.png" mode=""></image>
 					</view>
-					<view class="tool-name">我的推广</view>
+					<view class="tool-name">我的会员</view>
 				</view>
 				<!-- #endif -->
 				<view class="tool-item" @click="authTo('/pages/users/user_spread_code/index')">

+ 21 - 15
pages/users/order_confirm/index.vue

@@ -314,7 +314,7 @@
 				<view class='item acea-row row-between-wrapper'
 					v-if="open_integral && order_type == 0 && is_jf == 0 && is_xfq == 0 && is_jk == 0">
 					<view>积分抵扣:</view>
-					<view class='money' >
+					<view class='money'>
 						<text v-if="!use_integral">当前积分<text class="pColor">{{userInfo.integral*1}}</text></text>
 						<text v-else>使用了{{integral_count}}个积分,抵扣<text class="pColor">{{integral_price}}元</text></text>
 						<checkbox-group class="checkbox integral_checked" name="isDefault" @change="changeIntegral">
@@ -466,6 +466,7 @@
 						title: '可用余额:',
 						payStatus: this.$store.getters.globalData.yue_pay_status,
 					},
+					// #ifndef APP-PLUS
 					{
 						"name": "微信支付",
 						"icon": "icon-weixin2",
@@ -478,6 +479,7 @@
 						title: '微信快捷支付',
 						payStatus: 1,
 					},
+					// #endif
 					// #ifndef MP
 					{
 						name: "支付宝支付",
@@ -493,7 +495,7 @@
 						payStatus: 1,
 					},
 					// #endif
-					
+
 				],
 				tagStyle: {
 					img: 'width:100%;display:block;',
@@ -619,7 +621,7 @@
 			if (options.is_jf) {
 				this.is_jf = options.is_jf
 			}
-			if(options.is_jk) {
+			if (options.is_jk) {
 				this.is_jk = options.is_jk
 			}
 
@@ -1119,6 +1121,7 @@
 				this.contactsTel = e.detail.value;
 			},
 			payment: function(data) {
+				console.log(data,'支付信息++++++++')
 				let that = this;
 				createOrder(data).then(res => {
 					console.log(res, 'zhifures++++++++++++++++++++++++')
@@ -1160,16 +1163,20 @@
 							});
 							break;
 						case 'alipay':
+							// #ifdef APP-PLUS
+							console.log(res.data,'app ali zhifu+++++')
+							console.log(res.data.result.config.jsConfig.expend.pay_info,'app--zhifu')
+							plus.runtime.openURL('alipays://platformapi/startapp?saId=10000007&qrcode=' + res.data.result.config.jsConfig.expend.pay_info,function(res) {
+								console.log(res,'没有调起')
+								uni.hideLoading();
+							});
+							uni.hideLoading()
+							// #endif
+							break;
 						case "alipayQr":
-							// uni.hideLoading();
-							// this.$emit('onChangeFun', {
-							// 	action: 'payClose'
-							// });
-							// uni.navigateTo({
-							// 	url: '/pages/order_pay_back/index?keyCode=' + callback_key + '&url=' +
-							// 		jsConfig
-							// })
+							// #ifndef H5
 							window.location.href = res.data.result.config.jsConfig.expend.pay_info
+							// #endif
 							return;
 							break;
 							// #ifndef MP
@@ -1178,7 +1185,7 @@
 						case "weixinApp":
 							jsConfig.timeStamp = jsConfig.timestamp;
 							// #ifndef APP-PLUS
-							console.log(jsConfig.timestamp,res,'ddddddddddddddddddddddddddddddd')
+							console.log(jsConfig.timestamp, res, 'ddddddddddddddddddddddddddddddd')
 							this.$wechat.pay(jsConfig).then(res => {
 								console.log('测试支付数据无效的success:' + res.data)
 								return that.$util.Tips({
@@ -1464,11 +1471,10 @@
 					use_integral: this.use_integral,
 					receipt_data: this.invoiceData,
 					extend: this.extend,
-					// #ifdef H5
-					return_url: 'http://' + window.location.host + '/pages/users/order_list/index',
-					// #endif
+					return_url: 'http://ygs.hqgjsmc.com/pages/users/order_list/index',
 					userConsumption: this.is_xfq == 1 ? 1 : 0
 				};
+				console.log('return_url', data.return_url)
 				if (data.mark && this.isEmojiCharacter(data.mark[Object.keys(data.mark)[0]])) {
 					that.$util.Tips({
 						title: '备注不允许输入表情!'

+ 10 - 7
pages/users/order_list/index.vue

@@ -297,13 +297,16 @@
 				orderStatus: 0, //订单状态
 				page: 1,
 				limit: 20,
-				payMode: [{
-						name: "微信支付",
-						icon: "icon-weixinzhifu",
-						value: 'wechat',
-						title: '微信快捷支付',
-						payStatus: 1
-					},
+				payMode: [
+					// #ifndef APP-PLUS
+					{
+						name: "微信支付",
+						icon: "icon-weixinzhifu",
+						value: 'wechat',
+						title: '微信快捷支付',
+						payStatus: 1
+					},
+					// #endif
 					{
 						name: "支付宝支付",
 						icon: "icon-zhifubao",

+ 1 - 1
pages/users/promoter-list/index.vue

@@ -8,7 +8,7 @@
 				<view class="goback-box" @click="toBack">
 					<image class="goback" src="../../../static/icon/fanhui.png" mode=""></image>
 				</view>
-				<view class="header">我的推广</view>
+				<view class="header">我的会员</view>
 			</view>
 			<view class="content-bg">
 				<image src="http://ygs.hqgjsmc.com/baseimg/zhihuanjuan.png" mode=""></image>

+ 47 - 36
pages/users/user_payment/index.vue

@@ -341,45 +341,56 @@ export default {
 						});
 					});
 				// #endif
-				// #ifdef APP-PLUS
+				// #ifdef APP-PLUS
+				console.log('kaiszf++++')
 				rechargeWechat({
 					price: that.rechar_id == 0 ? that.money : that.numberPic,
-					recharge_id: that.rechar_id,
-					type: 'weixin'
-				}).then(res => {
-					uni.hideLoading();
-					uni.requestPayment({
-						orderInfo: {
-							...res.data.config,
-							timeStamp: res.data.config.timestamp
-						},
-						provider: 'wxpay',
-						success(res) {
-							return that.$util.Tips(
-								{
-									title: '支付成功',
-									icon: 'success'
-								},
-								{
-									tab: 5,
-									url: '/pages/users/user_money/index'
-								}
-							);
-						},
-						fail: function(rej) {
-							console.log(rej);
-							return that.$util.Tips({
-								title: '支付失败'
-							});
-						},
-						complete: function(res) {
-							if (res.errMsg == 'requestPayment:cancel')
-								return that.$util.Tips({
-									title: '取消支付'
-								});
-						}
+					recharge_id: that.rechar_id,
+					return_url: 'http://ygs.hqgjsmc.com/pages/index/index',
+					type: 'alipay'
+				}).then(res => {
+					console.log('成功返回')
+					uni.hideLoading();
+					
+					console.log(res.data.config.jsConfig.expend.pay_info,'zhif')
+					plus.runtime.openURL('alipays://platformapi/startapp?saId=10000007&qrcode=' + res.data.config.jsConfig.expend.pay_info,function(res) {
+						console.log(res,'没有调起')
+						// uni.hideLoading();
 					});
-				});
+					// uni.requestPayment({
+					// 	orderInfo: {
+					// 		...res.data.config,
+					// 		timeStamp: res.data.config.timestamp
+					// 	},
+					// 	provider: 'wxpay',
+					// 	success(res) {
+					// 		return that.$util.Tips(
+					// 			{
+					// 				title: '支付成功',
+					// 				icon: 'success'
+					// 			},
+					// 			{
+					// 				tab: 5,
+					// 				url: '/pages/users/user_money/index'
+					// 			}
+					// 		);
+					// 	},
+					// 	fail: function(rej) {
+					// 		console.log(rej);
+					// 		return that.$util.Tips({
+					// 			title: '支付失败'
+					// 		});
+					// 	},
+					// 	complete: function(res) {
+					// 		if (res.errMsg == 'requestPayment:cancel')
+					// 			return that.$util.Tips({
+					// 				title: '取消支付'
+					// 			});
+					// 	}
+					// });
+				}).catch(err => {
+					console.log('shibai')
+				})
 				// #endif
 			}
 		}

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