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]]);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view><nav-bar wx:if="{{a}}" u-i="8b6eb184-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="avatarC fixed" style="{{f}}"><image class="avatar" src="{{c}}" mode="aspectFill"></image><image class="icon absolute" src="{{d}}" mode="widthFix"></image><button class="absolute" open-type="chooseAvatar" bindchooseavatar="{{e}}"></button></view><view class="basicInfoC fixed" style="{{q}}"><view class="title">基本信息</view><view class="section">昵称</view><view class="inputC"><input type="nickname" value="{{g}}" bindinput="{{h}}"/></view><view class="section">手机号</view><view class="selectC flex relative">{{i}} <button class="absolute" open-type="getPhoneNumber" bindgetphonenumber="{{j}}"></button></view><view class="section">性别</view><picker mode="selector" range="{{m}}" bindchange="{{n}}"><view class="selectC flex"><view class="flex1">{{k}}</view><image class="arrow" src="{{l}}" mode="widthFix"></image></view></picker><view class="section">个人简介</view><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA" value="{{o}}" bindinput="{{p}}"></textarea></block></view></view><view class="next fixed" bindtap="{{r}}">下一步</view></view>
|
||||
<view><nav-bar wx:if="{{a}}" u-i="8b6eb184-0" bind:__l="__l" u-p="{{a}}"></nav-bar><image class="topBg absolute" src="{{b}}" mode="widthFix"></image><view class="avatarC fixed" style="{{f}}"><image class="avatar" src="{{c}}" mode="aspectFill"></image><image class="icon absolute" src="{{d}}" mode="widthFix"></image><button class="absolute" open-type="chooseAvatar" bindchooseavatar="{{e}}"></button></view><view class="basicInfoC fixed" style="{{q}}"><view class="title">基本信息</view><view class="section">昵称</view><view class="inputC"><input type="nickname" value="{{g}}" bindinput="{{h}}"/></view><view class="section">手机号</view><view class="selectC flex relative">{{i}} <button class="absolute" open-type="getPhoneNumber" bindgetphonenumber="{{j}}"></button></view><view class="section">性别</view><picker mode="selector" range="{{m}}" bindchange="{{n}}"><view class="selectC flex"><view class="flex1">{{k}}</view><image class="arrow" src="{{l}}" mode="widthFix"></image></view></picker><view class="section">个人简介</view><view class="textareaC"><block wx:if="{{r0}}"><textarea placeholder="简单介绍一下自己吧" placeholder-style="color:#AAA" value="{{o}}" bindinput="{{p}}"></textarea></block></view></view><view class="bottomC fixed flex"><view class="finish btn" bindtap="{{r}}">完成</view><view class="next btn flex1" bindtap="{{s}}">下一步</view></view></view>
|
||||
@@ -95,16 +95,25 @@
|
||||
font-weight: 500;
|
||||
color: #555;
|
||||
}
|
||||
.next {
|
||||
background-color: #F97316;
|
||||
.bottomC {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 73rpx;
|
||||
margin: 0 25rpx;
|
||||
}
|
||||
.bottomC .btn {
|
||||
line-height: 80rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 500;
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
.bottomC .finish {
|
||||
background-color: #FFE9D9;
|
||||
width: 226rpx;
|
||||
color: #F97316;
|
||||
}
|
||||
.bottomC .next {
|
||||
background-color: #F97316;
|
||||
margin-left: 20rpx;
|
||||
color: white;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user