From a509a1e4fa64d25e1544543a9736c55ac749b891 Mon Sep 17 00:00:00 2001 From: corala <18339694416@163.com> Date: Wed, 27 Apr 2022 10:29:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E9=97=B4=E9=A1=B5?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 2 +- pages/middle/index.js | 60 ++++++++++++++++++++--------------------- pages/middle/index.json | 3 ++- pages/middle/index.wxml | 2 +- pages/middle/index.wxss | 27 +++++++++++++++++++ 5 files changed, 61 insertions(+), 33 deletions(-) diff --git a/app.json b/app.json index a6ebccd..85247b3 100644 --- a/app.json +++ b/app.json @@ -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" diff --git a/pages/middle/index.js b/pages/middle/index.js index 26cbdb5..2f095da 100644 --- a/pages/middle/index.js +++ b/pages/middle/index.js @@ -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 () { diff --git a/pages/middle/index.json b/pages/middle/index.json index 8835af0..965b8e8 100644 --- a/pages/middle/index.json +++ b/pages/middle/index.json @@ -1,3 +1,4 @@ { - "usingComponents": {} + "usingComponents": {}, + "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/middle/index.wxml b/pages/middle/index.wxml index 0c3f786..73ff1f2 100644 --- a/pages/middle/index.wxml +++ b/pages/middle/index.wxml @@ -1,3 +1,3 @@ - + 点我购好房 \ No newline at end of file diff --git a/pages/middle/index.wxss b/pages/middle/index.wxss index e69de29..033e3f7 100644 --- a/pages/middle/index.wxss +++ b/pages/middle/index.wxss @@ -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; +} \ No newline at end of file