|
|
@@ -24,13 +24,13 @@
|
|
|
</template>
|
|
|
</my_form>
|
|
|
|
|
|
- <view style="height: 70px;" />
|
|
|
+ <view v-if="!origin" style="height: 70px;" />
|
|
|
<view class="footer">
|
|
|
<view class="add" :class="uncomplete ? 'forbidden' : ''" hover-class="navigator-hover"
|
|
|
@click="uncomplete || loading ? '' : submit()">
|
|
|
<u-loading-icon v-if="loading" />
|
|
|
<block v-else>
|
|
|
- 保存名片
|
|
|
+ {{ origin == 'my' ? '保存' : '保存名片' }}
|
|
|
</block>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -53,10 +53,12 @@ export default {
|
|
|
userid: 0,
|
|
|
isShow: true,
|
|
|
isSubmit:false,
|
|
|
+ origin:''
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.userid = options.id
|
|
|
+ this.origin = options.origin
|
|
|
this.init()
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: '修改名片'
|
|
|
@@ -208,26 +210,29 @@ export default {
|
|
|
label: "地址",
|
|
|
isMust: false,//是否必填
|
|
|
value: "",
|
|
|
- },{
|
|
|
- key: "remarks",
|
|
|
- type: "textarea",
|
|
|
- label: "自我介紹",
|
|
|
- isMust: true,//是否必填
|
|
|
- value: '',
|
|
|
- },{
|
|
|
- key: "attachmentids",
|
|
|
- type: "upload",
|
|
|
- label: "图片",
|
|
|
- placeholder: "可上传多个图片",
|
|
|
- accept: "image*/",
|
|
|
- ownertable: "temporary",
|
|
|
- ownerid: 999,
|
|
|
- usetype: 'default',
|
|
|
- allowUpload: true,
|
|
|
- allowDelete: true,
|
|
|
- value: [],
|
|
|
- marginTop: 10
|
|
|
- }];
|
|
|
+ },];
|
|
|
+ if (!this.origin) {
|
|
|
+ form.push({
|
|
|
+ key: "remarks",
|
|
|
+ type: "textarea",
|
|
|
+ label: "自我介紹",
|
|
|
+ isMust: false,//是否必填
|
|
|
+ value: '',
|
|
|
+ },{
|
|
|
+ key: "attachmentids",
|
|
|
+ type: "upload",
|
|
|
+ label: "图片",
|
|
|
+ placeholder: "可上传多个图片",
|
|
|
+ accept: "image*/",
|
|
|
+ ownertable: "temporary",
|
|
|
+ ownerid: 999,
|
|
|
+ usetype: 'default',
|
|
|
+ allowUpload: true,
|
|
|
+ allowDelete: true,
|
|
|
+ value: [],
|
|
|
+ marginTop: 10
|
|
|
+ })
|
|
|
+ }
|
|
|
this.$Http.basic({
|
|
|
"id": 20240514161502,
|
|
|
"content": {
|
|
|
@@ -257,6 +262,7 @@ export default {
|
|
|
this.onUpload = ing;
|
|
|
},
|
|
|
isUncomplete(uncomplete) {
|
|
|
+ console.log(uncomplete);
|
|
|
this.uncomplete = uncomplete;
|
|
|
},
|
|
|
submit() {
|
|
|
@@ -272,7 +278,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
console.log("修改信息", res)
|
|
|
if (this.cutoff(res.msg)) return;
|
|
|
- if (data.files.temporarys.length) {
|
|
|
+ if (!this.origin && data.files.temporarys.length) {
|
|
|
this.onUpload = true;
|
|
|
await this.$Http.basic({
|
|
|
"classname": "system.attachment.Attachment",
|
|
|
@@ -292,7 +298,7 @@ export default {
|
|
|
};
|
|
|
this.loading = true;
|
|
|
|
|
|
- if (data.files.linksids.length) {
|
|
|
+ if (!this.origin && data.files.linksids.length) {
|
|
|
await this.$Http.basic({
|
|
|
"classname": "system.attachment.Attachment",
|
|
|
"method": "deleteFileLink",
|