This commit is contained in:
zpc 2025-06-22 13:47:13 +08:00
commit fab93e9b30
28 changed files with 188 additions and 15509 deletions

7
package-lock.json generated
View File

@ -5,6 +5,7 @@
"packages": {
"": {
"dependencies": {
"@dcloudio/uni-ui": "^1.5.7",
"crypto-js": "^4.2.0",
"js-md5": "^0.8.3",
"qs": "^6.14.0"
@ -68,6 +69,12 @@
"node": ">=6.9.0"
}
},
"node_modules/@dcloudio/uni-ui": {
"version": "1.5.7",
"resolved": "https://registry.npmjs.org/@dcloudio/uni-ui/-/uni-ui-1.5.7.tgz",
"integrity": "sha512-DugxSIrQrze1FLdUOj9a+JEQ0bHGjnJTcGUK1mN/MivKg7nuKJBRWk5Ipa9sUdoBznX6ndz5h2e7Uao6x1CdCw==",
"license": "Apache-2.0"
},
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",

View File

@ -1,5 +1,6 @@
{
"dependencies": {
"@dcloudio/uni-ui": "^1.5.7",
"crypto-js": "^4.2.0",
"js-md5": "^0.8.3",
"qs": "^6.14.0"

View File

@ -1,6 +1,5 @@
{
"pages": [
{
"pages": [{
"path": "pages/index/index",
"style": {
"navigationStyle": "custom"
@ -70,6 +69,13 @@
"navigationStyle": "custom"
}
},
{
"path": "pages/mall/product-detail",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/address/address-list",
"style": {
@ -79,6 +85,7 @@
{
"path": "pages/address/address-edit",
"style": {
"navigationStyle": "custom"
}
}
@ -94,8 +101,7 @@
"selectedColor": "#333333",
"borderStyle": "black",
"height": "48px",
"list": [
{
"list": [{
"pagePath": "pages/news/news",
"text": "资讯",
"iconPath": "/static/tabbar/news.png",

View File

@ -0,0 +1,124 @@
<template>
<view>
<view class="" style="width: 100%; height: 715.65rpx; background-color: #D8D8D8;">
</view>
<!-- 返回 -->
<image src="/static/ic_back.png"
style="width: 41.98rpx; height: 41.98rpx; position: fixed; left: 30rpx; top: 137rpx;" mode=""></image>
<view class="" style="width: 100%; height: 244.27rpx; background-color: white; position: relative;">
<view class="item-price">
<text class="price-symbol-small"></text>
<text class="price-value-small">69</text>
</view>
<view class="" style="position: absolute; left: 30.53rpx; top: 95.42rpx; font-size: 26.72rpx;">
英雄联盟K/DA系列
</view>
<view class="" style="position: absolute; left: 30.53rpx; bottom: 21rpx; font-size: 22.9rpx;">
商品详情
</view>
<view class="product-count">
<text class="count-text">item.num/1</text>
<image src="/static/ic_box.png" class="box-icon" mode="aspectFit"></image>
</view>
</view>
<!-- 详情列表 -->
<view class="" v-for="(item,index) in detailList"
style="width: 100%; height: 666.03rpx; background-color: #D8D8D8;">
{{index}}
</view>
<view class="" style="width: 100%; height: 188.94rpx; position: fixed; bottom: 0; background-color: white;">
<view class="" @click="bayOpen()"
style="width: 654.58rpx; height: 80.15rpx; margin: 33rpx auto; background-color: #333333; display: flex; align-items: center; justify-content: center; border-radius: 15.27rpx;">
<text style="color: #CDEF27; font-size: 22.9rpx;">立即购买</text>
</view>
</view>
<uni-popup ref="bayPop" type="bottom" style="width: 100%; height: 965.65rpx; background-color: #F7F7F7;">
</uni-popup>
</view>
</template>
<script>
import uniPopup from '@dcloudio/uni-ui/lib/uni-popup/uni-popup.vue'
export default {
components: { uniPopup },
data() {
return {
detailList: [1, 2, 3, 4, 5],
}
},
methods: {
bayOpen() {
this.$refs.bayPop.open();
}
}
}
</script>
<style lang="scss">
.item-price {
display: flex;
flex-direction: row;
align-items: center;
position: absolute;
left: 30.53rpx;
top: 26.72rpx;
}
.price-symbol-small {
font-size: 19.08rpx;
margin-top: 10rpx;
color: #FF6A6A;
}
.price-value-small {
font-size: 41.98rpx;
font-weight: bold;
color: #FF6A6A;
}
.product-count {
position: absolute;
display: flex;
flex-direction: row;
right: 30.53rpx;
top: 40rpx;
align-items: center;
.count-text {
font-size: 15.27rpx;
color: #6C6C6C;
}
.box-icon {
width: 17.39rpx;
height: 17.39rpx;
margin-left: 7rpx;
}
}
</style>

BIN
static/ic_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -1 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n</style>\n","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACMM,SAAS,YAAY;AAC3B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACN;AAAA,EACA;AACF;;;"}
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t/*每个页面公共css */\r\n</style>\n","import App from './App'\r\n\r\n// #ifndef VUE3\r\nimport Vue from 'vue'\r\nimport './uni.promisify.adaptor'\r\nVue.config.productionTip = false\r\nApp.mpType = 'app'\r\nconst app = new Vue({\r\n\t...App\r\n})\r\napp.$mount()\r\n// #endif\r\n\r\n// #ifdef VUE3\r\nimport {\r\n\tcreateSSRApp\r\n} from 'vue'\r\nexport function createApp() {\r\n\tconst app = createSSRApp(App)\r\n\treturn {\r\n\t\tapp\r\n\t}\r\n}\r\n// #endif"],"names":["_sfc_main","onLaunch","uni","__f__","onShow","onHide","createApp","app","createSSRApp","App"],"mappings":"2HACC,MAAKA,EAAU,CACdC,SAAU,WACTC,EAAAA,MAAAC,MAAA,MAAA,eAAY,aACZ,EACDC,OAAQ,WACPF,EAAAA,MAAYC,MAAA,MAAA,eAAA,WACZ,EACDE,OAAQ,WACPH,EAAAA,MAAYC,MAAA,MAAA,gBAAA,WACb,GCOK,SAASG,IAER,MAAA,CACNC,IAFWC,EAAYA,aAACC,GAI1B"}

View File

@ -1 +1 @@
{"version":3,"file":"assets.js","sources":["static/ic_box.png","static/ic_arrow.png"],"sourcesContent":["export default \"__VITE_ASSET__3d61de0b__\"","export default \"__VITE_ASSET__f0e37cf1__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,aAAA;;;"}
{"version":3,"file":"assets.js","sources":["static/app-plus/news/prev.png","static/app-plus/icon_108.png","../../../static/app-plus/arrow-right.png","static/ic_back.png","static/app-plus/edit.png","static/app-plus/news/next.png","static/ic_box.png","static/app-plus/copy.png","static/app-plus/del.png","static/ic_arrow.png"],"sourcesContent":["export default \"__VITE_ASSET__aff33104__\"","export default \"__VITE_ASSET__80d335cf__\"","export default \"/static/app-plus/arrow-right.png\"","export default \"__VITE_ASSET__188f0ac5__\"","export default \"__VITE_ASSET__6a7a1284__\"","export default \"__VITE_ASSET__7180813e__\"","export default \"__VITE_ASSET__3d61de0b__\"","export default \"__VITE_ASSET__7ddd6aa1__\"","export default \"__VITE_ASSET__6e883b63__\"","export default \"__VITE_ASSET__f0e37cf1__\""],"names":[],"mappings":"gCAAe,sDCAA,qDCAA,wDCAA,2CCAA,+CCAA,sDCAA,0CCAA,iDCAA,8CCAA"}

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"version":3,"file":"index.js","sources":["pages/index/index.vue","../../../Software/HBuilderX.4.15.2024050802/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["<template>\r\n\t<view class=\"page\">\r\n\t\t<view class=\"welcome\">\r\n\t\t\t<image class=\"welcome__logo\" :src=\"icon\" mode=\"aspectFit\">\r\n\t\t\t</image>\r\n\t\t\t<image :src=\"login_icon\" class=\"welcome__animation\"></image>\r\n\t\t\t<view class=\"welcome__tips\">{{ tips_text }}</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\nimport { defineComponent, ref } from 'vue'\r\nimport { onLoad } from '@dcloudio/uni-app'\r\nimport { getConfig } from '@/common/server/config';\r\nimport { navigateTo } from '@/common/system/router';\r\nlet icon = ref(\"/static/app-plus/icon_108.png\");\r\nlet login_icon = ref(\"/static/app-plus/index_login.gif\");\r\nlet tips_text = ref(\"正在加载中。。。\");\r\nonLoad(async () => {\r\n\t// 检查网络状态\r\n\tconst network = await uni.getNetworkType();\r\n\tif (network.networkType === 'none') {\r\n\t\ttips_text.value = '请检查网络连接';\r\n\t\t// 监听网络状态变化\r\n\t\tuni.onNetworkStatusChange(checkNetwork);\r\n\t\treturn;\r\n\t}\r\n\r\n\tnavigateTo('/pages/news/news');\r\n\t// const config = await getConfig();\r\n\t// console.log('config', config);\r\n\t// const config1 = await getConfig();\r\n\t// console.log('config1', config1);\r\n});\r\n/**\r\n * 检查网络状态\r\n * @param {Object} res 网络状态\r\n */\r\nfunction checkNetwork(res) {\r\n\tconsole.log('网络状态变化:', res.isConnected, res.networkType);\r\n\tif (res.isConnected) {\r\n\t\ttips_text.value = '正在加载中。。。';\r\n\t\t// #ifdef APP\r\n\t\tplus.runtime.restart();\r\n\t\t// #endif\r\n\t} else {\r\n\t\ttips_text.value = '请检查网络连接';\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.page {\r\n\twidth: 100vw;\r\n\theight: 100vh;\r\n\tbackground-color: #f8f8f8;\r\n}\r\n\r\n.welcome {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: center;\r\n\tpadding: 20px;\r\n\r\n\t&__logo {\r\n\t\twidth: 96px;\r\n\t\theight: 96px;\r\n\t\tmargin-top: 20vh;\r\n\t\tborder-radius: 50%;\r\n\t}\r\n\r\n\t&__animation {\r\n\t\twidth: 200rpx;\r\n\t\theight: 200rpx;\r\n\t}\r\n\r\n\t&__tips {\r\n\t\tmargin-top: 10px;\r\n\t}\r\n}\r\n</style>","import MiniProgramPage from 'F:/gitCode/uniapp/youdas/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref","onLoad","uni","navigateTo","MiniProgramPage"],"mappings":";;;;;;;;AAgBA,QAAI,OAAOA,cAAAA,IAAI,+BAA+B;AAC9C,QAAI,aAAaA,cAAAA,IAAI,kCAAkC;AACvD,QAAI,YAAYA,cAAAA,IAAI,UAAU;AAC9BC,kBAAAA,OAAO,YAAY;AAElB,YAAM,UAAU,MAAMC,oBAAI;AAC1B,UAAI,QAAQ,gBAAgB,QAAQ;AACnC,kBAAU,QAAQ;AAElBA,4BAAI,sBAAsB,YAAY;AACtC;AAAA,MACA;AAEDC,2BAAU,WAAC,kBAAkB;AAAA,IAK9B,CAAC;AAKD,aAAS,aAAa,KAAK;AAC1BD,0BAAA,MAAA,OAAA,+BAAY,WAAW,IAAI,aAAa,IAAI,WAAW;AACvD,UAAI,IAAI,aAAa;AACpB,kBAAU,QAAQ;AAAA,MAIpB,OAAQ;AACN,kBAAU,QAAQ;AAAA,MAClB;AAAA,IACF;;;;;;;;;;AChDA,GAAG,WAAWE,SAAe;"}
{"version":3,"file":"index.js","sources":["pages/index/index.vue","../../../Software/HBuilderX.4.15.2024050802/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvaW5kZXgvaW5kZXgudnVl"],"sourcesContent":["<template>\r\n\t<view class=\"page\">\r\n\t\t<view class=\"welcome\">\r\n\t\t\t<image class=\"welcome__logo\" :src=\"icon\" mode=\"aspectFit\">\r\n\t\t\t</image>\r\n\t\t\t<image :src=\"login_icon\" class=\"welcome__animation\"></image>\r\n\t\t\t<view class=\"welcome__tips\">{{ tips_text }}</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script setup>\r\nimport { defineComponent, ref } from 'vue'\r\nimport { onLoad } from '@dcloudio/uni-app'\r\nimport { getConfig } from '@/common/server/config';\r\nimport { navigateTo } from '@/common/system/router';\r\nlet icon = ref(\"/static/app-plus/icon_108.png\");\r\nlet login_icon = ref(\"/static/app-plus/index_login.gif\");\r\nlet tips_text = ref(\"正在加载中。。。\");\r\nonLoad(async () => {\r\n\t// 检查网络状态\r\n\tconst network = await uni.getNetworkType();\r\n\tif (network.networkType === 'none') {\r\n\t\ttips_text.value = '请检查网络连接';\r\n\t\t// 监听网络状态变化\r\n\t\tuni.onNetworkStatusChange(checkNetwork);\r\n\t\treturn;\r\n\t}\r\n\r\n\tnavigateTo('/pages/news/news');\r\n\r\n});\r\n/**\r\n * 检查网络状态\r\n * @param {Object} res 网络状态\r\n */\r\nfunction checkNetwork(res) {\r\n\tconsole.log('网络状态变化:', res.isConnected, res.networkType);\r\n\tif (res.isConnected) {\r\n\t\ttips_text.value = '正在加载中。。。';\r\n\t\t// #ifdef APP\r\n\t\tplus.runtime.restart();\r\n\t\t// #endif\r\n\t} else {\r\n\t\ttips_text.value = '请检查网络连接';\r\n\t}\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n.page {\r\n\twidth: 100vw;\r\n\theight: 100vh;\r\n\tbackground-color: #f8f8f8;\r\n}\r\n\r\n.welcome {\r\n\tdisplay: flex;\r\n\tflex-direction: column;\r\n\talign-items: center;\r\n\tpadding: 20px;\r\n\r\n\t&__logo {\r\n\t\twidth: 96px;\r\n\t\theight: 96px;\r\n\t\tmargin-top: 20vh;\r\n\t\tborder-radius: 50%;\r\n\t}\r\n\r\n\t&__animation {\r\n\t\twidth: 200rpx;\r\n\t\theight: 200rpx;\r\n\t}\r\n\r\n\t&__tips {\r\n\t\tmargin-top: 10px;\r\n\t}\r\n}\r\n</style>","import MiniProgramPage from 'F:/gitCode/uniapp/youdas/pages/index/index.vue'\nwx.createPage(MiniProgramPage)"],"names":["icon","ref","login_icon","tips_text","checkNetwork","res","__f__","isConnected","networkType","value","onLoad","async","uni","getNetworkType","onNetworkStatusChange","navigateTo","wx","createPage","MiniProgramPage"],"mappings":"kOAgBI,IAAAA,EAAOC,EAAAA,IAAI,iCACXC,EAAaD,EAAAA,IAAI,oCACjBE,EAAYF,EAAAA,IAAI,YAkBpB,SAASG,EAAaC,WACrBC,MAAA,MAAA,8BAAY,UAAWD,EAAIE,YAAaF,EAAIG,aACxCH,EAAIE,YACPJ,EAAUM,MAAQ,WAKlBN,EAAUM,MAAQ,SAEpB,QA3BAC,EAAAA,QAAOC,UAGF,GAAwB,gBADNC,QAAIC,kBACdL,YAIX,OAHAL,EAAUM,MAAQ,uBAEdK,sBAAsBV,GAI3BW,EAAUA,WAAC,mBAAkB,6DC5B9BC,GAAGC,WAAWC"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,29 +1,2 @@
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
if (!Math) {
"./pages/index/index.js";
"./pages/news/news.js";
"./pages/mall/mall.js";
"./pages/me/me.js";
}
const _sfc_main = {
onLaunch: function() {
common_vendor.index.__f__("log", "at App.vue:4", "App Launch");
},
onShow: function() {
common_vendor.index.__f__("log", "at App.vue:7", "App Show");
},
onHide: function() {
common_vendor.index.__f__("log", "at App.vue:10", "App Hide");
}
};
function createApp() {
const app = common_vendor.createSSRApp(_sfc_main);
return {
app
};
}
createApp().app.mount("#app");
exports.createApp = createApp;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./common/vendor.js");Math;const p={onLaunch:function(){e.index.__f__("log","at App.vue:4","App Launch")},onShow:function(){e.index.__f__("log","at App.vue:7","App Show")},onHide:function(){e.index.__f__("log","at App.vue:10","App Hide")}};function n(){return{app:e.createSSRApp(p)}}n().app.mount("#app"),exports.createApp=n;
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map

View File

@ -2,8 +2,18 @@
"pages": [
"pages/index/index",
"pages/news/news",
"pages/news/news-details",
"pages/mall/mall",
"pages/me/me"
"pages/me/me",
"pages/me/account-deletion",
"pages/mall/order-list",
"pages/me/account-login",
"pages/other/agreement",
"pages/me/account-info",
"pages/other/coupon",
"pages/mall/product-detail",
"pages/address/address-list",
"pages/address/address-edit"
],
"tabBar": {
"color": "#C6C6C6",

View File

@ -1,3 +1 @@
/*每个页面公共css */
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}

File diff suppressed because one or more lines are too long

View File

@ -1,39 +1,2 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
require("../../common/system/routeMap.js");
require("../../common/platform/PlatformFactory.js");
const common_system_router = require("../../common/system/router.js");
const _sfc_main = {
__name: "index",
setup(__props) {
let icon = common_vendor.ref("/static/app-plus/icon_108.png");
let login_icon = common_vendor.ref("/static/app-plus/index_login.gif");
let tips_text = common_vendor.ref("正在加载中。。。");
common_vendor.onLoad(async () => {
const network = await common_vendor.index.getNetworkType();
if (network.networkType === "none") {
tips_text.value = "请检查网络连接";
common_vendor.index.onNetworkStatusChange(checkNetwork);
return;
}
common_system_router.navigateTo("/pages/news/news");
});
function checkNetwork(res) {
common_vendor.index.__f__("log", "at pages/index/index.vue:41", "网络状态变化:", res.isConnected, res.networkType);
if (res.isConnected) {
tips_text.value = "正在加载中。。。";
} else {
tips_text.value = "请检查网络连接";
}
}
return (_ctx, _cache) => {
return {
a: common_vendor.unref(icon),
b: common_vendor.unref(login_icon),
c: common_vendor.t(common_vendor.unref(tips_text))
};
};
}
};
wx.createPage(_sfc_main);
"use strict";const e=require("../../common/vendor.js");require("../../common/system/routeMap.js"),require("../../common/platform/PlatformFactory.js");const n=require("../../common/system/router.js"),t={__name:"index",setup(t){let o=e.ref("/static/app-plus/icon_108.png"),r=e.ref("/static/app-plus/index_login.gif"),a=e.ref("正在加载中。。。");function s(n){e.index.__f__("log","at pages/index/index.vue:38","网络状态变化:",n.isConnected,n.networkType),n.isConnected?a.value="正在加载中。。。":a.value="请检查网络连接"}return e.onLoad((async()=>{if("none"===(await e.index.getNetworkType()).networkType)return a.value="请检查网络连接",void e.index.onNetworkStatusChange(s);n.navigateTo("/pages/news/news")})),(n,t)=>({a:e.unref(o),b:e.unref(r),c:e.t(e.unref(a))})}};wx.createPage(t);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map

View File

@ -1,37 +1 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
.page {
width: 100vw;
height: 100vh;
background-color: #f8f8f8;
}
.welcome {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.welcome__logo {
width: 96px;
height: 96px;
margin-top: 20vh;
border-radius: 50%;
}
.welcome__animation {
width: 200rpx;
height: 200rpx;
}
.welcome__tips {
margin-top: 10px;
}
.page{width:100vw;height:100vh;background-color:#f8f8f8}.welcome{display:flex;flex-direction:column;align-items:center;padding:20px}.welcome__logo{width:96px;height:96px;margin-top:20vh;border-radius:50%}.welcome__animation{width:200rpx;height:200rpx}.welcome__tips{margin-top:10px}

View File

@ -1,80 +1,2 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
topDataList: [{
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}],
dataList: [{
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}, {
imgUrl: "",
name: "英雄联盟K/DA系列…",
num: "1",
price: "69"
}]
};
},
methods: {}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.topDataList, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.price),
c: common_vendor.t(item.num)
};
}),
b: common_assets._imports_0,
c: common_vendor.f($data.dataList, (item, index, i0) => {
return {
a: common_vendor.t(item.name),
b: common_vendor.t(item.num),
c: common_vendor.t(item.price)
};
}),
d: common_assets._imports_0
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
"use strict";const t=require("../../common/vendor.js"),i=require("../../common/assets.js"),c={data:()=>({topDataList:[{id:"1",imgUrl:"/static/product1.png",name:"英雄联盟K/DA系列阿卡丽手办",num:"1",price:"69",stock:10},{id:"2",imgUrl:"/static/product2.png",name:"英雄联盟K/DA系列阿狸手办",num:"1",price:"79",stock:5},{id:"3",imgUrl:"/static/product3.png",name:"英雄联盟K/DA系列伊芙琳手办",num:"1",price:"89",stock:8}],dataList:[{id:"4",imgUrl:"/static/product4.png",name:"英雄联盟K/DA系列阿卡丽手办豪华版",num:"1",price:"169",stock:3},{id:"5",imgUrl:"/static/product5.png",name:"英雄联盟K/DA系列阿狸手办豪华版",num:"1",price:"179",stock:2},{id:"6",imgUrl:"/static/product6.png",name:"英雄联盟K/DA系列伊芙琳手办豪华版",num:"1",price:"189",stock:6},{id:"7",imgUrl:"/static/product7.png",name:"英雄联盟K/DA系列卡莎手办",num:"1",price:"99",stock:15},{id:"8",imgUrl:"/static/product8.png",name:"英雄联盟K/DA系列莎拉手办",num:"1",price:"99",stock:12},{id:"9",imgUrl:"/static/product9.png",name:"英雄联盟K/DA系列套装收藏版",num:"1",price:"599",stock:1}]}),methods:{goToDetail(i){t.index.navigateTo({url:`/pages/mall/product-detail?id=${i.id}`})},buyProduct(i){event.stopPropagation(),i.stock<=0?t.index.showToast({title:"商品已售罄",icon:"none"}):t.index.showToast({title:"已添加到购物车",icon:"success"})}}};const e=t._export_sfc(c,[["render",function(c,e,o,r,n,a){return{a:t.f(n.topDataList,((i,c,e)=>t.e({a:i.imgUrl},i.imgUrl?{b:i.imgUrl}:{},{c:t.t(i.name),d:t.t(i.price),e:t.t(i.num),f:c,g:t.o((t=>a.goToDetail(i)),c)}))),b:i._imports_1$1,c:t.f(n.dataList,((i,c,e)=>t.e({a:i.imgUrl},i.imgUrl?{b:i.imgUrl}:{},{c:t.t(i.name),d:t.t(i.num),e:t.t(i.price),f:t.o((t=>a.buyProduct(i)),c),g:c,h:t.o((t=>a.goToDetail(i)),c)}))),d:i._imports_1$1}}]]);wx.createPage(e);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mall/mall.js.map

View File

@ -1 +1 @@
<view class="content"><view class="" style="width:100%;height:225.19rpx;background-color:white;position:relative"><view class="title"> 商城 </view></view><view class="top"><view wx:for="{{a}}" wx:for-item="item" class="item"><view class="img"></view><view class="" style="width:100%;height:109.07rpx;position:relative"><view class="" style="width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19.08rpx;color:#333333;text-align:center;margin-top:10rpx">{{item.a}}</view><view class="" style="position:absolute;display:flex;flex-direction:row;left:13rpx;bottom:24rpx"><text style="font-size:15.27rpx;margin-top:10rpx">¥</text><text style="font-size:22.9rpx">{{item.b}}</text></view><view class="" style="position:absolute;display:flex;flex-direction:row;right:13rpx;bottom:24rpx"><text style="font-size:15.27rpx;color:#6C6C6C">{{item.c}}/1</text><image src="{{b}}" style="width:17.39rpx;height:17.39rpx;margin-left:7rpx" mode=""></image></view></view></view></view><scroll-view class="view-list" scroll-y="true"><view wx:for="{{c}}" wx:for-item="item" class="" style="width:100%;height:261.45rpx;background-color:#FFFFFF;margin-bottom:21rpx;border-radius:15.27rpx;position:relative"><view class="" style="width:216.31rpx;height:216.31rpx;background-color:#D8D8D8;border-radius:15.27rpx;position:absolute;left:22rpx;top:22rpx"></view><view class="" style="width:350rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;left:269rpx;top:44rpx;font-size:26.72rpx">{{item.a}}</view><view class="" style="position:absolute;display:flex;flex-direction:row;left:269rpx;top:95rpx"><text style="font-size:15.27rpx;color:#6C6C6C">{{item.b}}/1</text><image src="{{d}}" style="width:17.39rpx;height:17.39rpx;margin-left:7rpx" mode=""></image></view><view class="" style="position:absolute;display:flex;flex-direction:row;left:269rpx;bottom:44rpx"><text style="font-size:19.08rpx;margin-top:15rpx">¥</text><text style="font-size:34.35rpx">{{item.c}}</text></view><view class="" style="width:89.22rpx;height:42rpx;border-radius:20.99rpx;border:1rpx solid #6C6C6C;display:flex;align-items:center;justify-content:center;position:absolute;right:38rpx;bottom:38rpx"><text style="font-size:19.08rpx;color:#6C6C6C">购买</text></view></view></scroll-view></view>
<view class="content"><view class="" style="width:100%;height:225.19rpx;background-color:white;position:relative"><view class="title"> 商城 </view></view><view class="top"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="item" bindtap="{{item.g}}"><view class="img"><image wx:if="{{item.a}}" src="{{item.b}}" mode="aspectFill" class="product-image"></image></view><view class="item-info"><view class="item-name">{{item.c}}</view><view class="item-bottom"><view class="item-price"><text class="price-symbol-small">¥</text><text class="price-value-small">{{item.d}}</text></view><view class="item-count"><text class="count-text-small">{{item.e}}/1</text><image src="{{b}}" class="box-icon-small" mode="aspectFit"></image></view></view></view></view></view><scroll-view class="view-list" scroll-y="true"><view wx:for="{{c}}" wx:for-item="item" wx:key="g" class="product-item" bindtap="{{item.h}}"><view class="product-image-container"><image wx:if="{{item.a}}" src="{{item.b}}" mode="aspectFill" class="product-image"></image></view><view class="product-name">{{item.c}}</view><view class="product-count"><text class="count-text">{{item.d}}/1</text><image src="{{d}}" class="box-icon" mode="aspectFit"></image></view><view class="product-price"><text class="price-symbol">¥</text><text class="price-value">{{item.e}}</text></view><view class="buy-button" catchtap="{{item.f}}"><text class="buy-text">购买</text></view></view></scroll-view></view>

View File

@ -1,56 +1 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
.content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
background-color: #F7F7F7;
}
.title {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 32.44rpx;
position: absolute;
bottom: 30rpx;
}
.top {
width: 688.94rpx;
height: 325.38rpx;
margin: 34rpx auto;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.top .item {
width: 216.31rpx;
height: 100%;
background-color: #FFFFFF;
border-radius: 15.27rpx;
display: flex;
flex-direction: column;
}
.top .img {
width: 100%;
height: 216.31rpx;
background-color: #D8D8D8;
border-radius: 15.27rpx 15.27rpx 0rpx 0rpx;
}
.view-list {
width: 688.93rpx;
height: 850rpx;
margin: 0 auto;
}
.content{width:100%;height:100%;display:flex;flex-direction:column;background-color:#f7f7f7}.title{width:100%;display:flex;justify-content:center;align-items:center;font-size:32.44rpx;font-weight:600;position:absolute;bottom:30rpx}.top{width:688.94rpx;height:325.38rpx;margin:34rpx auto;display:flex;flex-direction:row;justify-content:space-between}.top .item{width:216.31rpx;height:100%;background-color:#fff;border-radius:15.27rpx;display:flex;flex-direction:column;box-shadow:0 2rpx 10rpx rgba(0,0,0,.05);transition:transform .3s}.top .item:active{transform:scale(.98)}.top .img{width:100%;height:216.31rpx;background-color:#f2f2f2;border-radius:15.27rpx 15.27rpx 0rpx 0rpx;overflow:hidden}.top .img .product-image{width:100%;height:100%}.top .item-info{width:100%;height:109.07rpx;position:relative;padding:8rpx;box-sizing:border-box}.top .item-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:19.08rpx;color:#333;text-align:center;margin-top:6rpx}.top .item-bottom{position:absolute;width:100%;bottom:12rpx;left:0;padding:0 13rpx;box-sizing:border-box;display:flex;justify-content:space-between}.top .item-price{display:flex;flex-direction:row;align-items:center}.top .price-symbol-small{font-size:15.27rpx;margin-top:6rpx;color:#ff6a6a}.top .price-value-small{font-size:22.9rpx;font-weight:700;color:#ff6a6a}.top .item-count{display:flex;flex-direction:row;align-items:center}.top .count-text-small{font-size:15.27rpx;color:#6c6c6c}.top .box-icon-small{width:17.39rpx;height:17.39rpx;margin-left:7rpx}.view-list{width:688.93rpx;height:850rpx;margin:0 auto}.product-item{width:100%;height:261.45rpx;background-color:#fff;margin-bottom:21rpx;border-radius:15.27rpx;position:relative;box-shadow:0 2rpx 10rpx rgba(0,0,0,.05);transition:transform .3s}.product-item:active{transform:scale(.98)}.product-image-container{width:216.31rpx;height:216.31rpx;background-color:#f2f2f2;border-radius:15.27rpx;position:absolute;left:22rpx;top:22rpx;overflow:hidden}.product-image-container .product-image{width:100%;height:100%}.product-name{width:350rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:absolute;left:269rpx;top:44rpx;font-size:26.72rpx;font-weight:600;color:#333}.product-count{position:absolute;display:flex;flex-direction:row;left:269rpx;top:95rpx;align-items:center}.product-count .count-text{font-size:15.27rpx;color:#6c6c6c}.product-count .box-icon{width:17.39rpx;height:17.39rpx;margin-left:7rpx}.product-price{position:absolute;display:flex;flex-direction:row;left:269rpx;bottom:44rpx;align-items:center}.product-price .price-symbol{font-size:19.08rpx;margin-top:15rpx;color:#ff6a6a}.product-price .price-value{font-size:34.35rpx;font-weight:700;color:#ff6a6a}.buy-button{width:89.22rpx;height:42rpx;border-radius:20.99rpx;border:1rpx solid #FF6A6A;background-color:#fff;display:flex;align-items:center;justify-content:center;position:absolute;right:38rpx;bottom:38rpx;transition:all .3s}.buy-button:active{background-color:#ff6a6a}.buy-button:active .buy-text{color:#fff}.buy-button .buy-text{font-size:19.08rpx;color:#ff6a6a;font-weight:500}

View File

@ -1,53 +1,2 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const _sfc_main = {
data() {
return {
itemList: [
{
id: 1,
title: "消费记录"
},
{
id: 1,
title: "我的收藏"
},
{
id: 1,
title: "优惠券"
},
{
id: 1,
title: "加入福利群"
},
{
id: 1,
title: "用户协议"
},
{
id: 1,
title: "退出登录"
},
{
id: 1,
title: "注销账号"
}
]
};
},
methods: {}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.itemList, (item, index, i0) => {
return {
a: common_vendor.t(item.title)
};
}),
b: common_assets._imports_0$1
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../page-popup.js"),n=require("../../common/vendor.js"),o=require("../../common/assets.js"),t=require("../../common/server/user.js"),i=require("../../common/system/router.js"),s=require("../../common/yds.js");if(!Array){(0,e.__unplugin_components_3)()}const a={__name:"me",setup(e){let a=n.ref(null);const r=n.ref([]);let u=n.ref(null);n.onShow((async()=>{s.yds.showLoading();const e=await t.getUserInfo();n.index.__f__("log","at pages/me/me.vue:70","res",e),u.value=e,c(),s.yds.hideLoading()}));const c=async()=>{const e=[{id:1,title:"消费记录"},{id:2,title:"我的收藏"},{id:3,title:"优惠券",onClick:e=>{i.navigateTo("/pages/other/coupon")}},{id:4,title:"收货地址管理",onClick:e=>{i.navigateTo("/pages/address/address-list")}},{id:5,title:"用户协议",onClick:e=>{s.yds.navigateToAgreement("user")}},{id:6,title:"隐私政策",onClick:e=>{s.yds.navigateToAgreement("privacy")}}];s.yds.userInfo.isAccountLogin()&&e.push({id:7,title:"退出登录",onClick:async e=>{const{confirm:n}=await a.value.showModal("退出登录","确定退出登录吗?");n&&(s.yds.userInfo.logout(),u.value=null,c(),i.navigateTo("/pages/me/account-login"))}},{id:8,title:"注销账号",onClick:e=>{i.navigateTo("/pages/me/account-deletion")}}),r.value=e};return(e,t)=>n.e({a:n.unref(u)},n.unref(u)?{b:n.unref(u).userIcon,c:n.t(n.unref(u).username),d:n.t(n.unref(u).days),e:n.o((e=>{n.unref(i.navigateTo)("/pages/me/account-info")}))}:{f:n.o((e=>{n.unref(i.navigateToAccountLogin)()}))},{g:n.o((e=>{n.unref(i.navigateTo)("/pages/mall/order-list")})),h:n.f(n.unref(r),((e,o,t)=>({a:n.t(e.title),b:e.id,c:n.o((n=>e.onClick?e.onClick(e):null),e.id)}))),i:o._imports_2,j:n.sr(a,"1e9a094d-0",{k:"_pagePopup"})})}};wx.createPage(a);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/me/me.js.map

View File

@ -1 +1 @@
<view class="content"><view class="" style="width:100%;height:225.19rpx;background-color:white;position:relative"><view class="title"> 我的 </view></view><view class="" style="width:688.93rpx;display:flex;flex-direction:column;margin:34rpx auto"><view class="" style="width:100%;height:80.15rpx;position:relative"><view class="" style="width:80.15rpx;height:80.15rpx;background-color:#D8D8D8"></view><view class="" style="position:absolute;left:103rpx;top:11rpx;font-size:22.9rpx;color:#333333"> 666688888 </view><view class="" style="position:absolute;left:103rpx;top:50rpx;font-size:19.08rpx;color:#8A8A8A"> 已陪你走过了100天 </view></view><view class="" style="width:100%;height:143.13rpx;background-color:white;border-radius:15.27rpx;margin-top:36rpx;display:flex;flex-direction:row;justify-content:space-around"><view class="" style="display:flex;flex-direction:column;width:100rpx;height:100%;align-items:center;justify-content:center"><text style="font-size:41.98rpx;color:#333333">0</text><text style="font-size:19.08rpx;color:#8A8A8A">待发货</text></view><view class="" style="display:flex;flex-direction:column;width:100rpx;height:100%;align-items:center;justify-content:center"><text style="font-size:41.98rpx;color:#333333">0</text><text style="font-size:19.08rpx;color:#8A8A8A">待发货</text></view><view class="" style="display:flex;flex-direction:column;width:100rpx;height:100%;align-items:center;justify-content:center"><text style="font-size:41.98rpx;color:#333333">0</text><text style="font-size:19.08rpx;color:#8A8A8A">待发货</text></view></view><view class="" style="width:100%;margin-top:36rpx"><view wx:for="{{a}}" wx:for-item="item" class="" style="width:100%;height:82.06rpx;background-color:white;border-radius:15.27rpx;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:15rpx;align-items:center"><text style="margin-left:27rpx;font-size:22.9rpx;color:#333333">{{item.a}}</text><image src="{{b}}" style="width:10.67rpx;height:19.66rpx;margin-right:25rpx"></image></view></view></view></view>
<view class="content"><view class="header-container"><view class="title">我的</view></view><view class="main-container"><view wx:if="{{a}}" class="user-info-section" bindtap="{{e}}"><view class="avatar"><image src="{{b}}" mode="aspectFill" style="width:80.15rpx;height:80.15rpx;border-radius:10rpx"></image></view><view class="user-id">{{c}}</view><view class="user-days">已陪你走过了{{d}}天</view></view><view wx:else class="user-info-section" bindtap="{{f}}"><view class="avatar"></view><view class="user-id">点击登录</view><view class="user-days"></view></view><view class="order-status-section"><view class="status-item" bindtap="{{g}}"><text class="status-count">0</text><text class="status-label">待发货</text></view><view class="status-item"><text class="status-count">0</text><text class="status-label">待收货</text></view><view class="status-item"><text class="status-count">0</text><text class="status-label">待评价</text></view><view class="status-item"><text class="status-count">0</text><text class="status-label">退款售后</text></view></view><view class="function-list-section"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="function-item" bindtap="{{item.c}}"><text class="function-title">{{item.a}}</text><image src="{{i}}" class="arrow-icon"></image></view></view></view><page-popup class="r" u-r="_pagePopup" u-i="1e9a094d-0" bind:__l="__l"/></view>

View File

@ -1,29 +1 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
.content {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
background-color: #F7F7F7;
}
.title {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
font-size: 32.44rpx;
position: absolute;
bottom: 30rpx;
}
.content{width:100%;height:100vh;display:flex;flex-direction:column;background-color:#f7f7f7}.header-container{width:100%;height:225.19rpx;background-color:#fff;position:relative}.title{width:100%;display:flex;justify-content:center;align-items:center;font-size:32.44rpx;position:absolute;bottom:30rpx}.main-container{width:688.93rpx;display:flex;flex-direction:column;margin:34rpx auto}.user-info-section{width:100%;height:80.15rpx;position:relative}.avatar{width:80.15rpx;height:80.15rpx;border-radius:10rpx;background-color:#d8d8d8}.user-id{position:absolute;left:103rpx;top:11rpx;font-size:22.9rpx;color:#333}.user-days{position:absolute;left:103rpx;top:50rpx;font-size:19.08rpx;color:#8a8a8a}.order-status-section{width:100%;height:143.13rpx;background-color:#fff;border-radius:15.27rpx;margin-top:36rpx;display:flex;flex-direction:row;justify-content:space-around}.status-item{display:flex;flex-direction:column;width:100rpx;height:100%;align-items:center;justify-content:center}.status-count{font-size:41.98rpx;color:#333}.status-label{font-size:19.08rpx;color:#8a8a8a}.function-list-section{width:100%;margin-top:36rpx}.function-item{width:100%;height:82.06rpx;background-color:#fff;border-radius:15.27rpx;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:15rpx;align-items:center}.function-title{margin-left:27rpx;font-size:22.9rpx;color:#333}.arrow-icon{width:10.67rpx;height:19.66rpx;margin-right:25rpx}

View File

@ -1,75 +1,2 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {
data() {
return {
tabC: 1,
tabList: ["热榜", "精选", "关注"],
dataList: [{
id: 1,
title: "联合国预测世界人口将达到80亿这一数字这一数字",
tiem: "今天 20:01",
imgUrl: ""
}, {
id: 1,
title: "联合国预测世界人口将达到80亿这一数字……",
tiem: "今天 20:01",
imgUrl: ""
}, {
id: 1,
title: "联合国预测世界人口将达到80亿这一数字……",
tiem: "今天 20:01",
imgUrl: ""
}, {
id: 1,
title: "联合国预测世界人口将达到80亿这一数字……",
tiem: "今天 20:01",
imgUrl: ""
}, {
id: 1,
title: "联合国预测世界人口将达到80亿这一数字……",
tiem: "今天 20:01",
imgUrl: ""
}, {
id: 1,
title: "联合国预测世界人口将达到80亿这一数字……",
tiem: "今天 20:01",
imgUrl: ""
}]
};
},
onLoad() {
},
methods: {
tabChange(i) {
this.tabC = i;
},
toDetails(i) {
common_vendor.index.navigateTo({
url: "/pages/news/news_details"
});
}
}
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {
a: common_vendor.f($data.tabList, (item, i, i0) => {
return {
a: common_vendor.t(item),
b: i,
c: common_vendor.n($data.tabC == i ? "act" : "unact"),
d: common_vendor.o(($event) => $options.tabChange(i), i)
};
}),
b: common_vendor.f($data.dataList, (item, index, i0) => {
return {
a: common_vendor.t(item.title),
b: common_vendor.t(item.tiem),
c: common_vendor.o(($event) => $options.toDetails(item.id))
};
})
};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/server/news.js"),n=require("../../common/system/router.js");if(!Array){e.resolveComponent("z-paging-swiper")()}Math||(r+(()=>"../../components/z-paging-swiper/z-paging-swiper.js"))();const r=()=>"../../components/youdas-container/news-list-item.js",s={__name:"news",setup(r){const s=e.ref(["热榜","精选","关注"]),a=e.ref(1),i=e.ref(null),o=async n=>{let{pageNo:r,pageSize:s,type:a}=n;if(e.index.__f__("log","at pages/news/news.vue:34","type",a),0==a){return await t.getHotNewsList(r,s)}if(1==a){return await t.getFeaturedNewsList(r,s)}if(2==a){return await t.getFollowNewsList(r,s)}return{list:[]}},u=t=>{e.index.__f__("log","at pages/news/news.vue:51","id",t),n.navigateTo(`/pages/news/news-details?id=${t}&current=${a.value}`)},c=e=>{a.value=e.detail.current};return(t,n)=>({a:e.f(e.unref(s),((t,n,r)=>({a:e.t(t),b:n,c:e.n(e.unref(a)==n?"act":"unact"),d:e.o((e=>{return t=n,void(a.value=t);var t}),n)}))),b:e.f(e.unref(s),((t,n,r)=>({a:e.sr(i,"24bc9d41-1-"+r+",24bc9d41-0",{k:"listItem",f:1}),b:e.o(u,n),c:"24bc9d41-1-"+r+",24bc9d41-0",d:e.p({responseCallback:o,tabIndex:n,currentIndex:e.unref(a)}),e:n}))),c:e.unref(a),d:e.o(c)})}},a=e._export_sfc(s,[["__scopeId","data-v-24bc9d41"]]);wx.createPage(a);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/news/news.js.map

View File

@ -1,5 +1,8 @@
{
"navigationStyle": "custom",
"navigationBarTitleText": "",
"usingComponents": {}
"usingComponents": {
"z-paging-swiper": "../../components/z-paging-swiper/z-paging-swiper",
"news-list-item": "../../components/youdas-container/news-list-item"
}
}

View File

@ -1 +1 @@
<view class="content"><view class="" style="width:100%;height:225.19rpx;background-color:white;position:relative"><view class="tab"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="{{['tab-item', item.c]}}" bindtap="{{item.d}}"><text>{{item.a}}</text></view></view></view><scroll-view class="" scroll-y="true" style="width:688.93rpx;height:1211rpx;margin:15rpx auto"><view wx:for="{{b}}" wx:for-item="item" class="view-data" bindtap="{{item.c}}"><view class="title">{{item.a}}</view><view class="time">{{item.b}}</view><view class="img"></view></view></scroll-view></view>
<z-paging-swiper class="data-v-24bc9d41" u-s="{{['top','d']}}" u-i="24bc9d41-0" bind:__l="__l"><view class=" data-v-24bc9d41" style="width:100%;height:225.19rpx;background-color:white;position:relative" slot="top"><view class="tab data-v-24bc9d41"><view wx:for="{{a}}" wx:for-item="item" wx:key="b" class="{{['tab-item', 'data-v-24bc9d41', item.c]}}" bindtap="{{item.d}}"><text class="data-v-24bc9d41">{{item.a}}</text></view></view></view><swiper class="swiper data-v-24bc9d41" current="{{c}}" bindanimationfinish="{{d}}"><swiper-item wx:for="{{b}}" wx:for-item="item" wx:key="e" class="swiper-item data-v-24bc9d41"><news-list-item wx:if="{{item.d}}" class="r-i-f data-v-24bc9d41" bindclickItem="{{item.b}}" u-r="listItem" u-i="{{item.c}}" bind:__l="__l" u-p="{{item.d}}"></news-list-item></swiper-item></swiper></z-paging-swiper>

View File

@ -1,88 +1 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
.content {
width: 100%;
display: flex;
flex-direction: column;
background-color: #F7F7F7;
}
.tab {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
bottom: 20rpx;
}
.tab .tab-item {
width: 155rpx;
height: 68rpx;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.tab .tab-item.act {
font-size: 30.53rpx;
color: #000000;
}
.tab .tab-item.act::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 26.72rpx;
height: 4rpx;
background: #333333;
}
.tab .tab-item.unact {
font-size: 30.53rpx;
color: #4C4C4C;
}
.view-data {
width: 100%;
height: 225.19rpx;
background-color: white;
margin-bottom: 15rpx;
border-radius: 19.08rpx;
position: relative;
}
.view-data .title {
width: 366.41rpx;
height: 83.97rpx;
position: absolute;
top: 32rpx;
left: 20rpx;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
}
.view-data .time {
position: absolute;
left: 20rpx;
font-size: 22.9rpx;
color: #878787;
bottom: 24rpx;
}
.view-data .img {
position: absolute;
right: 20rpx;
top: 34rpx;
width: 225.19rpx;
height: 158.4rpx;
background-color: #D8D8D8;
}
.swiper.data-v-24bc9d41{height:100%}.search.data-v-24bc9d41{height:50rpx;background-color:#f7f7f7;border-radius:10rpx;padding:0 20rpx;margin:0 20rpx;display:flex;align-items:center}.tab.data-v-24bc9d41{width:100%;display:flex;align-items:center;justify-content:center;position:absolute;bottom:20rpx}.tab .tab-item.data-v-24bc9d41{width:155rpx;height:68rpx;position:relative;display:flex;align-items:center;justify-content:center}.tab .tab-item.act.data-v-24bc9d41{font-size:30.53rpx;color:#000}.tab .tab-item.act.data-v-24bc9d41:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:26.72rpx;height:4rpx;background:#333}.tab .tab-item.unact.data-v-24bc9d41{font-size:30.53rpx;color:#4c4c4c}