|
|
@@ -111,6 +111,7 @@
|
|
|
|
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" @showCartItem="showCartItem"></FooterCart>
|
|
|
<wangCg :show.sync="notOpenShop" @bthClick="goToCg()"></wangCg>
|
|
|
+ <personComponent :isHd.sync="isHd" @goToMall="goToMall()"></personComponent>
|
|
|
<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
|
<app-activily-coupon :show.sync="isNewCustom" :info="newCustomGift" :ghsId="ghsId" />
|
|
|
|
|
|
@@ -181,12 +182,14 @@ import PxClassCommondity from "@/components/module/app-pxClass-commodity";
|
|
|
import FooterCart from "@/components/module/app-footer-cart";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
import wangCg from "./components/wangCg";
|
|
|
+import personComponent from "./components/person";
|
|
|
import allMoreSelectInput from "@/components/module/allMoreSelectInput";
|
|
|
import allMoreSelectInputMins from "@/mixins/allMoreSelectInput";
|
|
|
import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/cgProduct";
|
|
|
-import { getGhsDataApi, ghsInfo,visitMall,getClassRemind,hasClassRemind } from "@/api/ghs/index";
|
|
|
+import { getGhsDataApi, ghsInfo,visitMall,getClassRemind,hasClassRemind } from "@/api/ghs";
|
|
|
import SelPopup from "@/components/sel-popup.vue";
|
|
|
+import { getWeixinId } from "@/api/invite";
|
|
|
import AppActivilyCoupon from "@/components/module/app-activily-coupon";
|
|
|
import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
@@ -197,7 +200,12 @@ export default {
|
|
|
AppWrapperEmpty,
|
|
|
Commondity,
|
|
|
ModalModule,
|
|
|
- FooterCart,allMoreSelectInput,PxClassCommondity,wangCg,SelPopup,AppActivilyCoupon
|
|
|
+ FooterCart,
|
|
|
+ allMoreSelectInput,
|
|
|
+ PxClassCommondity,
|
|
|
+ wangCg,SelPopup,
|
|
|
+ AppActivilyCoupon,
|
|
|
+ personComponent
|
|
|
},
|
|
|
props: {
|
|
|
ghsShopAdminId:{
|
|
|
@@ -244,7 +252,9 @@ export default {
|
|
|
tjFl:0,
|
|
|
cartItemShow:false,
|
|
|
showClassRemind:false,
|
|
|
- buyNotice:0
|
|
|
+ buyNotice:0,
|
|
|
+ isHd:1,
|
|
|
+ getappIdList: {}
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -495,6 +505,7 @@ export default {
|
|
|
let id = res.data.id
|
|
|
this.ghsId = id
|
|
|
this.buyNotice = res.data.buyNotice
|
|
|
+ this.isHd = Number(res.data.isHd)
|
|
|
if(this.buyNotice == 1){
|
|
|
this.myClass = 'fadeIn'
|
|
|
}
|
|
|
@@ -522,10 +533,10 @@ export default {
|
|
|
this.ghsInfo = res.data
|
|
|
this.shopId = res.data.shopId
|
|
|
this.buyNotice = res.data.buyNotice
|
|
|
+ this.isHd = Number(res.data.isHd)
|
|
|
if(this.buyNotice == 1){
|
|
|
this.myClass = 'fadeIn'
|
|
|
}
|
|
|
-
|
|
|
this.visitMall(this.option.id)
|
|
|
uni.setNavigationBarTitle({title: this.ghsInfo.name})
|
|
|
//不是新人或者已经下过单的或者活动没有开启不显示新人红
|
|
|
@@ -550,6 +561,10 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+ getWeixinId().then(res => {
|
|
|
+ this.getappIdList = res.data
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
visitMall(ghsId){
|
|
|
//访客记录
|
|
|
@@ -585,14 +600,29 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
+ goToMall(){
|
|
|
+ // #ifdef MP-WEIXIN
|
|
|
+ let self = this
|
|
|
+ let url = 'pages/home/category'
|
|
|
+ uni.navigateToMiniProgram({
|
|
|
+ appId: this.getappIdList.mall.miniAppId,
|
|
|
+ path: url + '?account=' + self.loginInfo.shopId,
|
|
|
+ //develop 开发版 trial 体验版 release 正式版
|
|
|
+ envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
+ extraData: { 'hdShopAdminId': self.loginInfo.shopAdminId },
|
|
|
+ success (res) {}
|
|
|
+ })
|
|
|
+ // #endif
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ this.$msg('开发中...')
|
|
|
+ // #endif
|
|
|
+ },
|
|
|
goToCg() {
|
|
|
this.$util.pageTo({ url: "/pagesClient/official/apply",query:{ghsShopAdminId:this.ghsShopAdminId,hdShopAdminId:this.hdShopAdminId,fromGhsId:this.fromGhsId},type:2})
|
|
|
},
|
|
|
// 拨打电话 wangn 2021-5-6
|
|
|
toPhone(phone){
|
|
|
- uni.makePhoneCall({
|
|
|
- phoneNumber: phone
|
|
|
- });
|
|
|
+ uni.makePhoneCall({ phoneNumber: phone })
|
|
|
},
|
|
|
modalCancel() {
|
|
|
this.isModel = false;
|