| | |
| | | //é
置代çæå¡å¨æ¥è§£å³è·¨åé®é¢ï¼uniappä¸éç¨CORSæ¹æ¡å设置JSONPæ¹æ¡ |
| | | "/api/" : { |
| | | //æ å°åå |
| | | "target" : "http://appapitest.ushopvip.com", //æµè¯ç¯å¢ |
| | | "target" : "http://dfg.shop.com", //æµè¯ç¯å¢ |
| | | "changeOrigin" : true, //æ¯å¦è·¨å |
| | | "secure" : true // æ¯å¦æ¯æ https åè®®ç代ç |
| | | } |
| | |
| | | "navigationStyle":"custom",//䏿¾ç¤ºå¤´é¨ |
| | | "navigationBarTitleText": "ç¾é£å¤å" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/takeout/elm", |
| | | "style": { |
| | | "navigationStyle":"custom",//䏿¾ç¤ºå¤´é¨ |
| | | "navigationBarTitleText": "ç¾é£å¤å" |
| | | } |
| | | } |
| | | ], |
| | | "globalStyle": { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | uni-page-wrapper |
| | | { |
| | | background: #1088FE; |
| | | } |
| | | .toptxt { |
| | | position: fixed; |
| | | top: 0px; |
| | | text-align: center; |
| | | font-size: 0.3rem; |
| | | width: 100%; |
| | | background: #FFD100; |
| | | padding: 10px 0; |
| | | color: #fff; |
| | | } |
| | | |
| | | .bodycont { |
| | | background: #1088FE; |
| | | width: 100%; |
| | | padding-top: 95rpx; |
| | | } |
| | | |
| | | .pageBac { |
| | | width: 100%; |
| | | height: 294rpx; |
| | | margin-top: 20rpx; |
| | | } |
| | | |
| | | .tabcont { |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | |
| | | .tabcontsp { |
| | | width: 35%; |
| | | background: rgba(254, 254, 254, 0.3); |
| | | border-radius: 23px; |
| | | text-align: center; |
| | | |
| | | |
| | | } |
| | | |
| | | .tabconttxt { |
| | | |
| | | width: 50%; |
| | | border-radius: 23px; |
| | | font-size: 14px; |
| | | padding: 10rpx; |
| | | } |
| | | |
| | | .getBtn-containe-uncheck { |
| | | color: #fff; |
| | | } |
| | | |
| | | .tabconttxt-check { |
| | | color: #1088FE; |
| | | background: #fff; |
| | | } |
| | | |
| | | .code-cont { |
| | | background: #fff; |
| | | width: 92%; |
| | | margin: 0 auto; |
| | | border-radius: 0.4rem; |
| | | padding-bottom: 1.5rem; |
| | | } |
| | | |
| | | .code-flow { |
| | | text-align: center; |
| | | padding: 1rem; |
| | | border-bottom: 1px dashed #1088FE; |
| | | } |
| | | |
| | | .code-flow-img { |
| | | width: 80%; |
| | | height: 3.4rem; |
| | | } |
| | | |
| | | .code-img { |
| | | text-align: center; |
| | | padding: 1rem 3rem; |
| | | } |
| | | |
| | | .code-img-code { |
| | | width: 9rem; |
| | | height: 9rem; |
| | | } |
| | | |
| | | .code-btn { |
| | | width: 50%; |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | background: linear-gradient(0deg, #F1B641 0%, #FFCE6D 100%); |
| | | font-size: 34rpx; |
| | | font-weight: 500; |
| | | color: #C03F11; |
| | | width: 580rpx; |
| | | height: 78rpx; |
| | | border-radius: 39rpx; |
| | | line-height: 78rpx; |
| | | } |
| | | .rulesContent{ |
| | | padding: 5rpx 28rpx; |
| | | margin-top: 45rpx; |
| | | color:#fff; |
| | | .txt-title { |
| | | width: 100%; |
| | | font-size: 32rpx; |
| | | font-weight: 500; |
| | | color: #FFFFFF; |
| | | line-height: 48rpx; |
| | | margin-bottom: 20rpx; |
| | | } |
| | | |
| | | .richtext-content { |
| | | width: 100%; |
| | | margin-bottom: 40rpx; |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | line-height: 48rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template style="background:#1088FE"> |
| | | <view class="bodycont"> |
| | | <!-- <view class="toptxt"> |
| | | ç¾å¢å¤å |
| | | </view> --> |
| | | <view class="tabcont"> |
| | | <view class="tabcont tabcontsp"> |
| | | <span class="tabconttxt getBtn-containe-uncheck" @click="toMt()"> |
| | | ç¾å¢ |
| | | </span> |
| | | <span class="tabconttxt tabconttxt-check"> |
| | | 饿äºä¹ |
| | | </span> |
| | | </view> |
| | | |
| | | </view> |
| | | <view> |
| | | <image class="pageBac" src="https://hxshapp.oss-cn-beijing.aliyuncs.com/weapp/elm.png"></image> |
| | | </view> |
| | | <view class="code-cont"> |
| | | <view class="code-flow"> |
| | | <image class="code-flow-img" src="https://hxshapp.oss-cn-beijing.aliyuncs.com/weapp/elmstep.png"></image> |
| | | </view> |
| | | <view class="code-img"> |
| | | <image class="code-img-code" :src="qrcode"></image> |
| | | </view> |
| | | <view v-if="qrcode" class="code-btn" @click="shareClick()"> |
| | | é¢çº¢å
ç¹å¤å |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="rulesContent"> |
| | | <view class="txt-title"> |
| | | è§å说æï¼ |
| | | </view> |
| | | <view class="richtext-content"> |
| | | 1.红å
éå
é¢åæè½å¨ä¸å页é¢ä½¿ç¨;</br> |
| | | 2.å é¤çº¢å
åå¤å红å
ä¸å²çª,å¯ä»¥åæ¶é¢å,åªä¸ªçº¢å
大ç¨åªä¸ª;</br> |
| | | 3.æ 论饿äºä¹æ°èç¨æ·,å¤å红å
åå é¤çº¢å
æ¯ä¸ªææºå·æ¯å¤©åå¯é¢ä¸æ¬¡,红å
éé¢éæºåæ¾;</br> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import './elm.css' |
| | | import comUtils from '../../utils/ComUtils.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | | optionsCurrent:3, |
| | | qrcode:'', |
| | | mtInfo:{}, |
| | | optionsList: [{ |
| | | label: "ç¾å¢", |
| | | type: 1 |
| | | }, |
| | | { |
| | | label: "饿äºä¹", |
| | | type: 3 |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.IntiData() |
| | | }, |
| | | methods: { |
| | | IntiData() { |
| | | uni.showLoading({ |
| | | title: 'å è½½ä¸', |
| | | mask:true |
| | | }); |
| | | var that = this; |
| | | this.$http.post('/api/taoke/ele_act', { |
| | | type: this.optionsCurrent |
| | | }).then(e => { |
| | | uni.hideLoading(); |
| | | if (e.code != 0) |
| | | { |
| | | uni.showToast({ |
| | | title:res.data.msg, |
| | | icon:'none' |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | that.mtInfo = e.data.info; |
| | | that.qrcode = that.mtInfo.we_app_info.miniCode; |
| | | console.log(that.qrcode); |
| | | }).catch(function(err) { |
| | | console.log(err); |
| | | }) |
| | | }, |
| | | toMt() |
| | | { |
| | | uni.redirectTo({ |
| | | url:'./mt?dfgtoken='+comUtils.getUrlPar('dfgtoken') |
| | | }) |
| | | }, |
| | | shareClick() { |
| | | window.location.href=this.mtInfo.h5; |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | color: #fff; |
| | | } |
| | | |
| | | .bodycont { |
| | | .mtbodycont { |
| | | background: #FFD100; |
| | | width: 100%; |
| | | padding-top: 95rpx; |
| | |
| | | color: #fff; |
| | | } |
| | | |
| | | .tabconttxt-check { |
| | | .mttabconttxt-check { |
| | | color: #FFD100; |
| | | background: #fff; |
| | | } |
| | |
| | | padding-bottom: 1.5rem; |
| | | } |
| | | |
| | | .code-flow { |
| | | .mtcode-flow { |
| | | text-align: center; |
| | | padding: 1rem; |
| | | border-bottom: 1px dashed #FFD100; |
| | |
| | | |
| | | .code-flow-img { |
| | | width: 80%; |
| | | height: 3rem; |
| | | height: 3.4rem; |
| | | } |
| | | |
| | | .code-img { |
| | |
| | | .rulesContent{ |
| | | padding: 0 28rpx; |
| | | margin-top: 45rpx; |
| | | |
| | | color: #fff; |
| | | .txt-title { |
| | | width: 100%; |
| | | font-size: 32rpx; |
| | |
| | | <template> |
| | | <view class="bodycont"> |
| | | <!-- <view class="toptxt"> |
| | | <view class="mtbodycont"> |
| | | <!-- <view class="toptxt"> |
| | | ç¾å¢å¤å |
| | | </view> --> |
| | | <view class="tabcont"> |
| | | <view class="tabcont tabcontsp"> |
| | | <span class="tabconttxt tabconttxt-check"> |
| | | <span class="tabconttxt mttabconttxt-check"> |
| | | ç¾å¢ |
| | | </span> |
| | | <span class="tabconttxt getBtn-containe-uncheck"> |
| | | <span class="tabconttxt getBtn-containe-uncheck" @click="toElm()"> |
| | | 饿äºä¹ |
| | | </span> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | <view> |
| | | <image class="pageBac" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5mt1.png"></image> |
| | | </view> |
| | | <view class="code-cont"> |
| | | <view class="code-flow"> |
| | | <image class="code-flow-img" src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5huanstep.png"></image> |
| | | <view class="mtcode-flow"> |
| | | <image class="code-flow-img" |
| | | src="https://yanfeiobpub.obs.cn-east-3.myhuaweicloud.com/dfg/h5huanstep.png"></image> |
| | | </view> |
| | | <view class="code-img"> |
| | | <image class="code-img-code" :src="qrcode"></image> |
| | | </view> |
| | | <view class="code-btn" @click="shareClick()"> |
| | | <view v-if="qrcode" class="code-btn" @click="shareClick()"> |
| | | é¢çº¢å
ç¹å¤å |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="rulesContent"> |
| | | <view class="txt-title"> |
| | | è§å说æï¼ |
| | |
| | | 饮åé¢é使ç¨; </br> |
| | | (3)å¤åæ°äººé¦å红å
éæ°ç¨æ·(设å¤ãææºå·ã 红å
|
| | | å·åæªå¨ç¾å¢å¤åä¸è¿å)馿¬¡ä¸å使ç¨ï¼ä¸ä¸ä¸å
¶ä»ä¼æ (é¦åãæ»¡åãæ»¡èµ ãå¥é¤å¢ãææ£è)å享;éé¦å红å
å¯ä¸ä¸è¿°ä¼æ å å 使ç¨;</br> |
| | | (4)使ç¨çº¢å
æ¶ä¸åææºå·ç å¿
须䏿¶é¤äººææºå·ç ãé¢å红å
æ¶è¾å
¥çææºå·ç ä¸è´:</br> |
| | | 3.订åè·åè§å为æ¨éè¿æ¬æ´»å¨é¡µç¹å»è·³è½¬è³ç¾å¢ååªè¦äº§çææç¹å»å³å¯è¿è¡è·åï¼ç¹å»ææææé¿ä¸º7天</br> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script> |
| | | import './mt.css' |
| | | import comUtils from '../../utils/ComUtils.js' |
| | | export default { |
| | | data() { |
| | | return { |
| | | optionsCurrent:1, |
| | | qrcode:'', |
| | | mtInfo:{}, |
| | | optionsCurrent: 1, |
| | | qrcode: '', |
| | | mtInfo: {}, |
| | | optionsList: [{ |
| | | label: "ç¾å¢", |
| | | type: 1 |
| | |
| | | }, |
| | | methods: { |
| | | IntiData() { |
| | | uni.showLoading({ |
| | | title: 'å è½½ä¸', |
| | | mask: true |
| | | }); |
| | | var that = this; |
| | | this.$http.post('/api/taoke/meituan_act', { |
| | | type: this.optionsCurrent |
| | | }).then(e => { |
| | | if (e.code != 0) |
| | | { |
| | | uni.hideLoading(); |
| | | if (e.code != 0) { |
| | | uni.showToast({ |
| | | title:res.data.msg, |
| | | icon:'none' |
| | | title: res.data.msg, |
| | | icon: 'none' |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | |
| | | that.mtInfo = e.data.info; |
| | | that.qrcode = that.mtInfo.we_app_info.miniCode; |
| | | console.log(that.qrcode); |
| | |
| | | console.log(err); |
| | | }) |
| | | }, |
| | | toElm() { |
| | | uni.redirectTo({ |
| | | url: './elm?dfgtoken=' + comUtils.getUrlPar('dfgtoken') |
| | | }) |
| | | }, |
| | | shareClick() { |
| | | if(this.mtInfo) |
| | | { |
| | | window.location.href=this.mtInfo.deeplink; |
| | | var that=this; |
| | | var ua = navigator.userAgent.toLowerCase(); |
| | | if (ua.match(/MicroMessenger/i) == "micromessenger") { |
| | | window.location.href = this.mtInfo.h5; |
| | | } |
| | | else{ |
| | | window.location.href = this.mtInfo.deeplink; |
| | | } |
| | | }, |
| | | |
| | | |
| | | } |
| | | } |
| | | </script> |
| | |
| | | import Request from './index.js' |
| | | import md5 from'../utils/md5.js' |
| | | import comUtils from '../utils/ComUtils.js' |
| | | |
| | | let request = new Request().http; |
| | | |
| | | function get(url, data) { |
| | | //è·åtoken |
| | | let header={ |
| | | dfgsessionkey:getUrlPar("dfgtoken") |
| | | dfgsessionkey:comUtils.getUrlPar("dfgtoken") |
| | | } |
| | | return request({ |
| | | url: url, |
| | |
| | | enstr+=value+ (JSON.stringify(data[value]).replace(/^\"|\"$/g,'')); |
| | | }) |
| | | } |
| | | let userToken=getUrlPar("dfgtoken"); |
| | | let userToken=comUtils.getUrlPar("dfgtoken"); |
| | | enstr="dfg"+enstr+"apph5"+userToken; |
| | | enstr=md5.hex_md5(enstr); |
| | | enstr+='.'+userToken |
| | |
| | | data: data, |
| | | header: header, |
| | | }) |
| | | } |
| | | |
| | | function getUrlPar(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) return unescape(r[2]); |
| | | return null; |
| | | } |
| | | |
| | | let api = { |
| | |
| | | function getUrlPar(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) return unescape(r[2]); |
| | | return null; |
| | | } |
| | | |
| | | module.exports = { |
| | | getUrlPar |
| | | } |