|
@@ -98,7 +98,7 @@
|
|
|
<view class="cgs"> 采购商:{{ item.purchaserCount }} 人 </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view @click.stop="join(item)">
|
|
|
+ <view @click.stop="join(item)" v-if="item.isAddGroupStatus == 0">
|
|
|
<u-button
|
|
|
type="primary"
|
|
|
text="加入"
|
|
@@ -179,6 +179,19 @@
|
|
|
<script>
|
|
|
import gjsSelectCity from "@/components/gjs-selectCity.vue";
|
|
|
import classification from "@/components/classification.vue";
|
|
|
+import { isPC, isUniFrameWork } from "../../TUIKit/utils/env";
|
|
|
+import { TUIGlobal } from "@tencentcloud/universal-api";
|
|
|
+import {
|
|
|
+ TUITranslateService,
|
|
|
+ TUIStore,
|
|
|
+ StoreName,
|
|
|
+ IGroupModel,
|
|
|
+ TUIFriendService,
|
|
|
+ Friend,
|
|
|
+ FriendApplication,
|
|
|
+ TUIUserService,
|
|
|
+ TUIConversationService,
|
|
|
+} from "@tencentcloud/chat-uikit-engine";
|
|
|
export default {
|
|
|
components: {
|
|
|
gjsSelectCity,
|
|
@@ -250,7 +263,7 @@ export default {
|
|
|
} else {
|
|
|
let params = {
|
|
|
body: this.itemData.introduction,
|
|
|
- attach: 1,
|
|
|
+ attach: 0,
|
|
|
oriMon: this.itemData.price,
|
|
|
payKinds: 0,
|
|
|
payMeth: 2,
|
|
@@ -260,6 +273,7 @@ export default {
|
|
|
this.api.addImGroupOrder(params).then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
this.show = false;
|
|
|
+
|
|
|
webUni.webView.navigateTo({
|
|
|
url:
|
|
|
`/subpages/message/pay/index?info=` + encodeURIComponent(res.data.result),
|
|
@@ -278,8 +292,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
queryList(pageNumber, pageSize) {
|
|
|
+ let userid = uni.getStorageSync("userId");
|
|
|
this.queryParams.pageNumber = pageNumber;
|
|
|
this.queryParams.pageSize = pageSize;
|
|
|
+ this.queryParams.userId = userid;
|
|
|
let dataList = [];
|
|
|
this.$refs.paging.complete(dataList);
|
|
|
this.api
|
|
@@ -296,9 +312,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
grouoDetail(record) {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/group/data?info=" + JSON.stringify(record),
|
|
|
- });
|
|
|
+ console.log(record);
|
|
|
+ if (record.isAddGroupStatus == 1) {
|
|
|
+ isUniFrameWork &&
|
|
|
+ TUIGlobal?.navigateTo({
|
|
|
+ url: "/TUIKit/components/TUIChat/index",
|
|
|
+ });
|
|
|
+ TUIConversationService.switchConversation(`GROUP${record.groupId}`);
|
|
|
+ } else {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: "/pages/group/data?info=" + JSON.stringify(record),
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
// 筛选点击事件
|
|
|
screenClick(i) {
|