暂存code
This commit is contained in:
+75
-8
@@ -1,23 +1,90 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_auth = require("../../api/auth.js");
|
||||
const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {};
|
||||
computed: {
|
||||
CERT_OPTION() {
|
||||
return utils_enumUtils.CERT_OPTION;
|
||||
},
|
||||
CERT_STATUS_OPTION() {
|
||||
return utils_enumUtils.CERT_STATUS_OPTION;
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
currentUserData: {}
|
||||
// 当前用户信息
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getUserInfo();
|
||||
},
|
||||
methods: {
|
||||
getValue: utils_enumUtils.getValue,
|
||||
async getUserInfo() {
|
||||
const result = await api_auth.getUserInfo();
|
||||
if (result && result.bizcode === 100) {
|
||||
const data = result.data;
|
||||
common_vendor.index.__f__("log", "at pages/mine_authentication_ok/mine_authentication_ok.vue:69", "data", data);
|
||||
this.currentUserData = result.data || {};
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
_easycom_up_toast2();
|
||||
(_component_Header + _easycom_up_image2 + _easycom_up_toast2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
if (!Math) {
|
||||
_easycom_up_toast();
|
||||
(_easycom_up_image + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.sr("uToastRef", "731ed15b-0")
|
||||
};
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("authentication.title"),
|
||||
["left-path-type"]: "switchTab",
|
||||
["left-path"]: "/pages/mine/mine"
|
||||
}),
|
||||
b: $data.currentUserData && Object.keys($data.currentUserData).length !== 0
|
||||
}, $data.currentUserData && Object.keys($data.currentUserData).length !== 0 ? {
|
||||
c: common_vendor.t($options.getValue($options.CERT_STATUS_OPTION, $data.currentUserData.certStatus)),
|
||||
d: common_vendor.t($data.currentUserData.name),
|
||||
e: common_vendor.t($options.getValue($options.CERT_OPTION, $data.currentUserData.certType)),
|
||||
f: common_vendor.p({
|
||||
src: $data.currentUserData.certFimg,
|
||||
mode: "widthFix",
|
||||
width: "100%",
|
||||
height: "140",
|
||||
bgColor: "#f1f6ff00",
|
||||
fade: true,
|
||||
duration: "450"
|
||||
}),
|
||||
g: common_vendor.p({
|
||||
src: $data.currentUserData.certBimg,
|
||||
mode: "widthFix",
|
||||
width: "100%",
|
||||
height: "140",
|
||||
bgColor: "#f1f6ff00",
|
||||
fade: true,
|
||||
duration: "450"
|
||||
})
|
||||
} : {
|
||||
h: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
i: common_vendor.sr("uToastRef", "731ed15b-4")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-731ed15b"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
|
||||
+3
-5
@@ -1,10 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "实名认证",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<view class="authentication_ok_warp data-v-731ed15b"><view class="authentication_result data-v-731ed15b"><view class="result_title data-v-731ed15b">您的实名认证</view><view class="result_value data-v-731ed15b">已通过!</view></view><view class="authentication_info data-v-731ed15b"><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件姓名:</text><text class="info_item_value data-v-731ed15b">张某</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件性别:</text><text class="info_item_value data-v-731ed15b">男</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件号码:</text><text class="info_item_value data-v-731ed15b">448468454848458</text></view></view><up-toast class="r data-v-731ed15b" u-r="uToastRef" u-i="731ed15b-0" bind:__l="__l"></up-toast></view>
|
||||
<view class="authentication_ok_warp data-v-731ed15b"><header wx:if="{{a}}" class="data-v-731ed15b" u-i="731ed15b-0" bind:__l="__l" u-p="{{a}}"/><view wx:if="{{b}}" class="authentication_ok_content data-v-731ed15b"><view class="authentication_result data-v-731ed15b"><view class="result_title data-v-731ed15b">您的实名认证</view><view class="result_value data-v-731ed15b">{{c}}</view></view><view class="authentication_info data-v-731ed15b"><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件姓名:</text><text class="info_item_value data-v-731ed15b">{{d}}</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件类型:</text><text class="info_item_value data-v-731ed15b">{{e}}!</text></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件正面:</text><view class="info_item_value data-v-731ed15b"><up-image wx:if="{{f}}" class="data-v-731ed15b" u-i="731ed15b-1" bind:__l="__l" u-p="{{f}}"></up-image></view></view><view class="info_item data-v-731ed15b"><text class="info_item_title data-v-731ed15b">证件背面:</text><view class="info_item_value data-v-731ed15b"><up-image wx:if="{{g}}" class="data-v-731ed15b" u-i="731ed15b-2" bind:__l="__l" u-p="{{g}}"></up-image></view></view></view></view><view wx:else class="not_order_warp data-v-731ed15b"><up-image wx:if="{{h}}" class="data-v-731ed15b" u-i="731ed15b-3" bind:__l="__l" u-p="{{h}}"></up-image><view class="not_order_msg_warp data-v-731ed15b">暂无相关认证信息</view></view><up-toast class="r data-v-731ed15b" u-r="uToastRef" u-i="731ed15b-4" bind:__l="__l"></up-toast></view>
|
||||
+3
@@ -25,6 +25,8 @@
|
||||
.authentication_ok_warp.data-v-731ed15b {
|
||||
height: 100vh;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
.authentication_ok_warp .authentication_ok_content.data-v-731ed15b {
|
||||
padding: 60rpx;
|
||||
}
|
||||
.authentication_ok_warp .authentication_result.data-v-731ed15b {
|
||||
@@ -32,6 +34,7 @@
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
.authentication_ok_warp .authentication_result .result_title.data-v-731ed15b {
|
||||
font-weight: bold;
|
||||
|
||||
Reference in New Issue
Block a user