|
@@ -275,8 +275,13 @@ export default {
|
|
|
form.market_userid = this.zhuanjiainfo.id;
|
|
|
form.market_username = this.zhuanjiainfo.name;
|
|
|
form.status = '0';
|
|
|
- let res = await this.transactioncreate(form);
|
|
|
- this.$checkRes(res, '购买申请成功', res.errmsg || '购买申请失败');
|
|
|
+ if (!this.user.uid) {
|
|
|
+ this.$message.error('游客身份无法与卖家对话,请先注册');
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ let res = await this.transactioncreate(form);
|
|
|
+ this.$checkRes(res, '购买申请成功', res.errmsg || '购买申请失败');
|
|
|
+ }
|
|
|
},
|
|
|
async onSubmit() {
|
|
|
let form = {};
|
|
@@ -287,8 +292,14 @@ export default {
|
|
|
form.market_userid = this.detailInfo.userid;
|
|
|
form.market_username = this.detailInfo.contact_user;
|
|
|
form.status = '0';
|
|
|
- let res = await this.transactioncreate(form);
|
|
|
- this.$checkRes(res, '购买申请成功', res.errmsg || '购买申请失败');
|
|
|
+
|
|
|
+ if (!this.user.uid) {
|
|
|
+ this.$message.error('游客身份无法与卖家对话,请先注册');
|
|
|
+ return;
|
|
|
+ } else {
|
|
|
+ let res = await this.transactioncreate(form);
|
|
|
+ this.$checkRes(res, '购买申请成功', res.errmsg || '购买申请失败');
|
|
|
+ }
|
|
|
|
|
|
// console.log(this.user.uid);
|
|
|
// let form = {};
|