zhaojs
2023-07-20 fc9bd6378d3bfbde6d5c71535757a3d44de8d8ff
uniapp/pages/rankinglist/common_act.vue
@@ -56,16 +56,40 @@
            console.log(res);
            switch(res.action)
            {
               case "back":
               case "back"://返回
                  this.backLast();
                  break;
               case "tbauth":
               case "tbauth"://淘宝授权
                  this.openTbMd();
                  break;
               case "totb":
                  this.targetTb(res.tburl);
                  break;
            }
         },
         targetTb(tburl)
         {
            // #ifdef APP-PLUS
            if (plus.runtime.isApplicationExist({
                pname: 'com.taobao.taobao',
                action: 'taobao://'
              })) {
              const plug = uni.requireNativePlugin('xiguazhu-baichuan')
              plug.detailPage({
                url: tburl,
                "openType": 0
              }, result => {
              });
            } else {
              uni.navigateTo({
                 url:'@/webView/webView?url=' + tburl
              })
            }
            // #endif
         },
         backLast()
         {
            console.log("返回")
            uni.navigateBack({
               delta: 1
            });