优化代码
This commit is contained in:
27
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.js
vendored
Normal file
27
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.js
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-87d0cc44"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/changeEmail.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "修改邮箱",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="changeEmail data-v-87d0cc44"><view class="bg data-v-87d0cc44"><image class="bgImg data-v-87d0cc44" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-87d0cc44" bindtap="{{a}}"><image class="ReturnImg data-v-87d0cc44" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-87d0cc44">邮箱</view><view class="contentbox data-v-87d0cc44"><view class="content data-v-87d0cc44"></view></view></view>
|
||||
50
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.wxss
vendored
Normal file
50
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeEmail.wxss
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
.bg.data-v-87d0cc44 {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-87d0cc44 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-87d0cc44 {
|
||||
position: fixed;
|
||||
left: 35rpx;
|
||||
top: 120rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.title.data-v-87d0cc44 {
|
||||
position: fixed;
|
||||
top: 120rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
z-index: 1;
|
||||
}
|
||||
.ReturnImg.data-v-87d0cc44 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.contentbox.data-v-87d0cc44 {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.content.data-v-87d0cc44 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
90
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.js
vendored
Normal file
90
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.js
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const components_goEasyTool_tool = require("../../../components/goEasyTool/tool.js");
|
||||
const components_request = require("../../../components/request.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
name: "",
|
||||
id: ""
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.name = options.name;
|
||||
this.id = options.id;
|
||||
},
|
||||
methods: {
|
||||
// 提交修改
|
||||
onSubmit() {
|
||||
if (this.name.trim() === "") {
|
||||
common_vendor.wx$1.showToast({
|
||||
title: "昵称不能为空",
|
||||
icon: "none",
|
||||
duration: 1e3
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.showLoading({
|
||||
title: "修改中...",
|
||||
mask: true
|
||||
});
|
||||
components_goEasyTool_tool.goEasylogout(this.$goeasy);
|
||||
components_request.request({
|
||||
url: "user/updateUserInfo",
|
||||
method: "POST",
|
||||
data: {
|
||||
id: this.id,
|
||||
nickName: this.name
|
||||
},
|
||||
userInfo: true
|
||||
}).then((ress) => {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changeNickname.vue:75", "修改调用返回", ress);
|
||||
if (ress.code === 200) {
|
||||
common_vendor.index.showToast({
|
||||
title: "修改成功",
|
||||
icon: "success"
|
||||
});
|
||||
common_vendor.index.setStorageSync("userinfo", ress.data);
|
||||
components_goEasyTool_tool.goEasylogin(
|
||||
this.$goeasy,
|
||||
String(ress.data.id),
|
||||
ress.data.headerIcon,
|
||||
ress.data.nickName
|
||||
);
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.hideLoading();
|
||||
common_vendor.index.showToast({
|
||||
title: ress.msg,
|
||||
icon: "none"
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 输入昵称
|
||||
inputName(e) {
|
||||
this.name = e.detail.value;
|
||||
},
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args)),
|
||||
b: common_vendor.o((...args) => $options.inputName && $options.inputName(...args)),
|
||||
c: $data.name,
|
||||
d: common_vendor.o(($event) => $data.name = $event.detail.value),
|
||||
e: common_vendor.o((...args) => $options.onSubmit && $options.onSubmit(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0dc78cdb"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/changeNickname.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "修改昵称",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="changeNickname data-v-0dc78cdb"><view class="bg data-v-0dc78cdb"><image class="bgImg data-v-0dc78cdb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-0dc78cdb" bindtap="{{a}}"><image class="ReturnImg data-v-0dc78cdb" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-0dc78cdb">修改昵称</view><view class="contentbox data-v-0dc78cdb"><view class="content data-v-0dc78cdb"><input type="nickname" class="weui-input data-v-0dc78cdb" placeholder="请输入昵称" bindblur="{{b}}" value="{{c}}" bindinput="{{d}}"/><view class="btn data-v-0dc78cdb" bindtap="{{e}}">确认修改</view></view></view></view>
|
||||
69
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.wxss
vendored
Normal file
69
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changeNickname.wxss
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
|
||||
.bg.data-v-0dc78cdb {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-0dc78cdb {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-0dc78cdb {
|
||||
position: fixed;
|
||||
left: 35rpx;
|
||||
top: 120rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.title.data-v-0dc78cdb {
|
||||
position: fixed;
|
||||
top: 120rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
z-index: 1;
|
||||
}
|
||||
.ReturnImg.data-v-0dc78cdb {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.contentbox.data-v-0dc78cdb {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.content.data-v-0dc78cdb {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.weui-input.data-v-0dc78cdb {
|
||||
width: 80%;
|
||||
height: 80rpx;
|
||||
margin-top: 40rpx;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
.btn.data-v-0dc78cdb {
|
||||
width: 80%;
|
||||
height: 80rpx;
|
||||
margin-top: 50rpx;
|
||||
background-color: #00b4ff;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
line-height: 80rpx;
|
||||
border-radius: 40rpx;
|
||||
font-size: 30rpx;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
28
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.js
vendored
Normal file
28
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.js
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
title: "Hello"
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
// 返回上一页
|
||||
onBack() {
|
||||
common_vendor.index.__f__("log", "at pages/Setting/settingmod/changePassword.vue:41", 1);
|
||||
common_vendor.wx$1.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-6e931930"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/changePassword.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "修改密码",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="change-password data-v-6e931930"><view class="bg data-v-6e931930"><image class="bgImg data-v-6e931930" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-6e931930" bindtap="{{a}}"><image class="ReturnImg data-v-6e931930" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-6e931930">修改密码</view><view class="contentbox data-v-6e931930"><view class="content data-v-6e931930"></view></view></view>
|
||||
50
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.wxss
vendored
Normal file
50
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/changePassword.wxss
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
.bg.data-v-6e931930 {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-6e931930 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-6e931930 {
|
||||
position: fixed;
|
||||
left: 35rpx;
|
||||
top: 120rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.title.data-v-6e931930 {
|
||||
position: fixed;
|
||||
top: 120rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
z-index: 1;
|
||||
}
|
||||
.ReturnImg.data-v-6e931930 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.contentbox.data-v-6e931930 {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.content.data-v-6e931930 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
39
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.js
vendored
Normal file
39
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.js
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
uuid: "",
|
||||
userId: ""
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
this.uuid = options.uuid;
|
||||
this.userId = options.userId;
|
||||
},
|
||||
methods: {
|
||||
onBack() {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}
|
||||
// request({
|
||||
// url: "user/scan",
|
||||
// method: "POST",
|
||||
// data: {
|
||||
// userId: this.id,
|
||||
// uuid: res.result,
|
||||
// },
|
||||
// userInfo: true,
|
||||
// }).then((ress) => {
|
||||
// });
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o((...args) => $options.onBack && $options.onBack(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d0939827"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/Setting/settingmod/scanCode.js.map
|
||||
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "扫码验证",
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="scanCode data-v-d0939827"><view class="bg data-v-d0939827"><image class="bgImg data-v-d0939827" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png" mode="scaleToFill"/></view><view class="Return data-v-d0939827" bindtap="{{a}}"><image class="ReturnImg data-v-d0939827" src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png" mode="scaleToFill"/></view><view class="title data-v-d0939827">扫码登录</view><view class="content data-v-d0939827"><view class="box data-v-d0939827"></view></view></view>
|
||||
50
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.wxss
vendored
Normal file
50
unpackage/dist/dev/mp-weixin/pages/Setting/settingmod/scanCode.wxss
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
.bg.data-v-d0939827 {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
.bgImg.data-v-d0939827 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.Return.data-v-d0939827 {
|
||||
position: fixed;
|
||||
left: 35rpx;
|
||||
top: 120rpx;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
z-index: 2;
|
||||
}
|
||||
.title.data-v-d0939827 {
|
||||
position: fixed;
|
||||
top: 120rpx;
|
||||
left: 0;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
color: #100e0f;
|
||||
font-weight: bold;
|
||||
z-index: 1;
|
||||
}
|
||||
.ReturnImg.data-v-d0939827 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.content.data-v-d0939827 {
|
||||
position: absolute;
|
||||
top: 200rpx;
|
||||
left: 0rpx;
|
||||
right: 0rpx;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
.box.data-v-d0939827{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
Reference in New Issue
Block a user