xuhaolan 3 年 前
コミット
d7a866feef
4 ファイル変更14 行追加6 行削除
  1. 1 1
      manifest.json
  2. 7 3
      pages/money/pay.vue
  3. 0 0
      pages/order/createOrder.vue
  4. 6 2
      pages/product/product.vue

+ 1 - 1
manifest.json

@@ -79,7 +79,7 @@
             "proxy" : {
                 "/api" : {
                     // "target" : "http://www.zjxwcm.cn/api",
-					"target" : "http://xw.liuniu946.com/api",
+					"target" : "http://ysg.frp.liuniu946.com/api",
                     // "changeOrigin": true,
                     "pathRewrite" : {
                         "/api" : "" // rewrite path

+ 7 - 3
pages/money/pay.vue

@@ -75,6 +75,7 @@ export default {
 			checkedAuto: 0, //判断是否为自动拼团
 			topify: '',
 			is_drop: '',
+			mer_id:'',//商户id
 		};
 	},
 	computed: {
@@ -87,6 +88,7 @@ export default {
 		if(options.isdrop) {
 			this.is_drop = options.isdrop
 		}
+		this.mer_id = options.mer_id
  		this.checkedAuto = options.checked || 0;
 		this.topify = options.topify || 0;
 		if (options.type == 1) {
@@ -101,7 +103,7 @@ export default {
 				couponId: prepage.couponChecked.id, //优惠券编号
 				addressId: prepage.addressData.id, //地址编号
 				useIntegral: prepage.checkedPoints ? 1 : 0,
-				is_drop: this.is_drop
+				is_drop: this.is_drop,
 			}).then(({ data }) => {
 				// 获取支付金额
 				this.money = data.result.pay_price;
@@ -154,7 +156,8 @@ export default {
 				from: 'app', //来源
 				// #endif
 				paytype: obj.payName ,//支付类型  weixin-微信 yue-余额
-				is_drop: obj.is_drop
+				is_drop: obj.is_drop,
+				mer_id: obj.mer_id
 			})
 				.then(e => {
 					console.log(e,'zhifu+++++++++')
@@ -285,7 +288,8 @@ export default {
 				shipping_type: 1, //提货方式 1 快递 2自提
 				automatic: obj.checkedAuto,
 				topify: this.topify,
-				is_drop: obj.is_drop
+				is_drop: obj.is_drop,
+				mer_id: obj.mer_id
 			};
 			// 判断是否拼团商品
 			if (obj.pinkid) {

ファイルの差分が大きいため隠しています
+ 0 - 0
pages/order/createOrder.vue


+ 6 - 2
pages/product/product.vue

@@ -118,6 +118,7 @@
 		},
 		data() {
 			return {
+				mer_id:'',//商户编号
 				show: false,
 				showAdd: true,
 				isShare: false,
@@ -359,7 +360,7 @@
 						cartNum: '1', //商品数量
 						uniqueId: '', //商品标签
 						new: 0, //商品是否新增加到购物车1为不加入0为加入
-						mer_id: '',
+						mer_id: item.mer_id,
 						productId: item.id //商品编号
 					})
 					.then(function(e) {
@@ -393,6 +394,8 @@
 							obj.showDrop = true;
 							obj.is_drop = true;
 						}
+						obj.mer_id = data.mer_id;
+						console.log(obj.mer_id,'商户编号')
 						obj.goodsObjact = goods;
 						obj.IndexShare()
 						if (obj.goodsObjact.description != null) {
@@ -506,7 +509,8 @@
 					new: 1,
 					productId: obj.goodsid, //商品编号
 					uniqueId: obj.uniqueId,
-					is_drop: obj.is_drop ? 1 : 0
+					is_drop: obj.is_drop ? 1 : 0,
+					mer_id: obj.mer_id //商户编号
 				};
 
 				if (obj.type == 2) {

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません