Commit fbf8c6c5 by chenwq

样式

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