Commit befbcf27 authored by baixian's avatar baixian

小程序引导页

parent baf06530
......@@ -742,6 +742,13 @@
"index"
]
},
{
"root": "src/pages/wxguide",
"name": "wxguide",
"pages": [
"index"
]
},
{
"root": "business/pages/coursemgt",
"name": "coursemgt",
......@@ -776,6 +783,7 @@
"ucenter/index": {
"network": "all",
"packages": [
"wxguide",
"mynews",
"setting",
"myachievement",
......@@ -791,6 +799,7 @@
"businessloginregistermgt",
"businessdeskcenter",
"businessclassservice"
]
},
"src/pages/mytask/index": {
......
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/dakav2/images/',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '5.0',
imageVersion: '20200420',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......@@ -15,7 +15,7 @@
duration: 1200,
size: 524288000 // 视频大小20分钟500MB
},
pcWebAddress: 'https://biz.qingxiao.online',
pcWebAddress: 'https://biz.qingxiao.online',
register: {
industry: [
'教育培训',
......@@ -289,4 +289,4 @@
chineseFullName: '十二月',
chineseShortName: '十二'
}],
}
\ No newline at end of file
}
// src/pages/wxguide/index.js
import { LocalStorage } from "../../../utilities/index.js";
var app = getApp();
Page({
/**
* 页面的初始数据
*/
data: {
imageRoot: app.globalData.imageRoot,
imageVersion: app.globalData.imageVersion,
localImageRoot: "../../../images/",
keyword: '',
path: 'src/pages/papersquare/index',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.hideShareMenu();
const visitor = LocalStorage.getItem("visitor");
console.log(visitor, 'visitor')
if (visitor) {
this.setData({
path: `src/pages/papersquare/index?id=${visitor.studentId}`
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!--src/pages/wxguide/index.wxml-->
<view class="container">
<view class="wx-title">
开启微信提醒,轻校小助手伴你学习
</view>
<view class="wx-list">
<view class="wx-item">
<image lazy-load="true" src="{{imageRoot}}2c/ucenter2/wx_icon1.png?{{imageVersion}}"></image>
<view class="wx-item-title">上课提醒</view>
</view>
<view class="wx-item">
<image lazy-load="true" src="{{imageRoot}}2c/ucenter2/wx_icon2.png?{{imageVersion}}"></image>
<view class="wx-item-title">学习资讯</view>
</view>
<view class="wx-item">
<image lazy-load="true" src="{{imageRoot}}2c/ucenter2/wx_icon3.png?{{imageVersion}}"></image>
<view class="wx-item-title">机构优惠</view>
</view>
</view>
<view class="img-wrap">
<image class="wx-img" src="{{imageRoot}}2c/ucenter2/wx_public.png?{{imageVersion}}"></image>
<image class="wx-gif" src="{{imageRoot}}2c/ucenter2/wx_public.gif?{{imageVersion}}"></image>
</view>
<view>{{path}}</view>
<button class="open-btn" open-type='contact'show-message-card="true" send-message-title="开启微信提醒" send-message-path="{{path}}" send-message-img="{{imageRoot}}2c/ucenter2/wx_coverimg.png?{{imageVersion}}"><image src="{{imageRoot}}2c/ucenter2/wx_icon.png?{{imageVersion}}"></image><text>立即开启</text></button>
<view class="tip">点击按钮后,请如上图操作立即开启</view>
</view>
\ No newline at end of file
/* src/pages/wxguide/index.wxss */
page {
width: 100%;
background-size: 100% 100%;
background-repeat: no-repeat;
background-image: url('https://cdn.img.shangjiadao.cn/qingxiao/dakav2/images/2c/ucenter2/wx_guidebg.png');
}
.wx-title {
background-repeat: no-repeat;
width: 522rpx;
height: 56rpx;
background-size: 100% 100%;
background-image: url('https://cdn.img.shangjiadao.cn/qingxiao/dakav2/images/2c/ucenter2/wx_title.png');
color: #9B6200;
font-size: 26rpx;
line-height: 56rpx;
margin: 30rpx auto 20rpx;
text-align: center;
font-weight: 600;
}
.wx-list {
display: flex;
align-items: center;
padding: 0 110rpx;
margin: 0 auto;
}
.wx-list .wx-item {
flex: 1;
}
.wx-list .wx-item:nth-child(2) {
text-align: center
}
.wx-list .wx-item:nth-child(3) {
text-align: right
}
.wx-list .wx-item >image {
width: 90rpx;
height: 90rpx;
}
.wx-list .wx-item .wx-item-title {
font-size:26rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(102,102,102,1);
}
.img-wrap {
position: relative;
width: 532rpx;
height: 826rpx;
margin: 0 auto;
}
.img-wrap .wx-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.img-wrap .wx-gif {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.open-btn {
display: flex;
align-items: center;
background-color: #FEA917;
border-radius: 35rpx;
width:330rpx;
height:70rpx;
margin: 19rpx auto;
font-size:32rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(254,254,254,1);
line-height: 70rpx;
text-align: center;
justify-content: center;
}
.open-btn::after {
border: none
}
.open-btn >image {
width: 44rpx;
height: 35rpx;
display: block;
margin-right: 16rpx;
}
.tip {
font-size:22rpx;
font-family:PingFang SC;
font-weight:400;
color:rgba(102,102,102,1);
text-align: center;
}
\ No newline at end of file
......@@ -445,6 +445,12 @@ Page({
url: `/src/pages/myinfluence/index?sid=${this.data.sid}`
});
},
// 去关注
goWxGuide () {
wx.navigateTo({
url: '/src/pages/wxguide/index'
});
},
// 去积分商城
toPointsMall() {
this.log("toPointsMall");
......
......@@ -65,6 +65,11 @@
</view>
</view>
<view class="wx-box" bindtap="goWxGuide">
<loginbtn loginCode="{{loginCode}}"/>
<image src="{{imageRoot}}2c/ucenter2/wx_banner.png?{{imageVersion}}"></image>
</view>
<view class="menu-box">
<view class="menu-item" bindtap="goMytask">
<loginbtn loginCode="{{loginCode}}"/>
......
......@@ -372,4 +372,12 @@ page{
position:relative;
margin:0;
background:#fff;
}
.wx-box {
width: 100%;
height: 120rpx;
}
.wx-box > image {
width: 100%;
height: 120rpx;
}
\ 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