Browse Source

修改了婚庆服务页面

v1
longjieli 6 months ago
parent
commit
c821654b89
3 changed files with 74 additions and 5 deletions
  1. +74
    -5
      pages/weddingCelebration/weddingCelebration.vue
  2. BIN
      static/weddingCelebration/copy.png
  3. BIN
      static/weddingCelebration/phone.png

+ 74
- 5
pages/weddingCelebration/weddingCelebration.vue View File

@ -3,10 +3,23 @@
<uni-nav-bar dark :fixed="true" background-color="#00aaff" :border="false" status-bar title="婚庆服务" @clickLeft="back" left-icon="left"/>
<uni-section title="婚庆服务" type="line" titleFontSize="34rpx">
<uni-card :is-shadow="false">
<!-- <image style="width: 100%;" src="https://ts1.cn.mm.bing.net/th/id/R-C.b6359b70784d251138d9dc56b650274b?rik=WiMqW3Pnt%2fImmg&riu=http%3a%2f%2fwww.deepp.com%2fimages%2fcode.png&ehk=pWaMA%2fmVIw943tuInsYTSXgBj%2f3oDTqWhx9Hx3hMtRI%3d&risl=&pid=ImgRaw&r=0" mode="widthFix" :show-menu-by-longpress="true"></image> -->
<view class="">
添加微信
<view class="weixin-top">
<view class="title">微信号:</view>
<view @click="copy(wx.keyCentent)" class="copy icon">
<image src="@/static/weddingCelebration/copy.png" mode="widthFix"></image>
</view>
</view>
<view class="number">{{ wx.keyCentent }}</view>
</uni-card>
<uni-card :is-shadow="false">
<view class="weixin-top">
<view class="title">手机号:</view>
<view @click="clickService(phone.keyCentent)" class="copy icon">
<image src="@/static/weddingCelebration/phone.png" mode="widthFix"></image>
</view>
</view>
<view class="number">{{ phone.keyCentent }}</view>
</uni-card>
</uni-section>
</view>
@ -17,15 +30,58 @@
name : 'weddingCelebration',
data(){
return {
wx : {},
phone : {},
classifyKey : [ 'wx' , 'phone' ]
}
},
onShow(){
this.getData()
},
methods : {
back(){
uni.switchTab({
url: '/pages/payment/payment'
})
}
},
//,
getWxPhoneNumber(keyValue){
this.$api('getConfig',{ keyValue }, res => {
this[keyValue] = res.result
})
},
//
getData(){
let dataList = [ 'wx' , 'phone' ]
dataList.forEach(item => {
this.getWxPhoneNumber(item)
})
},
//
copy(content) {
uni.setClipboardData({
data: content,
success: () => {
uni.showToast({
title: '复制成功',
icon: 'none'
})
}
})
},
//
clickService(phoneNumber) {
uni.makePhoneCall({
phoneNumber,
success: () => {},
fail: () => {}
});
},
}
}
</script>
@ -35,5 +91,18 @@
min-height: 100vh;
width: 750rpx;
margin: 0rpx auto;
.weixin-top{
display: flex;
justify-content: space-between;
.title{
font-size: 34rpx;
}
image{
width: 45rpx;
}
}
}
</style>

BIN
static/weddingCelebration/copy.png View File

Before After
Width: 256  |  Height: 256  |  Size: 5.8 KiB

BIN
static/weddingCelebration/phone.png View File

Before After
Width: 256  |  Height: 256  |  Size: 5.4 KiB

Loading…
Cancel
Save