Merge pull request '超市雏形' (#3) from zy into main
commit
cc5aa53787
@ -1,16 +1,40 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
|
"pages/secondhand/index",
|
||||||
|
"pages/profile/index",
|
||||||
|
"pages/secondhand/publish",
|
||||||
|
"pages/secondhand/detail",
|
||||||
|
"pages/profile/orders",
|
||||||
"pages/index/index",
|
"pages/index/index",
|
||||||
"pages/example/index"
|
"pages/logs/logs"
|
||||||
],
|
],
|
||||||
"window": {
|
"window": {
|
||||||
"backgroundColor": "#F6F6F6",
|
|
||||||
"backgroundTextStyle": "light",
|
"backgroundTextStyle": "light",
|
||||||
"navigationBarBackgroundColor": "#F6F6F6",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "云开发 QuickStart",
|
"navigationBarBackgroundColor": "#ffffff",
|
||||||
"navigationBarTextStyle": "black"
|
"navigationBarTitleText": "宿小君",
|
||||||
|
"backgroundColor": "#f7f7f7"
|
||||||
|
},
|
||||||
|
"tabBar": {
|
||||||
|
"color": "#999999",
|
||||||
|
"selectedColor": "#3A86FF",
|
||||||
|
"backgroundColor": "#ffffff",
|
||||||
|
"borderStyle": "black",
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"pagePath": "pages/secondhand/index",
|
||||||
|
"text": "二手超市",
|
||||||
|
"iconPath": "images/secondhand.png",
|
||||||
|
"selectedIconPath": "images/secondhand_selected.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pagePath": "pages/profile/index",
|
||||||
|
"text": "我的",
|
||||||
|
"iconPath": "images/profile.png",
|
||||||
|
"selectedIconPath": "images/profile_selected.png"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sitemapLocation": "sitemap.json",
|
|
||||||
"style": "v2",
|
"style": "v2",
|
||||||
"lazyCodeLoading": "requiredComponents"
|
"sitemapLocation": "sitemap.json"
|
||||||
}
|
}
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 867 B |
@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"navigationBarTitleText": "基础能力",
|
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"cloud-tip-modal": "/components/cloudTipModal/index"
|
"navigation-bar": "/components/navigation-bar/navigation-bar"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,29 +1,28 @@
|
|||||||
<!--index.wxml-->
|
<!--index.wxml-->
|
||||||
<view class="container">
|
<navigation-bar title="Weixin" back="{{false}}" color="black" background="#FFF"></navigation-bar>
|
||||||
<view class="title">快速了解云开发</view>
|
<scroll-view class="scrollarea" scroll-y type="list">
|
||||||
<view class="top_tip">免鉴权接口调用 免部署后台 高并发</view>
|
<view class="container">
|
||||||
<view class="power" wx:key="title" wx:for="{{powerList}}" wx:for-item="power">
|
<view class="userinfo">
|
||||||
<view class="power_info" data-index="{{index}}" data-type="{{ power.type }}" bindtap="onClickPowerInfo">
|
<block wx:if="{{canIUseNicknameComp && !hasUserInfo}}">
|
||||||
<view class="power_info_text">
|
<button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
|
||||||
<view class="power_info_text_title">
|
<image class="avatar" src="{{userInfo.avatarUrl}}"></image>
|
||||||
{{power.title}}
|
</button>
|
||||||
<view class="power_info_text_tag" wx:if="{{power.tag}}">{{power.tag}}</view>
|
<view class="nickname-wrapper">
|
||||||
|
<text class="nickname-label">昵称</text>
|
||||||
|
<input type="nickname" class="nickname-input" placeholder="请输入昵称" bind:change="onInputChange" />
|
||||||
</view>
|
</view>
|
||||||
<view class="power_info_text_tip">{{power.tip}}</view>
|
</block>
|
||||||
</view>
|
<block wx:elif="{{!hasUserInfo}}">
|
||||||
<image wx:if="{{!power.showItem && power.item.length}}" class="power_info_more" src="../../images/arrow.svg"></image>
|
<button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button>
|
||||||
<image wx:if="{{power.showItem && power.item.length}}" class="power_info_less" src="../../images/arrow.svg"></image>
|
<view wx:else> 请使用2.10.4及以上版本基础库 </view>
|
||||||
<image wx:if="{{!power.item.length}}" class="power_item_icon" src="../../images/arrow.svg"></image>
|
</block>
|
||||||
|
<block wx:else>
|
||||||
|
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
|
||||||
|
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
|
||||||
|
</block>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{power.showItem}}">
|
<view class="usermotto">
|
||||||
<view wx:key="title" wx:for="{{power.item}}">
|
<text class="user-motto">{{motto}}</text>
|
||||||
<view class="line"></view>
|
|
||||||
<view class="power_item" bindtap="jumpPage" data-type="{{ item.type }}" data-page="{{item.page}}">
|
|
||||||
<view class="power_item_title">{{item.title}}</view>
|
|
||||||
<image class="power_item_icon" src="../../images/arrow.svg"></image>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<cloud-tip-modal showTipProps="{{showTip}}" title="{{title}}" content="{{content}}"></cloud-tip-modal>
|
</scroll-view>
|
||||||
</view>
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
|
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
|
||||||
"rules": [{
|
"rules": [{
|
||||||
"action": "allow",
|
"action": "allow",
|
||||||
"page": "*"
|
"page": "*"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
@ -1,85 +1,53 @@
|
|||||||
{
|
{
|
||||||
|
"description": "项目配置文件",
|
||||||
"miniprogramRoot": "miniprogram/",
|
"miniprogramRoot": "miniprogram/",
|
||||||
"cloudfunctionRoot": "cloudfunctions/",
|
"compileType": "miniprogram",
|
||||||
"setting": {
|
"setting": {
|
||||||
"urlCheck": true,
|
"useCompilerPlugins": [
|
||||||
"es6": true,
|
"typescript",
|
||||||
"enhance": true,
|
"less"
|
||||||
"postcss": true,
|
],
|
||||||
"preloadBackgroundData": false,
|
|
||||||
"minified": true,
|
|
||||||
"newFeature": true,
|
|
||||||
"coverView": true,
|
|
||||||
"nodeModules": false,
|
|
||||||
"autoAudits": false,
|
|
||||||
"showShadowRootInWxmlPanel": true,
|
|
||||||
"scopeDataCheck": false,
|
|
||||||
"uglifyFileName": false,
|
|
||||||
"checkInvalidKey": true,
|
|
||||||
"checkSiteMap": true,
|
|
||||||
"uploadWithSourceMap": true,
|
|
||||||
"compileHotReLoad": false,
|
|
||||||
"useMultiFrameRuntime": true,
|
|
||||||
"useApiHook": true,
|
|
||||||
"useApiHostProcess": true,
|
|
||||||
"babelSetting": {
|
"babelSetting": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
},
|
},
|
||||||
"enableEngineNative": false,
|
"coverView": true,
|
||||||
"useIsolateContext": true,
|
"postcss": true,
|
||||||
"useCompilerModule": true,
|
"minified": true,
|
||||||
"userConfirmedUseCompilerModuleSwitch": false,
|
"enhance": false,
|
||||||
"userConfirmedBundleSwitch": false,
|
"showShadowRootInWxmlPanel": false,
|
||||||
"packNpmManually": false,
|
|
||||||
"packNpmRelationList": [],
|
"packNpmRelationList": [],
|
||||||
"minifyWXSS": true,
|
"ignoreUploadUnusedFiles": true,
|
||||||
|
"compileHotReLoad": false,
|
||||||
|
"skylineRenderEnable": false,
|
||||||
|
"es6": true,
|
||||||
"compileWorklet": false,
|
"compileWorklet": false,
|
||||||
|
"uglifyFileName": false,
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
"packNpmManually": false,
|
||||||
|
"minifyWXSS": true,
|
||||||
"minifyWXML": true,
|
"minifyWXML": true,
|
||||||
"localPlugins": false,
|
"localPlugins": false,
|
||||||
"disableUseStrict": false,
|
|
||||||
"useCompilerPlugins": false,
|
|
||||||
"condition": false,
|
"condition": false,
|
||||||
|
"disableUseStrict": false,
|
||||||
"swc": false,
|
"swc": false,
|
||||||
"disableSWC": true
|
"disableSWC": true
|
||||||
},
|
},
|
||||||
"appid": "wxd7d00921edfeb9df",
|
"simulatorType": "wechat",
|
||||||
"projectname": "quickstart-wx-cloud",
|
"simulatorPluginLibVersion": {},
|
||||||
"libVersion": "3.8.5",
|
"condition": {},
|
||||||
"cloudfunctionTemplateRoot": "cloudfunctionTemplate/",
|
|
||||||
"condition": {
|
|
||||||
"search": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"conversation": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"plugin": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"game": {
|
|
||||||
"list": []
|
|
||||||
},
|
|
||||||
"miniprogram": {
|
|
||||||
"list": [
|
|
||||||
{
|
|
||||||
"id": -1,
|
|
||||||
"name": "db guide",
|
|
||||||
"pathName": "pages/databaseGuide/databaseGuide"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"compileType": "miniprogram",
|
|
||||||
"srcMiniprogramRoot": "miniprogram/",
|
"srcMiniprogramRoot": "miniprogram/",
|
||||||
"packOptions": {
|
|
||||||
"ignore": [],
|
|
||||||
"include": []
|
|
||||||
},
|
|
||||||
"editorSetting": {
|
"editorSetting": {
|
||||||
"tabIndent": "insertSpaces",
|
"tabIndent": "insertSpaces",
|
||||||
"tabSize": 2
|
"tabSize": 2
|
||||||
},
|
},
|
||||||
"simulatorPluginLibVersion": {}
|
"libVersion": "2.32.3",
|
||||||
|
"packOptions": {
|
||||||
|
"ignore": [],
|
||||||
|
"include": []
|
||||||
|
},
|
||||||
|
"appid": "wxd7d00921edfeb9df",
|
||||||
|
"cloudfunctionTemplateRoot": "cloudfunctionTemplate/",
|
||||||
|
"cloudfunctionRoot": "cloudfunctions/"
|
||||||
}
|
}
|
Loading…
Reference in new issue