diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cc4184e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +api1_1_0.js +homepage1_1_0.css +.vscode/settings.json diff --git a/README.md b/README.md index bc18f28..1ed28ae 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,6 @@ -### 3 分钟了解如何进入开发 +test_1_1_0 白名单测试环境 +V1_1_0 白名单正式环境(即将正式发版) -欢迎使用云效 Codeup,通过阅读以下内容,你可以快速熟悉 Codeup ,并立即开始今天的工作。 - -### 提交**文件** - -首先,你需要了解在 Codeup 中如何提交代码文件,跟着文档「[__提交第一行代码__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e7546fd9001aee81fd)」一起操作试试看吧。 - -### 开启扫描 - -开发过程中,为了更好的管理你的代码资产,Codeup 内置了「[__代码规约扫描__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e8546fd9001aee821c)」和「[__敏感信息检测__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e8546fd9001aee821b)」服务,你可以在代码库设置-集成与服务中一键开启,开启后提交或合并请求的变更将自动触发扫描,并及时提供结果反馈。 - -![](https://img.alicdn.com/tfs/TB1nRDatoz1gK0jSZLeXXb9kVXa-1122-380.png "") - -![](https://img.alicdn.com/tfs/TB1PrPatXY7gK0jSZKzXXaikpXa-1122-709.png "") - -### 代码评审 - -功能开发完毕后,通常你需要发起「[__代码合并和评审__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e8546fd9001aee8216)」,Codeup 支持多人协作的代码评审服务,你可以通过「[__保护分支__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e9546fd9001aee8221)」策略及「[__合并请求设置__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e9546fd9001aee8224)」对合并过程进行流程化管控,同时提供 WebIDE 在线代码评审及冲突解决能力,让你的评审过程更加流畅。 - -![](https://img.alicdn.com/tfs/TB1XHrctkP2gK0jSZPxXXacQpXa-1432-887.png "") - -![](https://img.alicdn.com/tfs/TB1V3fctoY1gK0jSZFMXXaWcVXa-1432-600.png "") - -### 编写文档 - -项目推进过程中,你的经验和感悟可以直接记录到 Codeup 代码库的「[__文档__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e8546fd9001aee8213)」内,让智慧可视化。 - -![](https://img.alicdn.com/tfs/TB1BN2ateT2gK0jSZFvXXXnFXXa-1432-700.png "") - -### 成员协作 - -是时候邀请成员一起编写卓越的代码工程了,请点击右上角「成员」邀请你的小伙伴开始协作吧! - -### 更多 - -Git 使用教学、高级功能指引等更多说明,参见[__Codeup帮助文档__](https://thoughts.aliyun.com/sharespace/5e8c37eb546fd9001aee8242/docs/5e8c37e6546fd9001aee81fa)。 \ No newline at end of file +index.html: 入口文件 +homepage.html: 商品列表页面 +exchange.html 兑换页面 \ No newline at end of file diff --git a/V1_1_0/exchange.html b/V1_1_0/exchange.html new file mode 100644 index 0000000..a3d093c --- /dev/null +++ b/V1_1_0/exchange.html @@ -0,0 +1,414 @@ + + + + + + + 权益兑换页 + + + + + + + + + + + +
+
+
+ + + + +
+
+
+ +
+
+
+
+ +
+ +
+

账号:

+

再次输入:

+

账号:

+

再次输入:

+
+ + +
+ + +
+
+ +
+ +
+ {{this.promttip}} +
+ +
+
+ + +
+ +

活动规则

+
+ +
+
+ + + +
+
+

是否为账号{{this.account}}兑换{{this.proname}}会员?

+

是否兑换{{this.proname}}会员?

+ 确认兑换 +
+
+ +
+
+

{{tiptext}}

+ 知道了 +
+
+ +
+
+

{{this.successTip}}

+ 我知道啦 +
+
+ +
+ + + + \ No newline at end of file diff --git a/1.html b/V1_1_0/homepage.html similarity index 58% rename from 1.html rename to V1_1_0/homepage.html index 4aedb90..34298dd 100644 --- a/1.html +++ b/V1_1_0/homepage.html @@ -12,10 +12,9 @@ - + - - + + + +
+ +
+ {{this.promttip}} +
+ +
+
+
+

{{tiptext}}

+ 知道了 +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + + + + + + + +
+
+
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/api1_1.js b/api1_1.js deleted file mode 100644 index 7cea304..0000000 --- a/api1_1.js +++ /dev/null @@ -1,175 +0,0 @@ -let baseurl = 'http://192.168.6.75'; -let testZyg = 'http://192.168.6.81:8056'; -let pathname=document.location.href; -//开发环境 -if(pathname.includes('1688sup')||pathname.includes('83323')||pathname.includes('86885')||pathname.includes('22233')){//正式 - baseurl = 'https://marketapi.1688sup.com' -} -if(pathname.includes('test')){ - baseurl = 'http://192.168.6.75'; -} -axios.interceptors.request.use((config) => { - config.headers.Version = 'v1.0.3'; - return config -}) - -const req = { - //获取落地页信息 - axiosGetplan(url, params){ - var result = axios({ - method: 'get', - url: baseurl + url, - params, - }).then(function(res) { - if(res.data.code!=200){ - alert(res.data.message); - return false; - } - return res.data; - }).catch(function(error) { - return "exception=" + error; - - }); - return result; - }, - //发送key手机号核销验证码 - axiosPostsendMobile(url, data) { - let result = axios({ - method: 'post', - url: baseurl + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res.data; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, - //获取key列表 - axiosPostgetKey(url, data) { - let result = axios({ - method: 'post', - url: testZyg + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, - //免验证登录 - axiosPostTogppds(url, data) { - let result = axios({ - method: 'post', - url: baseurl + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res.data; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, - //验证key信息 - axiosPostKey(url, data) { - let result = axios({ - method: 'post', - url: baseurl + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res.data; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, - //获取key相关的商品信息 - axiosPostproducts(url, data) { - let result = axios({ - method: 'post', - url: baseurl + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res.data; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, - //key核销生成订单 - axiosPostusage(url, data) { - let result = axios({ - method: 'post', - url: baseurl + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res.data; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, -//查询兑换订单接口 - axiosPostResult(url, data) { - let result = axios({ - method: 'post', - url: baseurl + url, - data: data, - header: { - 'Content-type': 'application/x-www-form-urlencoded' - } - }).then(res => { - return res.data; - }).catch(error => { - return "exception=" + error; - }); - return result; - }, -} - -//图形验证码 -function captchaimg(){ - let self = this; - let parmas = {} - let customsessionid=""; - const xhr = new XMLHttpRequest() - xhr.open('GET', baseurl + '/auth/login/verify') - xhr.setRequestHeader('Version','v1.0.3'); - xhr.responseType = "arraybuffer"; - xhr.onreadystatechange = function (response) { - response.header = { - 'Accept': 'application/json', - 'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8', - } - var img = document.getElementById('captcha_img') - var byteArray = new Uint8Array(response.target.response); - var binary = ''; - for (var i = 0; i < byteArray.byteLength; i++) { - binary += String.fromCharCode(byteArray[i]); - } - let str = 'data:image/png;base64,' + window.btoa(binary) - img.src = str; - customsessionid = xhr.getResponseHeader('Unique-Str'); - sessionStorage.setItem('unique_str',customsessionid); - } - xhr.send() -} diff --git a/exchange.html b/exchange.html index a3d093c..8f049e8 100644 --- a/exchange.html +++ b/exchange.html @@ -14,8 +14,8 @@ - - + + + +
+
+
+ + + + +
+
+
+ +
+
+
+
+ +
+ +
+

账号:

+

再次输入:

+

账号:

+

再次输入:

+
+ + +
+ + +
+
+ +
+ +
+ {{this.promttip}} +
+ +
+
+ + +
+ +

活动规则

+
+ +
+
+ + + +
+
+

是否为账号{{this.account}}兑换{{this.proname}}会员?

+

是否兑换{{this.proname}}会员?

+ 确认兑换 +
+
+ +
+
+

{{tiptext}}

+ 知道了 +
+
+ +
+
+

{{this.successTip}}

+ 我知道啦 +
+
+ +
+ + + + \ No newline at end of file diff --git a/test_1_1_0/homepage.html b/test_1_1_0/homepage.html new file mode 100644 index 0000000..335a216 --- /dev/null +++ b/test_1_1_0/homepage.html @@ -0,0 +1,490 @@ + + + + + + + 权益兑换页 + + + + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
+ + +
+ +
+ +
+
+
+
+
+
+ + + + + + +
+
+ +
+
+
+
+
+
+
+ +
+ 立即兑换 +
+
+ +
+
+ + +
+
+ +
+
    +
  • +
    + + + {{item.product_name}} +
    + +
  • +
+
+ +
+
+ + + +
+
+ +
+ +
    +
  • +
    + + + + + + + +
    + {{item.product_name}} +
  • +
+
+
+ +
+
+
+ +
+ +

活动规则

+
+ +
+
+ +
+
+ + +
+ {{this.promttip}} +
+ + +
+
+

{{tiptext}}

+ 知道了 +
+
+ +
+
+

{{this.successTip}}

+ 我知道啦 +
+
+ +
+ + + + \ No newline at end of file diff --git a/test_1_1_0/index.html b/test_1_1_0/index.html new file mode 100644 index 0000000..e49a46c --- /dev/null +++ b/test_1_1_0/index.html @@ -0,0 +1,382 @@ + + + + + + + 权益兑换页 + + + + + + + + + + +
+ +
+ {{this.promttip}} +
+ +
+
+
+

{{tiptext}}

+ 知道了 +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + + + + + + + +
+
+
+ +
+
+
+
+ + + + \ No newline at end of file