#
whycq
2024-01-18 99fb1068a772f31fdc68d7a7aeb16c89233a8893
#
1个文件已修改
31 ■■■■ 已修改文件
pages/common/modeSwitch.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/common/modeSwitch.vue
@@ -5,8 +5,7 @@
        </view>
        
        <view class="buttom">
            <button type="primary" size="mini">模式切换</button>
            <button type="primary" size="mini" @click="change()">模式切换</button>
        </view>
    </view>
</template>
@@ -15,11 +14,35 @@
    export default {
        data() {
            return {
                modeText: '默认'
                baseUrl: '',
                token: '',
                modeText: '默认',
                sign: true,
            }
        },
        onShow() {
            this.baseUrl = uni.getStorageSync('baseUrl');
            this.token = uni.getStorageSync('token');
        },
        methods: {
            getInfo() {
                let _this = this
                uni.request({
                    url: `${_this.baseUrl}/search/sign/auth/v2`,
                    data: {},
                    header: { 'token': uni.getStorageSync('token') },
                    method: 'POST',
                    success(res) {
                        res = res.data
                        if (res.code === 200) {
                        }
                    }
                })
            },
            change() {
            }
        }
    }
</script>