逛逛

逛逛App


RN调用原生方法

<p>欢迎使用ShowDoc!</p> <h2>显示TOAST</h2> <pre><code>toast(String msg)</code></pre> <h2>跳转登陆</h2> <pre><code>toLogin()</code></pre> <h2>显示邀请好友分享海报</h2> <pre><code>inviteFriend(String from)//1 任务处邀请 2普通邀请</code></pre> <h2>更新token</h2> <pre><code>updateToken(String token)</code></pre> <h2>显示loading</h2> <table> <thead> <tr> <th>ishow</th> <th>0关闭,1显示</th> </tr> </thead> <tbody> <tr> <td>msg</td> <td>loading显示的提示文字,没有就传空字符串</td> </tr> </tbody> </table> <pre><code>loadingState(int isShow, String msg)</code></pre> <h2>任务跳转到分享商品页面</h2> <pre><code>shareProduct(int missionId)//任务id</code></pre> <h2>返回上一页</h2> <pre><code>back()//返回上一页</code></pre> <h2>发布商品设置参数</h2> <pre><code>setPublishParams(String json);</code></pre> <h2>游戏搜索页面跳转到 选择游戏交易类型</h2> <pre><code>gotoSelectGameTradeType(String json);</code></pre> <h2>跳转到选择区服页面</h2> <table> <thead> <tr> <th>gameId</th> <th>游戏id</th> </tr> </thead> <tbody> <tr> <td>pardId</td> <td>当前选中的一级大区id</td> </tr> <tr> <td>sudPardId</td> <td>当前选中的二级服务器id</td> </tr> </tbody> </table> <pre><code>gotoSelectGameServer(String gameId,String partId,String subPartId)</code></pre> <h2>选择陪玩游戏传递数据</h2> <pre><code>accompanyGameInfo(String json)</code></pre> <h2>RN页面跳转</h2> <pre><code>turnPage(String pageName,String json)</code></pre> <p>| pageName | 目标页面 | | json | 当前选中的二级服务器id |</p> <h2>跳转聊天页面</h2> <pre><code>toChat(String userId);//对方userid</code></pre> <h2>携带参数回上一页</h2> <pre><code>resultData(String json)</code></pre> <h2>跳转到订单详情</h2> <pre><code>GoOrderDetails(String orderId)</code></pre> <h2>订单去支付</h2> <pre><code>GoOrderPay(String json)</code></pre> <h2>跳转到商品编辑页面</h2> <pre><code>toEditGoods(String goodsId, String tradeTypeId,String gameId,String goodsCateId,String radeRelationId,int goodsType);//有值的就传,没有的就传空</code></pre> <table> <thead> <tr> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td>goodsId</td> <td></td> </tr> <tr> <td>tradeTypeId</td> <td></td> </tr> <tr> <td>gameId</td> <td></td> </tr> <tr> <td>goodsCateId</td> <td></td> </tr> <tr> <td>radeRelationId</td> <td></td> </tr> <tr> <td>goodsType</td> <td>1普通商品,2游戏商品,3租号,4陪玩</td> </tr> </tbody> </table> <h2>获取缓存大小</h2> <pre><code>getCacheSize()//返回一个字符串 例如:105KB或12MB</code></pre> <h2>打开应用商店APP详情页</h2> <pre><code>appStoreDetial()//设置-APP评分功能时调用</code></pre> <h2>跳转到我的足迹</h2> <pre><code>toMyFootprint ()//</code></pre> <h2>跳转到我的收藏</h2> <pre><code>toMyCollect()//</code></pre> <h2>订单续租成功</h2> <pre><code>renewalSuccess();</code></pre> <h2>跳转补齐收款方式</h2> <pre><code>paymentMethod(int type);//1 未补齐,2 已补齐</code></pre> <h2>跳转实名认证</h2> <pre><code>realnameAuth();</code></pre> <h2>跳转主页面底部切换</h2> <pre><code>toMainTab(int index);// 0 首页,1 分类,2 消息,3 我的</code></pre> <h2>rn 分享单个商品</h2> <pre><code>goodsShare(int type,string json);//type 0 逛逛消息,1 微信,2 朋友圈,3 QQ 4 微博 5分享图片</code></pre> <h2>rn播放音频文件</h2> <pre><code>playPauseRecording(String url, String playType)//url 播放地址 playType 1播放 2暂停</code></pre> <h2>显示选择时间弹窗(陪玩确认订单选择服务时间)</h2> <pre><code>showTimeWheelAlert()</code></pre>

页面列表

ITEM_HTML