Commit fbf8c6c5 by chenwq

样式

1 parent 197ef961
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
<view class="top"> <view class="top">
<view class="message"> <view class="message">
<glsx-image src="personal/customer_head.png" class="avatar" /> <glsx-image src="personal/customer_head.png" class="avatar" />
<!-- <image wx:else src="{{item.avatarUrl}}" class="avatar"></image> -->
<view class="message-text"> <view class="message-text">
<view class="name">{{item.merchantName}}</view> <view class="name">{{item.merchantName}}</view>
<view class="tips">{{item.merchantId}} | {{item.contactName}} {{item.phone}}</view> <view class="tips">{{item.merchantId}} | {{item.contactName}} {{item.phone}}</view>
......
...@@ -55,7 +55,8 @@ Page({ ...@@ -55,7 +55,8 @@ Page({
}, },
getInviteCode() { getInviteCode() {
let { customerInfo } = this.data let { customerInfo, popupVal } = this.data
let _this = this
let sceneStr = '' let sceneStr = ''
let sceneToNum = { let sceneToNum = {
'SC001': 0, 'SC001': 0,
...@@ -73,14 +74,23 @@ Page({ ...@@ -73,14 +74,23 @@ Page({
}) })
let params = { let params = {
merchantId: customerInfo.serviceCenterMerchantId, merchantId: customerInfo.serviceCenterMerchantId,
staffLabel: sceneStr staffLabels: sceneStr
} }
mineCustomerApi.getInviteCode(params).then(res => { mineCustomerApi.getInviteCode(params).then(res => {
console.log(res)
this.setData({ this.setData({
tipObj: res || {} tipObj: res || {}
}) })
this.handleShow() if (popupVal == 'link') {
wx.setClipboardData({
data: res.inviteUrl,
success(res) {
wx.hideToast()
_this.handleShow()
}
})
} else {
this.handleShow()
}
wx.$api.hideLoading() wx.$api.hideLoading()
}) })
}, },
......
...@@ -170,6 +170,7 @@ ...@@ -170,6 +170,7 @@
height: 648rpx; height: 648rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 16rpx; border-radius: 16rpx;
overflow: hidden;
.img-box { .img-box {
padding: 60rpx; padding: 60rpx;
...@@ -231,7 +232,9 @@ ...@@ -231,7 +232,9 @@
} }
.close { .close {
margin-top: 60rpx; position: absolute;
width: 64rpx; top: 324rpx;
height: 64rpx; right: 96rpx;
width: 56rpx;
height: 56rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -37,7 +37,7 @@ Page({ ...@@ -37,7 +37,7 @@ Page({
getList() { getList() {
let { serviceList, pageCof, total } = this.data let { serviceList, pageCof, total } = this.data
if(total == serviceList.length) { if (total == serviceList.length) {
return true return true
} }
let params = { let params = {
...@@ -58,7 +58,7 @@ Page({ ...@@ -58,7 +58,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getList()
}, },
/** /**
...@@ -72,7 +72,7 @@ Page({ ...@@ -72,7 +72,7 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
this.getList()
}, },
/** /**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!