|
|
@@ -11,8 +11,8 @@
|
|
|
</view>
|
|
|
|
|
|
<view v-if="ghsInfo.hasRechargeHb && ghsInfo.hasRechargeHb ==1" class="shop_intro" @tap="recharge(ghsInfo)">
|
|
|
- <text>充值送红包<text style="color:red;font-weight:700;">{{parseFloat(ghsInfo.hasRechargeHbAmount)}}</text>元
|
|
|
- <text style="z-index:999999;margin-left:15rpx;color:red;border:1px solid red;padding:3rpx 12rpx 3rpx 12rpx;border-radius:10rpx;">去充值</text>
|
|
|
+ <text>充值得<text style="color:red;font-weight:700;">{{parseFloat(ghsInfo.hasRechargeHbAmount)}}</text>元红包
|
|
|
+ <text style="z-index:999999;margin-left:15rpx;color:red;color: #3385FF;">点我充值</text>
|
|
|
</text>
|
|
|
</view>
|
|
|
|
|
|
@@ -22,7 +22,8 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <i class="iconfont icondianhua1" v-if="ghsInfo.mobile !=''" @tap="toPhone(ghsInfo.mobile)"></i>
|
|
|
+ <image class="hbImg" :src="`${constant.imgUrl}/icon/hb128.png`" mode="widthFix" @click="invite()"></image>
|
|
|
+ <view class="hbInfo" @click="invite()">邀请得红包</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="input-wrap" >
|
|
|
@@ -97,18 +98,33 @@
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
<modal-module
|
|
|
- :show="showSubmitModel"
|
|
|
- @cancel="cancelEvent"
|
|
|
- @click="submitEvent"
|
|
|
- :title="confirmContent"
|
|
|
+ :show="true"
|
|
|
+
|
|
|
+ :title="'aaaa'"
|
|
|
color="#333"
|
|
|
:size="32"
|
|
|
padding="30rpx 30rpx"
|
|
|
>
|
|
|
+
|
|
|
+ <template slot="customContent">
|
|
|
+ <view class="select-cmd_bx">
|
|
|
+ <view class="num_bx">
|
|
|
+ aaaa
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+
|
|
|
</modal-module>
|
|
|
<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" ></FooterCart>
|
|
|
<wangCg :show.sync="notOpenShop" @bthClick="toPage"></wangCg>
|
|
|
<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
|
|
|
+
|
|
|
+ <app-activily-coupon
|
|
|
+ :show.sync="isNewMan"
|
|
|
+ :info="newUserGift"
|
|
|
+ :ghsId="ghsId"
|
|
|
+ />
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -128,6 +144,7 @@ import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
import productMins from "@/mixins/product";
|
|
|
import { getGhsDataApi, ghsInfo,visitMall } from "@/api/ghs/index";
|
|
|
import SelPopup from "@/components/sel-popup.vue";
|
|
|
+import AppActivilyCoupon from "@/components/module/app-activily-coupon";
|
|
|
export default {
|
|
|
name: "cgProduct", // 开单
|
|
|
components: {
|
|
|
@@ -136,7 +153,7 @@ export default {
|
|
|
AppWrapperEmpty,
|
|
|
Commondity,
|
|
|
ModalModule,
|
|
|
- FooterCart,allMoreSelectInput,PxClassCommondity,GoodsCommondity,wangCg,SelPopup
|
|
|
+ FooterCart,allMoreSelectInput,PxClassCommondity,GoodsCommondity,wangCg,SelPopup,AppActivilyCoupon
|
|
|
},
|
|
|
props: {
|
|
|
ghsShopAdminId:{
|
|
|
@@ -173,7 +190,10 @@ export default {
|
|
|
infoData:{},
|
|
|
xjData:{},
|
|
|
xjDataInfo:{},
|
|
|
- shareDiscount:1
|
|
|
+ shareDiscount:1,
|
|
|
+ isNewMan:false,
|
|
|
+ ghsId:0,
|
|
|
+ newUserGift:{amount:100,miniCost:500,validTime:'2021-12-05'}
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -267,12 +287,24 @@ export default {
|
|
|
|
|
|
return {
|
|
|
title: this.ghsInfo.name,
|
|
|
- desc: "",
|
|
|
+ desc: "首次下单领红包",
|
|
|
path: `pagesPurchase/ghsProduct?hdShopAdminId=${this.loginInfo.shopAdminId}&ghsShopAdminId=${ghsShopAdminId}&shopId=${this.shopId}&id=0`
|
|
|
}
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+ invite(){
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '邀新人下单您得30元红包,新人得100元红包',
|
|
|
+ confirmText:'去邀请',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
recharge(item){
|
|
|
this.$util.pageTo({url:'/pagesStore/me/recharge',query:{ghsId:item.id}})
|
|
|
},
|
|
|
@@ -332,6 +364,7 @@ export default {
|
|
|
ghsInfo({shopId: this.option.shopId}).then(res => {
|
|
|
this.ghsInfo = res.data
|
|
|
let id = res.data.id
|
|
|
+ this.ghsId = id
|
|
|
this.visitMall(id)
|
|
|
//获取供货商花材
|
|
|
this.initGhsData(id,shopId);
|
|
|
@@ -340,6 +373,7 @@ export default {
|
|
|
this.option.id = res.data.id;
|
|
|
}).catch(err => {})
|
|
|
} else {
|
|
|
+ this.ghsId = this.option.id
|
|
|
//获取供货商花材
|
|
|
this.initGhsData(id,shopId);
|
|
|
getGhsDataApi({id: this.option.id}).then(res => {
|
|
|
@@ -554,7 +588,7 @@ export default {
|
|
|
margin-left: 30upx;
|
|
|
&>.shop_title{
|
|
|
margin-top: 14upx;
|
|
|
- font-size: 40px;
|
|
|
+ font-size: 36px;
|
|
|
font-weight: 600;
|
|
|
color: #060606;
|
|
|
width: 430rpx;
|
|
|
@@ -562,10 +596,10 @@ export default {
|
|
|
white-space: nowrap;
|
|
|
text-overflow: ellipsis;
|
|
|
.level{
|
|
|
- margin-left:30rpx;
|
|
|
+ margin-left:20rpx;
|
|
|
color:white;
|
|
|
- background:#3385FF;
|
|
|
- border:1px solid #3385FF;
|
|
|
+ background:#6da3f5;
|
|
|
+ border:1px solid #6da3f5;
|
|
|
border-radius:50rpx;
|
|
|
font-size:22rpx;
|
|
|
padding:6rpx 10rpx;
|
|
|
@@ -589,14 +623,21 @@ export default {
|
|
|
color: #666666;
|
|
|
}
|
|
|
}
|
|
|
- &>.iconfont{
|
|
|
- font-size: 60upx;
|
|
|
- position: absolute;
|
|
|
- right: 30upx;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- color: #3385FF;
|
|
|
+ .hbInfo{
|
|
|
+ font-size:20rpx;
|
|
|
+ position: absolute;
|
|
|
+ right:15rpx;
|
|
|
+ top: 120rpx;
|
|
|
+ color: #3385FF;
|
|
|
}
|
|
|
+ .hbImg{
|
|
|
+ width:120rpx;
|
|
|
+ height:120rpx;
|
|
|
+ position: absolute;
|
|
|
+ right:0;
|
|
|
+ top: 10rpx;
|
|
|
+ background: white;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.input-wrap {
|