Browse Source

修改中间页样式

dev
corala 3 years ago
parent
commit
a509a1e4fa
5 changed files with 61 additions and 33 deletions
  1. +1
    -1
      app.json
  2. +30
    -30
      pages/middle/index.js
  3. +2
    -1
      pages/middle/index.json
  4. +1
    -1
      pages/middle/index.wxml
  5. +27
    -0
      pages/middle/index.wxss

+ 1
- 1
app.json View File

@@ -1,10 +1,10 @@
{
"pages": [
"pages/index/index",
"pages/middle/index",
"pages/login/index",
"pages/share/index",
"pages/out/index",
"pages/middle/index",
"pages/rank/index",
"pages/AR/index",
"components/loading/loading"


+ 30
- 30
pages/middle/index.js View File

@@ -10,39 +10,39 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
wx.showModal({
title: '温馨提示',
content: '确定进入该小程序吗',
showCancel: false,//是否显示取消按钮
success: function (res) {
if (res.cancel) {
//点击取消,wx.navigateBack
} else {
// 使用wx.navigateToMiniProgram跳转到小程序
wx.navigateToMiniProgram({
appId: 'wx889437c94c0bcc90',
path: '/pages/WebView/shark?projcode=625e0e37e4b021f087a016c8.json&locMode=1011&userRisk=1&scrollTo=&activityId=204&channelId=SHYX',
extraData: {
},
envVersion: 'trial',
success(res) {
// 打开成功
}
})
}
},
fail: function (res) {
//接口调用失败的回调函数,wx.navigateBack
},
complete: function (res) {
//接口调用结束的回调函数(调用成功、失败都会执行)
},
tohouse(){
// 使用wx.navigateToMiniProgram跳转到小程序
wx.navigateToMiniProgram({
appId: 'wx889437c94c0bcc90',
path: '/pages/WebView/shark?projcode=625e0e37e4b021f087a016c8.json&locMode=1011&userRisk=1&scrollTo=&activityId=204&channelId=SHYX',
extraData: {
},
envVersion: 'release',
success(res) {
// 打开成功
}
})
// wx.showModal({
// title: '温馨提示',
// content: '确定进入该小程序吗',
// showCancel: false,//是否显示取消按钮
// success: function (res) {
// if (res.cancel) {
// //点击取消,wx.navigateBack
// } else {
// }
// },
// fail: function (res) {
// //接口调用失败的回调函数,wx.navigateBack
// },
// complete: function (res) {
// //接口调用结束的回调函数(调用成功、失败都会执行)
// },
// })
},

/**
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {


+ 2
- 1
pages/middle/index.json View File

@@ -1,3 +1,4 @@
{
"usingComponents": {}
"usingComponents": {},
"navigationStyle": "custom"
}

+ 1
- 1
pages/middle/index.wxml View File

@@ -1,3 +1,3 @@
<view class="container">
<view class="my-btn" bindtap="tohouse">点我购好房</view>
</view>

+ 27
- 0
pages/middle/index.wxss View File

@@ -0,0 +1,27 @@
.container{
background: url('https://static.quhouse.com/da53587733cd4501b4a7d168656bdac4.png') no-repeat ;
width: 750rpx;
height: 1446rpx;
min-height: 100vh;
background-size: cover;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.my-btn{
width: 394rpx;
height: 97rpx;
line-height: 97rpx;
text-align: center;
background: linear-gradient(270deg, #F35B15 0%, #F35B15 100%);
border-radius: 48rpx;
font-size: 40rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF;
/* border: 2rpx solid; */
/* border-image: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)) 2 2; */
margin-bottom: 143rpx;
box-shadow: 0 3rpx 5rpx #fff;
}

Loading…
Cancel
Save