zhaojs
2023-04-27 0ae224b305087a8d1be405445d06621a07f78bbd
no message
已添加1个文件
已修改9个文件
154 ■■■■■ 文件已修改
App.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/invitefriend/invitefriend.vue 115 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/system/authmobile.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/system/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/dist/dev/mp-weixin/app.js 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/dist/dev/mp-weixin/app.json 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
unpackage/dist/dev/mp-weixin/pages/index/index.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/userInfoStorage.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
App.vue
@@ -26,7 +26,8 @@
            user:{
                wxopenid:'',
                mobile:'',
                userid:''
                userid:'',
                invitecode:''
            }
        }
    }
pages.json
@@ -37,6 +37,12 @@
            }
        },
        {
            "path": "pages/invitefriend/invitefriend",
            "style": {
                "navigationBarTitleText": "邀请好友"
            }
        },
        {
            "path": "pages/agreement/xieyi",
            "style": {
                "navigationBarTitleText": "用户服务协议"
pages/index/index.vue
@@ -217,7 +217,7 @@
                    {
                        id: 4,
                        title: '整点秒杀',
                        imgurl: 'https://img.alicdn.com/imgextra/i1/2053469401/O1CN01jFhUBl2JJi9OQBQHL_!!2053469401.gif',
                        imgurl: 'https://img.ushopvip.com/xsms.png',
                        targetUrl: '/pages/index/ability/index',
                    },
                    {
@@ -235,7 +235,7 @@
                    {
                        id: 6,
                        title: '抖音',
                        imgurl: 'https://sr.ffquan.cn/cms_pic/20220309/c8k95qi3fg9k53m0g0600.gif',
                        imgurl: 'https://img.ushopvip.com/dy.png',
                        targetUrl: '/pages/index/ability/index',
                    },
                    {
@@ -247,7 +247,7 @@
                    {
                        id: 8,
                        title: '全网热卖榜',
                        imgurl: 'https://img.alicdn.com/imgextra/i1/2053469401/O1CN01g59ZH52JJi9SxWxdF_!!2053469401.gif',
                        imgurl: 'https://img.ushopvip.com/zsz.png',
                        targetUrl: '/pages/rankingList/index',
                    },
                    {
pages/invitefriend/invitefriend.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,115 @@
<template>
    <view>
        <view class="main_con">
            <image class="bg" src="https://img.ushopvip.com/fx/invitebg.jpeg"></image>
            <view class="ifre_contant uni-row" >
                <view class="flex-item-top  uni-bg-red" >
                    A
                </view>
                <view class="flex-item-bottom uni-flex" >
                    <view class="share_con">
                        <view>
                            <view class="uni-flex uni-row" style=" -webkit-justify-content: space-between;justify-content: space-between;">
                                <button type="primary" class="no-border confirm-btn confirm-btn-copy">复制链接</button>
                                <button type="primary" class="no-border confirm-btn confirm-btn-share">分享海报</button>
                            </view>
                        </view>
                        <view class="uni-share-text">*好友使用你分享的链接成功注册后,Ta将成为你的粉丝,粉丝下单,你也可以获得收益哦!</view>
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
            }
        },
        methods: {
        }
    }
</script>
<style>
    .main_con {
        margin: 0 15px 0 15px;
    }
    .bg {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        filter: blur(1px);
        opacity: .3;
    }
    .ifre_contant {
        display: flex;
        flex-direction: column;
        flex: 0 0 100rpx;
        position: relative;
        align-content:space-between;
    }
    .flex-item {
        width: 100%;
        text-align: center;
    }
    .flex-item-top {
        height: 900rpx;
        text-align: center;
    }
    .flex-item-bottom {
        width: 100%;
        margin-top: 90rpx;
        height: 200rpx;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-align-items: flex-end;
        align-items: flex-end;
    }
    .share_con {
        width: 100%;
        border-radius: 7px;
        background: #fff;
        padding: 30rpx 50rpx 30rpx 50rpx;
    }
    .confirm-btn{
        padding: 0 38upx;
        width: 40%;
        margin: 0;
        border-radius: 100px;
        height: 76upx;
        line-height: 76upx;
        font-size: 14px;
    }
    .confirm-btn-copy
    {
        background: #e7ea27;
    }
    .confirm-btn-share
    {
        background: #ff7a45;
    }
    .uni-share-text
    {
        color: #847070;
        font-size: 13px;
        margin-top: 10rpx;
    }
</style>
pages/system/authmobile.vue
@@ -6,11 +6,11 @@
            <!-- <image style="width: 120upx;height: 120upx;margin-top: 140upx;border-radius:20upx" src="../../static/logo2.png"></image> -->
            <view style="font-size: 28upx;margin-top: 32upx">你的网购省钱专家</view>
            
            <button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="confirm-btn">微信登录</button>
            <button open-type="getPhoneNumber" @getphonenumber="getPhoneNumber" class="confirm-btn">微信授权手机号</button>
            <!-- åº•部信息 -->
            <view class="footer">
                <text>登录即代表同意</text>
                <text>授权即代表同意</text>
                <!-- åè®®åœ°å€ -->
                <navigator url="/pages/agreement/mini" open-type="navigate">《隐私政策》</navigator>
                å’Œ
@@ -41,7 +41,8 @@
                //设置用户信息
                var userinfo={
                    userid:'222',
                    mobile:'1111'
                    mobile:'1111',
                    invitecode:'ersx2'
                };
                storage.setuser(userinfo);
                if(this.backurl=='')
pages/system/index.vue
@@ -9,7 +9,7 @@
                </view>
                <view class="info-box" style="margin-left: 20upx;">
                    <text class="username">{{mobile}}</text>
                    <view class="invite" @click="invitecode">填写邀请码</view>
                    <view v-show='false' class="invite" @click="invitecode">填写邀请码</view>
                </view>
            </view>
            <view class="vip-card-box">
@@ -138,7 +138,7 @@
                var checkres=storage.checkuser('/pages/system/index');
                if(checkres)
                {
                    //http://h5.ushopvip.com/pages/wxmini/fxtransfer?wxurl=pages/index/index&wxdesc=jscs&wxquery=invitecode=rerer
                }
            },
            apitest() {
unpackage/dist/dev/mp-weixin/app.js
@@ -8,6 +8,7 @@
  "./pages/system/index.js";
  "./pages/system/authmobile.js";
  "./pages/agreement/mini.js";
  "./pages/invitefriend/invitefriend.js";
  "./pages/agreement/xieyi.js";
  "./pages/index/ability/index.js";
  "./pages/index/search/index.js";
@@ -34,7 +35,8 @@
    user: {
      wxopenid: "",
      mobile: "",
      userid: ""
      userid: "",
      invitecode: ""
    }
  }
};
unpackage/dist/dev/mp-weixin/app.json
@@ -6,6 +6,7 @@
    "pages/system/index",
    "pages/system/authmobile",
    "pages/agreement/mini",
    "pages/invitefriend/invitefriend",
    "pages/agreement/xieyi",
    "pages/index/ability/index",
    "pages/index/search/index",
unpackage/dist/dev/mp-weixin/pages/index/index.js
@@ -42,7 +42,7 @@
        {
          id: 4,
          title: "整点秒杀",
          imgurl: "https://img.alicdn.com/imgextra/i1/2053469401/O1CN01jFhUBl2JJi9OQBQHL_!!2053469401.gif",
          imgurl: "https://img.ushopvip.com/xsms.png",
          targetUrl: "/pages/index/ability/index"
        },
        {
@@ -60,7 +60,7 @@
        {
          id: 6,
          title: "抖音",
          imgurl: "https://sr.ffquan.cn/cms_pic/20220309/c8k95qi3fg9k53m0g0600.gif",
          imgurl: "https://img.ushopvip.com/dy.png",
          targetUrl: "/pages/index/ability/index"
        },
        {
@@ -72,7 +72,7 @@
        {
          id: 8,
          title: "全网热卖榜",
          imgurl: "https://img.alicdn.com/imgextra/i1/2053469401/O1CN01g59ZH52JJi9SxWxdF_!!2053469401.gif",
          imgurl: "https://img.ushopvip.com/zsz.png",
          targetUrl: "/pages/rankingList/index"
        },
        {
utils/userInfoStorage.js
@@ -19,10 +19,10 @@
    },
    setuser(userinfo)
    {
        console.log(userinfo);
        getApp().globalData.user.userid=userinfo.userid;
        getApp().globalData.user.mobile=userinfo.mobile;
        getApp().globalData.user.wxopenid=userinfo.wxopenid;
        getApp().globalData.user.invitecode=userinfo.invitecode;
    },
    clearuser()
    {