1 line
16 KiB
Plaintext
1 line
16 KiB
Plaintext
|
{"version":3,"file":"info.js","sources":["../../../../../../src/modules/mall/user/info.vue","../../../../../../uniPage:/bW9kdWxlc1xtYWxsXHVzZXJcaW5mby52dWU"],"sourcesContent":["<!-- 用户信息 -->\r\n<template>\r\n <s-layout title=\"用户信息\" class=\"set-userinfo-wrap\">\r\n <uni-forms\r\n :model=\"state.model\"\r\n :rules=\"state.rules\"\r\n labelPosition=\"left\"\r\n border\r\n class=\"form-box\"\r\n >\r\n <!-- 头像 -->\r\n <view class=\"ss-flex ss-row-center ss-col-center ss-p-t-60 ss-p-b-0 bg-white\">\r\n <view class=\"header-box-content\">\r\n <su-image\r\n class=\"content-img\"\r\n isPreview\r\n :current=\"0\"\r\n :src=\"state.model?.avatar\"\r\n :height=\"160\"\r\n :width=\"160\"\r\n :radius=\"80\"\r\n mode=\"scaleToFill\"\r\n />\r\n <view class=\"avatar-action\">\r\n <!-- #ifdef MP -->\r\n <button\r\n class=\"ss-reset-button avatar-action-btn\"\r\n open-type=\"chooseAvatar\"\r\n @chooseavatar=\"onChooseAvatar\"\r\n >\r\n 修改\r\n </button>\r\n <!-- #endif -->\r\n <!-- #ifndef MP -->\r\n <button class=\"ss-reset-button avatar-action-btn\" @tap=\"onChangeAvatar\">修改</button>\r\n <!-- #endif -->\r\n </view>\r\n </view>\r\n </view>\r\n\r\n <view class=\"bg-white ss-p-x-30\">\r\n <!-- 昵称 + 性别 -->\r\n <uni-forms-item name=\"nickname\" label=\"昵称\">\r\n <uni-easyinput\r\n v-model=\"state.model.nickname\"\r\n type=\"nickname\"\r\n placeholder=\"设置昵称\"\r\n :inputBorder=\"false\"\r\n :placeholderStyle=\"placeholderStyle\"\r\n />\r\n </uni-forms-item>\r\n <uni-forms-item name=\"sex\" label=\"性别\">\r\n <view class=\"ss-flex ss-col-center ss-h-100\">\r\n <radio-group @change=\"onChangeGender\" class=\"ss-flex ss-col-center\">\r\n <label class=\"radio\" v-for=\"item in sexRadioMap\" :key=\"item.value\">\r\n <view class=\"ss-flex ss-col-center ss-m-r-32\">\r\n <radio\r\n :value=\"item.value\"\r\n color=\"var(--ui-BG-Main)\"\r\n style=\"transform: scale(0.8)\"\r\n :checked=\"parseInt(item.value) === state.model?.sex\"\r\n />\r\n <view class=\"gender-name\">{{ item.name }}</view>\r\n </view>\r\n </label>\r\n </radio-group>\r\n </view>\r\n </uni-forms-item>\r\n\r\n <uni-forms-item name=\"mobile\" label=\"手机号\" @tap=\"onChangeMobile\">\r\n <uni-easyinput\r\n v-model=\"userInfo.mobile\"\r\n placeholder=\"请绑定手机号\"\r\n :inputBorder=\"false\"\r\n disabled\r\n :styles=\"{ disableColor: '#fff' }\"\r\n :placeholderStyle=\"placeholderStyle\"\r\n :clearable=\"false\"\r\n >\r\n <template v-slot:right>\r\n <view class=\"ss-flex ss-col-center\">\r\n <su-radio v-if=\"userInfo.verification?.mobile\" :modelValue=\"true\" />\r\n <button v-else class=\"ss-reset-button ss-flex ss-col-center ss-row-center\">\r\n <text class=\"_icon-forward\" style=\"font-size: 26rpx; color: #bbbbbb\"></text>\r\n </button>\r\n </view>\r\n </template>\r\n </uni-easyinput>\r\n </uni-forms-item>\r\n\r\n <uni-forms-item name=\"password\" label=\"登录密码\" @tap=\"onSetPassword\">\r\n <uni-easyinput\r\n v-model=\"userInfo.password\"\r\n placeholder=\"点击修改登录密码\"\r\n :inputBorder=\"false\"\r\n :styles=\"{ disableColor: '#fff' }\"\r\n disabled\r\n
|