Commit 13777da5 authored by sheng du's avatar sheng du
Browse files

init

parents
No related merge requests found
Pipeline #816 failed with stages
in 0 seconds
<template>
<view class="padding">
<view class="logo">
<!-- <img src="@/static/logo.png" style="width: 352rpx;height:174rpx;" alt=""> -->
</view>
<view class="content">
<img src="@/static/content-img1.jpg" alt="">
<view class="dec">
<text class="big">光环</text>,充满生机,孕育着新的可能,它是一座城市的灵感栖息地,将城市的全新面貌展现在世人面前。
</view>
<view class="dec">
光环,是宇宙中的星际光辉,是对未知的无尽探索,用光的画笔,勾勒出未来城市生活的无限可能。
</view>
<img src="@/static/content-img2.jpg" alt="">
<view class="dec" style="color: #19907C;">
光环,是围绕在发光体周围明亮的环状轨道,它以璀璨之姿,层层影响着周边人群,商业和区域环境的发展与变化,引领了全新的城市生活方式。
</view>
<view class="dec">
光环,源于自然,在这里发现城市与生态和谐交融,激发人们探寻生活的本真。
</view>
<img src="@/static/content-img3.jpg" alt="">
<view class="dec">
光环,是闪耀的,也是温暖的,它悄然入心,知你所想,与你共同感受城市的温度,也带你享受专属于你的丰富独特体验。
</view>
<view class="dec">
光环,它自由延伸,无限变化,它超越地域的限制,将热情,温度和想象力渗透进人们的生活。光环,与“中环”一起,缔造了一个又一个伟大的城市地标,将香港置地的光环效应辐射到更大的半径。
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.padding {
width: 100%;
padding: 56rpx 30rpx;
box-sizing: border-box;
}
.logo {
width: 100%;
height: 190rpx;
display: flex;
align-items: center;
justify-content: center;
background-color: #19907C;
}
.content {
width: 100%;
font-size: 24rpx;
color: #444;
line-height: 52rpx;
img {
width: 100%;
margin-top: 15px;
}
.dec{
padding-top: 48rpx;
}
.big{
font-size: 36rpx;
font-weight: bold;
}
}
</style>
\ No newline at end of file
<template>
<view class="back">
<!-- <img src="@/static/logo-index.png" style="width:546rpx;height:546rpx" alt=""> -->
<button class="btn" @click="toContent">查看简介</button>
</view>
</template>
<script>
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
},
methods: {
toContent() {
uni.navigateTo({
url: '/pages/content/content'
})
},
}
}
</script>
<style scoped>
.back {
width: 100%;
height: 100vh;
background-color: #19907C;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
/* padding-top: 322rpx; */
}
.btn {
width: 360rpx;
height: 88rpx;
border-radius: 44rpx;
background: #FFFFFF;
font-size: 28rpx;
color: #19907c;
display: flex;
align-items: center;
justify-content: center;
margin-top: 882rpx;
}
</style>
\ No newline at end of file
<template>
<view class="flex-center">
<view class="text">{{text}}</view>
<view>
<button class='chaxun' open-type="launchApp" @launchapp="launchApp" @error="launchAppError"
size="mini">返回APP</button>
</view>
</view>
</template>
<script>
import http from '@/api/http.js'
export default {
data() {
return {
text: '支付中...',
pay_order_id: '',
url: '',
token: ''
}
},
onLoad(params) {
let {
url,
pay_order_id,
token
} = params
console.log(params);
this.pay_order_id = pay_order_id
this.url = url
this.token = token
uni.setStorageSync('token', token)
// console.log(http);
if (pay_order_id && token) {
this.pay()
} else {
uni.showToast({
icon: 'none',
title: '获取订单失败'
})
this.text = '支付失败,请返回App重新支付'
}
},
methods: {
pay() {
let that = this
wx.login({
success(res) {
if (res.code) {
console.log(res);
http.post('/api/icbcpay/mini', {
code: res.code,
pay_order_id: that.pay_order_id,
}).then(payInfo => {
console.log(payInfo.data.timeStamp, payInfo.data.nonceStr, payInfo.data
.package, payInfo.data.signType, payInfo.data.sign);
if (payInfo.data?.sign) {
uni.requestPayment({
timeStamp: payInfo.data.timestamp,
nonceStr: payInfo.data.noncestr,
package: payInfo.data.package,
signType: payInfo.data.signType,
paySign: payInfo.data.sign,
success: (res) => {
console.log(res);
console.log('支付成功');
that.text = '支付成功,请返回App'
uni.showToast({
title: '支付成功'
})
},
fail: (err) => {
console.log('支付失败');
that.text = '支付失败,请返回App重新支付'
console.log(err);
}
});
} else {
console.log('获取支付参数失败');
}
});
}
},
fail(err) {
console.log('wxlogin失败');
}
})
},
launchApp(e) {
console.log(e);
},
launchAppError(e) {
console.log(e);
},
}
}
</script>
<style lang="less">
.flex-center {
display: flex;
justify-content: center;
flex-flow: column;
align-items: center;
width: 100%;
height: 100vh;
.text {
padding: 30rpx
}
}
</style>
\ No newline at end of file
static/content-img1.jpg

185 KB

static/content-img2.jpg

272 KB

static/content-img3.jpg

161 KB

static/logo-index.png

38.3 KB

static/logo.png

16 KB

uni.addInterceptor({
returnValue (res) {
if (!(!!res && (typeof res === "object" || typeof res === "function") && typeof res.then === "function")) {
return res;
}
return new Promise((resolve, reject) => {
res.then((res) => res[0] ? reject(res[0]) : resolve(res[1]));
});
},
});
\ No newline at end of file
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
$uni-color-primary: #007aff;
$uni-color-success: #4cd964;
$uni-color-warning: #f0ad4e;
$uni-color-error: #dd524d;
/* 文字基本颜色 */
$uni-text-color:#333;//基本色
$uni-text-color-inverse:#fff;//反色
$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
$uni-text-color-placeholder: #808080;
$uni-text-color-disable:#c0c0c0;
/* 背景颜色 */
$uni-bg-color:#ffffff;
$uni-bg-color-grey:#f8f8f8;
$uni-bg-color-hover:#f1f1f1;//点击状态颜色
$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
/* 边框颜色 */
$uni-border-color:#c8c7cc;
/* 尺寸变量 */
/* 文字尺寸 */
$uni-font-size-sm:12px;
$uni-font-size-base:14px;
$uni-font-size-lg:16;
/* 图片尺寸 */
$uni-img-size-sm:20px;
$uni-img-size-base:26px;
$uni-img-size-lg:40px;
/* Border Radius */
$uni-border-radius-sm: 2px;
$uni-border-radius-base: 3px;
$uni-border-radius-lg: 6px;
$uni-border-radius-circle: 50%;
/* 水平间距 */
$uni-spacing-row-sm: 5px;
$uni-spacing-row-base: 10px;
$uni-spacing-row-lg: 15px;
/* 垂直间距 */
$uni-spacing-col-sm: 4px;
$uni-spacing-col-base: 8px;
$uni-spacing-col-lg: 12px;
/* 透明度 */
$uni-opacity-disabled: 0.3; // 组件禁用态的透明度
/* 文章场景相关 */
$uni-color-title: #2C405A; // 文章标题颜色
$uni-font-size-title:20px;
$uni-color-subtitle: #555555; // 二级标题颜色
$uni-font-size-subtitle:26px;
$uni-color-paragraph: #3F536E; // 文章段落颜色
$uni-font-size-paragraph:15px;
require('./common/runtime.js')
require('./common/vendor.js')
require('./common/main.js')
\ No newline at end of file
{
"pages": [
"pages/index/index",
"pages/pay/pay",
"pages/content/content"
],
"subPackages": [],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "怡动",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"usingComponents": {}
}
\ No newline at end of file
@import './common/main.wxss';
[data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/main"],{"1fc7":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4"),r=o(n("9523"));n("3201");var c=o(n("4d13")),u=o(n("66fd"));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}n("71ce"),e.__webpack_require_UNI_MP_PLUGIN__=n,u.default.config.productionTip=!1,c.default.mpType="app";var i=new u.default(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,r.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c.default));t(i).$mount()}).call(this,n("bc2e")["default"],n("543d")["createApp"])},"3e9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};t.default=o},"4d13":function(e,t,n){"use strict";n.r(t);var o=n("5560");for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n("f16d");var c=n("f0c5"),u=Object(c["a"])(o["default"],void 0,void 0,!1,null,null,null,!1,void 0,void 0);t["default"]=u.exports},5560:function(e,t,n){"use strict";n.r(t);var o=n("3e9f"),r=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=r.a},f16d:function(e,t,n){"use strict";var o=n("fe95"),r=n.n(o);r.a},fe95:function(e,t,n){}},[["1fc7","common/runtime","common/vendor"]]]);
\ No newline at end of file
page::after{position:fixed;content:'';left:-1000px;top:-1000px;-webkit-animation:shadow-preload .1s;-webkit-animation-delay:3s;animation:shadow-preload .1s;animation-delay:3s}@-webkit-keyframes shadow-preload{0%{background-image:url(https://cdn1.dcloud.net.cn/img/shadow-grey.png)}100%{background-image:url(https://cdn1.dcloud.net.cn/img/shadow-grey.png)}}@keyframes shadow-preload{0%{background-image:url(https://cdn1.dcloud.net.cn/img/shadow-grey.png)}100%{background-image:url(https://cdn1.dcloud.net.cn/img/shadow-grey.png)}}
\ No newline at end of file
!function(){try{var a=Function("return this")();a&&!a.Math&&(Object.assign(a,{isFinite:isFinite,Array:Array,Date:Date,Error:Error,Function:Function,Math:Math,Object:Object,RegExp:RegExp,String:String,TypeError:TypeError,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval}),"undefined"!=typeof Reflect&&(a.Reflect=Reflect))}catch(a){}}();
(function(e){function r(r){for(var n,l,a=r[0],i=r[1],f=r[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);p&&p(r);while(s.length)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var i=t[a];0!==o[i]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"common/runtime":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var a=global["webpackJsonp"]=global["webpackJsonp"]||[],i=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var p=i;t()})([]);
\ No newline at end of file
This diff is collapsed.
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/content/content"],{"0131":function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("3201");a(n("66fd"));var c=a(n("0d49"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(c.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"0d49":function(t,e,n){"use strict";n.r(e);var a=n("ab95"),c=n("db0e");for(var u in c)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(u);n("defe");var r=n("f0c5"),o=Object(r["a"])(c["default"],a["b"],a["c"],!1,null,"4da76a1e",null,!1,a["a"],void 0);e["default"]=o.exports},7920:function(t,e,n){},ab95:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=(this._self._c,n("dc44")),a=n("cc85"),c=n("5d63");this.$mp.data=Object.assign({},{$root:{m0:e,m1:a,m2:c}})},c=[]},d233:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},methods:{}}},db0e:function(t,e,n){"use strict";n.r(e);var a=n("d233"),c=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=c.a},defe:function(t,e,n){"use strict";var a=n("7920"),c=n.n(a);c.a}},[["0131","common/runtime","common/vendor"]]]);
\ No newline at end of file
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"usingComponents": {}
}
\ 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