1.4 修改概念中心日期默认传值
This commit is contained in:
@@ -33,7 +33,7 @@ const _sfc_main = {
|
||||
* @param {Object} e
|
||||
*/
|
||||
chooseAvatar(e) {
|
||||
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:68", e);
|
||||
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:71", e);
|
||||
this.avatar = e.detail.avatarUrl;
|
||||
},
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ const _sfc_main = {
|
||||
* @param {Object} e
|
||||
*/
|
||||
sexChange(e) {
|
||||
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:77", e);
|
||||
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:80", e);
|
||||
let value = e.detail.value;
|
||||
this.sex = this.sexList[value];
|
||||
},
|
||||
@@ -50,7 +50,7 @@ const _sfc_main = {
|
||||
* @param {Object} e
|
||||
*/
|
||||
getPhoneNumData(e) {
|
||||
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:87", e);
|
||||
common_vendor.index.__f__("log", "at pages/mine/basicInfo/basicInfo.vue:90", e);
|
||||
if (e.detail.errMsg == "getPhoneNumber:ok") {
|
||||
let param = { code: e.detail.code };
|
||||
request_api.wxBindPhone(param).then((res) => {
|
||||
@@ -69,9 +69,9 @@ const _sfc_main = {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击下一步
|
||||
* 点击完成或下一步
|
||||
*/
|
||||
clickNext() {
|
||||
clickFinishOrNext(type) {
|
||||
if (!this.avatar && !this.avatarUrl) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请选择头像",
|
||||
@@ -110,9 +110,12 @@ const _sfc_main = {
|
||||
isFile: 1
|
||||
};
|
||||
request_api.updateBasicInfo(param).then((res) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine/investPreference/investPreference"
|
||||
});
|
||||
if (type == 1) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine/investPreference/investPreference"
|
||||
});
|
||||
} else
|
||||
common_vendor.index.navigateBack();
|
||||
}).catch((error) => {
|
||||
});
|
||||
} else {
|
||||
@@ -123,9 +126,12 @@ const _sfc_main = {
|
||||
bio: this.profile
|
||||
};
|
||||
request_api.updateBasicInfo(param).then((res) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine/investPreference/investPreference"
|
||||
});
|
||||
if (type == 1) {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine/investPreference/investPreference"
|
||||
});
|
||||
} else
|
||||
common_vendor.index.navigateBack();
|
||||
}).catch((error) => {
|
||||
});
|
||||
}
|
||||
@@ -180,7 +186,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
o: $data.profile,
|
||||
p: common_vendor.o(($event) => $data.profile = $event.detail.value),
|
||||
q: common_vendor.s("top:" + $data.contentTop + "px;"),
|
||||
r: common_vendor.o(($event) => $options.clickNext())
|
||||
r: common_vendor.o(($event) => $options.clickFinishOrNext(0)),
|
||||
s: common_vendor.o(($event) => $options.clickFinishOrNext(1))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
|
||||
Reference in New Issue
Block a user