zhaojs
2023-06-19 ceea40372050073c202d1a3ab2112f9754f2bce4
no message
已修改4个文件
119 ■■■■■ 文件已修改
uniapp/manifest.json 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/index/launchPage.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/login/wxlogin.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/utils/getClipboard.js 79 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/manifest.json
@@ -12,8 +12,8 @@
        "nvueCompiler" : "uni-app",
        "compilerVersion" : 3,
        "splashscreen" : {
            "alwaysShowBeforeRender" : false,
            "waiting" : false,
            "alwaysShowBeforeRender" : true,
            "waiting" : true,
            "autoclose" : true,
            "delay" : 0
        },
@@ -126,13 +126,16 @@
                }
            },
            "splashscreen" : {
                "androidStyle" : "common",
                "androidStyle" : "default",
                "android" : {
                    "hdpi" : "E:/OPProject/发版用_勿删/开屏/开屏小.png",
                    "xhdpi" : "E:/OPProject/图片/开屏/开屏中.png",
                    "xxhdpi" : "E:/OPProject/图片/开屏/开屏大.png"
                    "hdpi" : "E:/OPProject/发版用_勿删/android/480X762.9.png",
                    "xhdpi" : "E:/OPProject/发版用_勿删/android/720X1242.9.png",
                    "xxhdpi" : "E:/OPProject/发版用_勿删/android/1080x1882.9.png"
                },
                "iosStyle" : "common"
                "iosStyle" : "storyboard",
                "ios" : {
                    "storyboard" : "E:/OPProject/发版用_勿删/ios/CustomStoryboard.zip"
                }
            },
            "icons" : {
                "android" : {
uniapp/pages/index/launchPage.vue
@@ -37,7 +37,7 @@
                        return;
                    }
                    var res = e.data.info;
                    if(res.launchpic&&res.launchpic.length>0)
                    if(res&&res.length>0&&res.launchpic&&res.launchpic.length>0)
                    {
                        that.list=res.launchpic;
                    }
@@ -65,12 +65,12 @@
            },
            t_index()
            {
                uni.reLaunch({
                    url: "/pages/index/index"
                });
                /* setTimeout(()=>{
                }, 500); */
                 setTimeout(()=>{
                    uni.reLaunch({
                        url: "/pages/index/index"
                    });
                }, 500);
            }
        }
    }
uniapp/pages/login/wxlogin.vue
@@ -53,8 +53,8 @@
        },
        onLoad() {
            this.appInfo = uni.getStorageSync('appInfo')
            console.log(this.appInfo.iosExamine)
            console.log(getApp().globalData.ifwt)
            //console.log(this.appInfo.iosExamine)
            //console.log(getApp().globalData.ifwt)
            //this.haswxlogin = this.appInfo.iosExamine ? false : (getApp().globalData.ifwt == 1 ? true : false)
            this.haswxlogin = getApp().globalData.ifwt == 1 ? true :false;
            this.isSupportMoblie();
@@ -210,11 +210,12 @@
                                uni.login({
                                    provider: 'weixin',
                                    success: (loginRes) => {
                                        console.log(loginRes);
                                        that.$u.api.wxapplogin({
                                            openid: loginRes.authResult.openid,
                                            access_token: loginRes.authResult.access_token,
                                            push_cid:that.clientid
                                            access_token: loginRes.authResult.access_token
                                        }).then(e => {
                                            console.log(e);
                                            if (e.code != 0) return that.$alert(e.msg)
                                            var res = e.data;
                                            if(res.type == 'goUser'){
uniapp/utils/getClipboard.js
@@ -5,7 +5,8 @@
    
  function getclick(callback) {
    uni.getClipboardData({
  uni.getClipboardData({
      success: res => {
        console.log(res, '======================================================');
        var nowClipData = res.data
@@ -18,11 +19,6 @@
            callback(res)
          }).catch(function (err) {
          })
          // request.post("tb/parseContent", {
          //  content: nowClipData
          // }, 'application/json').then(res => {
          //  callback(res)
          // });
        }else{
          getApp().globalData.hasMode = false
          console.log('内部复制');
@@ -417,11 +413,31 @@
          },
          position: {
            top: uni.upx2px(580) + "px",
            left: uni.upx2px(115) + "px",
            left: uni.upx2px(85) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(24) + "px",
          }
        },
        {
          tag: 'font',
          id: 'dytxt',
          text: '抖音',
          textStyles: {
            size: uni.upx2px(24) + "px",
            color: "#333333",
            align: "center",
            weight: "normal",
            whiteSpace: "nowrap",
            overflow: 'ellipsis',
            verticalAlign: 'middle'
          },
          position: {
              top: uni.upx2px(580) + "px",
              left: uni.upx2px(185) + "px",
              width: uni.upx2px(74) + "px",
              height: uni.upx2px(24) + "px",
          }
        },
        {
          tag: 'font',
          id: 'pddtxt',
@@ -437,7 +453,7 @@
          },
          position: {
            top: uni.upx2px(580) + "px",
            left: uni.upx2px(225) + "px",
            left: uni.upx2px(285) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(24) + "px",
          }
@@ -457,29 +473,41 @@
          },
          position: {
            top: uni.upx2px(580) + "px",
            left: uni.upx2px(335) + "px",
            left: uni.upx2px(385) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(24) + "px",
          }
        },
        {
          src: './static/images/app/jd.png',
          tag: 'img',
          id: 'jd',
          position: {
            top: uni.upx2px(490) + "px",
            left: uni.upx2px(115) + "px",
            left: uni.upx2px(85) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(74) + "px",
          }
        },
        {
          src: 'https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/index_icon/%E6%8A%96.png',
          tag: 'img',
          id: 'dy',
          position: {
            top: uni.upx2px(490) + "px",
            left: uni.upx2px(185) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(74) + "px",
          }
        },
        {
          src: './static/images/app/pdd.png',
          tag: 'img',
          id: 'pdd',
          position: {
            top: uni.upx2px(490) + "px",
            left: uni.upx2px(225) + "px",
            left: uni.upx2px(285) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(74) + "px",
          }
@@ -490,11 +518,12 @@
          id: 'vph',
          position: {
            top: uni.upx2px(490) + "px",
            left: uni.upx2px(335) + "px",
            left: uni.upx2px(385) + "px",
            width: uni.upx2px(74) + "px",
            height: uni.upx2px(74) + "px",
          }
        },
      ];
      nogoodsIdwrap.drawRect({
@@ -570,13 +599,14 @@
        let icontop = uni.upx2px(490)
        let iconbtm = uni.upx2px(600)
        let jdleft = uni.upx2px(115)
        let jdrgt = uni.upx2px(190)
        let pddleft = uni.upx2px(225)
        let pddrgt = uni.upx2px(300)
        let vphleft = uni.upx2px(335)
        let vphrgt = uni.upx2px(410)
        let jdleft = uni.upx2px(85)
        let jdrgt = uni.upx2px(160)
        let pddleft = uni.upx2px(285)
        let pddrgt = uni.upx2px(360)
        let vphleft = uni.upx2px(385)
        let vphrgt = uni.upx2px(460)
        let dyleft= uni.upx2px(185)
        let dyrgt= uni.upx2px(260)
        if (e.clientY > icontop && e.clientY < iconbtm) {
          if (e.clientX < jdrgt && e.clientX > jdleft) {
            console.log('去jd');
@@ -588,7 +618,16 @@
            uni.setStorageSync('clipboard',dataInfo.goods_url)
            getApp().globalData.hasMode = false
          }
          if(e.clientX < dyrgt && e.clientX > dyleft) {
                console.log('去dy');
                maskLayers.hide();
                nogoodsIdwrap.hide();
                uni.navigateTo({
                  url: '/pages/search/searchResult?storetype=4&searchText=' + dataInfo.goods_url
                })
                uni.setStorageSync('clipboard',dataInfo.goods_url)
                getApp().globalData.hasMode = false
          }
          if (e.clientX < pddrgt && e.clientX > pddleft) {
            console.log('去pdd');
            const value = uni.getStorageSync('userInfo');