first commit
This commit is contained in:
0
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.acss
vendored
Normal file
0
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.acss
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.axml
vendored
Normal file
1
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.axml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="p30"><view><view a:for="{{a}}" a:for-item="item" a:key="c" onTap="{{item.d}}" style="background-color:#ffffff;border-radius:12rpx;padding:20rpx;margin-bottom:20rpx"><view>{{item.a}}</view><view style="height:10rpx"></view><view>活动参与时间:{{item.b}}</view></view></view></view>
|
||||
33
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.js
vendored
Normal file
33
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.js
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../../common/vendor.js");
|
||||
const api_api = require("../../../api/api.js");
|
||||
require("../../../uni_modules/uview-plus/index.js");
|
||||
const uni_modules_uviewPlus_libs_function_index = require("../../../uni_modules/uview-plus/libs/function/index.js");
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
setup(__props) {
|
||||
let dataList = common_vendor.ref([]);
|
||||
common_vendor.onLoad(async () => {
|
||||
let _res = await api_api.activityUserList();
|
||||
dataList.value = _res;
|
||||
});
|
||||
const toUrl = (e) => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: e
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(common_vendor.unref(dataList), (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: common_vendor.t(common_vendor.unref(uni_modules_uviewPlus_libs_function_index.timeFormat)(new Date(item.createTime).getTime(), "yyyy-mm-dd")),
|
||||
c: index,
|
||||
d: common_vendor.o(($event) => toUrl(`/pages/activity/detail${item.type == 1 ? "8" : "5"}13?id=${item.id}&type=2`))
|
||||
};
|
||||
})
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
my.createPage(_sfc_main);
|
||||
4
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.json
vendored
Normal file
4
unpackage/dist/dev/mp-alipay/pages/activity/shop/index.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"defaultTitle": "参与记录",
|
||||
"usingComponents": {}
|
||||
}
|
||||
Reference in New Issue
Block a user