Administrator
2021-06-23 fb66ec139242f3e8c43ef637105db53c645b1830
我要报样式微调
2 files modified
44 ■■■■ changed files
pages/reported/reported.vue 42 ●●●● patch | view | raw | blame | history
store/actions.js 2 ●●● patch | view | raw | blame | history
pages/reported/reported.vue
@@ -26,8 +26,8 @@
            </view>
        </view>
        <seeImgs :imgs="[]" :videos="videos" @del="delVideo" :type="'videos'"></seeImgs>
        <view class="butb" @click="upData">
            提交
        <view class="form-btn">
            <view class="butb" @click="upData">提交</view>
        </view>
    </view>
</template>
@@ -47,9 +47,7 @@
                result:'',
                place:"",
                imgs: [],
                videos: [],
                // pathUrl:'http://s16s652780.51mypc.cn/api/blade-jfpts',
                pathUrl:'http://localhost:82',
                videos: []
            }
        },
        methods: {
@@ -73,8 +71,8 @@
                    result:this.result,
                    place:this.place,
                    status:1,
                    tpaddress: '',
                    spaddress: ''
                    tpaddress:"",
                    spaddress:""
                };
                if (this.imgs.length > 0) {
                    var i = this.imgs;
@@ -142,7 +140,7 @@
                            // 循环调用uni.uploadFile ,因微信小程序只支持单文件上传
                            for (var i = 0; i < tempFilePath.length; i++) {
                                uni.uploadFile({
                                    // url: 'https://web.byisf.com/api/depl/put-depl', //仅为示例,非真实的接口地址
                                    // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl', //仅为示例,非真实的接口地址
                                    url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl',
                                    filePath: tempFilePath[i],
                                    name: 'file',
@@ -184,7 +182,7 @@
                                mask: true
                            })
                            uni.uploadFile({
                                // url: 'https://web.byisf.com/api/depl/put-depl',
                                // url: 'https://web.byisf.com/api/blade-jfpts/depl/put-depl',
                                url: 'http://web.byisf.com:82/blade-jfpts/depl/put-depl',
                                filePath: tempFilePath,
                                name: 'file',
@@ -318,18 +316,24 @@
                margin-left: 20px;
            }
        }
        .butb {
            margin: 2rem auto;
            width: 5.2rem;
            height: 5.2rem;
            // border: 1px solid rgb(46, 118, 228);
            border-radius: 3rem;
        .form-btn{
            margin-top: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            background-image: linear-gradient(to bottom, #3CA7F4, #4D7CEE);
            .butb {
                margin-bottom: 4.5rem;
                width: 5.2rem;
                height: 5.2rem;
                // border: 1px solid rgb(46, 118, 228);
                border-radius: 3rem;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #fff;
                background-image: linear-gradient(to bottom, #3CA7F4, #4D7CEE);
            }
        }
    }
</style>
store/actions.js
@@ -47,7 +47,7 @@
                    store.commit('getUserData',res.data)
                    console.log(res.data,123542);
                    data.isit = true;
                    data.userName = res.data.real_name; //警袁姓名
                    data.userName = res.data.nick_name; //警袁姓名
                    data.userID = res.data.user_id; //警袁id
                    data.avatar = res.data.avatar; //头像
                    // data.userPhon = res.user_id;