Commit 68c6746b1c7ec68aa2c5d278b2545645c3749297

Authored by wangfan
1 parent 63eedcff

v2 customer view

... ... @@ -40,7 +40,12 @@ Component({
userinfo(e){
console.log('userinfo-share',e);
this.triggerEvent("userinfo",e.detail);
},
share(e){
console.log('userinfo-share',e);
this.triggerEvent("share",e.detail);
}
},
})
... ...
... ... @@ -5,7 +5,7 @@
</userinfo>
</block>
<block wx:else="">
<button class="button-none" open-type="share" data-id="{{share.id}}" catchtap="catchtap">
<button class="button-none" open-type="share" data-id="{{share.id}}" catchtap="share">
<slot></slot>
</button>
</block>
\ No newline at end of file
... ...
... ... @@ -3,7 +3,7 @@
<view class="page">
<view class="card" style="margin-top: 42rpx; margin-bottom: 168rpx;">
<card seller="{{detail.seller}}" detail="{{detail}}">
<view class="opt flex-rr">
<view class="opt flex-rr" slot="opt">
<block wx:if="{{!detail.hasCanSuccess}}">
<userinfo binduserinfo="userinfo">
<view class="opt-button">赴约</view>
... ...
... ... @@ -13,6 +13,7 @@ Page({
total:0,
},
ids:[],
id:0,
/**
* 生命周期函数--监听页面加载
... ... @@ -56,7 +57,7 @@ Page({
},
getListData(fouce=false){
App.Reserve.GetListFromScheAndRes({
flag:this.data.tabFlag,
flag:0,
openid:getApp().openid,
},fouce).then(res => {
let data=this.formatList(res.data);
... ... @@ -104,14 +105,13 @@ Page({
us.init();
})
},
shareSetting(){
console.log('this.topicVal',this.topicVal)
if(this.topicVal && this.data.detail.openid==getApp().openid){
App.Reserve.SetTopicFromShare({
rid:this.id,
topic:this.topicVal
})
}
share(e){
this.id=e.target.id.replace('userinfo-share-','');
console.log('userinfo-share.share.id',this.id)
},
shareSetting(e){
console.log('shareSetting',e)
//this.data.detail.openid==getApp().openid
let nickname="";
try{
nickname=util.cache('userInfo').nickName;
... ...
... ... @@ -25,10 +25,11 @@
<view class="card">
<card hasListShare
seller="{{detail.seller}}" detail="{{detail}}">
<view slot="listshare">
<view slot="listshare" style="height:52rpx;line-height:52rpx;margin-top:4rpx;">
<userinfo-share
id="userinfo-share-{{detail.id}}"
binduserinfo="userinfo"
bindshare="share"
share="{{detail}}">
<view class="opt-button">{{detail.hasOwner?'邀请':'分享日程'}}</view>
</userinfo-share>
... ...
... ... @@ -10,7 +10,10 @@
<view class="info">查看并编辑个人资料</view>
</view>
</view>
<view class="shadow" ></view>
<view class="shadow" >
<view class="shadow-mask" ></view>
</view>
<view class="list">
<formids url="/pages/me/list">
<view class="item flex-lr">
... ...
... ... @@ -3,6 +3,7 @@
width: 90%;
margin: 0 5%;
color:#353535;
background-color: #ffffff;
}
image{
width:100%;
... ... @@ -20,6 +21,14 @@ image{
width: 110%;
box-shadow: 0 12rpx 14rpx 14rpx RGBA(231, 228, 228, 0.5);
margin-bottom: 98rpx;
position: relative;
}
.shadow-mask{
position: relative;
top:-7rpx;
height: 20rpx;
width: 110%;
background-color: #ffffff;
}
.avatar{
width: 80rpx;
... ...