Commit 46cb8a87 authored by Mac's avatar Mac

1

parent c7ef73cb
...@@ -117,6 +117,8 @@ ...@@ -117,6 +117,8 @@
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0; let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0; let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0; let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0;
let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : 0;
that.request2({ that.request2({
url: '/api/AppletLogin/Login', url: '/api/AppletLogin/Login',
data: { data: {
...@@ -128,6 +130,7 @@ ...@@ -128,6 +130,7 @@
SuperiorId: pid, SuperiorId: pid,
SmallShopId: SmallShopId, SmallShopId: SmallShopId,
UserPageType: Up, UserPageType: Up,
CounponPassword:CounponPassword
} }
}, },
res => { res => {
...@@ -142,6 +145,7 @@ ...@@ -142,6 +145,7 @@
uni.removeStorageSync('pid'); uni.removeStorageSync('pid');
uni.removeStorageSync('SmallShopId'); uni.removeStorageSync('SmallShopId');
uni.removeStorageSync("Up"); uni.removeStorageSync("Up");
uni.removeStorageSync("CounponPassword");
} }
} }
); );
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
"sdkConfigs" : { "sdkConfigs" : {
"share" : { "share" : {
"weixin" : { "weixin" : {
"appid" : "wx38e054ee42b054f4", "appid" : "wxacd9f8cc3480d29e",
"UniversalLinks" : "" "UniversalLinks" : ""
} }
} }
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"quickapp" : {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx38e054ee42b054f4", "appid" : "wxacd9f8cc3480d29e",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"minified" : false "minified" : false
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<u-icon name="arrow-left" size="44"></u-icon> <u-icon name="arrow-left" size="44"></u-icon>
</view> </view>
</view> </view>
<view @click='yj' style="width: 200px;height: 50px;">意见调查</view>
<u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name" :list="myPageData.home_pages.navs" <u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name" :list="myPageData.home_pages.navs"
:is-scroll="true" :active-color="mainColor" :current="active" :bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs> :is-scroll="true" :active-color="mainColor" :current="active" :bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs>
<template v-for="(item, i) in myPageData.home_pages.navs"> <template v-for="(item, i) in myPageData.home_pages.navs">
...@@ -183,9 +184,6 @@ ...@@ -183,9 +184,6 @@
educationteacher educationteacher
}, },
onLoad(options) { onLoad(options) {
uni.navigateTo({
url: '/pages/school/investigation?ID=4' //6未开始 9已填 10 //活动结束 //4未填写
})
let that = this; let that = this;
uni.getSystemInfo({ uni.getSystemInfo({
success(res) { success(res) {
...@@ -256,6 +254,12 @@ ...@@ -256,6 +254,12 @@
SmallShopId: options.SmallShopId SmallShopId: options.SmallShopId
}); });
} }
//从其他小程序跳转过来
if (options && options.CounponPassword) {
uni.setStorageSync("CounponPassword", {
CounponPassword: options.CounponPassword
});
}
if (options && options.scene) { if (options && options.scene) {
//兼容之前小程序的调转 //兼容之前小程序的调转
this.getjump(options.scene); this.getjump(options.scene);
...@@ -584,6 +588,8 @@ ...@@ -584,6 +588,8 @@
let SmallShopId = uni.getStorageSync("SmallShopId") ? let SmallShopId = uni.getStorageSync("SmallShopId") ?
uni.getStorageSync("SmallShopId").SmallShopId : uni.getStorageSync("SmallShopId").SmallShopId :
0; 0;
let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : 0;
that.request2({ that.request2({
url: "/api/AppletLogin/Login", url: "/api/AppletLogin/Login",
data: { data: {
...@@ -595,6 +601,7 @@ ...@@ -595,6 +601,7 @@
SuperiorId: pid, SuperiorId: pid,
SmallShopId: SmallShopId, SmallShopId: SmallShopId,
UserPageType: Up, UserPageType: Up,
CounponPassword:CounponPassword
}, },
}, },
(res) => { (res) => {
...@@ -608,6 +615,7 @@ ...@@ -608,6 +615,7 @@
uni.removeStorageSync("pid"); uni.removeStorageSync("pid");
uni.removeStorageSync("SmallShopId"); uni.removeStorageSync("SmallShopId");
uni.removeStorageSync("Up"); uni.removeStorageSync("Up");
uni.removeStorageSync("CounponPassword");
that.getPageType() that.getPageType()
if (res.data.IsOpenSchool == 1) { //校园开启 if (res.data.IsOpenSchool == 1) { //校园开启
that.init() that.init()
...@@ -1084,7 +1092,11 @@ ...@@ -1084,7 +1092,11 @@
getPickcar(Name) { //选择取消地址 getPickcar(Name) { //选择取消地址
this.$refs.city[0].getPickcar(Name) this.$refs.city[0].getPickcar(Name)
}, },
yj(){
uni.navigateTo({
url: '/pages/school/investigation?ID=4' //6未开始 9已填 10 //活动结束 //4未填写
})
}
}, },
}; };
</script> </script>
......
...@@ -81,7 +81,10 @@ ...@@ -81,7 +81,10 @@
</view> </view>
</view> </view>
<view v-if='item.SurveyType==1 || item.SurveyType==2|| item.SurveyType==3'> <view v-if='item.SurveyType==1 || item.SurveyType==2|| item.SurveyType==3'>
<view>{{index+1}}{{item.Title}}<text class='starsx' v-if="item.IsRequired==1">*</text></view> <view>{{index+1}}{{item.Title}}
<text v-if="item.SurveyType==2|| item.SurveyType==3">({{item.SurveyTypeStr}})</text>
<text class='starsx' v-if="item.IsRequired==1">*</text>
</view>
<view class="rowpfright" v-if='item.SurveyType==1'> <view class="rowpfright" v-if='item.SurveyType==1'>
<text class="ratestyle" style="margin-right: 10px;margin-left: 0;">评分</text> <text class="ratestyle" style="margin-right: 10px;margin-left: 0;">评分</text>
<u-rate :current="item.ScoreNum" :active-color="mainColor" inactive-color="#b2b2b2" active-icon="star" <u-rate :current="item.ScoreNum" :active-color="mainColor" inactive-color="#b2b2b2" active-icon="star"
...@@ -95,6 +98,7 @@ ...@@ -95,6 +98,7 @@
<view style="margin: 12px 0;" v-if='item.SurveyType==2|| item.SurveyType==3'> <view style="margin: 12px 0;" v-if='item.SurveyType==2|| item.SurveyType==3'>
<u-checkbox-group size='30' :active-color='mainColor'> <u-checkbox-group size='30' :active-color='mainColor'>
<u-checkbox <u-checkbox
style='width: 100%;'
shape="circle" shape="circle"
@change="checkboxChange(item.FormType,item.SurveyType,index,y,$event)" @change="checkboxChange(item.FormType,item.SurveyType,index,y,$event)"
v-model="x.IsCheck==0?false:true" v-model="x.IsCheck==0?false:true"
...@@ -112,7 +116,10 @@ ...@@ -112,7 +116,10 @@
<div class='title' >问卷信息</div> <div class='title' >问卷信息</div>
<view class="cont" v-for="(item,index) in surveyData.SurveyList" :key='index'> <view class="cont" v-for="(item,index) in surveyData.SurveyList" :key='index'>
<view > <view >
<view>{{index+1}}{{item.Title}}<text class='starsx' v-if="item.IsRequired==1">*</text></view> <view>{{index+1}}{{item.Title}}
<text v-if="item.SurveyType==2|| item.SurveyType==3">({{item.SurveyTypeStr}})</text>
<text class='starsx' v-if="item.IsRequired==1">*</text>
</view>
<view class="wjright" v-if='item.SurveyType==4'> <view class="wjright" v-if='item.SurveyType==4'>
<textarea v-model="item.TextContent" placeholder="请输入" style="width: 100%;height: 100%;"/> <textarea v-model="item.TextContent" placeholder="请输入" style="width: 100%;height: 100%;"/>
</view> </view>
...@@ -130,6 +137,7 @@ ...@@ -130,6 +137,7 @@
<u-checkbox-group size='30' :active-color='mainColor'> <u-checkbox-group size='30' :active-color='mainColor'>
<u-checkbox <u-checkbox
shape="circle" shape="circle"
style='width: 100%;'
@change="checkboxChange(item.FormType,item.SurveyType,index,y,$event)" @change="checkboxChange(item.FormType,item.SurveyType,index,y,$event)"
v-model="x.IsCheck==0?false:true" v-model="x.IsCheck==0?false:true"
v-for="(x, y) in item.SurveyOptionsList" :key="y" v-for="(x, y) in item.SurveyOptionsList" :key="y"
...@@ -322,8 +330,19 @@ ...@@ -322,8 +330,19 @@
} }
}, },
receive(){ receive(){//领取
if(this.surveyData.PrizeType==2){//站外
uni.navigateToMiniProgram({
appId: 'wx38e054ee42b054f4',
path: 'pages/index/index?id=123',
extraData: {
'data1': 'test'
},
success(res) {
// 打开成功
}
})
}
}, },
goindex(){ goindex(){
uni.redirectTo({ url: "/pages/index/index" }); uni.redirectTo({ url: "/pages/index/index" });
......
...@@ -309,6 +309,8 @@ ...@@ -309,6 +309,8 @@
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0; let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0; let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0; let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0;
let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : 0;
that.request2({ that.request2({
url: '/api/AppletLogin/Login', url: '/api/AppletLogin/Login',
data: { data: {
...@@ -320,6 +322,7 @@ ...@@ -320,6 +322,7 @@
SuperiorId: pid, SuperiorId: pid,
SmallShopId: SmallShopId, SmallShopId: SmallShopId,
UserPageType: Up, UserPageType: Up,
CounponPassword:CounponPassword
} }
}, },
res => { res => {
......
...@@ -2,9 +2,9 @@ export default { ...@@ -2,9 +2,9 @@ export default {
install(Vue, options) { install(Vue, options) {
Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285" Vue.prototype.host = "https://wx.weibaoge.cn/web/index.php?_mall_id=1285"
// Vue.prototype.host2 = "http://192.168.0.110:8200" // Vue.prototype.host2 = "http://192.168.0.110:8200"
Vue.prototype.host2 = "https://mallApi.oytour.com" // Vue.prototype.host2 = "https://mallApi.oytour.com"
// Vue.prototype.host2 = "http://192.168.1.5:8088" // Vue.prototype.host2 = "http://192.168.1.5:8088"
// Vue.prototype.host2 = "http://192.168.1.48:8014" Vue.prototype.host2 = "http://192.168.1.48:8014"
// Vue.prototype.host2 = "http://testmall.oytour.com/" // Vue.prototype.host2 = "http://testmall.oytour.com/"
Vue.prototype.request = function(param, success, failed) { Vue.prototype.request = function(param, success, failed) {
...@@ -80,6 +80,7 @@ export default { ...@@ -80,6 +80,7 @@ export default {
let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0; let pid = uni.getStorageSync("pid") ? uni.getStorageSync("pid").pid : 0;
let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0; let Up = uni.getStorageSync("Up") ? uni.getStorageSync("Up").Up : 0;
let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0; let SmallShopId = uni.getStorageSync("SmallShopId") ? uni.getStorageSync("SmallShopId").SmallShopId : 0;
let CounponPassword = uni.getStorageSync("CounponPassword") ? uni.getStorageSync("CounponPassword").CounponPassword : 0;
this.request2({ this.request2({
url: '/api/AppletLogin/Login', url: '/api/AppletLogin/Login',
data: { data: {
...@@ -91,6 +92,7 @@ export default { ...@@ -91,6 +92,7 @@ export default {
SuperiorId: pid, SuperiorId: pid,
SmallShopId: SmallShopId, SmallShopId: SmallShopId,
UserPageType: Up, UserPageType: Up,
CounponPassword:CounponPassword
} }
}, },
res => { res => {
...@@ -99,6 +101,7 @@ export default { ...@@ -99,6 +101,7 @@ export default {
uni.removeStorageSync('pid'); uni.removeStorageSync('pid');
uni.removeStorageSync('SmallShopId'); uni.removeStorageSync('SmallShopId');
uni.removeStorageSync("Up"); uni.removeStorageSync("Up");
uni.removeStorageSync("CounponPassword");
} }
} }
); );
...@@ -106,7 +109,7 @@ export default { ...@@ -106,7 +109,7 @@ export default {
// 获取小程序APPID // 获取小程序APPID
Vue.prototype.GetMiniAppId = function() { Vue.prototype.GetMiniAppId = function() {
let appObj = {}; let appObj = {};
let appType = 6; let appType = 1;
switch (appType) { switch (appType) {
case 1: //赞羊 case 1: //赞羊
appObj = { appObj = {
......
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