Commit 72221726 by 李静静

加群h5

parent 173cd50b
......@@ -4,7 +4,8 @@
"pages/joinGroup/index",
"pages/weibanzhushou/index",
"pages/yinliu/externalLink",
"pages/youzan/index"
"pages/youzan/index",
"pages/joinGroupH5/index"
],
"plugins": {
"chatGroupPlugin": {
......
// pages/a/index.wxm.js
const app = getApp()
import {host} from "../../utils/request.js"
// 班级管理/课程管理-入群h5 页面
Page({
/**
* 页面的初始数据
*/
data: {
url:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
url: host+'/h5/app3/product/common?id='+(options.id||162)
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
},
onShareTimeline: function () {
},
})
{
"usingComponents": {
}
}
<!--index.wxml-->
<view class="container">
<web-view src="{{url}}"></web-view>
</view>
<view>
<view class="img_list">
<image
wx:for="{{picture_list}}"
wx:key="id"
src="{{item.url}}"
class="img_item"
style="height:{{item.height/item.width*750}}rpx"
></image>
</view>
<view class="join-btn" bindtap="gotomini">
<view class="join-btn-text">开始拼团</view>
</view>
</view>
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