Browse Source

传输id 从下标改 id

DGJ 1 năm trước cách đây
mục cha
commit
524368314e

+ 3 - 3
miniprogram/pages/ar-classic/scene-classic-show/index.js

@@ -81,7 +81,7 @@ Page({
             data:{
               topic:1,
               js_code:res.code,
-              app_id:'wxe3d4ca82f8349d7f'
+              app_id:'wx9a280bbd81c64f56'
             },
             success:(res)=>{ 
                 console.log('POST 请求成功', res.data);
@@ -323,7 +323,7 @@ Page({
                 count:1,     
               }],
               js_code:res.code,
-              app_id:'wxe3d4ca82f8349d7f'
+              app_id:'wx9a280bbd81c64f56'
             },
             success:function(res){
               console.log('POST 请求成功', res.data);
@@ -344,7 +344,7 @@ Page({
                   products2[that.data.current].activate = true;
                  that.setData({products:products2});
                   console.log('AAAA ',that.data.products);
-                  var uiShowIndex2 = that.data.current;
+                  var uiShowIndex2 = products2[that.data.current].id;
                   that.setData({uiShowIndex:uiShowIndex2});
                 },
                 fail(err){

+ 3 - 3
miniprogram/pages/ar-classic/scene-classic-showsix/index.js

@@ -81,7 +81,7 @@ Page({
             data:{
               topic:1,
               js_code:res.code,
-              app_id:'wxe3d4ca82f8349d7f'
+              app_id:'wx9a280bbd81c64f56'
             },
             success:(res)=>{ 
                 console.log('POST 请求成功', res.data);
@@ -323,7 +323,7 @@ Page({
                 count:1,     
               }],
               js_code:res.code,
-              app_id:'wxe3d4ca82f8349d7f'
+              app_id:'wx9a280bbd81c64f56'
             },
             success:function(res){
               console.log('POST 请求成功', res.data);
@@ -344,7 +344,7 @@ Page({
                   products2[that.data.current].activate = true;
                  that.setData({products:products2});
                   console.log('AAAA ',that.data.products);
-                  var uiShowIndex2 = that.data.current;
+                  var uiShowIndex2 = products2[that.data.current].id;
                   that.setData({uiShowIndex:uiShowIndex2});
                 },
                 fail(err){

+ 1 - 1
project.config.json

@@ -57,7 +57,7 @@
     "ignore": [],
     "include": []
   },
-  "appid": "wxe3d4ca82f8349d7f",
+  "appid": "wx9a280bbd81c64f56",
   "projectname": "xr-frame-demo",
   "libVersion": "3.0.0"
 }