|
@@ -58,7 +58,7 @@
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
<view style="margin-top:45upx;color:#333333;font-size:34upx;width:100%;text-align:right;padding-right:70upx;">
|
|
<view style="margin-top:45upx;color:#333333;font-size:34upx;width:100%;text-align:right;padding-right:70upx;">
|
|
|
<text style="margin-right:40upx;" @click="useAccount()">使用账号密码登录</text>
|
|
<text style="margin-right:40upx;" @click="useAccount()">使用账号密码登录</text>
|
|
|
- <text @click="pageTo({url:'/pagesClient/official/apply',type:2})">注册帐号</text>
|
|
|
|
|
|
|
+ <text @click="register">注册帐号</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -72,6 +72,7 @@ import {appLogin} from '@/api/common'
|
|
|
import { getDictionaries,postWxCode } from '@/api/mini'
|
|
import { getDictionaries,postWxCode } from '@/api/mini'
|
|
|
import { replaceClientId } from '@/api/admin'
|
|
import { replaceClientId } from '@/api/admin'
|
|
|
import { phoneLogin,wxMobileLogin } from "@/api/auth";
|
|
import { phoneLogin,wxMobileLogin } from "@/api/auth";
|
|
|
|
|
+import { ghsInfo } from "@/api/ghs/index";
|
|
|
export default {
|
|
export default {
|
|
|
name: "login",
|
|
name: "login",
|
|
|
components: {
|
|
components: {
|
|
@@ -126,6 +127,11 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
...mapActions(['setUserShopAll']),
|
|
|
|
|
+ register(){
|
|
|
|
|
+ let itemId = this.option.itemId ? this.option.itemId : 0
|
|
|
|
|
+ let ghsShopId = this.option.ghsShopId ? this.option.ghsShopId : 0
|
|
|
|
|
+ this.pageTo({url:'/pagesClient/official/apply?itemId='+itemId+'&ghsShopId='+ghsShopId,type:2})
|
|
|
|
|
+ },
|
|
|
useAccount(){
|
|
useAccount(){
|
|
|
this.showAccountLogin = true
|
|
this.showAccountLogin = true
|
|
|
this.agree = 0
|
|
this.agree = 0
|
|
@@ -212,13 +218,22 @@ export default {
|
|
|
getShopInfo(true).then(res => { uni.setNavigationBarTitle({ title: res.name }) })
|
|
getShopInfo(true).then(res => { uni.setNavigationBarTitle({ title: res.name }) })
|
|
|
that.setUserShopAll()
|
|
that.setUserShopAll()
|
|
|
|
|
|
|
|
- //返回上一页带参数
|
|
|
|
|
- let pages = getCurrentPages();
|
|
|
|
|
- let prevPage = pages[ pages.length - 2 ];
|
|
|
|
|
- //修改上一页data里面的xjData
|
|
|
|
|
- prevPage.$vm.backAction = 'login'
|
|
|
|
|
|
|
+ if(this.option.itemId && Number(this.option.itemId)>0 && this.option.ghsShopId && Number(this.option.ghsShopId)>0){
|
|
|
|
|
+ ghsInfo({shopId:this.option.ghsShopId}).then(resInfo => {
|
|
|
|
|
+ let ghsId = resInfo.data.id
|
|
|
|
|
+ if(Number(ghsId)>0){
|
|
|
|
|
+ that.$util.pageTo({url: "/admin/ghsProduct/detail?id="+that.option.itemId+'&ghsId='+ghsId, type:2})
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }else{
|
|
|
|
|
+ //返回上一页带参数
|
|
|
|
|
+ let pages = getCurrentPages();
|
|
|
|
|
+ let prevPage = pages[ pages.length - 2 ];
|
|
|
|
|
+ //修改上一页data里面的xjData
|
|
|
|
|
+ prevPage.$vm.backAction = 'login'
|
|
|
|
|
|
|
|
- uni.navigateBack()
|
|
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|