zhaojs
2023-06-06 9aff0b29d4d68e3b2d4118c27e2c792037455440
no message
已修改4个文件
54 ■■■■ 文件已修改
uniapp/App.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/components/empowerModel.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/goods/goodsDetail.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/mine/mine.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/App.vue
@@ -137,6 +137,7 @@
            appinfo: {},
            ifwt: 0,
            hasinit:false,
            hasbcinit:false,
            
        },
        onShow: function() {
@@ -154,7 +155,10 @@
                        {
                            that.getAppInfo();
                        }
                        if(!that.globalData.hasbcinit)
                        {
                            that.bcInit();
                        }
                        /* let appInfo = utils.getCacheSync('appInfo')
                        if(appInfo == "" || appInfo == undefined){
                            console.log("获取方法")
@@ -178,6 +182,23 @@
        onHide: function() {},
        methods: {
            ...mapMutations(['login']),
             bcInit:function()
            {
                var that = this;
                console.log(uni.getSystemInfoSync().platform);
                if (uni.getSystemInfoSync().platform == 'ios')
                {
                    const plug = uni.requireNativePlugin('xiguazhu-baichuan');
                    console.log(plug)
                    plug.init({}, result => {
                        console.log(result);    // code等于0就是初始化成功
                        if(result.code==0)
                        {
                            that.globalData.hasbcinit=true;
                        }
                    });
                }
            },
            getAppInfo: function() {
                var that = this;
                this.$u.api.comminInt({}).then(e => {
@@ -217,6 +238,7 @@
                }).catch(function(err) {})
                
            },
             watch:function(method,istr){
                            var obj=this.globalData
                            console.log(obj)
uniapp/components/empowerModel.vue
@@ -34,6 +34,10 @@
        },
        created() {
            this.applogo = getApp().globalData.appinfo.logo
            if(!getApp().globalData.hasbcinit)
            {
                getApp().bcInit();
            }
            /* console.log(uni.getSystemInfoSync().platform);
            if (uni.getSystemInfoSync().platform == 'ios') {
                                    plug.init({}, result => {
uniapp/pages/goods/goodsDetail.vue
@@ -263,6 +263,7 @@
  import pddEmpower from '../../components/pddempower.vue'
  import inviteCodeModel from '../../components/inviteCode.vue'
  import inviterModel from '../../components/inviterModel.vue'
  export default {
    components: {
      empowerModel,
@@ -310,6 +311,10 @@
      {
          console.log("初始化")
          getApp().getAppInfo();
      }
      if(!getApp().globalData.hasbcinit)
      {
          getApp().bcInit();
      }
    },
    onLoad(options) {
@@ -559,10 +564,12 @@
          goodsId: this.optionsInfo.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://'
uniapp/pages/mine/mine.vue
@@ -274,7 +274,6 @@
        },
        onPullDownRefresh()
        {
            this.getuserInfo();
            this.centerInfo();
            this.getmoneyInfo();
@@ -287,7 +286,7 @@
                    url:"/pages/login/wxlogin"
                })
            }else{
                getApp().watch(this.getInit,'ifwt')
                //getApp().watch(this.ifwtChange,'ifwt')
                this.centerInfo()
                this.getbanner()
            }
@@ -297,7 +296,6 @@
                this.getInit();
                this.getmoneyInfo()
                this.getuserInfo()
            }
        },
        methods: {
@@ -306,12 +304,17 @@
                if(!getApp().globalData.hasinit)
                {
                    getApp().getAppInfo();
                    setTimeout(()=>{
                        this.getInit();
                    },2000)
                }
                    // #ifdef APP-PLUS
                    this.appInfo = uni.getStorageSync('appInfo');
                    this.showtar = getApp().globalData.ifwt == 1 ? false : true;
                    this.platform = plus.os.name
                    // #endif
                // #ifdef APP-PLUS
                console.log(getApp().globalData.ifwt)
                this.appInfo = uni.getStorageSync('appInfo');
                this.showtar = getApp().globalData.ifwt == 1 ? false : true;
                this.platform = plus.os.name
                // #endif
            },
            getmoneyInfo() {
                var that = this;