fix
This commit is contained in:
parent
e8a0924800
commit
c112f88067
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
/unpackage
|
||||
/node_modules
|
||||
/.gitignore
|
||||
|
0
unpackage/dist/dev/.automator/mp-weixin/.automator.json
vendored
Normal file
0
unpackage/dist/dev/.automator/mp-weixin/.automator.json
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/scanFeedback/index.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/scanFeedback/index.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/uview-ui/components/u-radio/u-radio.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/uview-ui/components/u-radio/u-radio.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/dev/.sourcemap/mp-weixin/uview-ui/components/u-toast/u-toast.js.map
vendored
Normal file
1
unpackage/dist/dev/.sourcemap/mp-weixin/uview-ui/components/u-toast/u-toast.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.js
vendored
Normal file
2
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/scanFeedback/index"],{312:function(e,t,n){"use strict";(function(e,t){var r=n(4);n(26);r(n(25));var a=r(n(313));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n(1)["default"],n(2)["createPage"])},313:function(e,t,n){"use strict";n.r(t);var r=n(314),a=n(316);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n(318);var i,u=n(33),c=Object(u["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"1801035e",null,!1,r["components"],i);c.options.__file="pages/scanFeedback/index.vue",t["default"]=c.exports},314:function(e,t,n){"use strict";n.r(t);var r=n(315);n.d(t,"render",(function(){return r["render"]})),n.d(t,"staticRenderFns",(function(){return r["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return r["recyclableRender"]})),n.d(t,"components",(function(){return r["components"]}))},315:function(e,t,n){"use strict";var r;n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return i})),n.d(t,"recyclableRender",(function(){return o})),n.d(t,"components",(function(){return r}));var a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.list.length);e.$mp.data=Object.assign({},{$root:{g0:n}})},o=!1,i=[];a._withStripped=!0},316:function(e,t,n){"use strict";n.r(t);var r=n(317),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},317:function(e,t,n){"use strict";(function(e){var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(63)),o=r(n(18)),i=r(n(65)),u=n(262);function c(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}function s(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={name:"index",data:function(){return{url:"",list:[]}},methods:{scanOrder:function(){var t=this;e.scanCode({onlyFromCamera:!1,success:function(e){t.url=e.result,t.getDetailUrl()}})},completeScan:function(){e.navigateTo({url:"/pages/consignment-painting/index?type=scan"})},getDetailUrl:function(){var t=this;return(0,i.default)(a.default.mark((function n(){var r,i,s,l,f,d;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r={url:t.url},n.next=3,(0,u.postDataByParams)("/api/warehouse/ocr",r);case 3:if(i=n.sent,200!==i.code){n.next=32;break}if(s=e.getStorageSync("scanlist"),!(Array.isArray(s)&&s.length>0)){n.next=28;break}l=c(s),n.prev=8,l.s();case 10:if((f=l.n()).done){n.next=17;break}if(d=f.value,d.artworkNum!==i.data.artworkNum){n.next=15;break}return e.showToast({title:"该艺术品已扫描",icon:"none"}),n.abrupt("return");case 15:n.next=10;break;case 17:n.next=22;break;case 19:n.prev=19,n.t0=n["catch"](8),l.e(n.t0);case 22:return n.prev=22,l.f(),n.finish(22);case 25:e.setStorageSync("scanlist",[].concat((0,o.default)(s),[i.data])),n.next=29;break;case 28:e.setStorageSync("scanlist",[i.data]);case 29:t.list=e.getStorageSync("scanlist"),n.next=33;break;case 32:e.showToast({title:i.msg,icon:"none"});case 33:case"end":return n.stop()}}),n,null,[[8,19,22,25]])})))()}},mounted:function(){this.$mp.query.url&&(this.url=this.$mp.query.url,this.getDetailUrl())}};t.default=f}).call(this,n(2)["default"])},318:function(e,t,n){"use strict";n.r(t);var r=n(319),a=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=a.a},319:function(e,t,n){}},[[312,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/scanFeedback/index.js.map
|
6
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"navigationBarTitleText": "",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {}
|
||||
}
|
1
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="container _div data-v-1801035e"><view class="content1 _div data-v-1801035e"><view class="wrap1 _div data-v-1801035e"><image src="https://cdns.fontree.cn/fonchain-main/prod/image/default/approval/500b8411-c3ab-485a-af51-28d877c7524d.png" alt class="_img data-v-1801035e"></image></view><view class="wrap2 _div data-v-1801035e">{{"扫描成功-"+$root.g0}}</view><view class="wrap3 _div data-v-1801035e"><view data-event-opts="{{[['tap',[['scanOrder',['$event']]]]]}}" class="wrap3_1 _div data-v-1801035e" bindtap="__e">继续扫描</view><view data-event-opts="{{[['tap',[['completeScan',['$event']]]]]}}" class="wrap3_2 _div data-v-1801035e" bindtap="__e">完成扫描</view></view></view></view>
|
85
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.wxss
vendored
Normal file
85
unpackage/dist/dev/mp-weixin/pages/scanFeedback/index.wxss
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.container.data-v-1801035e {
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
background-color: grey;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.container .content1.data-v-1801035e {
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding-left: 42rpx;
|
||||
padding-right: 42rpx;
|
||||
border-radius: 40rpx;
|
||||
background-color: #fff;
|
||||
width: 640rpx;
|
||||
height: 438rpx;
|
||||
}
|
||||
.container .content1 .wrap3.data-v-1801035e {
|
||||
margin-top: 96rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.container .content1 .wrap3 .wrap3_2.data-v-1801035e {
|
||||
margin-left: 18rpx;
|
||||
border-radius: 40rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #fff;
|
||||
width: 270rpx;
|
||||
height: 64rpx;
|
||||
background-color: #76c458;
|
||||
}
|
||||
.container .content1 .wrap3 .wrap3_1.data-v-1801035e {
|
||||
border-radius: 40rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #76c458;
|
||||
width: 270rpx;
|
||||
height: 64rpx;
|
||||
border: 1rpx solid #76c458;
|
||||
}
|
||||
.container .content1 .wrap2.data-v-1801035e {
|
||||
font-size: 36rpx;
|
||||
color: #000;
|
||||
margin-top: 56rpx;
|
||||
}
|
||||
.container .content1 .wrap1.data-v-1801035e {
|
||||
margin-top: 38rpx;
|
||||
}
|
||||
.container .content1 .wrap1 ._img.data-v-1801035e {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
}
|
||||
|
86
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.js
vendored
Normal file
86
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.js
vendored
Normal file
@ -0,0 +1,86 @@
|
||||
Page({
|
||||
data: {
|
||||
/** 刷脸token */
|
||||
bizToken: "",
|
||||
/** 认证小程序appId */
|
||||
miniProgramAppId: "",
|
||||
/** 认证小程序跳转页地址 */
|
||||
miniProgramPath: "",
|
||||
/** 刷脸结束回调地址 */
|
||||
miniProgramCallBackUrl: "",
|
||||
/** 是否已跳转认证小程序 */
|
||||
goFaceDone: false,
|
||||
},
|
||||
|
||||
/** 点击前往认证 */
|
||||
onJump() {
|
||||
const { bizToken, miniProgramAppId, miniProgramPath } = this.data;
|
||||
wx.navigateToMiniProgram({
|
||||
appId: miniProgramAppId,
|
||||
path: miniProgramPath + "?bizToken=" + bizToken,
|
||||
success: (res) => {
|
||||
this.setData({
|
||||
goFaceDone: true,
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
/** 生命周期函数--监听页面加载 */
|
||||
onLoad: function ({
|
||||
bizToken = "",
|
||||
miniProgramAppId = "",
|
||||
miniProgramPath = "",
|
||||
miniProgramCallBackUrl = "",
|
||||
}) {
|
||||
console.log("---middle onLoad");
|
||||
this.setData({
|
||||
bizToken: decodeURIComponent(bizToken),
|
||||
miniProgramAppId: decodeURIComponent(miniProgramAppId),
|
||||
miniProgramPath: decodeURIComponent(miniProgramPath),
|
||||
miniProgramCallBackUrl: decodeURIComponent(miniProgramCallBackUrl),
|
||||
});
|
||||
},
|
||||
|
||||
/** 生命周期函数--监听页面显示 */
|
||||
onShow: function () {
|
||||
console.log("---middle onShow");
|
||||
const { goFaceDone, miniProgramCallBackUrl } = this.data;
|
||||
/** 防止从认证进入后直接返回 */
|
||||
if (!goFaceDone) return;
|
||||
|
||||
/** 已跳转认证小程序,重置 */
|
||||
this.setData({
|
||||
goFaceDone: false,
|
||||
});
|
||||
|
||||
/** getEnterOptionsSync 基础库 2.9.4 开始支持,低版本需做兼容处理 */
|
||||
const options = wx.getEnterOptionsSync();
|
||||
console.log("---app onShow options", options);
|
||||
|
||||
/** 从认证小程序返回 */
|
||||
if (
|
||||
options.scene === 1038 &&
|
||||
options.referrerInfo.extraData &&
|
||||
options.referrerInfo.extraData.faceResult
|
||||
) {
|
||||
const pages = getCurrentPages();
|
||||
const previous = pages[pages.length - 2];
|
||||
/** 重新加载认证页面 */
|
||||
previous.$vm.reloadPage(
|
||||
miniProgramCallBackUrl
|
||||
.replace(
|
||||
"https://realnameverify-test.fadada.com",
|
||||
"https://realnameverify-test07.fadada.com"
|
||||
)
|
||||
.replace(
|
||||
"https://realnameverify.fadada.com",
|
||||
"https://realnameverify06.fadada.com"
|
||||
)
|
||||
);
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
4
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "人脸识别认证"
|
||||
}
|
8
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.wxml
vendored
Normal file
8
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.wxml
vendored
Normal file
File diff suppressed because one or more lines are too long
30
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.wxss
vendored
Normal file
30
unpackage/dist/dev/mp-weixin/pagesFace/pages/middle/middle.wxss
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
.middle-page {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding-top: 250rpx;
|
||||
}
|
||||
.middle-page-icon {
|
||||
width: 200rpx;
|
||||
height: 160rpx;
|
||||
}
|
||||
.middle-page-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 48rpx 0;
|
||||
line-height: 42rpx;
|
||||
font-size: 28rpx;
|
||||
color: #595959;
|
||||
}
|
||||
.middle-page-button {
|
||||
width: 332rpx !important;
|
||||
height: 88rpx;
|
||||
padding: 0;
|
||||
line-height: 88rpx;
|
||||
font-size: 34rpx;
|
||||
font-weight: initial;
|
||||
color: #fff;
|
||||
border-radius: 16rpx;
|
||||
background: #276ef9;
|
||||
}
|
28
unpackage/dist/dev/mp-weixin/pagesFace/pages/project.config.json
vendored
Normal file
28
unpackage/dist/dev/mp-weixin/pagesFace/pages/project.config.json
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
"appid": "wx1e155fd041eda3be",
|
||||
"compileType": "miniprogram",
|
||||
"libVersion": "3.1.2",
|
||||
"packOptions": {
|
||||
"ignore": [],
|
||||
"include": []
|
||||
},
|
||||
"setting": {
|
||||
"coverView": true,
|
||||
"es6": true,
|
||||
"postcss": true,
|
||||
"minified": true,
|
||||
"enhance": true,
|
||||
"showShadowRootInWxmlPanel": true,
|
||||
"packNpmRelationList": [],
|
||||
"babelSetting": {
|
||||
"ignore": [],
|
||||
"disablePlugins": [],
|
||||
"outputPath": ""
|
||||
}
|
||||
},
|
||||
"condition": {},
|
||||
"editorSetting": {
|
||||
"tabIndent": "insertSpaces",
|
||||
"tabSize": 4
|
||||
}
|
||||
}
|
7
unpackage/dist/dev/mp-weixin/pagesFace/pages/project.private.config.json
vendored
Normal file
7
unpackage/dist/dev/mp-weixin/pagesFace/pages/project.private.config.json
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
|
||||
"projectname": "pages",
|
||||
"setting": {
|
||||
"compileHotReLoad": true
|
||||
}
|
||||
}
|
BIN
unpackage/dist/dev/mp-weixin/static/image/passport.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/static/image/passport.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
BIN
unpackage/dist/dev/mp-weixin/static/image/passport2.png
vendored
Normal file
BIN
unpackage/dist/dev/mp-weixin/static/image/passport2.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
11
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.js
vendored
Normal file
11
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.js
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-radio-group/u-radio-group"],{372:function(n,t,e){"use strict";e.r(t);var i=e(373),r=e(375);for(var u in r)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(u);e(378);var o,c=e(33),a=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,"dd868428",null,!1,i["components"],o);a.options.__file="uview-ui/components/u-radio-group/u-radio-group.vue",t["default"]=a.exports},373:function(n,t,e){"use strict";e.r(t);var i=e(374);e.d(t,"render",(function(){return i["render"]})),e.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(t,"components",(function(){return i["components"]}))},374:function(n,t,e){"use strict";var i;e.r(t),e.d(t,"render",(function(){return r})),e.d(t,"staticRenderFns",(function(){return o})),e.d(t,"recyclableRender",(function(){return u})),e.d(t,"components",(function(){return i}));var r=function(){var n=this,t=n.$createElement;n._self._c},u=!1,o=[];r._withStripped=!0},375:function(n,t,e){"use strict";e.r(t);var i=e(376),r=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(u);t["default"]=r.a},376:function(n,t,e){"use strict";(function(n){var i=e(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(e(377)),u={name:"u-radio-group",mixins:[n.$u.mpMixin,n.$u.mixin,r.default],computed:{parentData:function(){return[this.value,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass:function(){return this.bem("radio-group",["placement"])}},watch:{parentData:function(){this.children.length&&this.children.map((function(n){"function"===typeof n.init&&n.init()}))}},data:function(){return{}},created:function(){this.children=[]},methods:{unCheckedOther:function(n){this.children.map((function(t){n!==t&&(t.checked=!1)}));var t=n.name;this.$emit("input",t),this.$emit("change",t)}}};t.default=u}).call(this,e(2)["default"])},378:function(n,t,e){"use strict";e.r(t);var i=e(379),r=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(u);t["default"]=r.a},379:function(n,t,e){}}]);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uview-ui/components/u-radio-group/u-radio-group-create-component',
|
||||
{
|
||||
'uview-ui/components/u-radio-group/u-radio-group-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(372))
|
||||
})
|
||||
},
|
||||
[['uview-ui/components/u-radio-group/u-radio-group-create-component']]
|
||||
]);
|
4
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.json
vendored
Normal file
4
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.json
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
1
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="{{['u-radio-group','data-v-dd868428',bemClass]}}"><slot></slot></view>
|
47
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.wxss
vendored
Normal file
47
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio-group/u-radio-group.wxss
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
view.data-v-dd868428, scroll-view.data-v-dd868428, swiper-item.data-v-dd868428 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-radio-group.data-v-dd868428 {
|
||||
flex: 1;
|
||||
}
|
||||
.u-radio-group--row.data-v-dd868428 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.u-radio-group--column.data-v-dd868428 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
11
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.js
vendored
Normal file
11
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.json
vendored
Normal file
6
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon"
|
||||
}
|
||||
}
|
1
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view data-event-opts="{{[['tap',[['wrapperClickHandler',['$event']]]]]}}" class="{{['u-radio','data-v-da6758f0','u-radio-label--'+parentData.iconPlacement,parentData.borderBottom&&parentData.placement==='column'&&'u-border-bottom']}}" style="{{$root.s0}}" catchtap="__e"><view data-event-opts="{{[['tap',[['iconClickHandler',['$event']]]]]}}" class="{{['u-radio__icon-wrap','data-v-da6758f0',iconClasses]}}" style="{{$root.s1}}" catchtap="__e"><block wx:if="{{$slots.icon}}"><slot name="icon"></slot></block><block wx:else><u-icon class="u-radio__icon-wrap__icon data-v-da6758f0" vue-id="7282c304-1" name="checkbox-mark" size="{{elIconSize}}" color="{{elIconColor}}" bind:__l="__l"></u-icon></block></view><text data-event-opts="{{[['tap',[['labelClickHandler',['$event']]]]]}}" class="u-radio__text data-v-da6758f0" style="{{'color:'+(elDisabled?elInactiveColor:elLabelColor)+';'+('font-size:'+(elLabelSize)+';')+('line-height:'+(elLabelSize)+';')}}" catchtap="__e">{{label}}</text></view>
|
94
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.wxss
vendored
Normal file
94
unpackage/dist/dev/mp-weixin/uview-ui/components/u-radio/u-radio.wxss
vendored
Normal file
@ -0,0 +1,94 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
view.data-v-da6758f0, scroll-view.data-v-da6758f0, swiper-item.data-v-da6758f0 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-radio.data-v-da6758f0 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
.u-radio-label--left.data-v-da6758f0 {
|
||||
flex-direction: row;
|
||||
}
|
||||
.u-radio-label--right.data-v-da6758f0 {
|
||||
flex-direction: row-reverse;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.u-radio__icon-wrap.data-v-da6758f0 {
|
||||
box-sizing: border-box;
|
||||
transition-property: border-color, background-color, color;
|
||||
transition-duration: 0.2s;
|
||||
color: #606266;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: transparent;
|
||||
text-align: center;
|
||||
margin-right: 6px;
|
||||
font-size: 20px;
|
||||
border-width: 1px;
|
||||
border-color: #c8c9cc;
|
||||
border-style: solid;
|
||||
}
|
||||
.u-radio__icon-wrap--circle.data-v-da6758f0 {
|
||||
border-radius: 100%;
|
||||
}
|
||||
.u-radio__icon-wrap--square.data-v-da6758f0 {
|
||||
border-radius: 3px;
|
||||
}
|
||||
.u-radio__icon-wrap--checked.data-v-da6758f0 {
|
||||
color: #fff;
|
||||
background-color: red;
|
||||
border-color: #2979ff;
|
||||
}
|
||||
.u-radio__icon-wrap--disabled.data-v-da6758f0 {
|
||||
background-color: #ebedf0 !important;
|
||||
}
|
||||
.u-radio__icon-wrap--disabled--checked.data-v-da6758f0 {
|
||||
color: #c8c9cc !important;
|
||||
}
|
||||
.u-radio__label.data-v-da6758f0 {
|
||||
word-wrap: break-word;
|
||||
margin-left: 5px;
|
||||
margin-right: 12px;
|
||||
color: #606266;
|
||||
font-size: 15px;
|
||||
}
|
||||
.u-radio__label--disabled.data-v-da6758f0 {
|
||||
color: #c8c9cc;
|
||||
}
|
||||
|
11
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.js
vendored
Normal file
11
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.js
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-toast/u-toast"],{511:function(n,e,t){"use strict";t.r(e);var o=t(512),i=t(514);for(var r in i)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(r);t(516);var u,c=t(33),s=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"413e7fe0",null,!1,o["components"],u);s.options.__file="uview-ui/components/u-toast/u-toast.vue",e["default"]=s.exports},512:function(n,e,t){"use strict";t.r(e);var o=t(513);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},513:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return i})),t.d(e,"staticRenderFns",(function(){return u})),t.d(e,"recyclableRender",(function(){return r})),t.d(e,"components",(function(){return o}));try{o={uOverlay:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-overlay/u-overlay")]).then(t.bind(null,587))},uLoadingIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-loading-icon/u-loading-icon")]).then(t.bind(null,518))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-icon/u-icon")]).then(t.bind(null,363))},uGap:function(){return Promise.all([t.e("common/vendor"),t.e("uview-ui/components/u-gap/u-gap")]).then(t.bind(null,566))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var n=this,e=n.$createElement,t=(n._self._c,n.__get_style([n.contentStyle]));n.$mp.data=Object.assign({},{$root:{s0:t}})},r=!1,u=[];i._withStripped=!0},514:function(n,e,t){"use strict";t.r(e);var o=t(515),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=i.a},515:function(n,e,t){"use strict";(function(n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={name:"u-toast",mixins:[n.$u.mpMixin,n.$u.mixin],data:function(){return{isShow:!1,timer:null,config:{message:"",type:"",duration:2e3,icon:!0,position:"center",complete:null,overlay:!1,loading:!1},tmpConfig:{}}},computed:{iconName:function(){return this.tmpConfig.icon&&"none"!=this.tmpConfig.icon&&["error","warning","success","primary"].includes(this.tmpConfig.type)?n.$u.type2icon(this.tmpConfig.type):""},overlayStyle:function(){var n={justifyContent:"center",alignItems:"center",display:"flex",backgroundColor:"rgba(0, 0, 0, 0)"};return n},iconStyle:function(){var n={marginRight:"4px"};return n},loadingIconColor:function(){var e="rgb(255, 255, 255)";return["error","warning","success","primary"].includes(this.tmpConfig.type)&&(e=n.$u.hexToRgb(n.$u.color[this.tmpConfig.type])),e},contentStyle:function(){var e=n.$u.sys().windowHeight,t={},o=0;return"top"===this.tmpConfig.position?o=.25*-e:"bottom"===this.tmpConfig.position&&(o=.25*e),t.transform="translateY(".concat(o,"px)"),t}},created:function(){var n=this;["primary","success","error","warning","default","loading"].map((function(e){n[e]=function(t){return n.show({type:e,message:t})}}))},methods:{show:function(e){var t=this;this.tmpConfig=n.$u.deepMerge(this.config,e),this.clearTimer(),this.isShow=!0,this.timer=setTimeout((function(){t.clearTimer(),"function"===typeof t.tmpConfig.complete&&t.tmpConfig.complete()}),this.tmpConfig.duration)},hide:function(){this.clearTimer()},clearTimer:function(){this.isShow=!1,clearTimeout(this.timer),this.timer=null}},beforeDestroy:function(){this.clearTimer()}};e.default=t}).call(this,t(2)["default"])},516:function(n,e,t){"use strict";t.r(e);var o=t(517),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(r);e["default"]=i.a},517:function(n,e,t){}}]);
|
||||
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/uview-ui/components/u-toast/u-toast.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uview-ui/components/u-toast/u-toast-create-component',
|
||||
{
|
||||
'uview-ui/components/u-toast/u-toast-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(511))
|
||||
})
|
||||
},
|
||||
[['uview-ui/components/u-toast/u-toast-create-component']]
|
||||
]);
|
9
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.json
vendored
Normal file
9
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.json
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-overlay": "/uview-ui/components/u-overlay/u-overlay",
|
||||
"u-loading-icon": "/uview-ui/components/u-loading-icon/u-loading-icon",
|
||||
"u-icon": "/uview-ui/components/u-icon/u-icon",
|
||||
"u-gap": "/uview-ui/components/u-gap/u-gap"
|
||||
}
|
||||
}
|
1
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.wxml
vendored
Normal file
1
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.wxml
vendored
Normal file
@ -0,0 +1 @@
|
||||
<view class="u-toast data-v-413e7fe0"><u-overlay vue-id="32dc05b4-1" show="{{isShow}}" custom-style="{{overlayStyle}}" class="data-v-413e7fe0" bind:__l="__l" vue-slots="{{['default']}}"><view class="{{['u-toast__content','data-v-413e7fe0','u-type-'+tmpConfig.type,tmpConfig.type==='loading'||tmpConfig.loading?'u-toast__content--loading':'']}}" style="{{$root.s0}}"><block wx:if="{{tmpConfig.type==='loading'}}"><u-loading-icon vue-id="{{('32dc05b4-2')+','+('32dc05b4-1')}}" mode="circle" color="rgb(255, 255, 255)" inactiveColor="rgb(120, 120, 120)" size="25" class="data-v-413e7fe0" bind:__l="__l"></u-loading-icon></block><block wx:else><block wx:if="{{tmpConfig.type!=='defalut'&&iconName}}"><u-icon vue-id="{{('32dc05b4-3')+','+('32dc05b4-1')}}" name="{{iconName}}" size="17" color="{{tmpConfig.type}}" customStyle="{{iconStyle}}" class="data-v-413e7fe0" bind:__l="__l"></u-icon></block></block><block wx:if="{{tmpConfig.type==='loading'||tmpConfig.loading}}"><u-gap vue-id="{{('32dc05b4-4')+','+('32dc05b4-1')}}" height="12" bgColor="transparent" class="data-v-413e7fe0" bind:__l="__l"></u-gap></block><text class="{{['u-toast__content__text','data-v-413e7fe0','u-toast__content__text--'+tmpConfig.type]}}" style="max-width:400rpx;">{{tmpConfig.message}}</text></view></u-overlay></view>
|
99
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.wxss
vendored
Normal file
99
unpackage/dist/dev/mp-weixin/uview-ui/components/u-toast/u-toast.wxss
vendored
Normal file
@ -0,0 +1,99 @@
|
||||
@charset "UTF-8";
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
view.data-v-413e7fe0, scroll-view.data-v-413e7fe0, swiper-item.data-v-413e7fe0 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.u-toast__content.data-v-413e7fe0 {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
padding: 12px 20px;
|
||||
border-radius: 4px;
|
||||
background-color: #585858;
|
||||
color: #fff;
|
||||
align-items: center;
|
||||
max-width: 600rpx;
|
||||
position: relative;
|
||||
}
|
||||
.u-toast__content--loading.data-v-413e7fe0 {
|
||||
flex-direction: column;
|
||||
padding: 20px 20px;
|
||||
}
|
||||
.u-toast__content__text.data-v-413e7fe0 {
|
||||
color: #fff;
|
||||
font-size: 15px;
|
||||
line-height: 15px;
|
||||
}
|
||||
.u-toast__content__text--default.data-v-413e7fe0 {
|
||||
color: #fff;
|
||||
}
|
||||
.u-toast__content__text--error.data-v-413e7fe0 {
|
||||
color: #f56c6c;
|
||||
}
|
||||
.u-toast__content__text--primary.data-v-413e7fe0 {
|
||||
color: #3c9cff;
|
||||
}
|
||||
.u-toast__content__text--success.data-v-413e7fe0 {
|
||||
color: #5ac725;
|
||||
}
|
||||
.u-toast__content__text--warning.data-v-413e7fe0 {
|
||||
color: #f9ae3d;
|
||||
}
|
||||
.u-type-primary.data-v-413e7fe0 {
|
||||
color: #3c9cff;
|
||||
background-color: #ecf5ff;
|
||||
border-color: #d7eafe;
|
||||
border-width: 1px;
|
||||
}
|
||||
.u-type-success.data-v-413e7fe0 {
|
||||
color: #5ac725;
|
||||
background-color: #dbf1e1;
|
||||
border-color: #BEF5C8;
|
||||
border-width: 1px;
|
||||
}
|
||||
.u-type-error.data-v-413e7fe0 {
|
||||
color: #f56c6c;
|
||||
background-color: #fef0f0;
|
||||
border-color: #fde2e2;
|
||||
border-width: 1px;
|
||||
}
|
||||
.u-type-warning.data-v-413e7fe0 {
|
||||
color: #f9ae3d;
|
||||
background-color: #fdf6ec;
|
||||
border-color: #faecd8;
|
||||
border-width: 1px;
|
||||
}
|
||||
.u-type-default.data-v-413e7fe0 {
|
||||
color: #fff;
|
||||
background-color: #585858;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user