Style:图标更换
This commit is contained in:
@@ -140,8 +140,18 @@
|
|||||||
{{ detail.price }}</text>
|
{{ detail.price }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="bar-actions">
|
<view class="bar-actions">
|
||||||
<view class="mini-btn" @click="contactService">联系商家</view>
|
<view class="mini-btn" @click="contactService">
|
||||||
<view class="buy-btn" @click="bookNow">立即购买</view>
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/pho.png'"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>联系商家</view>
|
||||||
|
</view>
|
||||||
|
<view class="buy-btn" @click="bookNow">
|
||||||
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/icon-cart.png'" size="24"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>立即购买</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- <Calendar ref="calendar"
|
<!-- <Calendar ref="calendar"
|
||||||
@@ -475,8 +485,24 @@ export default {
|
|||||||
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1rpx solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 16rpx 24rpx; }
|
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1rpx solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 16rpx 24rpx; }
|
||||||
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
||||||
.bar-actions { display: flex; gap: 16rpx; }
|
.bar-actions { display: flex; gap: 16rpx; }
|
||||||
.mini-btn { padding: 16rpx 22rpx; border: 1rpx solid #ccc; border-radius: 32rpx; font-size: 26rpx; color: #333; }
|
.mini-btn {
|
||||||
.buy-btn { padding: 16rpx 28rpx; border-radius: 32rpx; background: #C52733; color: #fff; font-size: 26rpx; }
|
padding: 10rpx 22rpx;
|
||||||
|
border: 1rpx solid #ccc;
|
||||||
|
border-radius: 132rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #333;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.buy-btn {
|
||||||
|
padding: 10rpx 28rpx;
|
||||||
|
border-radius: 132rpx;
|
||||||
|
background: #C52733;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 26rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.gift-wrap{
|
.gift-wrap{
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,9 @@
|
|||||||
<view>{{record.name}}</view>
|
<view>{{record.name}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="share-btn">
|
<view class="share-btn">
|
||||||
<view class="share-icon"></view>
|
<view class="share-icon v12-primary">
|
||||||
|
<image :src="webUrl + '/home/share.png'" class="share-icon-image v12-primary" mode="aspectFill" />
|
||||||
|
</view>
|
||||||
<view>分</view>
|
<view>分</view>
|
||||||
<view>享</view>
|
<view>享</view>
|
||||||
<view>管</view>
|
<view>管</view>
|
||||||
@@ -40,8 +42,8 @@
|
|||||||
{{ record.desc }}
|
{{ record.desc }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-mt-3">
|
<view class="v12-mt-3 v12-align-center">
|
||||||
<view v-for="tag in record.tags" :key="tag" class="v12-primary-text v12-primary-border v12-radius-100 tag-item">{{ tag }}</view>
|
<view v-for="tag in record.tags" :key="tag" class="v12-primary-text v12-primary-border v12-radius-100 tag-item v12-mr-2">{{ tag }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-mt-2 v12-font-24" style="color: #666">
|
<view class="v12-mt-2 v12-font-24" style="color: #666">
|
||||||
{{ record.intro }}
|
{{ record.intro }}
|
||||||
@@ -74,6 +76,7 @@ export default {
|
|||||||
name: 'HousekeeperDetail',
|
name: 'HousekeeperDetail',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
record: {}
|
record: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -91,6 +94,11 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.share-icon-image{
|
||||||
|
width: 40rpx;
|
||||||
|
height: 40rpx;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
.gg-item{
|
.gg-item{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
@@ -294,6 +302,8 @@ export default {
|
|||||||
width: 44rpx;
|
width: 44rpx;
|
||||||
height: 44rpx;
|
height: 44rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: #fff;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -43,8 +43,18 @@
|
|||||||
<view class="verify-title v12-font-28 v12-primary-text">核销码:{{orderInfo.verifyCode}}</view>
|
<view class="verify-title v12-font-28 v12-primary-text">核销码:{{orderInfo.verifyCode}}</view>
|
||||||
<image class="qr-code" :src="orderInfo.verifyQrCode" mode="aspectFit"></image>
|
<image class="qr-code" :src="orderInfo.verifyQrCode" mode="aspectFit"></image>
|
||||||
<view class="contact-buttons">
|
<view class="contact-buttons">
|
||||||
<button class="contact-btn merchant-phone" @click="showPhoneDialog('phone')">商家电话</button>
|
<button class="contact-btn merchant-phone" @click="showPhoneDialog('phone')">
|
||||||
<button class="contact-btn merchant-wechat" @click="showPhoneDialog('wechat')">商家微信</button>
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/pho.png'" size="18"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>商家电话</view>
|
||||||
|
</button>
|
||||||
|
<button class="contact-btn merchant-wechat" @click="showPhoneDialog('wechat')">
|
||||||
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/wx.png'" size="18"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>商家微信</view>
|
||||||
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -139,7 +149,12 @@
|
|||||||
|
|
||||||
<!-- 底部按钮 -->
|
<!-- 底部按钮 -->
|
||||||
<view class="bottom-buttons">
|
<view class="bottom-buttons">
|
||||||
<button class="btn customer-service" @click="showPhoneDialog('company')">平台客服</button>
|
<button class="btn customer-service" @click="showPhoneDialog('company')">
|
||||||
|
<view>
|
||||||
|
<u-icon name="account" size="20"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>平台客服</view>
|
||||||
|
</button>
|
||||||
<view class="v12-align-center" v-if="orderInfo._status && ['1','2'].includes(orderInfo._status._type)">
|
<view class="v12-align-center" v-if="orderInfo._status && ['1','2'].includes(orderInfo._status._type)">
|
||||||
<button class="btn v12-primary-border v12-primary-text modify-time" @click="modifyStayTime">修改入住时间</button>
|
<button class="btn v12-primary-border v12-primary-text modify-time" @click="modifyStayTime">修改入住时间</button>
|
||||||
<button class="btn v12-primary-border v12-primary-text refund" @click="applyRefund">申请退款</button>
|
<button class="btn v12-primary-border v12-primary-text refund" @click="applyRefund">申请退款</button>
|
||||||
@@ -485,11 +500,13 @@ export default {
|
|||||||
margin-top: 30rpx;
|
margin-top: 30rpx;
|
||||||
.contact-btn {
|
.contact-btn {
|
||||||
margin: 0 20rpx;
|
margin: 0 20rpx;
|
||||||
padding: 0 40rpx;
|
padding: 0 20rpx;
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
height: 60rpx;
|
height: 60rpx;
|
||||||
line-height: 60rpx;
|
line-height: 60rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
&.merchant-phone {
|
&.merchant-phone {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 2rpx solid #333;
|
border: 2rpx solid #333;
|
||||||
@@ -560,6 +577,8 @@ export default {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 2rpx solid #333;
|
border: 2rpx solid #333;
|
||||||
color: #333;
|
color: #333;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
&.modify-time {
|
&.modify-time {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|||||||
@@ -102,8 +102,18 @@
|
|||||||
</text>
|
</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="bar-actions">
|
<view class="bar-actions">
|
||||||
<view class="mini-btn" @click="contactMerchant">联系商家</view>
|
<view class="mini-btn" @click="contactMerchant">
|
||||||
<view class="buy-btn" @click="subscribePay()">立即购买</view>
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/pho.png'"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>联系商家</view>
|
||||||
|
</view>
|
||||||
|
<view class="buy-btn" @click="subscribePay()">
|
||||||
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/icon-cart.png'" size="24"></u-icon>
|
||||||
|
</view>
|
||||||
|
<view>立即购买</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -415,7 +425,23 @@ export default {
|
|||||||
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
||||||
.total .highlight { color: #C52733; font-weight: 700; }
|
.total .highlight { color: #C52733; font-weight: 700; }
|
||||||
.bar-actions { display: flex; gap: 16rpx; }
|
.bar-actions { display: flex; gap: 16rpx; }
|
||||||
.mini-btn { padding: 16rpx 22rpx; border: 1rpx solid #ccc; border-radius: 32rpx; font-size: 26rpx; color: #333; }
|
.mini-btn {
|
||||||
.buy-btn { padding: 16rpx 28rpx; border-radius: 32rpx; background: #C52733; color: #fff; font-size: 26rpx; }
|
padding: 10rpx 22rpx;
|
||||||
|
border: 1rpx solid #ccc;
|
||||||
|
border-radius: 32rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #333;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.buy-btn {
|
||||||
|
padding: 10rpx 28rpx;
|
||||||
|
border-radius: 32rpx;
|
||||||
|
background: #C52733;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 26rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.buy-btn.disabled { background: #ccc; pointer-events: none; }
|
.buy-btn.disabled { background: #ccc; pointer-events: none; }
|
||||||
</style>
|
</style>
|
||||||
@@ -55,15 +55,27 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="isTravelGroup">
|
<view v-if="isTravelGroup">
|
||||||
<view class="btn-wrap">
|
<view class="btn-wrap" v-if="card.isOverReceive === 0 && card.isUserReceive === 0">
|
||||||
<button class="share-btn v12-white-text v12-primary" @click="setShowAddressForm(true)">
|
<button class="share-btn v12-white-text v12-primary" @click="setShowAddressForm(true)">
|
||||||
填写地址并收下
|
填写地址并收下
|
||||||
</button>
|
</button>
|
||||||
<button open-type="share" class="share-btn v12-white v12-primary-text v12-d-flex" >
|
<button v-if="card.canTransfer !== 0" open-type="share" class="share-btn v12-white v12-primary-text v12-d-flex" >
|
||||||
点击转赠给好友
|
点击转赠给好友
|
||||||
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="card.isUserReceive === 1" @click="toHome" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
||||||
|
<view class="address-btn v12-white-text v12-primary">
|
||||||
|
礼包已被领取
|
||||||
|
</view>
|
||||||
|
<view class="info-btn v12-text-center v12-font-32 v12-mt-3" style="z-index: 10">去商城看看>></view>
|
||||||
|
</view>
|
||||||
|
<view v-if="card.isUserReceive === 1" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
||||||
|
<view style="width: fit-content;" class="address-btn v12-white-text v12-primary" @click="toOrder">
|
||||||
|
您已领取礼包,去看看>>
|
||||||
|
</view>
|
||||||
|
<view class="info-btn v12-text-center v12-font-32 v12-mt-3" @click.stop="searchGift">我也要送礼</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="tips">
|
<view class="tips">
|
||||||
<view class="tip-text v12-mr-1" @click="showTips">
|
<view class="tip-text v12-mr-1" @click="showTips">
|
||||||
@@ -165,6 +177,16 @@ export default {
|
|||||||
// 分享到微信好友
|
// 分享到微信好友
|
||||||
},
|
},
|
||||||
toOrder() {
|
toOrder() {
|
||||||
|
if (this.isTravelGroup) {
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: '/pkg_product/views/sojoumOrderDetails',
|
||||||
|
query: {
|
||||||
|
id: this.order,
|
||||||
|
isView: 1
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$yrouter.push({
|
this.$yrouter.push({
|
||||||
path: "/pages/order/OrderDetails/index",
|
path: "/pages/order/OrderDetails/index",
|
||||||
query: {
|
query: {
|
||||||
@@ -231,7 +253,7 @@ export default {
|
|||||||
title: '领取成功',
|
title: '领取成功',
|
||||||
icon: 'success'
|
icon: 'success'
|
||||||
});
|
});
|
||||||
uni.redirectTo({ url: '/pkg_user/views/gift/receiveDone' })
|
uni.navigateTo({ url: '/pkg_user/views/gift/receiveDone?obj=' + JSON.stringify(res.data) })
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '领取失败,请重试',
|
title: '领取失败,请重试',
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ export default {
|
|||||||
})
|
})
|
||||||
return {
|
return {
|
||||||
title: '礼笺轻启,礼藏心意',
|
title: '礼笺轻启,礼藏心意',
|
||||||
path: `/pkg_user/views/gift/receive?code=${this.giftKey}`,
|
path: `/pkg_user/views/gift/receive?code=${this.giftKey}&isTravelGroup=${this.isGroupBuy}`,
|
||||||
imageUrl: this.shareImage
|
imageUrl: this.shareImage
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export default {
|
|||||||
})
|
})
|
||||||
return {
|
return {
|
||||||
title: '礼笺轻启,礼藏心意',
|
title: '礼笺轻启,礼藏心意',
|
||||||
path: `/pkg_user/views/gift/receive?code=${this.giftCard.code}`,
|
path: `/pkg_user/views/gift/receive?code=${this.giftCard.code}&isTravelGroup=${this.isTravelGroup}`,
|
||||||
imageUrl: this.giftCard.image
|
imageUrl: this.giftCard.image
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,24 +2,60 @@
|
|||||||
<view class="page">
|
<view class="page">
|
||||||
<!-- 商品信息展示区 -->
|
<!-- 商品信息展示区 -->
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<image class="cover" :src="mock.product.image" mode="aspectFill" />
|
<image class="cover" :src="record.travelGroupOrderInfo.travelGroupProduct.mainImage" mode="aspectFill" />
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="title">{{ mock.product.name }}</view>
|
<view class="title">{{ record.travelGroupOrderInfo.travelGroupProduct.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 商家联系信息与二维码 -->
|
<!-- 商家联系信息与二维码 -->
|
||||||
<view class="section">
|
<view class="section">
|
||||||
<view class="code">核销码:{{ mock.verify.code }}</view>
|
<view class="code">核销码:{{ record.verifyCode }}</view>
|
||||||
<view class="qrcode-wrap">
|
<view class="qrcode-wrap">
|
||||||
<image class="qrcode" :src="mock.verify.qrcode" mode="widthFix" />
|
<image class="qrcode" :src="record.verifyQrCode" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
<view class="notice v12-primary-text v12-font-24">注:请提前和商家确认入住时间</view>
|
<view class="notice v12-primary-text v12-font-24">注:请提前和商家确认入住时间</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 操作按钮 -->
|
<!-- 操作按钮 -->
|
||||||
<view class="actions">
|
<view class="actions">
|
||||||
<button class="primary" @click="goGiftList">您已领取礼包,去查看</button>
|
<button class="primary v12-font-32" @click="goGiftList">您已领取礼包,去查看</button>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 商家联系方式 -->
|
||||||
|
<view class="contact-section">
|
||||||
|
<view class="contact-btn phone-btn" @click="showPop('phone')">
|
||||||
|
<view class="btn-icon">
|
||||||
|
<u-icon :name="webUrl + '/home/pho.png'" size="16" />
|
||||||
|
</view>
|
||||||
|
<view class="btn-text">商家电话</view>
|
||||||
|
</view>
|
||||||
|
<view class="contact-btn wechat-btn" @click="showPop('wechat')">
|
||||||
|
<view class="btn-icon">
|
||||||
|
<u-icon :name="webUrl + '/home/wx.png'" size="16" />
|
||||||
|
</view>
|
||||||
|
<view class="btn-text">商家微信</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<u-popup :show="showPhonePopup" mode="center" round="10" :safe-area-inset-bottom="false">
|
||||||
|
<view class="phone-popup">
|
||||||
|
<view class="phone-title">{{ title }}</view>
|
||||||
|
<view class="phone-number">{{ popContent || '暂无'}}</view>
|
||||||
|
<view class="phone-actions v12-align-center" v-if="title === '商家电话'">
|
||||||
|
<!-- <button class="action-btn cancel" @click="showPhonePopup = false">取消</button>
|
||||||
|
<button class="action-btn call" @click="makePhoneCall">立即拨打</button> -->
|
||||||
|
<view class="v12-font-28 v12-primary-text" @click="contactMerchant('phone')">立即拨打</view> | <view class="v12-font-28" @click="showPhonePopup = false">取消</view>
|
||||||
|
</view>
|
||||||
|
<view class="phone-actions v12-align-center" v-if="title === '商家微信'">
|
||||||
|
<!-- <button class="action-btn cancel" @click="showPhonePopup = false">取消</button>
|
||||||
|
<button class="action-btn call" @click="makePhoneCall">立即拨打</button> -->
|
||||||
|
<view class="v12-font-28 v12-primary-text" @click="contactMerchant('wechat')">立即复制</view> | <view class="v12-font-28" @click="showPhonePopup = false">取消</view>
|
||||||
|
</view>
|
||||||
|
<view class="phone-actions v12-align-center" v-if="title === '平台电话'" >
|
||||||
|
<!-- <button class="action-btn cancel" @click="showPhonePopup = false">取消</button>
|
||||||
|
<button class="action-btn call" @click="makePhoneCall">立即拨打</button> -->
|
||||||
|
<view v-if="title === '平台电话'" class="v12-font-28 v12-primary-text" @click="contactMerchant('phone')">立即拨打</view> | <view class="v12-font-28" @click="showPhonePopup = false">取消</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -28,41 +64,58 @@ export default {
|
|||||||
name: 'ReceiveDone',
|
name: 'ReceiveDone',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
mock: {
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
product: {
|
showPhonePopup: false,
|
||||||
image: 'https://resource.xdd618.com/1/202501020/1760933080303_%E5%A4%A7%E7%90%86%E9%86%92%E6%9D%A5%20(5).jpg',
|
popContent: '',
|
||||||
name: '醒来客栈大床房3晚',
|
title: '',
|
||||||
type: 'countyFamous',
|
// 模态窗口状态管理
|
||||||
desc: '迎曦楼大床房37-48㎡,房间设计温馨,设施齐全,柔软的床铺和明亮的空间,收容您所有的疲惫。',
|
showPhoneModal: false,
|
||||||
price: 1887
|
showWechatModal: false,
|
||||||
},
|
record: {}
|
||||||
order: {
|
|
||||||
id: '1981535966489214976',
|
|
||||||
start: '2025-12-05',
|
|
||||||
end: '2025-12-08',
|
|
||||||
minDays: 4
|
|
||||||
},
|
|
||||||
contact: {
|
|
||||||
wechat: '19187244812'
|
|
||||||
},
|
|
||||||
verify: {
|
|
||||||
code: '966489214976',
|
|
||||||
qrcode: 'https://shop.xdd618.com/api/file/qrcode/966489214976_yshop.jpg'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
// 可扩展:如果后续需要从 query 读取数据,可在此处理
|
// 可扩展:如果后续需要从 query 读取数据,可在此处理
|
||||||
|
this.record = JSON.parse(decodeURIComponent(query.obj))
|
||||||
|
console.log(this.record);
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
copyWechat() {
|
showPop(type) {
|
||||||
uni.setClipboardData({
|
this.showPhonePopup = true
|
||||||
data: this.mock.contact.wechat,
|
this.title = type === 'phone' ? '商家电话' : '商家微信'
|
||||||
success: () => {
|
this.popContent = type === 'phone' ? this.record.merPhone : this.record.merWechat
|
||||||
uni.showToast({ title: '微信号已复制', icon: 'success' })
|
},
|
||||||
}
|
contactMerchant(type) {
|
||||||
})
|
if (type === 'phone') {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: this.record.merPhone,
|
||||||
|
success: () => {
|
||||||
|
console.log('///');
|
||||||
|
|
||||||
|
uni.showToast({
|
||||||
|
title: '正在拨打电话',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
fail: () => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '拨打失败',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (type === 'wechat') {
|
||||||
|
uni.setClipboardData({
|
||||||
|
data: this.record.merWechat,
|
||||||
|
success: () => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '微信号已复制',
|
||||||
|
icon: 'success'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
goGiftList() {
|
goGiftList() {
|
||||||
this.$yrouter.push('/pkg_user/views/giftList')
|
this.$yrouter.push('/pkg_user/views/giftList')
|
||||||
@@ -75,6 +128,67 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.contact-btn{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15rpx 30rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 100rpx;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
.contact-section{
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
margin-top: 40rpx;
|
||||||
|
}
|
||||||
|
.phone-popup {
|
||||||
|
width: 400rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 40rpx;
|
||||||
|
|
||||||
|
.phone-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone-number {
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #333;
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
gap: 20rpx;
|
||||||
|
|
||||||
|
.action-btn {
|
||||||
|
flex: 1;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 40rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
|
||||||
|
&.cancel {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.call {
|
||||||
|
background-color: var(--v12-color-primary);
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.page {
|
.page {
|
||||||
padding: 24rpx 24rpx 120rpx;
|
padding: 24rpx 24rpx 120rpx;
|
||||||
}
|
}
|
||||||
@@ -189,7 +303,7 @@ export default {
|
|||||||
background: #C52733;
|
background: #C52733;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 100rpx;
|
border-radius: 100rpx;
|
||||||
padding: 0rpx 40rpx;
|
padding: 0rpx 120rpx;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
.ghost {
|
.ghost {
|
||||||
|
|||||||
Reference in New Issue
Block a user