Compare commits
No commits in common. "cf4dd727c5d9765aa4f0ec41ee88951ba3e9a69d" and "afedb81633059c89b1a9e3eefe04fe7910c714d9" have entirely different histories.
cf4dd727c5
...
afedb81633
@ -76,10 +76,42 @@
|
|||||||
|
|
||||||
<!-- 功能列表 -->
|
<!-- 功能列表 -->
|
||||||
<view class="card function-list">
|
<view class="card function-list">
|
||||||
<view class="function" wx:for="{{functionList$functionList}}" wx:for-index="index" wx:key="id">
|
<view class="function">
|
||||||
<view style="{{item.id == (functionList$functionList.length - 1) ? 'border-bottom: 0px' : ''}}">
|
<view>
|
||||||
<image class="icon func-icon" src="../../image/account/Account_{{item.iconUrl}}.svg" />
|
<image class="icon func-icon" src="../../image/account/Account_Sponsor.svg" />
|
||||||
<view>{{item.displayName}}</view>
|
<view>赞助计划</view>
|
||||||
|
<image class="icon-sub arrow" src="../../image/account/Account_Arrow.svg" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="function">
|
||||||
|
<view>
|
||||||
|
<image class="icon func-icon" src="../../image/account/Account_PubilcAccount.svg" />
|
||||||
|
<view>公众号</view>
|
||||||
|
<image class="icon-sub arrow" src="../../image/account/Account_Arrow.svg" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="function">
|
||||||
|
<view>
|
||||||
|
<image class="icon func-icon" src="../../image/account/Account_FAQ.svg" />
|
||||||
|
<view>自助问答</view>
|
||||||
|
<image class="icon-sub arrow" src="../../image/account/Account_Arrow.svg" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="function">
|
||||||
|
<view>
|
||||||
|
<image class="icon func-icon" src="../../image/account/Account_AboutUs.svg" />
|
||||||
|
<view>关于我们</view>
|
||||||
|
<image class="icon-sub arrow" src="../../image/account/Account_Arrow.svg" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="function">
|
||||||
|
<view style="border-bottom: 0px;">
|
||||||
|
<image class="icon func-icon" src="../../image/account/Account_Support.svg" />
|
||||||
|
<view>联系客服</view>
|
||||||
<image class="icon-sub arrow" src="../../image/account/Account_Arrow.svg" />
|
<image class="icon-sub arrow" src="../../image/account/Account_Arrow.svg" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -1,49 +1,9 @@
|
|||||||
import { Modular, Manager } from "../../core/Module";
|
import { Modular, Manager } from "../../core/Module";
|
||||||
|
|
||||||
interface IFunctionListItem {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* id
|
|
||||||
*/
|
|
||||||
id?: number
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 显示名称
|
|
||||||
*/
|
|
||||||
displayName: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 图标路径
|
|
||||||
*/
|
|
||||||
iconUrl: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IFunctionListData {
|
|
||||||
functionList?: IFunctionListItem[];
|
|
||||||
};
|
|
||||||
|
|
||||||
class FunctionList<M extends Manager> extends Modular<M> {
|
class FunctionList<M extends Manager> extends Modular<M> {
|
||||||
|
|
||||||
public static readonly functionList: IFunctionListItem[] = [
|
|
||||||
{ displayName: "赞助计划", iconUrl: "Sponsor" },
|
|
||||||
{ displayName: "公众号", iconUrl: "PubilcAccount" },
|
|
||||||
{ displayName: "自助问答", iconUrl: "FAQ" },
|
|
||||||
{ displayName: "关于我们", iconUrl: "AboutUs" },
|
|
||||||
{ displayName: "联系客服", iconUrl: "Support" }
|
|
||||||
];
|
|
||||||
|
|
||||||
public data: IFunctionListData = {
|
|
||||||
functionList: undefined
|
|
||||||
};
|
|
||||||
|
|
||||||
public override onLoad() {
|
public override onLoad() {
|
||||||
console.log(FunctionList.functionList)
|
// Do something
|
||||||
this.setData({
|
|
||||||
functionList: FunctionList.functionList.map((value, index) => {
|
|
||||||
value.id = index;
|
|
||||||
return value;
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user