Commit 863af818411505aa8832cb00322c52b9e03464a5

Authored by vking
1 parent 713ade9a

painter

... ... @@ -27,7 +27,8 @@
"pages/manager-invitation/setting/history",
"pages/reserve/activity",
"pages/reserve/discount",
"pages/reserve/indexList"
"pages/reserve/indexList",
"pages/reserve/share"
],
"subpackages": [
{
... ...
... ... @@ -5,7 +5,7 @@ Component({
* 组件的属性列表
*/
properties: {
seller_id:String,
},
/**
... ... @@ -32,11 +32,14 @@ Component({
shareDo(e){
this.hide()
let act=util.attr(e,'act');
if('wechat'==act){
}else{
}
if(!act) return;
console.log('shareDo.'+act,e);
wx.navigateTo({
url:util.http_build_query({
id:this.data.seller_id,
act:act,
},'/pages/reserve/share')
})
},
}
})
... ...
... ... @@ -4,7 +4,7 @@
</button>
</block>
<block wx:else="">
<formids bindclick="setUserInfoSuccess" catchtap="catchtap">
<formids bindclick="setUserInfoSuccess" catchtap="catchtap" style="width: 100%;">
<slot></slot>
</formids>
</block>
\ No newline at end of file
... ...
... ... @@ -284,10 +284,4 @@ Page({
currentView:e.detail.current+1
})
},
onImgOK(e){
console.log('onImgOK',e.detail.path)
this.setData({
paletteImageSrc:e.detail.path
})
},
})
\ No newline at end of file
... ...
... ... @@ -11,7 +11,6 @@
"nav":"/components/nav/nav",
"getpos":"/components/userinfo/getpos",
"discount":"/components/reserve/discount",
"painter":"/components/painter/painter",
"share":"/components/reserve/share/share"
}
}
\ No newline at end of file
... ...
... ... @@ -162,8 +162,4 @@
<as id="as" items="{{seller.seller_tel}}" bindclick="reservePhone">拨打电话预订</as>
<getpos bindpos="onpos" id="getpos"></getpos>
<discount id="discount" seller="{{seller}}" bindhide="discountHide" bindshow="discountShow"></discount>
<view style="position: fixed;top:-9999rpx;" wx:if="{{palette}}">
<painter palette="{{palette}}" bind:imgOK="onImgOK" bind:imgErr="onImgOK"/>
<painter palette="{{paletteCode}}" bind:imgOK="onImgOKCode" bind:imgErr="onImgOKCode"/>
</view>
<share id="share"></share>
\ No newline at end of file
<share id="share" seller_id="{{seller.id}}"></share>
\ No newline at end of file
... ...
// pages/reserve/share.js
import util from '../../utils/util';
import App from '../../utils/api';
const {regeneratorRuntime} = global
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
onImgOK(e){
console.log('onImgOK',e.detail.path)
this.setData({
paletteImageSrc:e.detail.path
})
},
})
\ No newline at end of file
... ...
{
"usingComponents": {
"nav":"/components/nav/nav",
"painter":"/components/painter/painter"
}
}
... ...
<!--pages/reserve/share.wxml-->
<nav>{{true?'分享图':'二维码下载'}}</nav>
<view style="position: fixed;top:-9999rpx;" wx:if="{{palette}}">
<painter palette="{{palette}}" bind:imgOK="onImgOK" bind:imgErr="onImgOK"/>
<painter palette="{{paletteCode}}" bind:imgOK="onImgOKCode" bind:imgErr="onImgOKCode"/>
</view>
... ...
/* pages/reserve/share.wxss */
\ No newline at end of file
... ...