zhaojs
2023-06-07 22c14398c105c114df77c111a4f90d62b647a9d7
no message
已添加1个文件
已修改6个文件
132 ■■■■■ 文件已修改
uniapp/pages.json 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/goods/goodsDetail.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/index/categories.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/mine/inviteFriends.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/rankinglist/common_act.vue 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/rankinglist/fengqiang.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/utils/utils.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages.json
@@ -471,6 +471,16 @@
                }
            }
        },
        //公共嵌套页面
        {
            "path": "pages/rankinglist/common_act",
            "style": {
                "navigationStyle": "custom",
                "app-plus": {
                    "titleNView": false
                }
            }
        },
        // è¶…级分类
        /* {
            "path": "pages/classify/classify",
uniapp/pages/goods/goodsDetail.vue
@@ -295,7 +295,7 @@
        showtar: false,
        platform: '',
        inviteCodeShow: false,
        inviterShow: false
        inviterShow: false,
      };
    },
    onPageScroll(e) {
uniapp/pages/index/categories.vue
@@ -275,7 +275,7 @@
                                }
                            
                                .back-box {
                                    width: 100rpx;
                                    width: 120rpx;
                                    height: 30rpx;
                                    background: linear-gradient(-90deg, #7619EC, #A429F3);
                                    border-radius: 5rpx;
uniapp/pages/mine/inviteFriends.vue
@@ -25,8 +25,8 @@
            </view>
            <view class="invite-step colCen">
                <view class="step-title">
                    é‚€è¯·æ­¥éª¤
                <view class="step-title" @click='checkVideo()' >
                    é‚€è¯·æ­¥éª¤<span style=" color: blue;">(查看视频教程)</span>
                </view>
                <view class="step-list">
                    1. å°†é‚€è¯·ç æˆ–海报分享给好友</br>
@@ -35,7 +35,7 @@
                    æœªæ¥ä»–/她有购物订单,您可获得佣金奖励,并自动计入您的帐户
                </view>
            </view>
            <view class="bottom-options-container rowCenAro">
                <view class="option-items-container colCen" @tap='copyLink()'>
                    <image class="icon-box" src="../../static/images/mine/link.png" mode="aspectFill"></image>
@@ -156,6 +156,12 @@
            this.makeCode()
        },
        methods: {
            checkVideo()
            {
                uni.navigateTo({
                    url: 'https://dfgapp.ushopvip.com/html/fxguid.html'
                })
            },
            showModel() {
                this.$nextTick(()=>{
                    this.getbanner()
uniapp/pages/rankinglist/common_act.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,104 @@
<template>
    <view>
        <web-view :webview-styles="webviewStyles" :src="webviewUrl" @message='received'></web-view>
    </view>
</template>
<script>
    var wv
    export default {
        data() {
            return {
                webviewUrl: '',
                webviewStyles: {
                    progress: {
                        color: '#EE1B14'
                    }
                },
            }
        },
        onLoad(options) {
            if(!this.hasLogin){
                uni.reLaunch({
                    url:"/pages/login/wxlogin"
                })
            }
            else{
                const value = uni.getStorageSync('userInfo');
                console.log(value);
                if(options.t_url)
                {
                    this.webviewUrl = encodeURI(decodeURIComponent(options.t_url)+"?token="+value.token+"&userid="+value.id);
                }
            }
        },
        onReady() {
          this.clearMuiBack();
        },
        methods: {
            received(e) {
                console.log(e);
                var res=e.detail.data[0];
                if(res.action=='target_tb')
                {
                    this.getTbsrc(res.data.goodsId);
                }
            },
            //跳转淘宝
            getTbsrc(goodsid) {
              var that = this;
              this.$u.api.getPrivilegeLink({
                goodsId: goodsid,
                type: 0
              }).then(e => {
                  console.log(e);
                if (e.code != 0) return that.$alert(e.msg)
                var res = e.data.info;
                var tburl = res.shortUrl
                // #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 => {
                    //  console.log(result);
                  });
                } else {
                  uni.navigateTo({
                    url: '../webView/webView?url=' + tburl
                  })
                }
                // #endif
              }).catch(function(err) {})
            },
            // å…³é—­mui返回
              clearMuiBack() {
                // #ifdef APP-PLUS
                var currentWebview = this.$scope.$getAppWebview().children()[0];
                //监听注入的js
                currentWebview.addEventListener("loaded", function() {
                  currentWebview.evalJS("mui.init({keyEventBind: {backbutton: false }});");
                });
                // #endif
              },
        },
        onNavigationBarButtonTap(e) {
            // #ifdef APP-PLUS
            const currentWebview = this.$scope.$getAppWebview(); //此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效,非v3编译模式使用this.$mp.page.$getAppWebview()
            var wv = currentWebview.children()[0]
            wv.reload();
            // #endif
            console.log(JSON.stringify(e))
        },
    }
</script>
<style>
</style>
uniapp/pages/rankinglist/fengqiang.vue
@@ -25,6 +25,7 @@
            }
            else{
                const value = uni.getStorageSync('userInfo');
                console.log(value);
                this.webviewUrl = encodeURI('http://dfgapp.ushopvip.com/html/fengqiangbang.html?token='+value.token);
            }
            
uniapp/utils/utils.js
@@ -45,6 +45,7 @@
common.goUrl = function(info, _this) {
    console.log(info)
    var userinfo = common.getCacheSync('userInfo')
    var that = _this;
    if (userinfo) {