Commit cb8100a8 by jscat

nyx bp: 添加stage1目标

parent df7561e5
// pages/index/note-info/note-info.js
// pages/index/note-info/note-info.js
......@@ -96,12 +96,19 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
onShareAppMessage: function (options) {
var shareObj = {
    title: "好友推荐: "+"Renaissance Bar知识竞答", // 默认是小程序的名称(可以写slogan等)
    path: '/pages/share/share', // 默认是当前页面,必须是以'/'开头的完整路径
    imageUrl: ''
}
  // 来自页面内的按钮的转发
  if( options.from == 'button' ){
//     var eData = options.target.dataset;
    console.log( eData.id); // shareBtn
    // 此处可以修改 shareObj 中的内容
    shareObj.path = '/pages/goods/goods?goodId=';
  }
return shareObj;
},
......
<view class="page">
<view class="page">
......@@ -45,6 +45,9 @@
<text>首页</text>
</view>
<view class="items">
<!-- <image src="../../../icon/activity/share.png"></image> -->
<button class="share" open-type="share">
</button>
<image src="../../../icon/activity/share.png"></image>
<text>分享</text>
</view>
......
.scroll-view_H{
.scroll-view_H{
......@@ -159,7 +159,7 @@
}
.items image{
width: 50rpx;
height: 60rpx;
height: 50rpx;
margin-top: 20rpx;
font-size: 0;
}
......@@ -181,3 +181,11 @@
margin-top: 20rpx;
}
/* end bottom style */
/* 分享按钮 */
.share {
position: absolute;
background-size: 50rpx 50rpx;
opacity: 0;
border:none;
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
......@@ -2,6 +2,11 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="86dc399d-9323-4124-8c4f-671d1ecb849c" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/../../内容-公众号及其他平台/规划/nyx_v4.pptx" beforeDir="false" afterPath="$PROJECT_DIR$/../../内容-公众号及其他平台/规划/nyx_v4.pptx" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../nyx-master/app.json" beforeDir="false" afterPath="$PROJECT_DIR$/../nyx-master/app.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../nyx-master/pages/discover/discover.js" beforeDir="false" afterPath="$PROJECT_DIR$/../nyx-master/pages/discover/discover.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../nyx-master/pages/discover/discover.wxml" beforeDir="false" afterPath="$PROJECT_DIR$/../nyx-master/pages/discover/discover.wxml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../nyx-master/project.config.json" beforeDir="false" afterPath="$PROJECT_DIR$/../nyx-master/project.config.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -121,6 +126,7 @@
<workItem from="1591154378115" duration="1508000" />
<workItem from="1591203902660" duration="462000" />
<workItem from="1591238858202" duration="705000" />
<workItem from="1594961069059" duration="1724000" />
</task>
<servers />
</component>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论