小程序界面微调

This commit is contained in:
caoqianming 2020-11-08 19:49:23 +08:00
parent 37169f1f56
commit e15ed90ae1
13 changed files with 106 additions and 84 deletions

1
test_mini/images/avg.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1604812134932" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9787" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M921.6 0a102.4 102.4 0 0 1 102.4 102.4v819.2a102.4 102.4 0 0 1-102.4 102.4H102.4a102.4 102.4 0 0 1-102.4-102.4V102.4a102.4 102.4 0 0 1 102.4-102.4h819.2zM370.0224 358.4H281.6a25.6 25.6 0 0 0-25.6 25.6v358.4a25.6 25.6 0 0 0 25.6 25.6h88.4224a25.6 25.6 0 0 0 25.6-25.6v-358.4a25.6 25.6 0 0 0-25.6-25.6z m186.2144-102.4H467.7632a25.6 25.6 0 0 0-25.6 25.6v460.8a25.6 25.6 0 0 0 25.6 25.6h88.4736a25.6 25.6 0 0 0 25.6-25.6v-460.8a25.6 25.6 0 0 0-25.6-25.6z m186.1632 256h-88.4224a25.6 25.6 0 0 0-25.6 25.6v204.8a25.6 25.6 0 0 0 25.6 25.6H742.4a25.6 25.6 0 0 0 25.6-25.6v-204.8a25.6 25.6 0 0 0-25.6-25.6z" fill="#4372F4" p-id="9788"></path></svg>

After

Width:  |  Height:  |  Size: 1017 B

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1604812004450" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3676" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M368.64 901.888H212.736c-48.64-0.512-87.808-39.936-88.064-88.576v-155.904c0-23.552 9.472-46.08 26.112-62.72 16.64-16.64 39.168-25.856 62.72-25.856h155.904c48.896 0 88.576 39.68 88.832 88.576v155.904c0 23.552-9.728 46.336-26.368 62.976-16.896 16.384-39.68 25.6-63.232 25.6zM783.36 901.888h-155.904c-48.128-1.024-86.784-40.192-87.04-88.576v-155.904c0-23.552 9.472-46.08 26.112-62.72 16.64-16.64 39.168-25.856 62.72-25.856h155.904c23.552 0 46.08 9.216 62.72 25.856s26.112 39.168 26.112 62.72v155.904c0 23.808-9.728 46.592-26.88 63.232-16.896 16.64-39.936 25.856-63.744 25.344zM368.64 487.168H212.736c-48.896-0.512-88.32-40.448-88.064-89.344V241.92c0.768-48.64 40.448-87.808 89.344-87.808h155.904c48.64 1.024 87.552 40.704 87.808 89.344V399.36c-1.024 48.64-40.704 87.552-89.088 87.808zM878.336 257.792l-109.824-109.568c-34.816-34.56-90.88-34.56-125.44 0l-109.824 109.568c-34.304 34.816-34.304 90.624 0 125.44l109.824 109.824c34.816 34.304 90.624 34.304 125.44 0l109.824-109.824c34.56-34.56 34.56-90.624 0-125.44z m-35.072 98.304l-102.4 102.144c-9.216 9.216-22.016 14.592-35.072 14.592s-25.856-5.12-35.072-14.592l-102.4-102.4c-18.944-19.456-18.944-50.688 0-70.144l102.4-102.4c19.456-18.944 50.688-18.944 70.144 0l102.4 102.912c19.2 19.2 19.2 50.432 0 69.888z" fill="#248AFD" p-id="3677"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1604812075816" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6918" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 0a512 512 0 1 0 512 512A511.963875 511.963875 0 0 0 512 0z m0 945.247442a433.247442 433.247442 0 1 1 433.247442-433.247442 433.247442 433.247442 0 0 1-433.247442 433.247442z" fill="#DC9514" p-id="6919"></path><path d="M202.950399 376.531151v48.51591l64.952797-22.036266v228.815918h66.506174V331.916743h-7.04438l-124.414591 44.614408zM545.7769 585.803429q17.159388-17.881888 33.235024-36.811402a275.778452 275.778452 0 0 0 24.926268-34.86065 164.802371 164.802371 0 0 0 15.750512-34.535526 118.128837 118.128837 0 0 0 5.527129-35.799901 119.393212 119.393212 0 0 0-7.477881-43.819657 85.616313 85.616313 0 0 0-22.650391-32.873774 102.1977 102.1977 0 0 0-37.136527-20.62739 163.93537 163.93537 0 0 0-50.900163-7.225006 138.720102 138.720102 0 0 0-52.923163 9.645383 117.297961 117.297961 0 0 0-39.737529 26.082269 114.155084 114.155084 0 0 0-25.070769 38.437028 125.389967 125.389967 0 0 0-8.778381 46.962534H462.400339a109.928456 109.928456 0 0 1 2.564877-24.528893 58.811543 58.811543 0 0 1 8.092005-19.615889 40.67678 40.67678 0 0 1 13.619135-12.968885 37.606153 37.606153 0 0 1 19.001764-4.696253 31.934523 31.934523 0 0 1 27.888521 13.908135q9.645382 13.87201 9.681507 38.509278a74.020179 74.020179 0 0 1-2.023002 16.689763 88.289565 88.289565 0 0 1-6.89988 18.748888 182.864884 182.864884 0 0 1-13.005009 22.108516c-5.382629 8.019756-12.065759 16.906512-20.157765 26.696395l-113.829958 126.943343v50.575037h247.528681v-59.606294h-142.982855zM810.031468 474.393847a65.205673 65.205673 0 0 0-33.235024-25.106893 72.250053 72.250053 0 0 0 17.195513-11.054258 71.130177 71.130177 0 0 0 12.643759-14.450011 62.315671 62.315671 0 0 0 7.875256-16.292387 59.642419 59.642419 0 0 0 2.709377-17.809638 80.378184 80.378184 0 0 0-6.791505-34.102025 68.63755 68.63755 0 0 0-19.001764-24.601143A80.811684 80.811684 0 0 0 762.238058 316.093982a133.120723 133.120723 0 0 0-37.678402-5.057504 108.95308 108.95308 0 0 0-34.752276 5.454879 86.700064 86.700064 0 0 0-28.03302 15.208636 69.865801 69.865801 0 0 0-18.785014 23.734142 68.34855 68.34855 0 0 0-6.936005 31.031398h61.412545a33.271149 33.271149 0 0 1 2.348127-12.932759 30.164397 30.164397 0 0 1 6.285754-9.717633A24.781768 24.781768 0 0 1 715.275524 357.637762a30.164397 30.164397 0 0 1 11.126508-2.131377 29.839272 29.839272 0 0 1 13.00501 2.673252 27.38277 27.38277 0 0 1 9.392506 7.225006 31.862273 31.862273 0 0 1 5.67163 10.837508 50.358287 50.358287 0 0 1 1.842376 13.980385 44.361532 44.361532 0 0 1-7.875256 27.635645c-5.238129 6.89988-13.546885 10.367883-24.781768 10.367883h-29.658647v43.350031h29.658647c11.523883 0 20.519015 3.179002 26.913145 9.609257s9.609257 16.906512 9.609257 31.428773a47.179285 47.179285 0 0 1-2.348127 15.425387 35.005151 35.005151 0 0 1-6.75538 11.885133 28.141396 28.141396 0 0 1-10.837508 7.586256 36.125026 36.125026 0 0 1-14.45001 2.637127 29.730897 29.730897 0 0 1-22.542017-9.898257 33.198899 33.198899 0 0 1-6.430255-10.837508 39.737529 39.737529 0 0 1-2.348126-13.980385h-61.412545a72.972553 72.972553 0 0 0 28.24977 60.184294 84.026812 84.026812 0 0 0 28.900022 14.45001 116.972836 116.972836 0 0 0 33.632399 4.768504 128.099344 128.099344 0 0 0 38.292528-5.418754 90.312566 90.312566 0 0 0 30.742398-15.822762 72.250053 72.250053 0 0 0 20.446765-25.504269 76.296056 76.296056 0 0 0 7.441755-34.535525 70.588302 70.588302 0 0 0-11.018133-39.376279z" fill="#DC9514" p-id="6920"></path></svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1604812099392" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7710" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 1024A512 512 0 0 1 0 512 512 512 0 0 1 512 0 512 512 0 0 1 1024 512 512 512 0 0 1 512 1024zM326.892308 525.390769c85.070769 0 142.572308-66.953846 142.572307-148.086154v-1.575384c0-80.344615-55.926154-147.298462-141.784615-147.298462-86.646154 0-142.572308 66.953846-142.572308 148.086154v1.575385c0 81.132308 56.713846 147.298462 141.784616 147.298461zM245.76 787.692308h106.338462l425.353846-551.384616H671.113846l-425.353846 551.384616z m449.772308 7.876923c85.070769 0 142.572308-67.741538 142.572307-148.086154V645.907692c0-81.132308-55.926154-147.298462-141.784615-147.298461-86.646154 0-142.572308 66.953846-142.572308 148.086154v1.575384c0 80.344615 56.713846 147.298462 141.784616 147.298462zM327.68 438.744615c-25.993846 0-46.473846-25.993846-46.473846-61.44v-1.575384c0-34.658462 18.116923-60.652308 45.686154-60.652308 26.781538 0 46.473846 26.781538 46.473846 61.44v1.575385c0 34.658462-18.904615 60.652308-45.686154 60.652307zM696.32 708.923077c-25.993846 0-46.473846-26.781538-46.473846-61.44V645.907692c0-35.446154 17.329231-60.652308 45.686154-60.652307 26.781538 0 46.473846 25.993846 46.473846 61.44v1.575384c0 34.658462-18.904615 60.652308-45.686154 60.652308z" fill="#22A4E5" p-id="7711"></path></svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,16 +1,15 @@
<web-view src="elink" wx:if="{{elink}}"></web-view>
<view class="page" wx:else>
<view class="page__hd" style="padding:20px">
<view class="page__title" >{{title}}</view>
<view class="page__desc">
<span style="font-weight:bold;color:darkblue;font-size:16px">{{ifrom}} </span>
<text class="weui-badge" style="background:orange" wx:if="{{is_top}}">置顶</text>
<text class="weui-badge" style="background:green" >原创</text>
</view>
</view>
<view class="page" wx:else data-weui-theme="light">
<view class="page__bd">
<view class="weui-article">
<view class="weui-article__h1">{{title}}</view>
<view class="weui-article__h3">
<text style="color:red" wx:if="{{is_top}}">置顶 </text>
<span style="font-weight:bold;color:darkblue;">{{ifrom}}</span>
</view>
<view class="weui-article__p">
<parser html="{{content}}" domain="{{domain}}" selectable/>
</view>
</view>
</view>
</view>

View File

@ -1,7 +1,7 @@
/* pages/article/detail.wxss */
.weui-article {
padding: 0px 12px;
}
.page__title {
font-size: 18px;
}
.page {
background-color: var(--weui-BG-2);
}

View File

@ -41,7 +41,9 @@ Page({
} else {
that.data.results = that.data.results.concat(res.data.results)
}
for(var i = 0;i<that.data.results.length;i++){
that.data.results[i].update_time = that.data.results[i].update_time.substring(0,10)
}
that.setData({
results: that.data.results,
count: res.data.count

View File

@ -1,15 +1,15 @@
<view class="head">
{{count}}条资讯</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
<block wx:for="{{results}}" wx:key="unique">
<navigator url="detail?id={{item.id}}" class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title">
<text class="weui-badge" style="background:orange" wx:if="{{item.is_top}}">置顶</text>
{{item.title}}</view>
<view class="weui-media-box__desc">
<span style="font-weight:bold;color:darkblue">{{item.ifrom}} </span>
<text wx:if="{{item.is_top}}" style="color:red">置顶 </text>
<text>{{item.ifrom}} </text>
{{item.update_time}}
</view>
</view>

View File

@ -18,7 +18,7 @@
</swiper-item>
</block>
</swiper>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
<navigator url="/pages/quota/quota" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd">
<image src="/images/quota.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>

View File

@ -11,4 +11,9 @@ color:darkblue;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.weui-cells{
margin-left:6px;
margin-right:6px;
border-radius: 6px;
}

View File

@ -1,7 +1,7 @@
<view class="head">
{{count}}份资料</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
<block wx:for="{{results}}" wx:key="unique">
<view class="weui-media-box weui-media-box_appmsg">
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg">

View File

@ -1,7 +1,5 @@
<view class="page">
<view class="page__bd">
<view style="height:10px"></view>
<view class="weui-cells__title">基本信息</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-panel__bd">
<view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active" bindtap="register">
@ -9,7 +7,9 @@
<open-data type="userAvatarUrl" ></open-data>
</view>
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">账号: {{userinfo.username}}
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">
<span>账号:</span>
<span style="font-weight:bold;">{{userinfo.username}}</span>
</view>
<view class="weui-media-box__title" wx:else>账号:
<span style="color:red">未登陆</span>
@ -27,6 +27,9 @@
<view class="weui-cells__title">统计分析</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell" >
<view class="weui-cell__hd">
<image src="/images/class.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">工作类别</view>
<view class="weui-cell__ft" style="font-weight:bold;color:darkblue"
wx:if="{{userinfo.workscope_name}}"
@ -37,14 +40,23 @@
</view>
<!-- <l-list title="模考次数" tag-content="{{total}}" tag-position="right"/> -->
<view class="weui-cell">
<view class="weui-cell__hd">
<image src="/images/count.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">模考次数</view>
<view class="weui-cell__ft" style="font-weight:bold;color:darkblue">{{total}}</view>
</view>
<view class="weui-cell">
<view class="weui-cell__hd">
<image src="/images/rate.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">通过率</view>
<view class="weui-cell__ft" style="font-weight:bold;color:darkblue">{{pass_rate}}%</view>
</view>
<view class="weui-cell">
<view class="weui-cell__hd">
<image src="/images/avg.svg" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">平均分</view>
<view class="weui-cell__ft" style="font-weight:bold;color:darkblue" wx:if="{{avg_score}}">{{avg_score}}</view>
</view>

View File

@ -1,65 +1,65 @@
{
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": true,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": false,
"useIsolateContext": true,
"packNpmManually": false,
"packNpmRelationList": []
},
"compileType": "miniprogram",
"libVersion": "2.10.3",
"appid": "wxf1e9471c93f05ad6",
"projectname": "test_mini",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
"description": "项目配置文件",
"packOptions": {
"ignore": []
},
"setting": {
"urlCheck": false,
"es6": true,
"enhance": true,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
"nodeModules": true,
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": false,
"useApiHook": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": []
},
"compileType": "miniprogram",
"libVersion": "2.10.3",
"appid": "wxf1e9471c93f05ad6",
"projectname": "test_mini",
"debugOptions": {
"hidedInDevtools": []
},
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
"list": []
},
"conversation": {
"current": -1,
"list": []
},
"game": {
"currentL": -1,
"list": []
},
"miniprogram": {
"current": -1,
"list": []
}
}
}