diff --git a/api/store.js b/api/store.js
index 05852b2..788beca 100644
--- a/api/store.js
+++ b/api/store.js
@@ -92,6 +92,15 @@ export function getProducts(q) {
});
}
+/*
+ * 文章列表
+ * */
+export function getArticle(q) {
+ return request.get("/article/list", q, {
+ login: true
+ });
+}
+
/*
* 商品详情
* */
diff --git a/components/vSwiper.vue b/components/vSwiper.vue
new file mode 100644
index 0000000..a350292
--- /dev/null
+++ b/components/vSwiper.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+ 标题标题标题标题标题
+
+ 云快讯
+ 3小时钱
+ 300阅读
+
+
+
+
+
+
+
+
+
+
+
diff --git a/config/index.js b/config/index.js
index dbb5bee..8e1318a 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,8 +1,8 @@
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://wxapi.yixiang.co/api'
-// export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
+export const VUE_APP_API_URL = 'http://192.168.0.112:8092/api'
// export const VUE_APP_API_URL = 'http://192.168.0.111:8092/api'
-export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
+// export const VUE_APP_API_URL = 'https://cloud.api.cyjyyjy.com/api'
// export const VUE_APP_API_URL = 'http://natapp.xinxintuan.co/api';
// export const VUE_APP_API_URL = 'https://thapi.xinxintuan.co/api'
// export const VUE_APP_API_URL = 'https://h5api.xinxintuan.co/api';
diff --git a/package-lock.json b/package-lock.json
index 91a8cc8..eade2a6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,31 @@
{
+ "name": "zhaoshangMiniApp-uniapp",
+ "lockfileVersion": 2,
"requires": true,
- "lockfileVersion": 1,
+ "packages": {
+ "": {
+ "dependencies": {
+ "async-validator": "^4.0.7",
+ "dayjs": "^1.10.7",
+ "uview-ui": "^1.8.4"
+ }
+ },
+ "node_modules/async-validator": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmmirror.com/async-validator/download/async-validator-4.0.7.tgz?cache=0&sync_timestamp=1634529502627&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Fasync-validator%2Fdownload%2Fasync-validator-4.0.7.tgz",
+ "integrity": "sha1-A0oP0hA6ay6/AQ2nUYO+wpkkev4="
+ },
+ "node_modules/dayjs": {
+ "version": "1.10.7",
+ "resolved": "https://registry.nlark.com/dayjs/download/dayjs-1.10.7.tgz?cache=0&sync_timestamp=1631266519235&other_urls=https%3A%2F%2Fregistry.nlark.com%2Fdayjs%2Fdownload%2Fdayjs-1.10.7.tgz",
+ "integrity": "sha512-P6twpd70BcPK34K26uJ1KT3wlhpuOAPoMwJzpsIWUxHZ7wpmbdZL/hQqBDfz7hGurYSa5PhzdhDHtt319hL3ig=="
+ },
+ "node_modules/uview-ui": {
+ "version": "1.8.4",
+ "resolved": "https://registry.npm.taobao.org/uview-ui/download/uview-ui-1.8.4.tgz",
+ "integrity": "sha1-4yu/I3lCHTGQIuMk4ct7U4fTvUQ="
+ }
+ },
"dependencies": {
"async-validator": {
"version": "4.0.7",
diff --git a/package.json b/package.json
index 07b57b1..db9b875 100644
--- a/package.json
+++ b/package.json
@@ -4,4 +4,4 @@
"dayjs": "^1.10.7",
"uview-ui": "^1.8.4"
}
-}
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 3dda68e..22d244c 100644
--- a/pages.json
+++ b/pages.json
@@ -255,8 +255,9 @@
{
"path": "pages/life/index",
"style": {
+ "navigationStyle": "custom",
"navigationBarTitleText": "生活",
- "enablePullDownRefresh": true
+ "enablePullDownRefresh": true
}
},
{
@@ -290,7 +291,12 @@
"navigationBarTitleText": "详情预览"
}
},
-
+ {
+ "path": "pages/life/articleDetail/index",
+ "style": {
+ "navigationBarTitleText": "资讯详情"
+ }
+ },
{
"path": "pages/activity/index",
"style": {
diff --git a/pages/home/index.vue b/pages/home/index.vue
index e65df47..d8cee09 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -96,7 +96,7 @@
立即抢购
-
+ data-i
-->
@@ -114,7 +114,7 @@
{{item.cname}}
{{item.detailedDescription}}
了解详情
-
+
diff --git a/pages/life/articleDetail/index.vue b/pages/life/articleDetail/index.vue
new file mode 100644
index 0000000..94bee8c
--- /dev/null
+++ b/pages/life/articleDetail/index.vue
@@ -0,0 +1,49 @@
+
+
+
+ 楚牛电商一季度卖了300亿,原因竟是这?
+
+
+ 云快讯
+ 203
+ 3小时前
+
+ 转载声明:本文由云快讯收录,观点仅代表作者本人。不代表云快讯立场,云快讯不对所包含的准确性,可靠性或完整性提供任何明示,请自行承担任何责任。
+
+
+
+
+
+
+
diff --git a/pages/life/index.vue b/pages/life/index.vue
index 8859db7..8efcdd9 100644
--- a/pages/life/index.vue
+++ b/pages/life/index.vue
@@ -1,6 +1,6 @@
-
+
-
+
+
+
+ 禪易生态云
+ 了解详情
+
+
+
+
+
+
+ 查看更多
+
+
+
+
+
+
+
+
+
+
+
+
+ 新零售与新营销模式重构和实战升级
+
+
+
+
+
+ 12-23 00:00至11-25 23:00
+
+
+
+ 武汉市江夏区文化大道288号斤斤计较经济
+
+
+ 进行中
+ ¥888.00
+
+
+
+
+
+
+
+
+ 15人报名
+
+
+ 去报名
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 需求
+
+
+
+
+
+
+ 资源
+
+
+
+
+
+
+
+
+ 李子龙111
+ 武汉
+ 2021.8.30截止报名
+
+ 我有景区方面资源,洽谈商务合作...
+
+
+
+
+ 李大龙
+ 武汉
+ 2021.8.30截止报名
+
+ 我有景区方面资源,洽谈商务合作...
+
+
+
+
+
+
+ 李木龙
+ 武汉
+ 2021.8.30截止报名
+
+ 我有景区方面资源,洽谈商务合作...
+
+
+
+
+ 李子龙111qqq
+ 武汉
+ 2021.8.30截止报名
+
+ 我有景区方面资源,洽谈商务合作...
+
+
+
+
+
+
+
+
+
+
+
+ 回头率
-
+ -->
+
+
+
@@ -69,30 +197,39 @@
\ No newline at end of file
+ /* pages/user/completeData/index.wxss */
+ page {
+ width: 100%;
+ height: 100vh;
+ }
+
+ .page-box {
+ width: 100%;
+ height: 100%;
+ position: relative;
+ }
+
+ .bg-img-box {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+ }
+
+ .bg-img-box image {
+ width: 100%;
+ height: 100%;
+ }
+
+ .mail-box {
+ width: 687rpx;
+ position: absolute;
+ top: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ }
+
+ .mail-box .mail-img-box {
+ position: absolute;
+ }
+
+ .mail-top,
+ .mail-bottom {
+ z-index: 3;
+ }
+
+ .mail-top {
+ z-index: 4;
+ top: 10rpx;
+ /* top: 314rpx; */
+ }
+
+ .top-move {
+ animation: topMove 2s ease;
+ animation-fill-mode: forwards;
+ }
+
+ .mail-top image {
+ width: 687rpx;
+ height: 445rpx;
+ }
+
+ .mail-center image {
+ width: 684rpx;
+ height: 648rpx;
+ transform: scale(0.99);
+ }
+
+ .mail-center {
+ top: 316rpx;
+ }
+
+ .mail-bottom image {
+ width: 687rpx;
+ height: 432rpx;
+
+ }
+
+ .mail-bottom {
+ top: 616rpx;
+ }
+
+ .btm-move {
+ animation: btmMove 1.5s ease;
+ animation-fill-mode: forwards;
+ }
+
+ @keyframes topMove {
+ 0% {
+ top: 10rpx;
+ opacity: 0.8;
+ }
+
+ 100% {
+ top: 314rpx;
+ opacity: 1;
+ }
+ }
+
+ @keyframes btmMove {
+ 0% {
+ top: 616rpx;
+ opacity: 0.2;
+ }
+
+ 100% {
+ top: 532rpx;
+ opacity: 1;
+ }
+ }
+
+ .tips {
+ width: 100%;
+ color: #EFDACA;
+ font-size: 40rpx;
+ line-height: 56rpx;
+ position: absolute;
+ top: 1000rpx;
+ text-align: center;
+ }
+
+ .word-move {
+ animation: wordMove 1s ease;
+ animation-fill-mode: forwards;
+ }
+
+ @keyframes wordMove {
+ 0% {
+ left: -100%;
+ }
+
+ 100% {
+ left: 0;
+ }
+ }
+
+ .pay-btn {
+ width: 686rpx;
+ height: 82rpx;
+ position: absolute;
+ top: 1100rpx;
+ left: 50%;
+ transform: translateX(-50%);
+ background: linear-gradient(322deg, #DEB99F 0%, #E9D1C0 51%, #E3C9B5 100%);
+ border-radius: 62rpx;
+ text-align: center;
+ line-height: 82rpx;
+ color: #946F46;
+ }
+
+ .tip {
+ width: 100%;
+ text-align: center;
+ color: #EFDACA;
+ font-size: 32rpx;
+ line-height: 44rpx;
+ position: absolute;
+ top: 1200rpx;
+ left: 50%;
+ transform: translateX(-50%);
+ }
+
diff --git a/project.config.json b/project.config.json
new file mode 100644
index 0000000..d33412b
--- /dev/null
+++ b/project.config.json
@@ -0,0 +1,68 @@
+{
+ "description": "项目配置文件",
+ "packOptions": {
+ "ignore": []
+ },
+ "setting": {
+ "bundle": false,
+ "userConfirmedBundleSwitch": false,
+ "urlCheck": true,
+ "scopeDataCheck": false,
+ "coverView": true,
+ "es6": true,
+ "postcss": true,
+ "compileHotReLoad": false,
+ "lazyloadPlaceholderEnable": false,
+ "preloadBackgroundData": false,
+ "minified": true,
+ "autoAudits": false,
+ "newFeature": false,
+ "uglifyFileName": false,
+ "uploadWithSourceMap": true,
+ "useIsolateContext": true,
+ "nodeModules": false,
+ "enhance": true,
+ "useMultiFrameRuntime": true,
+ "useApiHook": true,
+ "useApiHostProcess": true,
+ "showShadowRootInWxmlPanel": true,
+ "packNpmManually": false,
+ "enableEngineNative": false,
+ "packNpmRelationList": [],
+ "minifyWXSS": true,
+ "showES6CompileOption": false
+ },
+ "compileType": "miniprogram",
+ "libVersion": "2.21.0",
+ "appid": "wx1bdc220038c3cb61",
+ "projectname": "miniprogram-1",
+ "debugOptions": {
+ "hidedInDevtools": []
+ },
+ "scripts": {},
+ "staticServerOptions": {
+ "baseURL": "",
+ "servePath": ""
+ },
+ "isGameTourist": false,
+ "condition": {
+ "search": {
+ "list": []
+ },
+ "conversation": {
+ "list": []
+ },
+ "game": {
+ "list": []
+ },
+ "plugin": {
+ "list": []
+ },
+ "gamePlugin": {
+ "list": []
+ },
+ "miniprogram": {
+ "list": []
+ }
+ }
+}
\ No newline at end of file
diff --git a/static/images/act-address.png b/static/images/act-address.png
new file mode 100644
index 0000000..c64eb2c
Binary files /dev/null and b/static/images/act-address.png differ
diff --git a/static/images/act-time.png b/static/images/act-time.png
new file mode 100644
index 0000000..884a6f9
Binary files /dev/null and b/static/images/act-time.png differ
diff --git a/static/images/gd1.png b/static/images/gd1.png
new file mode 100644
index 0000000..6ad809e
Binary files /dev/null and b/static/images/gd1.png differ
diff --git a/static/images/gd2.png b/static/images/gd2.png
new file mode 100644
index 0000000..d409146
Binary files /dev/null and b/static/images/gd2.png differ
diff --git a/static/images/gd3.png b/static/images/gd3.png
new file mode 100644
index 0000000..c90b933
Binary files /dev/null and b/static/images/gd3.png differ
diff --git a/static/images/life-bg.png b/static/images/life-bg.png
new file mode 100644
index 0000000..9d3e15e
Binary files /dev/null and b/static/images/life-bg.png differ
diff --git a/static/images/new-act.png b/static/images/new-act.png
new file mode 100644
index 0000000..104cd57
Binary files /dev/null and b/static/images/new-act.png differ
diff --git a/static/images/new-bg.png b/static/images/new-bg.png
new file mode 100644
index 0000000..7281344
Binary files /dev/null and b/static/images/new-bg.png differ
diff --git a/static/images/rec-bg.png b/static/images/rec-bg.png
new file mode 100644
index 0000000..d38d051
Binary files /dev/null and b/static/images/rec-bg.png differ
diff --git a/static/images/rec-bg2.png b/static/images/rec-bg2.png
new file mode 100644
index 0000000..5c75aa0
Binary files /dev/null and b/static/images/rec-bg2.png differ
diff --git a/static/images/rec-headline.png b/static/images/rec-headline.png
new file mode 100644
index 0000000..143f107
Binary files /dev/null and b/static/images/rec-headline.png differ
diff --git a/static/images/rec-icon1.png b/static/images/rec-icon1.png
new file mode 100644
index 0000000..a104d7c
Binary files /dev/null and b/static/images/rec-icon1.png differ
diff --git a/static/images/rec-icon2.png b/static/images/rec-icon2.png
new file mode 100644
index 0000000..91a5725
Binary files /dev/null and b/static/images/rec-icon2.png differ
diff --git a/static/images/rec-title.png b/static/images/rec-title.png
new file mode 100644
index 0000000..81c528e
Binary files /dev/null and b/static/images/rec-title.png differ
diff --git a/static/images/yun.png b/static/images/yun.png
new file mode 100644
index 0000000..7fa942c
Binary files /dev/null and b/static/images/yun.png differ