Commit 1621bd1d by 李静静

微伴助手

parent 51fc77a2
{
"pages": [
"pages/freeCourse/index",
"pages/joinGroup/index"
"pages/joinGroup/index",
"pages/weibanzhushou/index"
],
"plugins": {
"chatGroupPlugin": {
......
......@@ -128,5 +128,15 @@ Page({
},
noop:function(e){
//console.log(e)
}
},
gotoweiban:function(e){
console.log(e.target.id)
wx.navigateTo({
url: '/pages/weibanzhushou/index?id='+e.target.id,
})
},
onShareAppMessage: function () {
},
onShareTimeline: function () {
},
})
......@@ -91,6 +91,12 @@
bind:completemessage="contactComplete"
class="contact-cell"
/>
<view
wx:if="{{item.type===3}}"
class="weibanzhushou"
bindtap="gotoweiban"
id="{{item.id}}"
></view>
</view>
</view>
</scroll-view>
......
......@@ -220,3 +220,8 @@
font-size: 32rpx;
word-break: break-all;
}
.weibanzhushou{
width: 100%;
height: 100%;
}
\ No newline at end of file
// pages/a/index.wxm.js
const app = getApp()
import {request} from "../../utils/request.js"
Page({
/**
* 页面的初始数据
*/
data: {
url:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getUrl(options.id)
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
onShareTimeline: function () {
},
getUrl:function(id){
request({
url:"/h5/api/group/free_group_info?id="+id,
success:(res)=>{
if(res.data&&res.data.code===0){
this.setData({
url:res.data.data.uniq_code,
})
}
}
})
},
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!--pages/a/index.wxm.wxml-->
<web-view src="{{url}}" ></web-view>
/* pages/a/index.wxm.wxss */
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment