Commit 4b4c5988 authored by Mac's avatar Mac

Merge branch 'master' of http://gitlab.oytour.com/viitto/mallapp

parents 7b2c024f 0faadd49
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
</view> </view>
</view> </view>
</view> </view>
<view style="width:100%;height:100rpx;"></view>
<view class="trade_Btn"> <view class="trade_Btn">
<u-button size="80" :ripple="true" :custom-style="{ <u-button size="80" :ripple="true" :custom-style="{
backgroundColor: mc, backgroundColor: mc,
......
...@@ -221,12 +221,20 @@ ...@@ -221,12 +221,20 @@
<view class="ac_upBtn" style="width:90%;margin:25rpx auto" @click="goSignUp()">提交</view> <view class="ac_upBtn" style="width:90%;margin:25rpx auto" @click="goSignUp()">提交</view>
</view> </view>
</view> </view>
<auth
v-if="showAuth"
@changeuserinfo="reloadUserinfo"
@gbAuth="gbAuth"
></auth>
</view> </view>
</template> </template>
<script> <script>
import auth from "@/components/auth/index.vue";
export default { export default {
components: {}, components: {
auth
},
data() { data() {
return { return {
mc: "", mc: "",
...@@ -248,16 +256,26 @@ ...@@ -248,16 +256,26 @@
}, },
isShowAdd:true, isShowAdd:true,
isEdit:false, isEdit:false,
EditIndex:-1 EditIndex:-1,
showAuth:false,
u: {}
} }
}, },
created() {}, created() {},
mounted() { mounted() {
this.mc = this.$uiConfig.mainColor; this.mc = this.$uiConfig.mainColor;
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: "",
};
this.showAuth = true;
} else {
this.getNatureList(); this.getNatureList();
}
}, },
onLoad(options) { onLoad(options) {
console.log(options, 'optionssss');
if (options && options.Id) { if (options && options.Id) {
this.signMsg.ActivityIds = options.Id; this.signMsg.ActivityIds = options.Id;
} }
...@@ -274,6 +292,14 @@ ...@@ -274,6 +292,14 @@
}); });
}, },
methods: { methods: {
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.getNatureList();
},
//关闭登录窗口
gbAuth() {
uni.navigateBack()
},
//获取性质 //获取性质
getNatureList() { getNatureList() {
this.request2({ this.request2({
...@@ -282,7 +308,6 @@ ...@@ -282,7 +308,6 @@
}, },
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
console.log(res, '数据');
this.natureList = res.data; this.natureList = res.data;
} }
} }
...@@ -348,7 +373,6 @@ ...@@ -348,7 +373,6 @@
}, },
//立即报名 //立即报名
goSignUp() { goSignUp() {
console.log(this.signMsg,'this.signMsg');
if(this.signMsg.CompanyName==''){ if(this.signMsg.CompanyName==''){
uni.showToast({ uni.showToast({
title: '请输入单位/企业/机构名称', title: '请输入单位/企业/机构名称',
...@@ -376,7 +400,6 @@ ...@@ -376,7 +400,6 @@
}, },
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
console.log(res, '数据');
uni.showToast({ uni.showToast({
title:res.message, title:res.message,
icon:'none' icon:'none'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment