submit
parent
8f0169a23d
commit
2c43332649
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,2 +1,2 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/index"],{295:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var a=r(t(296));n.__webpack_require_UNI_MP_PLUGIN__=t,e(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},296:function(n,e,t){"use strict";t.r(e);var r=t(297),a=t(299);for(var u in a)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(u);t(301);var o,i=t(33),c=Object(i["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"4bd6864f",null,!1,r["components"],o);c.options.__file="pages/mine/index.vue",e["default"]=c.exports},297:function(n,e,t){"use strict";t.r(e);var r=t(298);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},298:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return a})),t.d(e,"staticRenderFns",(function(){return o})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var a=function(){var n=this,e=n.$createElement;n._self._c},u=!1,o=[];a._withStripped=!0},299:function(n,e,t){"use strict";t.r(e);var r=t(300),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},300:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,u=r(t(63)),o=r(t(11)),i=r(t(65)),c=function(){Promise.all([t.e("common/vendor"),t.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(t(427))}.bind(null,t)).catch(t.oe)},s=(a={name:"index",onLoad:function(){n.hideTabBar()},components:{tabbar:c},data:function(){return{orderTotal:0,validContractDays:0,nickName:"",telNum:"",avatar:""}}},(0,o.default)(a,"onLoad",(function(){this.infoOrders(),this.info()})),(0,o.default)(a,"onShow",(function(){this.infoOrders()})),(0,o.default)(a,"methods",{infoOrders:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.infoOrders();case 2:t=e.sent,0===t.status?(n.orderTotal=t.data.totalCount,n.validContractDays=t.data.nearCount):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},info:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.info();case 2:t=e.sent,0===t.status?(n.nickName=t.data.user.nickName,n.telNum=t.data.user.telNum,n.avatar=t.data.user.avatar):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},goSet:function(){n.navigateTo({url:"/pages/mine/set-up"})}}),a);e.default=s}).call(this,t(2)["default"])},301:function(n,e,t){"use strict";t.r(e);var r=t(302),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},302:function(n,e,t){}},[[295,"common/runtime","common/vendor"]]]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/index"],{295:function(n,e,t){"use strict";(function(n,e){var r=t(4);t(26);r(t(25));var a=r(t(296));n.__webpack_require_UNI_MP_PLUGIN__=t,e(a.default)}).call(this,t(1)["default"],t(2)["createPage"])},296:function(n,e,t){"use strict";t.r(e);var r=t(297),a=t(299);for(var u in a)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(u);t(301);var o,i=t(33),c=Object(i["default"])(a["default"],r["render"],r["staticRenderFns"],!1,null,"4bd6864f",null,!1,r["components"],o);c.options.__file="pages/mine/index.vue",e["default"]=c.exports},297:function(n,e,t){"use strict";t.r(e);var r=t(298);t.d(e,"render",(function(){return r["render"]})),t.d(e,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(e,"components",(function(){return r["components"]}))},298:function(n,e,t){"use strict";var r;t.r(e),t.d(e,"render",(function(){return a})),t.d(e,"staticRenderFns",(function(){return o})),t.d(e,"recyclableRender",(function(){return u})),t.d(e,"components",(function(){return r}));var a=function(){var n=this,e=n.$createElement;n._self._c},u=!1,o=[];a._withStripped=!0},299:function(n,e,t){"use strict";t.r(e);var r=t(300),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},300:function(n,e,t){"use strict";(function(n){var r=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a,u=r(t(63)),o=r(t(11)),i=r(t(65)),c=function(){Promise.all([t.e("common/vendor"),t.e("components/uiq-tabbar/uiq-tabbar")]).then(function(){return resolve(t(419))}.bind(null,t)).catch(t.oe)},s=(a={name:"index",onLoad:function(){n.hideTabBar()},components:{tabbar:c},data:function(){return{orderTotal:0,validContractDays:0,nickName:"",telNum:"",avatar:""}}},(0,o.default)(a,"onLoad",(function(){this.infoOrders(),this.info()})),(0,o.default)(a,"onShow",(function(){this.infoOrders()})),(0,o.default)(a,"methods",{infoOrders:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.infoOrders();case 2:t=e.sent,0===t.status?(n.orderTotal=t.data.totalCount,n.validContractDays=t.data.nearCount):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},info:function(){var n=this;return(0,i.default)(u.default.mark((function e(){var t;return u.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.$api.mine.info();case 2:t=e.sent,0===t.status?(n.nickName=t.data.user.nickName,n.telNum=t.data.user.telNum,n.avatar=t.data.user.avatar):n.$common.msgToast(t.msg);case 4:case"end":return e.stop()}}),e)})))()},goSet:function(){n.navigateTo({url:"/pages/mine/set-up"})}}),a);e.default=s}).call(this,t(2)["default"])},301:function(n,e,t){"use strict";t.r(e);var r=t(302),a=t.n(r);for(var u in r)["default"].indexOf(u)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(u);e["default"]=a.a},302:function(n,e,t){}},[[295,"common/runtime","common/vendor"]]]);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/index.js.map
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
<view class="order-goods _div data-v-c0c42e9e"><title-block vue-id="541fae75-1" title="订单库" class="data-v-c0c42e9e" bind:__l="__l" vue-slots="{{['left']}}"><view slot="left"><u-action-sheet vue-id="{{('541fae75-2')+','+('541fae75-1')}}" show="{{show}}" actions="{{$root.g0}}" title="请选择状态" data-event-opts="{{[['^close',[['e0']]],['^select',[['statusSelect']]]]}}" bind:close="__e" bind:select="__e" class="data-v-c0c42e9e" bind:__l="__l"></u-action-sheet><view data-event-opts="{{[['tap',[['openStatus',['$event']]]]]}}" class="wrap1 _div data-v-c0c42e9e" bindtap="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><view class="wrap1_1_1 _div data-v-c0c42e9e">{{$root.g1.label}}</view><image style="width:12rpx;height:8rpx;" src="../../static/dbx2@3x.png" class="data-v-c0c42e9e"></image></view></view></view></title-block><view class="content2 _div data-v-c0c42e9e"><view class="wrap1 _div data-v-c0c42e9e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="../../static/zu1@3x.png" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"></view><input placeholder-style="color: #C7C7C7;font-size: 20rpx;" placeholder="在此处搜索您的订单" data-event-opts="{{[['input',[['__set_model',['','mobileKey','$event',[]]]]]]}}" value="{{mobileKey}}" bindinput="__e" class="data-v-c0c42e9e"/></view><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="wrap2 _div data-v-c0c42e9e" bindtap="__e">搜索</view></view><view class="content3 _div data-v-c0c42e9e"><scroll-view class="scrollbox data-v-c0c42e9e" style="{{'height:'+(elementBottom+'rpx')+';'}}" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadMore',['$event']]]]]}}" bindscrolltolower="__e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['touchstart',[['touchStart',['$event',index]]]],['touchmove',[['touchMove',['$event',index]]]],['touchend',[['e1',['$event']]]],['tap',[['goRouter',['$0'],[[['mainList','',index]]]]]]]}}" data-event-params="{{({index})}}" class="wrap1 _div data-v-c0c42e9e" style="{{'transform:'+('translateX('+item.$orig.distanceX+'px)')+';'}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e" bindtap="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="{{item.$orig.artworkImg?item.$orig.artworkImg:'../../static/jx632@3x.png'}}" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"><view class="wrap1_2_1 _div data-v-c0c42e9e">{{item.$orig.artworkName}}</view><view class="wrap1_2_3 _div data-v-c0c42e9e">{{item.$orig.artworkSquareSize+"平尺"}}</view><view class="wrap1_2_4 _div data-v-c0c42e9e"><block wx:if="{{!item.g2}}"><view class="_div data-v-c0c42e9e">{{''+item.$orig.startAt+"-"+item.$orig.endAt+''}}</view></block><block wx:else><view class="_div data-v-c0c42e9e">{{item.$orig.cycleName+''}}</view></block></view></view><view class="{{['wrap1_3','_div','data-v-c0c42e9e','status'+item.$orig.artworkStatus]}}"><block wx:if="{{item.$orig.artworkStatus===4}}"><view class="wrap1_3_1 _div data-v-c0c42e9e"><view class="wrap1_3_1_1 _div data-v-c0c42e9e">{{item.$orig.endAt}}</view><view class="wrap1_3_1_2 _div data-v-c0c42e9e">已延期</view><block wx:if="{{item.$orig.isSupplementary}}"><view data-event-opts="{{[['tap',[['openShow2',['$0'],[[['mainList','',index]]]]]]]}}" class="wrap1_3_1_3 _div data-v-c0c42e9e" catchtap="__e">点击补款</view></block></view></block><block wx:if="{{item.$orig.artworkStatus!==4}}"><view class="wrap1_3_3 _div data-v-c0c42e9e"><view class="wrap1_3_3_1 _div data-v-c0c42e9e">{{item.g3.label}}</view></view></block><block wx:if="{{item.$orig.shelvesNum}}"><view class="wrap1_3_2 _div data-v-c0c42e9e"><view class="wrap1_3_2_1 _div data-v-c0c42e9e">货架号:</view><view class="wrap1_3_2_2 _div data-v-c0c42e9e">{{item.$orig.shelvesNum}}</view></view></block><block wx:if="{{!item.$orig.shelvesNum}}"><view class="wrap1_3_2 _div data-v-c0c42e9e"><view class="wrap1_3_2_2 _div data-v-c0c42e9e">{{item.$orig.warehouseName}}</view></view></block></view><block wx:if="{{item.$orig.isRight&&item.$orig.artworkStatus===5}}"><view data-event-opts="{{[['tap',[['openDelete',['$0'],[[['mainList','',index]]]]]]]}}" class="wrap1_4 _div data-v-c0c42e9e" catchtap="__e"><image style="width:80rpx;height:80rpx;" src="../../static/zu154@3x.png" class="data-v-c0c42e9e"></image></view></block></view></block></scroll-view></view><uni-popup vue-id="541fae75-3" type="dialog" data-ref="alertDialog" class="data-v-c0c42e9e vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog vue-id="{{('541fae75-4')+','+('541fae75-3')}}" type="info" cancelText="关闭" confirmText="确认" title="提示" content="{{messageText}}" data-event-opts="{{[['^confirm',[['popForward']]]]}}" bind:confirm="__e" class="data-v-c0c42e9e" bind:__l="__l"></uni-popup-dialog></uni-popup><tabbar vue-id="541fae75-5" current="{{1}}" class="data-v-c0c42e9e" bind:__l="__l"></tabbar></view>
|
||||
<view class="order-goods _div data-v-c0c42e9e"><title-block vue-id="541fae75-1" title="订单库" class="data-v-c0c42e9e" bind:__l="__l" vue-slots="{{['left']}}"><view slot="left"><u-action-sheet vue-id="{{('541fae75-2')+','+('541fae75-1')}}" show="{{show}}" actions="{{$root.g0}}" title="请选择状态" data-event-opts="{{[['^close',[['e0']]],['^select',[['statusSelect']]]]}}" bind:close="__e" bind:select="__e" class="data-v-c0c42e9e" bind:__l="__l"></u-action-sheet><view data-event-opts="{{[['tap',[['openStatus',['$event']]]]]}}" class="wrap1 _div data-v-c0c42e9e" bindtap="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><view class="wrap1_1_1 _div data-v-c0c42e9e">{{$root.g1.label}}</view><image style="width:12rpx;height:8rpx;" src="../../static/dbx2@3x.png" class="data-v-c0c42e9e"></image></view></view></view></title-block><view class="content2 _div data-v-c0c42e9e"><view class="wrap1 _div data-v-c0c42e9e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="../../static/zu1@3x.png" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"></view><input placeholder-style="color: #C7C7C7;font-size: 20rpx;" placeholder="在此处搜索您的订单" data-event-opts="{{[['input',[['__set_model',['','mobileKey','$event',[]]]]]]}}" value="{{mobileKey}}" bindinput="__e" class="data-v-c0c42e9e"/></view><view data-event-opts="{{[['tap',[['search',['$event']]]]]}}" class="wrap2 _div data-v-c0c42e9e" bindtap="__e">搜索</view></view><view class="content3 _div data-v-c0c42e9e"><scroll-view class="scrollbox data-v-c0c42e9e" style="{{'height:'+(elementBottom+'rpx')+';'}}" scroll-y="{{true}}" data-event-opts="{{[['scrolltolower',[['loadMore',['$event']]]]]}}" bindscrolltolower="__e"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['touchstart',[['touchStart',['$event',index]]]],['touchmove',[['touchMove',['$event',index]]]],['touchend',[['e1',['$event']]]],['tap',[['goRouter',['$0'],[[['mainList','',index]]]]]]]}}" data-event-params="{{({index})}}" class="wrap1 _div data-v-c0c42e9e" style="{{'transform:'+('translateX('+item.$orig.distanceX+'px)')+';'}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e" bindtap="__e"><view class="wrap1_1 _div data-v-c0c42e9e"><image src="{{item.$orig.artworkImg?item.$orig.artworkImg:'../../static/jx632@3x.png'}}" class="data-v-c0c42e9e"></image></view><view class="wrap1_2 _div data-v-c0c42e9e"><view class="wrap1_2_1 _div data-v-c0c42e9e">{{item.$orig.artworkName}}</view><view class="wrap1_2_3 _div data-v-c0c42e9e">{{item.$orig.artworkSquareSize+"平尺"}}</view><view class="wrap1_2_4 _div data-v-c0c42e9e"><block wx:if="{{!item.g2}}"><view class="_div data-v-c0c42e9e">{{''+item.g3+"-"+item.g4+''}}</view></block><block wx:else><view class="_div data-v-c0c42e9e">{{item.$orig.cycleName+''}}</view></block></view></view><view class="{{['wrap1_3','_div','data-v-c0c42e9e','status'+item.$orig.artworkStatus]}}"><block wx:if="{{item.$orig.artworkStatus===4}}"><view class="wrap1_3_1 _div data-v-c0c42e9e"><view class="wrap1_3_1_1 _div data-v-c0c42e9e">{{item.$orig.endAt}}</view><view class="wrap1_3_1_2 _div data-v-c0c42e9e">已延期</view><block wx:if="{{item.$orig.isSupplementary}}"><view data-event-opts="{{[['tap',[['openShow2',['$0'],[[['mainList','',index]]]]]]]}}" class="wrap1_3_1_3 _div data-v-c0c42e9e" catchtap="__e">点击补款</view></block></view></block><block wx:if="{{item.$orig.artworkStatus!==4}}"><view class="wrap1_3_3 _div data-v-c0c42e9e"><view class="wrap1_3_3_1 _div data-v-c0c42e9e">{{item.g5.label}}</view></view></block><block wx:if="{{item.$orig.shelvesNum}}"><view class="wrap1_3_2 _div data-v-c0c42e9e"><view class="wrap1_3_2_1 _div data-v-c0c42e9e">货架号:</view><view class="wrap1_3_2_2 _div data-v-c0c42e9e">{{item.$orig.shelvesNum}}</view></view></block><block wx:if="{{!item.$orig.shelvesNum}}"><view class="wrap1_3_2 _div data-v-c0c42e9e"><view class="wrap1_3_2_2 _div data-v-c0c42e9e">{{item.$orig.warehouseName}}</view></view></block></view><block wx:if="{{item.$orig.isRight&&item.$orig.artworkStatus===5}}"><view data-event-opts="{{[['tap',[['openDelete',['$0'],[[['mainList','',index]]]]]]]}}" class="wrap1_4 _div data-v-c0c42e9e" catchtap="__e"><image style="width:80rpx;height:80rpx;" src="../../static/zu154@3x.png" class="data-v-c0c42e9e"></image></view></block></view></block></scroll-view></view><uni-popup vue-id="541fae75-3" type="dialog" data-ref="alertDialog" class="data-v-c0c42e9e vue-ref" bind:__l="__l" vue-slots="{{['default']}}"><uni-popup-dialog vue-id="{{('541fae75-4')+','+('541fae75-3')}}" type="info" cancelText="关闭" confirmText="确认" title="提示" content="{{messageText}}" data-event-opts="{{[['^confirm',[['popForward']]]]}}" bind:confirm="__e" class="data-v-c0c42e9e" bind:__l="__l"></uni-popup-dialog></uni-popup><tabbar vue-id="541fae75-5" current="{{1}}" class="data-v-c0c42e9e" bind:__l="__l"></tabbar></view>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,43 +1,66 @@
|
||||
const app = getApp();
|
||||
|
||||
// pagesFace/pages/index/index.js
|
||||
Page({
|
||||
data: {
|
||||
url: ''
|
||||
},
|
||||
|
||||
inputUrl(e) {
|
||||
this.setData({
|
||||
url: e.detail.value,
|
||||
})
|
||||
},
|
||||
|
||||
goScanCode() {
|
||||
wx.scanCode({
|
||||
onlyFromCamera: true,
|
||||
success: ({result = ''}) => {
|
||||
if(!result) {
|
||||
wx.showToast({
|
||||
title: '扫码失败',
|
||||
icon: 'error'
|
||||
})
|
||||
}
|
||||
this.setData({
|
||||
url: result
|
||||
}, this.goUrl)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
goUrl() {
|
||||
const url = this.data.url
|
||||
wx.navigateTo({
|
||||
url: '/pagesFace/pages/webview/webview?url=' + encodeURIComponent(url),
|
||||
})
|
||||
},
|
||||
|
||||
clearUrl() {
|
||||
this.setData({
|
||||
url: '',
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "人脸识别认证"
|
||||
}
|
@ -1,13 +1,2 @@
|
||||
<view class="container">
|
||||
<view class="container box1">
|
||||
<view class="title">
|
||||
在当前小程序内打开实名/签署页面,刷脸跳转到公证签小程序
|
||||
</view>
|
||||
<input class="weui-input" maxlength="-1" placeholder="输入链接" value="{{url}}" bindinput="inputUrl"/>
|
||||
<view class="btn-box">
|
||||
<button class="weui-btn my-btn" type="primary" bindtap="goScanCode">扫描二维码</button>
|
||||
<button class="weui-btn my-btn" type="primary" bindtap="goUrl">跳转</button>
|
||||
<button class="weui-btn my-btn" bindtap="clearUrl">清空</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!--pagesFace/pages/index/index.wxml-->
|
||||
<text>pagesFace/pages/index/index.wxml</text>
|
||||
|
@ -1,33 +0,0 @@
|
||||
.container {
|
||||
padding-top: 20rpx !important;
|
||||
}
|
||||
.box1 {
|
||||
margin-bottom: 100rpx;
|
||||
padding-bottom: 130rpx;
|
||||
}
|
||||
.title {
|
||||
margin-bottom: 20px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
font-weight: bold;
|
||||
}
|
||||
.weui-input {
|
||||
width: 100%;
|
||||
border-bottom: 1px solid #ccc;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.btn-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.weui-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 50rpx;
|
||||
}
|
||||
.my-btn {
|
||||
margin-top: 0 !important;
|
||||
}
|
@ -1,81 +1,66 @@
|
||||
// pagesFace/pages/middle/middle.js
|
||||
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"
|
||||
)
|
||||
);
|
||||
wx.navigateBack({
|
||||
delta: 1,
|
||||
});
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
},
|
||||
});
|
||||
})
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"navigationBarTitleText": "人脸识别认证",
|
||||
"enablePullDownRefresh": false,
|
||||
"usingComponents": {}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1,22 +1,66 @@
|
||||
// pagesFace/pages/webview/webview.js
|
||||
Page({
|
||||
|
||||
data: {
|
||||
url: '',
|
||||
},
|
||||
|
||||
/** 初始打开实名认证页面 */
|
||||
onLoad(options) {
|
||||
console.log('---wevbiew onload', options)
|
||||
this.setData({
|
||||
url: decodeURIComponent(options.url),
|
||||
})
|
||||
},
|
||||
|
||||
/** 刷脸完成后重新加载实名认证页面 */
|
||||
reloadPage(url) {
|
||||
console.log('---webview reloadPage', url)
|
||||
this.setData({
|
||||
url,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage() {
|
||||
|
||||
}
|
||||
})
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "人脸识别认证"
|
||||
}
|
@ -1 +1,2 @@
|
||||
<web-view src="{{url}}"></web-view>
|
||||
<!--pagesFace/pages/webview/webview.wxml-->
|
||||
<text>pagesFace/pages/webview/webview.wxml</text>
|
||||
|
@ -1,28 +0,0 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue