Эх сурвалжийг харах

对接查询抽奖机会接口(参数改为数组 - 多值传参)

xueyihao 4 сар өмнө
parent
commit
5d13912f8c

+ 1 - 2
src/components/webviewPoint.vue

@@ -27,10 +27,9 @@ export default {
     }
   },
   methods: {
-    getRow(){
+    getRow(activityId){
       let currentPlatform = 'gyy-aB4cD6eF8gH0iJ2kL4';
       let currentUser = '2049045470263193601';
-      let activityId = '2029805805219950593';
       let url = '/packageF/pages/activity/lottery/turntable?activityId='+ activityId + '&currentPlatform='+currentPlatform+'&currentUser='+currentUser;
       this.initLaunchButton(url)
     },

+ 2 - 3
src/pages/order/order.vue

@@ -135,10 +135,9 @@ export default {
 		this.isLogin = !!uni.getStorageSync('wx_copenid');
 	},
 	onShow() {
-    getIsLottery({type:[1,3]}).then(res=>{
-      console.log(res)
+    getIsLottery({types:[1,3]}).then(res=>{
       if(res.data.data.isLottery === 1){
-        this.$refs.webviewRef?.getRow();
+        this.$refs.webviewRef?.getRow(res.data.data.activityId);
       }
     })
 		this.getStatus()

+ 2 - 2
src/points/order/orderList.vue

@@ -21,10 +21,10 @@ export default {
     this.getListOrder();
   },
   mounted(){
-    getIsLottery({type:[2]}).then(res=>{
+    getIsLottery({types:[2]}).then(res=>{
       console.log(res)
       if(res.data.data.isLottery === 1){
-        this.$refs.webviewRef?.getRow();
+        this.$refs.webviewRef?.getRow(res.data.data.activityId);
       }
     })
   },