|
@@ -38,6 +38,7 @@
|
|
|
@confirm="cardConfirm" :show="show1" :columns="cardList"></u-picker>
|
|
|
<poster :data="canvasData" background-color="#FFF" :width='750' :height='420' @on-success="posterSuccess"
|
|
|
ref="poster" @on-error="posterError"></poster>
|
|
|
+ <u-toast ref="uToast"></u-toast>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -98,22 +99,28 @@
|
|
|
};
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.userInfo = uni.getStorageSync("userInfo")
|
|
|
- console.log(this.userInfo)
|
|
|
- this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
|
|
|
- commonId: uni.getStorageSync("userInfo").id
|
|
|
- }, failres => {
|
|
|
- this.$refs.uToast.show({
|
|
|
- type: 'error',
|
|
|
- message: failres.errmsg,
|
|
|
+ if (uni.getStorageSync("userInfo").phone) {
|
|
|
+ this.userInfo = uni.getStorageSync("userInfo")
|
|
|
+ this.$request.baseRequest('admin.unimall.cardManagementInfo', 'list', {
|
|
|
+ commonId: uni.getStorageSync("userInfo").id
|
|
|
+ }, failres => {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: failres.errmsg,
|
|
|
+ })
|
|
|
+ uni.hideLoading()
|
|
|
+ }).then(res => {
|
|
|
+ this.cardList = [res.data.items]
|
|
|
+ this.cardChange({
|
|
|
+ value: this.cardList[[0]]
|
|
|
+ })
|
|
|
})
|
|
|
- uni.hideLoading()
|
|
|
- }).then(res => {
|
|
|
- this.cardList = [res.data.items]
|
|
|
- this.cardChange({
|
|
|
- value: this.cardList[[0]]
|
|
|
+ } else {
|
|
|
+ uni.switchTab({
|
|
|
+ url: "/pages/cardHolder/cardHolder"
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
this.popupshow = false
|
|
@@ -441,12 +448,12 @@
|
|
|
},
|
|
|
menuClick(typeName) {
|
|
|
if (typeName == "contactCustomer") return
|
|
|
- let _url = '/pages/mySet/' + typeName
|
|
|
- uni.navigateTo({
|
|
|
- url: _url
|
|
|
- })
|
|
|
+ let _url = '/pages/mySet/' + typeName
|
|
|
+ uni.navigateTo({
|
|
|
+ url: _url
|
|
|
+ })
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|