+
联系电话
@@ -167,7 +167,7 @@ export default {
newForm:{
wxname:'',
wxavatar:'https://bocai-cms.oss-cn-beijing.aliyuncs.com/web-resource/pugongying/default.svg',
- companyName: (uni.getStorageSync("apply-userinfo") && uni.getStorageSync("apply-userinfo").agencyName) || '',
+ companyName: (uni.getStorageSync("apply-userinfo") && uni.getStorageSync("apply-userinfo").fullName) || '',
phone: "",
remark:''
},
@@ -245,13 +245,13 @@ export default {
},
methods: {
onChooseAvatar(e) {
+ let that = this;
console.log("onChooseAvatar", e);
if (this.chooseAvatarLoading) return;
- this.chooseAvatarLoading = true;
- this.newForm.wxavatar = e.detail.avatarUrl;
- // 重置状态,防止快速重复点击导致的冲突
+ that.chooseAvatarLoading = true;
+ that.newForm.wxavatar = e.detail.avatarUrl;
setTimeout(() => {
- this.chooseAvatarLoading = false;
+ that.chooseAvatarLoading = false;
}, 1000);
},
init() {
@@ -333,7 +333,6 @@ export default {
tel: that.newForm.phone,
remark: that.newForm.remark,
};
- console.log("提交参数:", params);
// 按下
that.btnSpeed = 0;
// 请求中
@@ -342,8 +341,10 @@ export default {
title: "正在发送",
});
that.btnloading = true;
- setTimeout(() => {
+ that.G.uploadFile(that.newForm.wxavatar, (res) => {
uni.hideLoading();
+ params.avatar = res;
+ console.log("提交参数:", params);
that.G.Get(
that.api.bind_subscribeSubmit + "/" + that.info.agencyId,
params,
@@ -360,7 +361,7 @@ export default {
}, 1500);
}
)
- }, 500);
+ });
},
goPage($path) {
uni.navigateTo({
@@ -409,4 +410,16 @@ export default {
line-height: 42px;
border-radius: 25px;
}
+
+.labes{
+ position: relative;
+ &::after{
+ content: "*";
+ position: absolute;
+ top: 14px;
+ font-size: 14px;
+ color: red;
+ right: -6px;
+ }
+}