zhao_js
2023-11-28 6b4ede1806da26d93f5fad839199fe8b2e0641f5
no message
已修改3个文件
59 ■■■■ 文件已修改
uniapp/components/indexPage.vue 28 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/login/setInviteCode.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/pages/mine/setting/modifyInfo.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
uniapp/components/indexPage.vue
@@ -39,7 +39,7 @@
                                <swiper-item v-for="(sliderItem, index) in navbarShowList" :key="index">
                                    <view class="slider_itemslist rowSta">
                                        <view class="item colCen" v-for="(item, idx) in sliderItem" :key="idx"
                                            @click="goUrl(item)">
                                            @click="perVerification(item)">
                                            <image :src="item.image" :lazy-load="true" mode="aspectFit"></image>
                                            <view class="desc">{{ item.mname }}</view>
                                        </view>
@@ -404,6 +404,9 @@
            </view>
        </scroll-view>
        <slideTop v-if="scrollTop>1000" @toTop='scrolltoTops'></slideTop>
        <u-modal v-model="showConModel" show-cancel-button :content="conContent" @confirm="modConfirm" :async-close="true">
        </u-modal>
    </view>
</template>
@@ -505,6 +508,9 @@
                wphbanner:[],
                haspreference:false,
                preferData:{},
                showConModel:false,
                conContent:'',
                urlInfo:{}
            }
        },
        watch: {
@@ -551,6 +557,26 @@
            }, 1500)
        },
        methods: {
            perVerification(info)
            {
                this.urlInfo=info;
                var mapPer="本地生活,电影7折"
                var menuName=info.mname;
                if(mapPer.indexOf(menuName)>-1)
                {
                    this.conContent='应用将申请位置权限,用于快速选定所在城市';
                    this.showConModel=true;
                }
                else
                {
                    this.goUrl(info);
                }
            },
            modConfirm()
            {
                this.showConModel=false;
                this.goUrl(this.urlInfo);
            },
            checkPreferenceGoods()
            {//是否有推荐
                var that = this;
uniapp/pages/login/setInviteCode.vue
@@ -1,5 +1,5 @@
<template style="background:#fff">
    <view class="invite-code-container colCen borderBox">
    <view v-if="isshowpage" class="invite-code-container colCen borderBox">
        <view class="model-title rowCenCen">
            请输入邀请码
        </view>
@@ -66,17 +66,20 @@
        data(){
            return{
                isShowCode:false,
                inviteCode:'',
                inviteCode:'DAFANGUAN',
                appInfo:'',
                inviterShow:false,
                platform:'',
                commonInvite:[],
                inviteIndex:0
                inviteIndex:0,
                isshowpage:false
            }
        },
        onLoad()
        {
            this.getInviter();
            //this.getInviter();
            //去除邀请码
            this.setCode();
        },
        mounted() {
            this.appInfo = uni.getStorageSync('appInfo');
uniapp/pages/mine/setting/modifyInfo.vue
@@ -2,7 +2,7 @@
    <view class="modifyInfo-wrapper wrapperLayer">
        <titleBar :titleText="'修改信息'" :pageForm='"modifyInfo"'></titleBar>
        <view class="pagebottom-container colCen">
            <view class="userAvator-bar pd30 rowCenBet" @tap="avatarChoose()">
            <view class="userAvator-bar pd30 rowCenBet" @tap="perVerification()">
                <view class="leftkey">
                    头像
                </view>
@@ -27,7 +27,11 @@
                </view>
            </view>
        </view>
        <u-modal v-model="showConModel" show-cancel-button :content="conContent" @confirm="modConfirm" :async-close="true">
        </u-modal>
    </view>
</template>
<script>
@@ -40,7 +44,9 @@
        },
        data() {
            return {
                user:''
                user:'',
                showConModel:false,
                conContent:'',
            }
        },
        onShow() {
@@ -49,6 +55,16 @@
            })
        },
        methods:{
            perVerification()
            {
                this.conContent='应用将申请存储、拍照的权限,仅用于头像的图片选取';
                this.showConModel=true;
            },
            modConfirm()
            {
                this.showConModel=false;
                this.avatarChoose();
            },
            nickname(){
                uni.navigateTo({
                    url:'./setNickname?nickName='+this.user.nickname